/* ItemShop + FleaMarket custom scrollbar */
.itemshop-window-body::-webkit-scrollbar,
.itemshop-products-grid::-webkit-scrollbar,
.fleamarket-window-body::-webkit-scrollbar,
.fleamarket-depot-grid::-webkit-scrollbar,
.fleamarket-list-body::-webkit-scrollbar,
.fleamarket-market-content .fleamarket-list-body::-webkit-scrollbar,
.itemshop-admin-bonus-grid::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.itemshop-window-body::-webkit-scrollbar-track,
.itemshop-products-grid::-webkit-scrollbar-track,
.fleamarket-window-body::-webkit-scrollbar-track,
.fleamarket-depot-grid::-webkit-scrollbar-track,
.fleamarket-list-body::-webkit-scrollbar-track,
.fleamarket-market-content .fleamarket-list-body::-webkit-scrollbar-track,
.itemshop-admin-bonus-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.itemshop-window-body::-webkit-scrollbar-thumb,
.itemshop-products-grid::-webkit-scrollbar-thumb,
.fleamarket-window-body::-webkit-scrollbar-thumb,
.fleamarket-depot-grid::-webkit-scrollbar-thumb,
.fleamarket-list-body::-webkit-scrollbar-thumb,
.fleamarket-market-content .fleamarket-list-body::-webkit-scrollbar-thumb,
.itemshop-admin-bonus-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(214, 174, 96, 0.92) 0%, rgba(176, 138, 74, 0.92) 100%);
    border: 1px solid rgba(176, 138, 74, 0.95);
}

.itemshop-window-body::-webkit-scrollbar-thumb:hover,
.itemshop-products-grid::-webkit-scrollbar-thumb:hover,
.fleamarket-window-body::-webkit-scrollbar-thumb:hover,
.fleamarket-depot-grid::-webkit-scrollbar-thumb:hover,
.fleamarket-list-body::-webkit-scrollbar-thumb:hover,
.fleamarket-market-content .fleamarket-list-body::-webkit-scrollbar-thumb:hover,
.itemshop-admin-bonus-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(224, 186, 112, 0.98) 0%, rgba(190, 150, 84, 0.98) 100%);
}


@font-face {
    font-family: 'Bender';
    src: url('/assets/font/Bender.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bender';
    src: url('/assets/font/Bender-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Bender';
    src: url('/assets/font/Bender-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Bender';
    src: url('/assets/font/Bender-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Bender';
    src: url('/assets/font/Bender-Black.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Bender';
    src: url('/assets/font/Bender-BlackItalic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Bender';
    src: url('/assets/font/Bender-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Bender';
    src: url('/assets/font/Bender-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}


* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Bender', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 24px;
}

.site-header {
    position: relative;
    z-index: 100;
    min-height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(to bottom, rgba(16, 16, 16, 0.97), rgba(10, 10, 10, 0.94));
    overflow: visible;
}

.site-header-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.02), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.02)),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025), transparent 55%);
    pointer-events: none;
}

.site-header-inner {
    position: relative;
    z-index: 2;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f1f1f1;
    line-height: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.site-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 48px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.76);
    transition: color 0.18s ease;
    white-space: nowrap;
}

.site-nav-button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.site-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7px;
    height: 2px;
    background: #b08a4a;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}

.site-nav-link:hover,
.site-nav-link.is-active {
    color: #ffffff;
}

.site-nav-link:hover::after,
.site-nav-link.is-active::after {
    transform: scaleX(1);
}

.site-nav-link-special {
    color: #d2b27a;
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.account-dropdown {
    position: relative;
}

.account-dropdown-menu[hidden] {
    display: none;
}

.account-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(22, 22, 22, 0.98) 0%, rgba(10, 10, 10, 0.985) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 30;
}

.account-dropdown-menu a {
    display: block;
    padding: 11px 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.account-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.account-dropdown-logout {
    color: #d2b27a !important;
}

.header-action-button {
    height: 28px;
    min-width: 90px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}

.header-action-button:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
}

.header-action-button-primary {
    background: rgba(176, 138, 74, 0.92);
    border-color: rgba(176, 138, 74, 0.92);
    color: #111111;
}

.header-action-button-primary:hover {
    background: rgba(198, 155, 83, 1);
    border-color: rgba(198, 155, 83, 1);
}

.site-main {
    min-height: 60vh;
    background: #0a0a0a;
}

@media (max-width: 1200px) {
    .site-header-inner {
        flex-wrap: wrap;
        align-items: center;
        padding: 14px 0;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 18px;
        padding-bottom: 6px;
    }

    .site-nav-link {
        height: auto;
        padding: 2px 0;
    }

    .site-nav-link::after {
        bottom: -2px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .site-logo {
        font-size: 24px;
    }

    .site-header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .header-action-button {
        min-width: 0;
        padding: 0 16px;
    }
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.login-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(22, 22, 22, 0.98) 0%, rgba(10, 10, 10, 0.985) 100%);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.login-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025), transparent 24%),
        linear-gradient(to right, rgba(176, 138, 74, 0.08), transparent 18%, transparent 82%, rgba(176, 138, 74, 0.05));
}

.login-modal-inner {
    position: relative;
    z-index: 2;
    padding: 30px 28px 24px;
}

.login-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
}

.login-modal-close:hover {
    color: #ffffff;
    transform: scale(1.05);
}

.login-modal-title {
    margin: 0 0 22px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.login-form-error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid rgba(180, 60, 60, 0.35);
    background: rgba(120, 20, 20, 0.18);
    color: #f0b3b3;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.login-form-success {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid rgba(70, 140, 70, 0.35);
    background: rgba(20, 90, 20, 0.18);
    color: #b9e3b9;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.login-form-group label {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.74);
}

.login-form-group input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
    color: #ffffff;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
    font-family: Arial, sans-serif;
}

.login-form-group input:focus {
    border-color: rgba(176, 138, 74, 0.95);
    background: rgba(255, 255, 255, 0.04);
}

.login-submit-button {
    height: 40px;
    margin-top: 4px;
    border: 1px solid rgba(176, 138, 74, 0.95);
    background: rgba(176, 138, 74, 0.95);
    color: #111111;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.11em;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.login-submit-button:hover {
    background: rgba(198, 155, 83, 1);
    border-color: rgba(198, 155, 83, 1);
}

.login-modal-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.58);
    font-family: Arial, sans-serif;
}

.login-modal-footer a {
    color: #d2b27a;
    font-weight: 700;
    font-family: Arial, sans-serif;
}

.fleamarket-window {
    position: relative;
    width: 70vw;
    height: 70vh;
    min-width: 1100px;
    min-height: 680px;
    max-width: 1400px;
    max-height: 900px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(20, 20, 20, 0.985) 0%, rgba(9, 9, 9, 0.99) 100%);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.68),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.fleamarket-window::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent 18%),
        linear-gradient(to right, rgba(176, 138, 74, 0.06), transparent 18%, transparent 82%, rgba(176, 138, 74, 0.04));
}

.fleamarket-window-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.64);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
}

.fleamarket-window-close:hover {
    color: #ffffff;
    transform: scale(1.04);
}

.fleamarket-window-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fleamarket-window-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 18px 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fleamarket-topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.fleamarket-topbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fleamarket-topbar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.fleamarket-window-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f2f2f2;
    white-space: nowrap;
}

.fleamarket-tab-button,
.fleamarket-filter-button,
.fleamarket-refresh-button {
    height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.18s ease;
}

.fleamarket-tab-button:hover,
.fleamarket-filter-button:hover,
.fleamarket-refresh-button:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.fleamarket-tab-button.is-active {
    border-color: rgba(176, 138, 74, 0.92);
    background: rgba(176, 138, 74, 0.16);
    color: #f0d7ab;
}

.fleamarket-balance-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.fleamarket-balance-label {
    font-weight: 700;
}

.fleamarket-balance-value {
    color: #d2b27a;
    font-weight: 700;
}

.fleamarket-window-body {
    flex: 1;
    min-height: 0;
    padding: 22px 28px 28px;
}

.fleamarket-tab-panel {
    height: 100%;
}

.fleamarket-depot-grid,
.fleamarket-list-body {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.015);
}

.fleamarket-list-header {
    display: grid;
    grid-template-columns: 80px 140px 1fr 140px 180px;
    gap: 12px;
    padding: 0 14px 12px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.62);
}

.fleamarket-list-header-market {
    grid-template-columns: 56px 150px 82px minmax(160px, 1fr) 100px 120px;
}

@media (max-width: 1280px) {
    .fleamarket-window {
        width: 92vw;
        min-width: 0;
    }

    .fleamarket-window-topbar {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .fleamarket-topbar-center {
        justify-content: flex-start;
    }

    .fleamarket-topbar-right {
        align-items: flex-start;
    }
}

.fleamarket-market-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    height: 100%;
}

.fleamarket-market-sidebar {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.015);
}

.fleamarket-market-sidebar-inner {
    padding: 16px;
}

.fleamarket-sidebar-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #f2f2f2;
}

.fleamarket-market-content {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.fleamarket-market-content .fleamarket-list-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.fleamarket-depot-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    height: 100%;
}

.fleamarket-depot-content {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.fleamarket-depot-sidebar {
    height: 94%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.015);
}

.fleamarket-depot-sidebar-inner {
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.fleamarket-offers-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.fleamarket-offers-layout .fleamarket-list-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.fleamarket-row {
    display: grid;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 0 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
}

.fleamarket-row-market {
    display: grid;
    grid-template-columns: 56px 150px 82px minmax(160px, 1fr) 100px 120px;
    align-items: center;
    column-gap: 8px;
}

.fleamarket-seller-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.fleamarket-seller-reputation {
    margin-top: 4px;
    font-size: 11px;
    color: #d2b27a;
}

.fleamarket-item-icon-box {
    display: flex;
    align-items: center;
}

.fleamarket-item-icon-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 32px;
}

.fleamarket-item-icon-stack.size-1 {
    height: 32px;
}

.fleamarket-item-icon-stack.size-2 {
    height: 64px;
}

.fleamarket-item-icon-stack.size-3 {
    height: 96px;
}

.fleamarket-item-icon-cell {
    display: block;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    margin-top: -1px;
}

.fleamarket-item-icon-cell:first-child {
    margin-top: 0;
}

.fleamarket-item-icon-image {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 32px;
    height: auto;
    z-index: 2;
}

.fleamarket-price {
    font-size: 13px;
    font-weight: 700;
    color: #f3f3f3;
}

.fleamarket-action-button {
    height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(176, 138, 74, 0.92);
    background: rgba(176, 138, 74, 0.14);
    color: #f0d7ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.18s ease;
}

.fleamarket-action-button:hover {
    background: rgba(176, 138, 74, 0.24);
    border-color: rgba(176, 138, 74, 1);
}

.fleamarket-row-offers {
    grid-template-columns: 80px 140px 1fr 140px 180px;
}

.fleamarket-depot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 72px));
    align-content: start;
    gap: 12px;
    height: 94%;
    padding: 16px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.015);
}

.fleamarket-depot-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 108px;
    padding-top: 4px;
    color: inherit;
    text-decoration: none;
    border: 1px solid transparent;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.fleamarket-depot-slot:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.fleamarket-depot-slot.is-selected {
    background: rgba(176, 138, 74, 0.08);
    border-color: rgba(176, 138, 74, 0.45);
}

.fleamarket-item-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.fleamarket-item-preview-icon {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 4px;
}

.fleamarket-item-preview-name {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #f2f2f2;
}

.fleamarket-item-preview-section {
    width: 100%;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fleamarket-item-preview-section + .fleamarket-item-preview-section {
    margin-top: 0;
}

.fleamarket-item-preview-line {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.fleamarket-item-preview-line-fixed {
    color: #4f9a4f;
}

.fleamarket-item-preview-line-extra {
    color: #7fd37f;
}

.fleamarket-socket-row {
    display: grid;
    grid-template-columns: 32px minmax(0, auto);
    align-items: center;
    justify-content: center;
    column-gap: 6px;
    width: auto;
    margin-bottom: 0;
}

.fleamarket-socket-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.fleamarket-socket-image {
    display: block;
    width: 32px;
    height: 32px;
}

.fleamarket-socket-text {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #7fd37f;
    text-align: left;
    white-space: nowrap;
}

.fleamarket-sell-box {
    width: 100%;
    margin: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.fleamarket-sell-controls {
    display: grid;
    grid-template-columns: 110px auto;
    gap: 8px;
    align-items: center;
}

.fleamarket-sell-price-input {
    width: 110px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: center;
    outline: none;
}

.fleamarket-sell-price-input:focus {
    border-color: rgba(176, 138, 74, 0.95);
}

.fleamarket-sell-button {
    height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(176, 138, 74, 0.92);
    background: rgba(176, 138, 74, 0.14);
    color: #f0d7ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.18s ease;
}

.fleamarket-sell-button:hover {
    background: rgba(176, 138, 74, 0.24);
    border-color: rgba(176, 138, 74, 1);
}

.fleamarket-sell-info {
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
}

.fleamarket-item-preview-description {
    max-width: 240px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
}

.fleamarket-item-count-badge {
    position: absolute;
    right: 2px;
    bottom: 1px;
    z-index: 3;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    text-shadow:
        1px 0 0 #000000,
        -1px 0 0 #000000,
        0 1px 0 #000000,
        0 -1px 0 #000000,
        1px 1px 0 #000000,
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000;
    pointer-events: none;
}

#fleamarket-content-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.fleamarket-offer-limit-info {
    margin-left: 10px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.fleamarket-withdraw-box {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.fleamarket-withdraw-button {
    height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.18s ease;
}

.fleamarket-withdraw-button:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.fleamarket-notice-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.fleamarket-notice-box {
    width: 360px;
    max-width: calc(100% - 40px);
    padding: 20px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.fleamarket-notice-text {
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.fleamarket-notice-button {
    margin-top: 14px;
    height: 30px;
    padding: 0 18px;
    border: 1px solid rgba(176, 138, 74, 0.92);
    background: rgba(176, 138, 74, 0.14);
    color: #f0d7ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.fleamarket-offer-limit-reputation {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(210, 178, 122, 0.88);
    white-space: nowrap;
} 

.fleamarket-action-stack {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}


.fleamarket-action-button-pending {
    min-width: 86px;
    border-color: rgba(140, 58, 58, 0.92);
    background: rgba(140, 58, 58, 0.16);
    color: #d9b0b0;
}

.fleamarket-action-button-pending:hover {
    border-color: rgba(160, 72, 72, 1);
    background: rgba(160, 72, 72, 0.22);
    color: #f0d0d0;
}

.fleamarket-market-item-name {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.86);
}

.fleamarket-market-icon-box {
    position: relative;
}

.fleamarket-market-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    z-index: 30;
    min-width: 220px;
    max-width: 280px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, visibility 0.16s ease;
    text-align: center;
}

.fleamarket-market-icon-box:hover .fleamarket-market-tooltip {
    opacity: 1;
    visibility: visible;
}

.fleamarket-market-tooltip-name {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #f0d7ab;
    line-height: 1.4;
}

.fleamarket-market-tooltip-line {
    font-size: 11px;
    line-height: 1.5;
}

.fleamarket-market-tooltip-line-fixed {
    color: #4f9a4f;
}

.fleamarket-market-tooltip-line-extra,
.fleamarket-market-tooltip-line-socket {
    color: #7fd37f;
}

.fleamarket-market-tooltip-description {
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.fleamarket-market-sidebar-inner {
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.fleamarket-filter-search {
    margin-bottom: 12px;
}

.fleamarket-filter-search-input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    outline: none;
}

.fleamarket-filter-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.fleamarket-filter-bonus-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.fleamarket-filter-bonus-title {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
}

.fleamarket-filter-bonus-list {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fleamarket-filter-bonus-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.82);
}

.fleamarket-filter-bonus-item input[type="checkbox"] {
    margin: 0;
}

.fleamarket-filter-show-more-button {
    margin-top: 8px;
    align-self: flex-start;
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.fleamarket-filter-bonus-item-hidden {
    display: none;
}

.fleamarket-filter-actions {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fleamarket-filter-action-button {
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.fleamarket-filter-action-button-reset {
    color: rgba(255, 255, 255, 0.68);
}

.fleamarket-pagination {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fleamarket-pagination-button {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.84);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
}

.fleamarket-pagination-button-compact {
    padding: 0;
}

.fleamarket-pagination-info {
    min-width: 36px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
}

.fleamarket-empty-state {
    padding: 18px 12px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.68);
}

.fleamarket-depot-grid .fleamarket-empty-state,
.fleamarket-list-body .fleamarket-empty-state {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}



.fleamarket-window {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.modal-backdrop.is-open .fleamarket-window {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#login-modal-backdrop,
#register-modal-backdrop,
#verify-modal-backdrop {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

#login-modal-backdrop.is-open,
#register-modal-backdrop.is-open,
#verify-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

#login-modal-backdrop.is-open .login-modal,
#register-modal-backdrop.is-open .login-modal,
#verify-modal-backdrop.is-open .login-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#itemshop-modal-backdrop {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

#itemshop-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.itemshop-window {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

#itemshop-modal-backdrop.is-open .itemshop-window {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.itemshop-window-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.itemshop-window-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 18px 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.itemshop-topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    position: relative;
}

.itemshop-topbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.itemshop-topbar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.itemshop-window-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f2f2f2;
    white-space: nowrap;
}

.itemshop-tab-button {
    height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.18s ease;
}

.itemshop-tab-button:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.itemshop-balance-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.itemshop-balance-label {
    font-weight: 700;
}

.itemshop-balance-value {
    color: #d2b27a;
    font-weight: 700;
}

.itemshop-window-body {
    flex: 1;
    min-height: 0;
    padding: 22px 28px 28px;
	overflow-y: auto;
	overflow-x: hidden;
}

.itemshop-dropdown {
    position: relative;
}

.itemshop-dropdown-menu[hidden] {
    display: none;
}

.itemshop-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 150px;
    padding: 6px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.98) 0%, rgba(10, 10, 10, 0.985) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 30;
}

.itemshop-dropdown-item {
    width: 100%;
    height: 32px;
    padding: 0 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.itemshop-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.itemshop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
    justify-content: start;
    align-content: start;
    gap: 16px;
    height: 100%;
    overflow: auto;
    padding-top: 10px;
}

.itemshop-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 190px;
	min-width: 0;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.itemshop-product-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.itemshop-product-card.is-selected {
    border-color: rgba(176, 138, 74, 0.65);
    background: rgba(176, 138, 74, 0.10);
}

.itemshop-product-icon-box {
    position: relative;
    width: 64px;
    height: 96px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 10px;
}

.itemshop-product-icon-image {
    display: block;
    max-width: 64px;
    max-height: 96px;
    width: auto;
    height: auto;
}

.itemshop-product-discount-badge {
    position: absolute;
    top: -6px;
    right: -18px;
    min-width: 44px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(176, 138, 74, 0.95);
    background: rgba(176, 138, 74, 0.95);
    color: #111111;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.itemshop-product-name {
    width: 100%;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, 0.90);
    overflow-wrap: anywhere;
}

.itemshop-product-price {
    margin-top: auto;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #d2b27a;
    text-align: center;
}

#itemshop-preview-modal-backdrop {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

#itemshop-preview-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.itemshop-preview-modal {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
    max-width: 460px;
}

#itemshop-preview-modal-backdrop.is-open .itemshop-preview-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.itemshop-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.itemshop-preview-image-box {
    position: relative;
    width: 96px;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itemshop-preview-image {
    display: block;
    max-width: 96px;
    max-height: 128px;
    width: auto;
    height: auto;
}

.itemshop-preview-discount-badge {
    position: absolute;
    top: -6px;
    right: -18px;
    min-width: 44px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(176, 138, 74, 0.95);
    background: rgba(176, 138, 74, 0.95);
    color: #111111;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.itemshop-preview-name {
    font-size: 18px;
    font-weight: 700;
    color: #f2f2f2;
}

.itemshop-preview-price {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #d2b27a;
}

.itemshop-preview-description {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.itemshop-preview-bonus-slots {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.itemshop-preview-bonus-slot {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.itemshop-preview-bonus-slot-label {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
}

.itemshop-preview-bonus-select {
    width: 100%;
    height: 40px;
    padding: 0 38px 0 12px;
    border: 1px solid rgba(176, 138, 74, 0.35);
    background-color: rgba(12, 12, 12, 0.96);
    color: #f3f3f3;
    font-family: Arial, sans-serif;
    font-size: 13px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #d2b27a 50%),
        linear-gradient(135deg, #d2b27a 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 17px,
        calc(100% - 12px) 17px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.itemshop-preview-bonus-select:hover {
    border-color: rgba(176, 138, 74, 0.6);
    background-color: rgba(18, 18, 18, 0.98);
}

.itemshop-preview-bonus-select:focus {
    border-color: rgba(176, 138, 74, 0.95);
    box-shadow: 0 0 0 1px rgba(176, 138, 74, 0.25);
}

.itemshop-preview-bonus-select option {
    background: #111111;
    color: #f3f3f3;
}

#itemshop-confirm-modal-backdrop {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

#itemshop-confirm-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.itemshop-confirm-modal {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
    max-width: 460px;
}

#itemshop-confirm-modal-backdrop.is-open .itemshop-confirm-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.itemshop-product-card:has(.itemshop-product-discount-badge) {
    border-color: rgba(176, 138, 74, 0.32);
    box-shadow: 0 0 0 1px rgba(176, 138, 74, 0.08), 0 0 18px rgba(176, 138, 74, 0.08);
}

.itemshop-product-card:has(.itemshop-product-discount-badge):hover {
    border-color: rgba(176, 138, 74, 0.55);
    box-shadow: 0 0 0 1px rgba(176, 138, 74, 0.14), 0 0 24px rgba(176, 138, 74, 0.14);
}

.itemshop-product-price-wrap {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.itemshop-product-old-price {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.42);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.itemshop-product-discount-badge {
    position: absolute;
    top: -6px;
    right: -34px;
    min-width: 48px;
    height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(176, 138, 74, 0.98);
    background: linear-gradient(180deg, rgba(214, 174, 96, 0.98) 0%, rgba(176, 138, 74, 0.98) 100%);
    color: #111111;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(176, 138, 74, 0.22);
}

@keyframes itemshopDiscountGlowPulse {
    0% {
        box-shadow:
            0 0 0 1px rgba(176, 138, 74, 0.10),
            0 0 10px rgba(176, 138, 74, 0.08),
            0 0 18px rgba(176, 138, 74, 0.06),
            inset 0 0 8px rgba(176, 138, 74, 0.02);
        transform: translateY(0);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(176, 138, 74, 0.24),
            0 0 20px rgba(176, 138, 74, 0.20),
            0 0 34px rgba(176, 138, 74, 0.16),
            inset 0 0 14px rgba(176, 138, 74, 0.05);
        transform: translateY(-1px);
    }
    100% {
        box-shadow:
            0 0 0 1px rgba(176, 138, 74, 0.10),
            0 0 10px rgba(176, 138, 74, 0.08),
            0 0 18px rgba(176, 138, 74, 0.06),
            inset 0 0 8px rgba(176, 138, 74, 0.02);
        transform: translateY(0);
    }
}

.itemshop-product-card:has(.itemshop-product-discount-badge) {
    position: relative;
    overflow: hidden;
    animation: itemshopDiscountGlowPulse 1.65s ease-in-out infinite;
}

.itemshop-product-card:has(.itemshop-product-discount-badge)::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -75%;
    width: 42%;
    height: 160%;
    transform: rotate(18deg);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.16) 50%,
        rgba(255, 255, 255, 0.05) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    animation: itemshopDiscountShine 3.8s ease-in-out infinite;
}

@keyframes itemshopDiscountShine {
    0% {
        left: -75%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    45% {
        left: 140%;
        opacity: 0;
    }
    100% {
        left: 140%;
        opacity: 0;
    }
}

#itemshop-admin-modal-backdrop {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

#itemshop-admin-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.itemshop-admin-modal {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
    max-width: 720px;
}

#itemshop-admin-modal-backdrop.is-open .itemshop-admin-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.itemshop-admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.itemshop-admin-body {
    min-height: 220px;
}

.itemshop-admin-panel {
    display: none;
}

.itemshop-admin-panel.is-active {
    display: block;
}

.itemshop-admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.itemshop-admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.itemshop-admin-form-group label {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
}

.itemshop-admin-input {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    outline: none;
}

.itemshop-admin-input:focus {
    border-color: rgba(176, 138, 74, 0.95);
}

select.itemshop-admin-input {
    padding: 0 38px 0 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #d2b27a 50%),
        linear-gradient(135deg, #d2b27a 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 16px,
        calc(100% - 12px) 16px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

select.itemshop-admin-input option {
    background: #111111;
    color: #ffffff;
}


.itemshop-admin-form-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .itemshop-admin-form-grid {
        grid-template-columns: 1fr;
    }
}

.itemshop-admin-bonus-section {
    margin-top: 16px;
}

.itemshop-admin-bonus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 6px;
}

.itemshop-admin-bonus-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.itemshop-admin-bonus-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.itemshop-admin-bonus-check input[type="checkbox"] {
    margin: 0;
}

.itemshop-admin-bonus-value {
    height: 34px;
}

@media (max-width: 768px) {
    .itemshop-admin-bonus-grid {
        grid-template-columns: 1fr;
    }
}

.case-rewards-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 4px 4px;
    margin-top: 10px;
    justify-content: flex-start;
}

.case-reward-strip-card {
    flex: 0 0 140px;
    min-height: 180px;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.case-reward-strip-icon-box {
    width: 64px;
    height: 96px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 10px;
}

.case-reward-strip-icon {
    display: block;
    max-width: 64px;
    max-height: 96px;
    width: auto;
    height: auto;
}

.case-reward-strip-icon-placeholder {
    width: 64px;
    height: 96px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.case-reward-strip-name {
    width: 100%;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    overflow-wrap: anywhere;
}

.case-reward-strip-count {
    margin-top: auto;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #d2b27a;
}

.case-opening-stage {
    position: relative;
    max-width: 920px;
    margin: 0 auto 22px;
    padding-top: 18px;
}

.case-opening-marker {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid rgba(214, 174, 96, 0.98);
    z-index: 3;
}

.case-opening-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 190px;
    border: 1px solid rgba(176, 138, 74, 0.18);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(8, 8, 8, 0.99) 100%);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.case-opening-reel {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    width: max-content;
    transform: translateX(0);
    will-change: transform;
}

.case-opening-item {
    flex: 0 0 140px;
    min-height: 160px;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.case-opening-item-icon-box {
    width: 64px;
    height: 96px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 10px;
}

.case-opening-item-icon {
    display: block;
    max-width: 64px;
    max-height: 96px;
    width: auto;
    height: auto;
}

.case-opening-item-icon-placeholder {
    width: 64px;
    height: 96px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.case-opening-item-name {
    width: 100%;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    overflow-wrap: anywhere;
}

.case-opening-item-count {
    margin-top: auto;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #d2b27a;
}

.case-details-window {
    width: 980px;
    height: auto;
    min-width: 980px;
    min-height: 0;
    max-width: 980px;
    max-height: 92vh;
}

.case-details-window .fleamarket-window-body {
    padding: 18px 22px 22px;
    overflow-y: auto;
}

.case-details-window .case-opening-stage {
    max-width: 920px;
    margin: 0 auto 18px;
}

.case-details-window .case-opening-viewport {
    height: 180px;
}

.case-details-window .case-opening-item {
    flex: 0 0 128px;
    min-height: 130px;
    padding: 10px 8px;
}

.case-details-window .case-opening-item-icon-box {
    width: 52px;
    height: 72px;
    margin-bottom: 8px;
}

.case-details-window .case-opening-item-icon {
    max-width: 52px;
    max-height: 72px;
}

.case-details-window .case-opening-item-icon-placeholder {
    width: 52px;
    height: 72px;
}

.case-details-window .case-opening-item-name {
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.case-details-window .case-opening-item-count {
    font-size: 12px;
}

.case-details-window .case-rewards-strip {
    max-width: 920px;
    margin: 8px auto 0;
}

.case-details-window .case-reward-strip-card {
    flex: 0 0 120px;
    min-height: 150px;
    padding: 10px 8px;
}

.case-details-window {
    width: 960px;
    max-width: 960px;
    min-width: 960px;
    height: auto;
    min-height: 0;
    max-height: 92vh;
}

.case-details-window .fleamarket-window-body {
    padding: 18px 22px 22px;
}

.case-details-window .case-opening-stage {
    max-width: 900px;
    margin: 0 auto 18px;
}

.case-details-window .case-opening-viewport {
    height: 180px;
}

.case-details-window .case-opening-item {
    flex: 0 0 128px;
    min-height: 140px;
    padding: 10px 8px;
}

.case-details-window .case-opening-item-icon-box {
    width: 52px;
    height: 72px;
    margin-bottom: 8px;
}

.case-details-window .case-opening-item-icon {
    max-width: 52px;
    max-height: 72px;
}

.case-details-window .case-opening-item-icon-placeholder {
    width: 52px;
    height: 72px;
}

.case-details-window .case-opening-item-name {
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.case-details-window .case-opening-item-count {
    font-size: 12px;
}

@keyframes caseRewardQuestionPulse {
    0% {
        transform: scale(1);
        box-shadow:
            0 0 0 1px rgba(210, 178, 122, 0.10),
            0 0 10px rgba(210, 178, 122, 0.08);
        opacity: 0.88;
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            0 0 0 1px rgba(210, 178, 122, 0.22),
            0 0 18px rgba(210, 178, 122, 0.18),
            0 0 28px rgba(210, 178, 122, 0.10);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 1px rgba(210, 178, 122, 0.10),
            0 0 10px rgba(210, 178, 122, 0.08);
        opacity: 0.88;
    }
}

#case-opened-reward-question {
    animation: caseRewardQuestionPulse 1.35s ease-in-out infinite;
    background: radial-gradient(circle at 30% 30%, rgba(210, 178, 122, 0.10), rgba(210, 178, 122, 0.03) 55%, rgba(255, 255, 255, 0.01) 100%);
}

.case-opening-item-rarity-bronze {
    border-color: rgba(176, 109, 58, 0.55);
    background:
        linear-gradient(180deg, rgba(54, 31, 20, 0.42) 0%, rgba(20, 12, 8, 0.94) 100%);
    box-shadow:
        0 0 0 1px rgba(176, 109, 58, 0.14),
        0 0 18px rgba(176, 109, 58, 0.10);
}

.case-opening-item-rarity-silver {
    border-color: rgba(168, 176, 192, 0.62);
    background:
        linear-gradient(180deg, rgba(42, 46, 56, 0.46) 0%, rgba(12, 14, 18, 0.95) 100%);
    box-shadow:
        0 0 0 1px rgba(168, 176, 192, 0.16),
        0 0 20px rgba(168, 176, 192, 0.12);
}

.case-opening-item-rarity-gold {
    border-color: rgba(214, 174, 96, 0.72);
    background:
        linear-gradient(180deg, rgba(66, 50, 18, 0.52) 0%, rgba(18, 14, 6, 0.96) 100%);
    box-shadow:
        0 0 0 1px rgba(214, 174, 96, 0.20),
        0 0 24px rgba(214, 174, 96, 0.16),
        0 0 36px rgba(214, 174, 96, 0.08);
}

.case-opening-item-rarity-gold .case-opening-item-name,
.case-opening-item-rarity-gold .case-opening-item-count {
    color: #f0d7ab;
}

.case-opening-item-rarity-silver .case-opening-item-name,
.case-opening-item-rarity-silver .case-opening-item-count {
    color: #d7dce7;
}

.case-opening-item-rarity-bronze .case-opening-item-name,
.case-opening-item-rarity-bronze .case-opening-item-count {
    color: #d6b19a;
}

.case-select-window {
    width: 960px;
    max-width: 960px;
    min-width: 960px;
    height: auto;
    min-height: 0;
    max-height: 92vh;
}

.case-select-window .fleamarket-window-body {
    padding: 22px 24px 24px;
}

.case-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.case-card {
    position: relative;
    min-height: 260px;
    padding: 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(24, 24, 24, 0.96) 0%, rgba(10, 10, 10, 0.985) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.case-card:hover {
    border-color: rgba(176, 138, 74, 0.38);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(176, 138, 74, 0.10),
        0 10px 30px rgba(0, 0, 0, 0.28);
}

.case-card-title {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #f3f3f3;
}

.case-card-description {
    flex: 1;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.76);
}

.case-card-price {
    margin-top: 14px;
    margin-bottom: 14px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #d2b27a;
}

.case-card-cooldown {
    min-width: 170px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(176, 138, 74, 0.28);
    background: rgba(176, 138, 74, 0.08);
    color: #f0d7ab;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
}

@keyframes caseCardReadyPulse {
    0% {
        box-shadow:
            0 0 0 1px rgba(214, 174, 96, 0.12),
            0 0 12px rgba(214, 174, 96, 0.08);
        transform: translateY(0);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(214, 174, 96, 0.26),
            0 0 24px rgba(214, 174, 96, 0.20),
            0 0 42px rgba(214, 174, 96, 0.10);
        transform: translateY(-2px);
    }
    100% {
        box-shadow:
            0 0 0 1px rgba(214, 174, 96, 0.12),
            0 0 12px rgba(214, 174, 96, 0.08);
        transform: translateY(0);
    }
}

.case-card-ready {
    border-color: rgba(214, 174, 96, 0.58);
    animation: caseCardReadyPulse 1.6s ease-in-out infinite;
}

.case-card-ready .case-card-cooldown {
    border-color: rgba(214, 174, 96, 0.55);
    background: rgba(214, 174, 96, 0.14);
    color: #f0d7ab;
}

.is-hidden {
    display: none !important;
}

.case-card-image-box {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.case-card-image {
    display: block;
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.ranking-page {
    padding: 34px 0 50px;
}

.ranking-page-header {
    max-width: 960px;
    margin: 0 auto 30px;
    text-align: center;
}

.ranking-kicker {
    margin: 0 0 8px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.84);
}

.ranking-page-header h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.ranking-page-description {
    margin: 10px 0 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.64);
}

.ranking-hero-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 38px;
}

.ranking-hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.96) 0%, rgba(8, 8, 8, 0.985) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.ranking-panel-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.ranking-panel-header h2,
.ranking-panel-header h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: #f3f3f3;
    letter-spacing: 0.035em;
}

.ranking-table-wrap {
    padding: 14px 16px 18px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 10px 8px;
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.ranking-table thead th {
    color: #d2b27a;
    border-bottom: 1px solid rgba(210, 178, 122, 0.18);
}

.ranking-table tbody td {
    color: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.ranking-dungeons {
    margin-top: 34px;
}

.ranking-dungeons > .ranking-panel-header {
    margin-bottom: 0;
    padding: 22px 0 18px;
    border-bottom: none;
    text-align: center;
}

.ranking-dungeon-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 36%) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: #070707;
}

.ranking-dungeon-section + .ranking-dungeon-section {
    margin-top: 0;
}

.ranking-dungeon-section-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 36%);
}

.ranking-dungeon-section-reverse .ranking-dungeon-media {
    order: 2;
}

.ranking-dungeon-section-reverse .ranking-dungeon-panel {
    order: 1;
}

.ranking-dungeon-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 420px;
    max-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.95) 0%, rgba(8, 8, 8, 0.985) 100%);
}

.ranking-dungeon-section:not(.ranking-dungeon-section-reverse) .ranking-dungeon-media {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ranking-dungeon-section-reverse .ranking-dungeon-media {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.ranking-dungeon-image,
.ranking-dungeon-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) saturate(0.92);
}

.ranking-dungeon-video {
    background: #050505;
}

.ranking-dungeon-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.70) 100%),
        radial-gradient(circle at 50% 22%, rgba(214, 174, 96, 0.10), transparent 42%);
}

.ranking-dungeon-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.34);
    letter-spacing: 0.04em;
    text-align: center;
}

.ranking-dungeon-media-overlay {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ranking-dungeon-media-overlay span,
.ranking-dungeon-subtitle {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.88);
}

.ranking-dungeon-media-overlay strong {
    font-size: 25px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.ranking-dungeon-panel {
    min-width: 0;
    background:
        linear-gradient(180deg, rgba(18, 18, 18, 0.92) 0%, rgba(7, 7, 7, 0.98) 100%);
}

.ranking-dungeon-panel .ranking-panel-header {
    padding: 28px 30px 18px;
}

.ranking-dungeon-panel .ranking-panel-header h3 {
    margin-top: 5px;
    font-size: 24px;
}

.ranking-dungeon-leaders {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 24px 30px 30px;
}

.ranking-dungeon-leader-card {
    min-width: 0;
    min-height: 0;
    padding: 0 18px;
    background: transparent;
    border: none;
}

.ranking-dungeon-leader-card:first-child {
    padding-left: 0;
}

.ranking-dungeon-leader-card:last-child {
    padding-right: 0;
}

.ranking-dungeon-leader-card + .ranking-dungeon-leader-card {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.ranking-dungeon-leader-title {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(210, 178, 122, 0.20);
    font-size: 13px;
    font-weight: 800;
    color: #d2b27a;
    letter-spacing: 0.04em;
}

.ranking-dungeon-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.ranking-dungeon-rank {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.58);
}

.ranking-dungeon-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.88);
}

.ranking-dungeon-value {
    font-weight: 700;
    color: #d2b27a;
    white-space: nowrap;
}

.ranking-place-1 {
    padding-left: 8px;
    padding-right: 8px;
    border-bottom-color: rgba(214, 174, 96, 0.32);
    background: linear-gradient(90deg, rgba(214, 174, 96, 0.16), transparent 88%);
}

.ranking-place-1 .ranking-dungeon-rank,
.ranking-place-1 .ranking-dungeon-name,
.ranking-place-1 .ranking-dungeon-value {
    color: #f0d7ab;
}

.ranking-place-2 {
    padding-left: 8px;
    padding-right: 8px;
    border-bottom-color: rgba(168, 176, 192, 0.22);
    background: linear-gradient(90deg, rgba(168, 176, 192, 0.10), transparent 88%);
}

.ranking-place-2 .ranking-dungeon-rank,
.ranking-place-2 .ranking-dungeon-name,
.ranking-place-2 .ranking-dungeon-value {
    color: #d7dce7;
}

.ranking-place-3 {
    padding-left: 8px;
    padding-right: 8px;
    border-bottom-color: rgba(176, 109, 58, 0.22);
    background: linear-gradient(90deg, rgba(176, 109, 58, 0.10), transparent 88%);
}

.ranking-place-3 .ranking-dungeon-rank,
.ranking-place-3 .ranking-dungeon-name,
.ranking-place-3 .ranking-dungeon-value {
    color: #d6b19a;
}

.ranking-dungeon-empty {
    padding: 10px 0;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.ranking-scroll-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.ranking-scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .ranking-hero-panels,
    .ranking-dungeon-section,
    .ranking-dungeon-section-reverse {
        grid-template-columns: 1fr;
    }

    .ranking-dungeon-section-reverse .ranking-dungeon-media,
    .ranking-dungeon-section-reverse .ranking-dungeon-panel {
        order: initial;
    }

    .ranking-dungeon-media,
    .ranking-dungeon-section:not(.ranking-dungeon-section-reverse) .ranking-dungeon-media,
    .ranking-dungeon-section-reverse .ranking-dungeon-media {
        border-left: none;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .ranking-dungeon-leaders {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ranking-dungeon-leader-card,
    .ranking-dungeon-leader-card:first-child,
    .ranking-dungeon-leader-card:last-child {
        padding: 0;
    }

    .ranking-dungeon-leader-card + .ranking-dungeon-leader-card {
        border-left: none;
    }
}

.ranking-boss-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 26px;
    padding: 0 12px;
}

.ranking-boss-jump-link {
    height: 34px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.ranking-boss-jump-link span {
    color: rgba(210, 178, 122, 0.86);
    font-size: 11px;
}

.ranking-boss-jump-link:hover {
    color: #ffffff;
    border-color: rgba(210, 178, 122, 0.45);
    background: rgba(210, 178, 122, 0.08);
}

.ranking-dungeon-section {
    scroll-margin-top: 72px;
}


.site-header {
    position: sticky;
    top: 0;
}

.ranking-dungeon-section {
    isolation: isolate;
}

.ranking-dungeon-section {
    isolation: isolate;
}

.ranking-dungeon-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--ranking-section-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    filter: blur(1.5px);
    transform: scale(1.025);
    pointer-events: none;
}

.ranking-dungeon-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.68) 50%, rgba(0, 0, 0, 0.78) 100%);
    pointer-events: none;
}

.ranking-dungeon-media,
.ranking-dungeon-panel {
    position: relative;
    z-index: 1;
}

.ranking-dungeon-media {
    background: rgba(0, 0, 0, 0.18);
}

.ranking-dungeon-panel {
    background:
        linear-gradient(180deg, rgba(18, 18, 18, 0.2) 0%, rgba(7, 7, 7, 0.72) 100%);
}

.ranking-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.ranking-fixed-video-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background: #050505;
}

.ranking-fixed-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ranking-fixed-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.94) 45%, rgba(0, 0, 0, 0.8) 100%),
        radial-gradient(circle at 50% 18%, rgba(210, 178, 122, 0.10), transparent 48%);
}

.ranking-page-header,
.ranking-hero-panels,
.ranking-dungeons {
    position: relative;
    z-index: 2;
}

.ranking-hero-panel {
    background:
        linear-gradient(180deg, rgba(22, 22, 22, 0.70) 0%, rgba(8, 8, 8, 0.82) 100%);
    backdrop-filter: blur(3px);
}

.ranking-dungeon-section {
    background: rgba(5, 5, 5, 0.64);
}

.download-page {
    min-height: 70vh;
    padding: 54px 0 70px;
    color: #ffffff;
}

.download-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: stretch;
    min-height: 420px;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 16% 20%, rgba(210, 178, 122, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(22, 22, 22, 0.96) 0%, rgba(8, 8, 8, 0.985) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.download-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.download-kicker {
    margin: 0 0 10px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.86);
}

.download-hero h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.download-description {
    max-width: 620px;
    margin: 16px 0 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.download-main-button,
.download-secondary-button {
    height: 42px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    transition: all 0.18s ease;
}

.download-main-button {
    border: 1px solid rgba(176, 138, 74, 0.95);
    background: rgba(176, 138, 74, 0.95);
    color: #111111;
}

.download-main-button:hover {
    background: rgba(198, 155, 83, 1);
    border-color: rgba(198, 155, 83, 1);
}

.download-secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.86);
}

.download-secondary-button:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.download-hero-panel {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.download-panel-title {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 800;
    color: #f3f3f3;
}

.download-info-list {
    display: flex;
    flex-direction: column;
}

.download-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.download-info-row span {
    color: rgba(255, 255, 255, 0.58);
}

.download-info-row strong {
    color: #d2b27a;
}

.download-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.download-step-card {
    padding: 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.92) 0%, rgba(8, 8, 8, 0.96) 100%);
}

.download-step-card span {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(210, 178, 122, 0.86);
}

.download-step-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.download-step-card p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1100px) {
    .download-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .download-steps {
        grid-template-columns: 1fr;
    }
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.discord-page {
    min-height: 70vh;
    padding: 54px 0 70px;
    color: #ffffff;
}

.discord-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: stretch;
    min-height: 420px;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 18% 22%, rgba(88, 101, 242, 0.16), transparent 34%),
        radial-gradient(circle at 72% 18%, rgba(210, 178, 122, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(22, 22, 22, 0.96) 0%, rgba(8, 8, 8, 0.985) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.discord-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.discord-kicker {
    margin: 0 0 10px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.86);
}

.discord-hero h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.discord-description {
    max-width: 620px;
    margin: 16px 0 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

.discord-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.discord-main-button {
    height: 42px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(88, 101, 242, 0.95);
    background: rgba(88, 101, 242, 0.95);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    transition: all 0.18s ease;
}

.discord-main-button:hover {
    background: rgba(104, 116, 255, 1);
    border-color: rgba(104, 116, 255, 1);
}

.discord-info-panel {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.discord-panel-title {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 800;
    color: #f3f3f3;
}

.discord-info-list {
    display: flex;
    flex-direction: column;
}

.discord-info-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.discord-info-row span {
    color: rgba(88, 101, 242, 0.96);
    font-weight: 800;
}

.discord-info-row strong {
    color: rgba(255, 255, 255, 0.84);
}

.discord-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.discord-card {
    padding: 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.92) 0%, rgba(8, 8, 8, 0.96) 100%);
}

.discord-card span {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(88, 101, 242, 0.96);
}

.discord-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.discord-card p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1100px) {
    .discord-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .discord-cards {
        grid-template-columns: 1fr;
    }
}

.support-page {
    min-height: 70vh;
    padding: 54px 0 70px;
    color: #ffffff;
}

.support-page-header {
    max-width: 860px;
    margin: 0 auto 34px;
    text-align: center;
}

.support-kicker {
    margin: 0 0 10px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.86);
}

.support-page-header h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.support-description {
    max-width: 760px;
    margin: 16px auto 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

/* Staff section - ranking style */
.support-team-section {
    max-width: 1180px;
    margin: 0 auto 34px;
    padding: 30px 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.94) 0%, rgba(7, 7, 7, 0.985) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.support-team-header {
    max-width: 780px;
    margin: 0 auto 26px;
    text-align: center;
}

.support-team-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.support-team-header p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.support-team-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(0, 0, 0, 0.14);
}

.support-team-role-panel {
    min-height: 250px;
    padding: 18px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.075);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0%, rgba(255, 255, 255, 0.012) 100%);
}

.support-team-role-panel:last-child {
    border-right: none;
}

.support-team-rank {
    width: 100%;
    margin: 0 0 12px;
    padding: 0 0 10px;
    border: none;
    border-bottom: 1px solid rgba(210, 178, 122, 0.28);
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: #d2b27a;
}

.support-team-role-description {
    min-height: 62px;
    margin: 0 0 14px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
}

.support-team-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-team-member {
    min-height: 44px;
    padding: 9px 8px;
    border: 1px solid rgba(210, 178, 122, 0.18);
    background:
        linear-gradient(90deg, rgba(210, 178, 122, 0.08), rgba(255, 255, 255, 0.018));
    text-align: center;
}

.support-team-member strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 800;
    color: #c5c5c5;
}

.support-team-member span {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.56);
}

.support-team-empty {
    min-height: 44px;
    padding: 11px 8px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(0, 0, 0, 0.16);
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, 0.38);
}

/* Support form */
.support-form-panel {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.94) 0%, rgba(7, 7, 7, 0.985) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.support-panel-header {
    max-width: 780px;
    margin: 0 auto 24px;
    text-align: center;
}

.support-panel-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.support-panel-header p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.support-message {
    margin-bottom: 16px;
    padding: 11px 12px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.support-message-error {
    border: 1px solid rgba(180, 60, 60, 0.35);
    background: rgba(120, 20, 20, 0.18);
    color: #f0b3b3;
}

.support-message-success {
    border: 1px solid rgba(70, 140, 70, 0.35);
    background: rgba(20, 90, 20, 0.18);
    color: #b9e3b9;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.support-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.support-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.support-form-group label {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.74);
}

.support-form-group input,
.support-form-group textarea {
    width: 100%;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.025);
    color: #ffffff;
    outline: none;
    font-family: Arial, sans-serif;
    font-size: 13px;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.support-form-group input {
    height: 42px;
}

.support-form-group textarea {
    min-height: 150px;
    padding-top: 12px;
    resize: vertical;
}

.support-form-group input:focus,
.support-form-group textarea:focus {
    border-color: rgba(176, 138, 74, 0.95);
    background: rgba(255, 255, 255, 0.04);
}

.support-submit-button {
    align-self: center;
    width: max-content;
    height: 42px;
    padding: 0 24px;
    border: 1px solid rgba(176, 138, 74, 0.95);
    background: rgba(176, 138, 74, 0.95);
    color: #111111;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}

.support-submit-button:hover {
    background: rgba(198, 155, 83, 1);
    border-color: rgba(198, 155, 83, 1);
}

@media (max-width: 1300px) {
    .support-team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .support-team-role-panel:nth-child(4n) {
        border-right: none;
    }
}

@media (max-width: 900px) {
    .support-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-team-role-panel:nth-child(2n) {
        border-right: none;
    }

    .support-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .support-page {
        padding: 38px 0 54px;
    }

    .support-page-header h1 {
        font-size: 34px;
    }

    .support-team-section,
    .support-form-panel {
        padding: 22px 18px;
    }

    .support-team-header h2,
    .support-panel-header h2 {
        font-size: 26px;
    }

    .support-team-grid {
        grid-template-columns: 1fr;
    }

    .support-team-role-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    }

    .support-team-role-panel:last-child {
        border-bottom: none;
    }
}

.home-cinematic-page {
    min-height: 100vh;
    color: #ffffff;
    overflow: hidden;
}

.home-cinematic-hero {
    position: relative;
    min-height: calc(100vh - 48px);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #050505;
}

.home-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.68) 38%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.78) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.20) 42%, rgba(0, 0, 0, 0.88) 100%);
}

.home-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    padding: 80px 0 80px 34px;
}

.home-kicker {
    margin: 0 0 12px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.90);
}

.home-hero-content h1 {
    margin: 0;
    font-size: clamp(52px, 7vw, 112px);
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #f5f5f5;
    text-shadow: 0 12px 38px rgba(0, 0, 0, 0.75);
}

.home-hero-description {
    max-width: 620px;
    margin: 18px 0 0;
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-main-button,
.home-secondary-button {
    height: 44px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    transition: all 0.18s ease;
}

.home-main-button {
    border: 1px solid rgba(176, 138, 74, 0.95);
    background: rgba(176, 138, 74, 0.95);
    color: #111111;
}

.home-main-button:hover {
    background: rgba(198, 155, 83, 1);
    border-color: rgba(198, 155, 83, 1);
}

.home-secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.88);
}

.home-secondary-button:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.home-season-scene,
.home-feature-scene,
.home-footer-scene {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-image: var(--home-scene-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-season-scene {
    min-height: 680px;
}

.home-feature-left {
    justify-content: flex-start;
}

.home-feature-right {
    justify-content: flex-end;
}

.home-scene-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.64) 34%, rgba(0, 0, 0, 0.24) 64%, rgba(0, 0, 0, 0.74) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.88) 100%);
}

.home-feature-right .home-scene-overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.24) 36%, rgba(0, 0, 0, 0.64) 66%, rgba(0, 0, 0, 0.88) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.88) 100%);
}

.home-scene-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 80px 34px;
}

.home-feature-right .home-scene-content {
    margin-left: auto;
    text-align: right;
}

.home-scene-content h2,
.home-footer-scene-content h2,
.home-roadmap-header h2 {
    margin: 0 0 16px;
    font-size: clamp(34px, 4vw, 64px);
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #f3f3f3;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.72);
}

.home-scene-content p,
.home-footer-scene-content p,
.home-roadmap-header p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
}

.home-scene-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.home-feature-right .home-scene-tags {
    justify-content: flex-end;
}

.home-scene-tags span {
    padding: 7px 11px;
    border: 1px solid rgba(210, 178, 122, 0.28);
    background: rgba(0, 0, 0, 0.28);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
}

.home-roadmap-cinematic {
    position: relative;
    padding: 70px 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.09), transparent 36%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(4, 4, 4, 1) 100%);
}

.home-roadmap-header {
    max-width: 780px;
    margin: 0 auto 36px;
    text-align: center;
}

.home-roadmap-line {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-roadmap-item {
    min-height: 210px;
    padding: 28px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.018);
}

.home-roadmap-item:last-child {
    border-right: none;
}

.home-roadmap-item.is-active {
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.13), transparent 44%),
        rgba(210, 178, 122, 0.045);
}

.home-roadmap-item span {
    display: block;
    margin-bottom: 12px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d2b27a;
}

.home-roadmap-item strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.home-roadmap-item p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
}

.home-footer-scene {
    min-height: 540px;
    justify-content: center;
    text-align: center;
}

.home-footer-scene .home-scene-overlay {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.82) 48%, rgba(0, 0, 0, 0.96) 100%),
        radial-gradient(circle at 50% 30%, rgba(210, 178, 122, 0.10), transparent 34%);
}

.home-footer-scene-content {
    position: relative;
    z-index: 2;
    max-width: 740px;
    padding: 80px 34px;
}

.home-footer-scene-content .home-hero-actions {
    justify-content: center;
}

@media (max-width: 1100px) {
    .home-cinematic-hero,
    .home-season-scene,
    .home-feature-scene,
    .home-footer-scene {
        min-height: 560px;
    }

    .home-roadmap-line {
        grid-template-columns: 1fr;
    }

    .home-roadmap-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .home-roadmap-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    .home-hero-content,
    .home-scene-content,
    .home-footer-scene-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-feature-right .home-scene-content {
        text-align: left;
    }

    .home-feature-right .home-scene-tags {
        justify-content: flex-start;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-footer-scene-content .home-hero-actions {
        align-items: center;
    }

    .home-main-button,
    .home-secondary-button {
        width: 100%;
    }
}

.home-hero-logo {
    display: inline-block;
    margin-bottom: 18px;
    max-width: 420px;
}

.home-hero-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.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;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.site-footer-cinematic {
    flex-shrink: 0;
    position: relative;
    min-height: 150px;
    padding: 24px 0 16px;
    overflow: hidden;
    border-top: 1px solid rgba(176, 138, 74, 0.22);
    background: #050505;
}

.site-footer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/assets/img/home/footer-bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.42;
}

.site-footer-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.86) 48%, rgba(0, 0, 0, 0.94) 100%),
        radial-gradient(circle at 50% 100%, rgba(176, 82, 32, 0.18), transparent 42%);
}

.site-footer-cinematic .container {
    position: relative;
    z-index: 2;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.site-footer-brand {
    display: flex;
    align-items: center;
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer-logo img {
    display: block;
    max-width: 130px;
    max-height: 82px;
    width: auto;
    height: auto;
    filter:
        drop-shadow(0 0 12px rgba(210, 178, 122, 0.16))
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.50));
}

.site-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 150px));
    gap: 34px;
    align-items: start;
}

.site-footer-column h3 {
    margin: 0 0 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.92);
}

.site-footer-column a {
    display: table;
    margin-bottom: 6px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.64);
    transition: color 0.18s ease, transform 0.18s ease;
}

.site-footer-column a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.site-footer-status {
    justify-self: center;
    min-width: 108px;
    height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.07);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.76);
}

.site-footer-status strong {
    width: 9px;
    height: 9px;
    display: block;
    border-radius: 50%;
    background: #7ad66d;
    box-shadow: 0 0 10px rgba(122, 214, 109, 0.7);
}

.site-footer-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
}


.site-footer-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}

.site-footer-social a,
.site-footer-social-icon {
    position: relative;
    width: auto;
    height: auto;
    padding: 0 14px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.site-footer-social a + a::before,
.site-footer-social-icon + .site-footer-social-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(210, 178, 122, 0.45) 50%,
        rgba(255, 255, 255, 0.06) 100%
    );
}

.site-footer-social a:hover,
.site-footer-social-icon:hover {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-1px);
    filter: drop-shadow(0 0 8px rgba(210, 178, 122, 0.30));
}

.site-footer-social svg {
    display: block;
    width: 34px;
    height: auto;
}

.site-footer-social a:hover {
    border-color: rgba(210, 178, 122, 0.34);
    background: rgba(210, 178, 122, 0.08);
    color: #ffffff;
}

.site-footer-bottom {
    margin-top: 20px;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 1200px) {
    .site-footer-inner {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .site-footer-actions {
        grid-column: 2;
        justify-content: flex-start;
        margin-left: 0;
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }

    .site-footer-brand,
    .site-footer-logo,
    .site-footer-status,
    .site-footer-social {
        justify-content: center;
        justify-self: center;
    }

    .site-footer-links {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .site-footer-column a {
        margin-left: auto;
        margin-right: auto;
    }

    .site-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

.site-footer-brand {
    position: relative;
}

.site-footer-brand::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    width: 1px;
    height: 58px;
    transform: translateY(-50%);
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 22%,
        rgba(210, 178, 122, 0.28) 50%,
        rgba(255, 255, 255, 0.12) 78%,
        transparent 100%
    );
}

@media (max-width: 760px) {
    .site-footer-brand::after {
        display: none;
    }
}

.site-footer-social-icon svg {
    max-width: 34px;
    max-height: 32px;
}

.home-scroll-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.home-scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.account-page-wide {
    min-height: 70vh;
    padding: 54px 0 70px;
    color: #ffffff;
}

.account-page-header {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
}

.account-kicker {
    margin: 0 0 10px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.86);
}

.account-page-header h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.account-description {
    max-width: 760px;
    margin: 16px auto 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

.account-summary-wide,
.account-characters-wide-section {
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.94) 0%, rgba(7, 7, 7, 0.985) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.account-summary-wide {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.4fr 0.8fr 1fr;
    margin-bottom: 24px;
}

.account-summary-wide-item {
    min-height: 96px;
    padding: 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.account-summary-wide-item:last-child {
    border-right: none;
}

.account-summary-wide-item span {
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.82);
}

.account-summary-wide-item strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
}

.account-empire-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-empire-content img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(210, 178, 122, 0.18));
}

.account-characters-wide-section {
    padding: 30px 28px;
}

.account-section-header {
    max-width: 780px;
    margin: 0 auto 26px;
    text-align: center;
}

.account-section-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.account-section-header p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.account-character-wide-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
}

.account-character-wide-card {
    width: 100%;
    max-width: 435px;
    flex: 0 1 435px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(210, 178, 122, 0.045), rgba(255, 255, 255, 0.018));
}

.account-character-wide-title {
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.18);
}

.account-character-wide-icon {
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(210, 178, 122, 0.22);
    background:
        radial-gradient(circle at 50% 20%, rgba(210, 178, 122, 0.14), transparent 48%),
        rgba(0, 0, 0, 0.22);
}

.account-character-wide-icon img {
    max-width: 76px;
    max-height: 76px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 0 12px rgba(210, 178, 122, 0.10))
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
}

.account-character-wide-icon span {
    font-size: 24px;
    font-weight: 800;
    color: #d2b27a;
}

.account-character-wide-title h3 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.account-character-wide-title span {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.82);
}

.account-character-wide-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 18px 18px;
}

.account-character-wide-stats div {
    min-height: 38px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.account-character-wide-stats div:last-child {
    border-bottom: none;
}

.account-character-wide-stats span {
    margin: 0;
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.58);
}

.account-character-wide-stats strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.90);
    text-align: right;
}

.account-character-wide-actions {
    margin-top: auto;
    padding: 0 18px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.account-debug-button {
    width: 100%;
    height: 38px;
    padding: 0 18px;
    border: 1px solid rgba(210, 178, 122, 0.36);
    background: rgba(210, 178, 122, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.18s ease;
}

.account-debug-button:hover:not(:disabled) {
    border-color: rgba(210, 178, 122, 0.66);
    background: rgba(210, 178, 122, 0.16);
    color: #ffffff;
}

.account-debug-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.account-empty-state {
    padding: 28px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 940px) {
    .account-character-wide-card {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

@media (max-width: 900px) {
    .account-summary-wide {
        grid-template-columns: 1fr;
    }

    .account-summary-wide-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .account-summary-wide-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    .account-page-wide {
        padding: 38px 0 54px;
    }

    .account-page-header h1 {
        font-size: 34px;
    }

    .account-characters-wide-section {
        padding: 22px 18px;
    }

    .account-character-wide-list {
        grid-template-columns: 1fr;
    }

    .account-character-wide-stats div {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .account-character-wide-stats strong {
        text-align: left;
        white-space: normal;
    }
}

.account-panel-message {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 13px 16px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-panel-message-success {
    border-color: rgba(70, 140, 70, 0.35);
    background: rgba(20, 90, 20, 0.18);
    color: #b9e3b9;
}

.account-panel-message-error {
    border-color: rgba(180, 60, 60, 0.35);
    background: rgba(120, 20, 20, 0.18);
    color: #f0b3b3;
}

.account-debug-form {
    width: 100%;
    margin: 0;
}

.wallet-page {
    min-height: 70vh;
    padding: 54px 0 70px;
    color: #ffffff;
}

.wallet-page-header {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
}

.wallet-kicker {
    margin: 0 0 10px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.86);
}

.wallet-page-header h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.wallet-description {
    max-width: 760px;
    margin: 16px auto 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

.wallet-balance-panel,
.wallet-packages-section {
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.94) 0%, rgba(7, 7, 7, 0.985) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.wallet-balance-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
}

.wallet-balance-panel div {
    min-height: 96px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.wallet-balance-panel div:last-child {
    border-right: none;
}

.wallet-balance-panel span {
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.82);
}

.wallet-balance-panel strong {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.wallet-packages-section {
    padding: 30px 28px;
}

.wallet-section-header {
    max-width: 780px;
    margin: 0 auto 28px;
    text-align: center;
}

.wallet-section-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.wallet-section-header p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.wallet-package-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
}

.wallet-package-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    flex: 0 1 340px;
    min-height: 360px;
    padding: 28px 22px 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(210, 178, 122, 0.045), rgba(255, 255, 255, 0.018));
}

.wallet-package-card.is-featured {
    border-color: rgba(210, 178, 122, 0.38);
    box-shadow:
        0 0 22px rgba(210, 178, 122, 0.08),
        inset 0 0 28px rgba(210, 178, 122, 0.035);
}

.wallet-package-bonus {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 9px;
    border: 1px solid rgba(122, 214, 109, 0.45);
    background: rgba(122, 214, 109, 0.12);
    color: #b9eeb1;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: walletBonusPulse 1.8s ease-in-out infinite;
}

@keyframes walletBonusPulse {
    0% {
        box-shadow: 0 0 0 rgba(122, 214, 109, 0.0);
    }

    50% {
        box-shadow: 0 0 18px rgba(122, 214, 109, 0.28);
    }

    100% {
        box-shadow: 0 0 0 rgba(122, 214, 109, 0.0);
    }
}

.wallet-package-title {
    margin-top: 28px;
    font-size: 18px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.88);
}

.wallet-package-md {
    margin-top: 22px;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.wallet-package-md span {
    font-size: 16px;
    color: #d2b27a;
}

.wallet-package-base {
    margin-top: 8px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.42);
}

.wallet-package-base span {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(210, 178, 122, 0.75);
}

.wallet-package-price {
    margin-top: 28px;
    font-size: 24px;
    font-weight: 800;
    color: #d2b27a;
}

.wallet-buy-form {
    margin-top: 24px;
}

.wallet-buy-button {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(210, 178, 122, 0.36);
    background: rgba(210, 178, 122, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.18s ease;
}

.wallet-buy-button:hover:not(:disabled) {
    border-color: rgba(210, 178, 122, 0.66);
    background: rgba(210, 178, 122, 0.16);
    color: #ffffff;
}

.wallet-buy-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wallet-empty-state {
    padding: 28px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 900px) {
    .wallet-balance-panel {
        grid-template-columns: 1fr;
    }

    .wallet-balance-panel div {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .wallet-balance-panel div:last-child {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    .wallet-page {
        padding: 38px 0 54px;
    }

    .wallet-page-header h1 {
        font-size: 34px;
    }

    .wallet-packages-section {
        padding: 22px 18px;
    }

    .wallet-package-card {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

.wallet-message {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 13px 16px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-message-success {
    border-color: rgba(70, 140, 70, 0.35);
    background: rgba(20, 90, 20, 0.18);
    color: #b9e3b9;
}

.wallet-message-error {
    border-color: rgba(180, 60, 60, 0.35);
    background: rgba(120, 20, 20, 0.18);
    color: #f0b3b3;
}

.wallet-custom-section {
    width: 100%;
    margin: 0 auto 24px;
    padding: 30px 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.94) 0%, rgba(7, 7, 7, 0.985) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.wallet-custom-panel {
    max-width: 880px;
    margin: 0 auto;
}

.wallet-custom-form {
    margin: 0;
}

.wallet-custom-input-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 150px;
    gap: 14px;
    align-items: end;
}

.wallet-custom-input-row label {
    padding-bottom: 12px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.82);
}

.wallet-custom-input-wrap {
    position: relative;
}

.wallet-custom-input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 58px 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.025);
    color: #ffffff;
    outline: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.wallet-custom-input-wrap input:focus {
    border-color: rgba(176, 138, 74, 0.95);
    background: rgba(255, 255, 255, 0.04);
}

.wallet-custom-input-wrap span {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: rgba(210, 178, 122, 0.82);
}

.wallet-custom-calc-button {
    height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(210, 178, 122, 0.36);
    background: rgba(210, 178, 122, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}

.wallet-custom-calc-button:hover {
    border-color: rgba(210, 178, 122, 0.66);
    background: rgba(210, 178, 122, 0.16);
    color: #ffffff;
}

.wallet-custom-error {
    margin-top: 16px;
    padding: 12px 13px;
    border: 1px solid rgba(180, 60, 60, 0.35);
    background: rgba(120, 20, 20, 0.18);
    color: #f0b3b3;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.wallet-custom-result {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) 220px;
    gap: 14px;
    align-items: stretch;
}

.wallet-custom-result > div,
.wallet-custom-buy-form {
    min-height: 78px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.18);
}

.wallet-custom-result span {
    display: block;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.82);
}

.wallet-custom-result strong {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.wallet-custom-buy-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

@media (max-width: 900px) {
    .wallet-custom-input-row {
        grid-template-columns: 1fr;
    }

    .wallet-custom-input-row label {
        padding-bottom: 0;
    }

    .wallet-custom-result {
        grid-template-columns: 1fr;
    }
}

.history-page {
    min-height: 70vh;
    padding: 54px 0 70px;
    color: #ffffff;
}

.history-page-header {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
}

.history-kicker {
    margin: 0 0 10px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.86);
}

.history-page-header h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.history-description {
    max-width: 780px;
    margin: 16px auto 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

.history-section {
    width: 100%;
    margin: 0 auto 24px;
    padding: 30px 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.94) 0%, rgba(7, 7, 7, 0.985) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.history-section-header {
    max-width: 780px;
    margin: 0 auto 26px;
    text-align: center;
}

.history-section-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.history-section-header p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.history-table-wrap {
    width: 100%;
    max-height: 330px;
    overflow: auto;
}

.history-table-wrap {
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 178, 122, 0.55) rgba(255, 255, 255, 0.055);
}

.history-table-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.history-table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.history-table-wrap::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            rgba(210, 178, 122, 0.72),
            rgba(176, 138, 74, 0.42)
        );
    border: 1px solid rgba(210, 178, 122, 0.24);
}

.history-table-wrap::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            rgba(230, 196, 134, 0.88),
            rgba(190, 150, 82, 0.58)
        );
}

.history-table-wrap::-webkit-scrollbar-corner {
    background: rgba(255, 255, 255, 0.04);
}

.history-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.history-table th,
.history-table td {
    padding: 12px 10px;
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.history-table thead th {
    color: #d2b27a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.18);
}

.history-table tbody td {
    color: rgba(255, 255, 255, 0.82);
}

.history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.history-status {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.045);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.history-status-processed,
.history-status-paid {
    border-color: rgba(70, 140, 70, 0.35);
    background: rgba(20, 90, 20, 0.18);
    color: #b9e3b9;
}

.history-status-created {
    border-color: rgba(210, 178, 122, 0.35);
    background: rgba(210, 178, 122, 0.10);
    color: #ead19f;
}

.history-status-expired,
.history-status-failed {
    border-color: rgba(180, 60, 60, 0.35);
    background: rgba(120, 20, 20, 0.18);
    color: #f0b3b3;
}

.history-empty-state {
    padding: 28px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.52);
}

.history-section-disabled {
    opacity: 0.72;
}

.history-section-disabled .history-section-header {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .history-page {
        padding: 38px 0 54px;
    }

    .history-page-header h1 {
        font-size: 34px;
    }

    .history-section {
        padding: 22px 18px;
    }

    .history-section-header h2 {
        font-size: 26px;
    }
}

.history-old-price {
    margin-right: 7px;
    color: rgba(255, 255, 255, 0.42);
    text-decoration: line-through;
    text-decoration-color: rgba(210, 178, 122, 0.75);
}

.history-subsection {
    margin-top: 26px;
}

.history-subsection:first-of-type {
    margin-top: 0;
}

.history-subsection h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d2b27a;
}

.history-flea-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}

.history-flea-layout .history-subsection {
    margin-top: 0;
    min-width: 0;
}

.history-flea-layout .history-table {
    min-width: 620px;
}

@media (max-width: 1100px) {
    .history-flea-layout {
        grid-template-columns: 1fr;
    }
}

.history-flea-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    align-items: start;
    position: relative;
}

.history-flea-layout::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.10) 18%,
        rgba(210, 178, 122, 0.32) 50%,
        rgba(255, 255, 255, 0.10) 82%,
        transparent 100%
    );
}

.history-flea-layout .history-subsection {
    margin-top: 0;
    min-width: 0;
}

.history-flea-layout .history-table {
    min-width: 620px;
}

@media (max-width: 1100px) {
    .history-flea-layout {
        grid-template-columns: 1fr;
    }

    .history-flea-layout::before {
        display: none;
    }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////

.achievements-page {
    min-height: 70vh;
    padding: 54px 0 70px;
    color: #ffffff;
}

.achievement-message {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 24px;
    padding: 13px 16px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.achievement-message-success {
    border-color: rgba(70, 140, 70, 0.35);
    background: rgba(20, 90, 20, 0.18);
    color: #b9e3b9;
}

.achievement-message-error {
    border-color: rgba(180, 60, 60, 0.35);
    background: rgba(120, 20, 20, 0.18);
    color: #f0b3b3;
}

.achievements-single-panel {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 26px 26px 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.94) 0%, rgba(7, 7, 7, 0.985) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.achievement-row {
    padding: 18px 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.achievement-row:last-child {
    border-bottom: none;
}

.achievement-row-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 18px;
}

.achievement-tier-item {
    position: relative;
    width: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.achievement-tier-claim-form {
    margin: 0;
    padding: 0;
}

.achievement-tier-icon {
    position: relative;
    width: 76px;
    height: 76px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.06), transparent 46%),
        rgba(0, 0, 0, 0.32);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

button.achievement-tier-icon {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
}

.achievement-tier-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.achievement-tier-icon > span:not(.achievement-reward-indicator):not(.achievement-tier-check) {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: rgba(210, 178, 122, 0.78);
}

.achievement-tier-item:hover .achievement-tier-icon {
    transform: translateY(-2px);
}

.achievement-tier-title {
    width: 100%;
    margin-top: 9px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-tier-item:hover .achievement-tier-title {
    color: #ffffff;
}

.achievement-tier-item.is-locked .achievement-tier-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(0, 0, 0, 0.80);
    pointer-events: none;
}

.achievement-tier-item.is-locked .achievement-tier-title {
    color: rgba(255, 255, 255, 0.38);
}

.achievement-reward-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 6;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #7ad66d;
    box-shadow: 0 0 12px rgba(122, 214, 109, 0.85);
    animation: achievementRewardPulse 1.5s ease-in-out infinite;
}

@keyframes achievementRewardPulse {
    0% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(1.22); opacity: 1; }
    100% { transform: scale(1); opacity: 0.75; }
}

.achievement-tier-check {
    position: absolute;
    right: -6px;
    top: -6px;
    z-index: 7;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(122, 214, 109, 0.65);
    background: rgba(28, 116, 42, 0.96);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 12px rgba(122, 214, 109, 0.45);
}

.achievement-tier-item.tier-active .achievement-tier-icon {
    border-color: rgba(210, 178, 122, 0.42);
    box-shadow: 0 0 16px rgba(210, 178, 122, 0.12);
}

.achievement-tier-item.tier-bronze .achievement-tier-icon {
    border-color: rgba(176, 112, 64, 0.78);
    box-shadow:
        0 0 16px rgba(176, 112, 64, 0.22),
        inset 0 0 16px rgba(176, 112, 64, 0.055);
}

.achievement-tier-item.tier-silver .achievement-tier-icon {
    border-color: rgba(190, 200, 210, 0.78);
    box-shadow:
        0 0 16px rgba(190, 200, 210, 0.22),
        inset 0 0 16px rgba(190, 200, 210, 0.055);
}

.achievement-tier-item.tier-gold .achievement-tier-icon {
    border-color: rgba(230, 190, 90, 0.85);
    box-shadow:
        0 0 18px rgba(230, 190, 90, 0.28),
        inset 0 0 16px rgba(230, 190, 90, 0.06);
}

.achievement-tier-item.tier-diamond .achievement-tier-icon {
    border-color: rgba(110, 215, 255, 0.88);
    box-shadow:
        0 0 22px rgba(110, 215, 255, 0.32),
        inset 0 0 18px rgba(110, 215, 255, 0.08);
}

.achievement-tier-item.is-claimable .achievement-tier-icon {
    animation: achievementClaimableGlow 1.8s ease-in-out infinite;
}

@keyframes achievementClaimableGlow {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.16); }
    100% { filter: brightness(1); }
}

.achievement-tooltip {
    position: absolute;
    left: 50%;
    top: 92px;
    z-index: 80;
    width: 292px;
    padding: 15px;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    text-align: center;
    border: 1px solid rgba(210, 178, 122, 0.20);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.10), transparent 38%),
        linear-gradient(180deg, rgba(12, 12, 12, 0.985) 0%, rgba(5, 5, 5, 0.985) 100%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.58);
    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s ease;
}

.achievement-tier-item:hover .achievement-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.achievement-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -7px;
    width: 12px;
    height: 12px;
    transform: translateX(-50%) rotate(45deg);
    border-left: 1px solid rgba(210, 178, 122, 0.20);
    border-top: 1px solid rgba(210, 178, 122, 0.20);
    background: rgba(12, 12, 12, 0.985);
}

.achievement-tooltip-title {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
}

.achievement-tooltip-tier {
    display: block;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.88);
}

.achievement-tooltip p {
    margin: 0 0 12px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}

.achievement-tooltip-target {
    margin: 0 auto 14px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.achievement-tooltip-target span,
.achievement-tooltip-reward > span {
    display: block;
    margin-bottom: 5px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.achievement-tooltip-target strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.88);
}

.achievement-tooltip-reward {
    text-align: center;
}

.achievement-tooltip-reward-icon {
    width: 52px;
    height: 52px;
    margin: 8px auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(210, 178, 122, 0.22);
    background:
        radial-gradient(circle at 50% 20%, rgba(210, 178, 122, 0.12), transparent 52%),
        rgba(0, 0, 0, 0.24);
}

.achievement-tooltip-reward-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.achievement-tooltip-reward-icon strong {
    font-size: 13px;
    font-weight: 800;
    color: #d2b27a;
}

.achievement-tooltip-reward-name {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.86);
}

.achievements-empty-state {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 768px) {
    .achievements-single-panel {
        padding: 20px 14px 24px;
    }

    .achievement-row-grid {
        gap: 16px 12px;
    }

    .achievement-tooltip {
        width: 270px;
    }
}

.recovery-code-modal-overlay {
    z-index: 9999;
}

.recovery-code-modal-box {
    max-width: 460px;
    padding: 28px 26px 26px;
    text-align: center;
    border: 1px solid rgba(210, 178, 122, 0.34);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(6, 6, 6, 0.98) 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.recovery-code-modal-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
}

.recovery-code-modal-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.recovery-code-modal-box h2 {
    margin: 0 0 12px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d2b27a;
}

.recovery-code-modal-box p {
    margin: 0 auto 16px;
    max-width: 380px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
}

.recovery-code-display {
    margin: 20px auto 16px;
    padding: 14px 16px;
    display: inline-block;
    min-width: 260px;
    border: 1px solid rgba(210, 178, 122, 0.38);
    background: rgba(0, 0, 0, 0.34);
    font-family: Consolas, Monaco, monospace;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
    box-shadow: inset 0 0 18px rgba(210, 178, 122, 0.055);
}

.recovery-code-warning {
    color: rgba(255, 210, 130, 0.82) !important;
}

.recovery-code-close-button {
    width: 100%;
    height: 42px;
    margin-top: 6px;
    border: 1px solid rgba(210, 178, 122, 0.38);
    background: rgba(210, 178, 122, 0.09);
    color: rgba(255, 255, 255, 0.84);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}

.recovery-code-close-button:hover:not(:disabled) {
    border-color: rgba(210, 178, 122, 0.72);
    background: rgba(210, 178, 122, 0.16);
    color: #ffffff;
}

.recovery-code-close-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recovery-code-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    background: rgba(0, 0, 0, 0.72) !important;
    z-index: 99999 !important;
}

.recovery-code-modal-overlay .recovery-code-modal-box {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 460px !important;
}

#recoveryCodeButtonHolder {
    width: 100%;
    position: relative;
    z-index: 100001;
}

.recovery-code-close-button.is-enabled {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.account-settings-page {
    min-height: 70vh;
    padding: 54px 0 70px;
    color: #ffffff;
}

.account-settings-panel {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 34px 30px 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.94) 0%, rgba(7, 7, 7, 0.985) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.account-settings-header {
    max-width: 850px;
    margin: 0 auto 30px;
    text-align: center;
}

.account-settings-kicker {
    margin: 0 0 10px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.86);
}

.account-settings-header h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.account-settings-header p {
    max-width: 760px;
    margin: 14px auto 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.66);
}

.settings-message {
    margin: 0 auto 22px;
    padding: 13px 16px;
    max-width: 900px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-message-success {
    border-color: rgba(70, 140, 70, 0.35);
    background: rgba(20, 90, 20, 0.18);
    color: #b9e3b9;
}

.settings-message-error {
    border-color: rgba(180, 60, 60, 0.35);
    background: rgba(120, 20, 20, 0.18);
    color: #f0b3b3;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.settings-card {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.055), transparent 38%),
        rgba(0, 0, 0, 0.24);
}

.settings-card h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #d2b27a;
}

.settings-current-line {
    margin-bottom: 18px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.28);
}

.settings-current-line span {
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.settings-current-line strong {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    word-break: break-all;
}

.settings-card-text {
    margin: 0 0 18px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.settings-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.settings-form input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    outline: none;
    background: rgba(0, 0, 0, 0.34);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    box-sizing: border-box;
}

.settings-form input:focus {
    border-color: rgba(210, 178, 122, 0.55);
    box-shadow: 0 0 0 2px rgba(210, 178, 122, 0.08);
}

.settings-form button {
    height: 42px;
    margin-top: 4px;
    border: 1px solid rgba(210, 178, 122, 0.38);
    background: rgba(210, 178, 122, 0.09);
    color: rgba(255, 255, 255, 0.88);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}

.settings-form button:hover {
    border-color: rgba(210, 178, 122, 0.72);
    background: rgba(210, 178, 122, 0.16);
    color: #ffffff;
}

@media (max-width: 860px) {
    .account-settings-page {
        padding: 38px 0 54px;
    }

    .account-settings-panel {
        padding: 26px 18px 28px;
    }

    .account-settings-header h1 {
        font-size: 32px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.login-footer-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.28);
}

#switch-to-forgot-password-modal {
    color: rgba(210, 178, 122, 0.9);
    text-decoration: none;
}

#switch-to-forgot-password-modal:hover {
    color: #ffffff;
}

.forgot-password-modal-overlay {
    z-index: 9998;
}

.forgot-password-modal-box {
    max-width: 500px;
    padding: 28px 26px 26px;
    text-align: center;
    border: 1px solid rgba(210, 178, 122, 0.34);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(6, 6, 6, 0.98) 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.forgot-password-modal-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
}

.forgot-password-modal-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.forgot-password-modal-box h2 {
    margin: 0 0 12px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d2b27a;
}

.forgot-password-info {
    margin: 0 auto 18px;
    max-width: 390px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
}

.forgot-password-message {
    margin: 0 0 18px;
    padding: 12px 14px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.forgot-password-message-success {
    border-color: rgba(70, 140, 70, 0.35);
    background: rgba(20, 90, 20, 0.18);
    color: #b9e3b9;
}

.forgot-password-message-error {
    border-color: rgba(180, 60, 60, 0.35);
    background: rgba(120, 20, 20, 0.18);
    color: #f0b3b3;
}

.forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.forgot-password-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.forgot-password-form input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    outline: none;
    background: rgba(0, 0, 0, 0.34);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    box-sizing: border-box;
}

.forgot-password-form input:focus {
    border-color: rgba(210, 178, 122, 0.55);
    box-shadow: 0 0 0 2px rgba(210, 178, 122, 0.08);
}

.forgot-password-form button,
.forgot-password-reset-form button {
    height: 42px;
    border: 1px solid rgba(210, 178, 122, 0.38);
    background: rgba(210, 178, 122, 0.09);
    color: rgba(255, 255, 255, 0.88);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}

.forgot-password-form button:hover,
.forgot-password-reset-form button:hover {
    border-color: rgba(210, 178, 122, 0.72);
    background: rgba(210, 178, 122, 0.16);
    color: #ffffff;
}

.forgot-password-account-list {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.forgot-password-account-list h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.forgot-password-account-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.forgot-password-account-row:last-child {
    border-bottom: none;
}

.forgot-password-account-name {
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.86);
}

.forgot-password-reset-form {
    margin: 0;
}

.forgot-password-reset-form button {
    min-width: 132px;
    height: 36px;
}

.forgot-password-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    background: rgba(0, 0, 0, 0.72) !important;
    z-index: 99999 !important;
}

.forgot-password-modal-overlay.is-visible {
    display: flex !important;
}

.forgot-password-modal-overlay .forgot-password-modal-box {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 500px !important;
}

.forgot-password-account-scroll {
    max-height: 236px;
    overflow-y: auto;
    padding-right: 8px;
}

.forgot-password-account-scroll::-webkit-scrollbar {
    width: 8px;
}

.forgot-password-account-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.forgot-password-account-scroll::-webkit-scrollbar-thumb {
    background: rgba(210, 178, 122, 0.45);
    border: 1px solid rgba(210, 178, 122, 0.25);
}

.forgot-password-account-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(210, 178, 122, 0.72);
}

.forgot-password-account-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 178, 122, 0.55) rgba(0, 0, 0, 0.35);
}

.forgot-password-modal-box {
    position: relative !important;
}

.forgot-password-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(210, 178, 122, 0.38);
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.86);
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: all 0.18s ease;
}

.forgot-password-close-button:hover {
    border-color: rgba(210, 178, 122, 0.75);
    background: rgba(210, 178, 122, 0.16);
    color: #ffffff;
}

.profile-page {
    min-height: 70vh;
    padding: 54px 0 70px;
    color: #ffffff;
}

.profile-panel {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 34px 30px 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 0%, rgba(210, 178, 122, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.94) 0%, rgba(7, 7, 7, 0.985) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.profile-header {
    max-width: 620px;
    margin: 0 auto 30px;
    text-align: center;
}

.profile-kicker {
    margin: 0 0 10px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(210, 178, 122, 0.86);
}

.profile-header h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3f3f3;
}

.profile-header p {
    margin: 14px auto 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.66);
}

.profile-message {
    margin: 0 auto 22px;
    padding: 13px 16px;
    max-width: 620px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-message-success {
    border-color: rgba(70, 140, 70, 0.35);
    background: rgba(20, 90, 20, 0.18);
    color: #b9e3b9;
}

.profile-message-error {
    border-color: rgba(180, 60, 60, 0.35);
    background: rgba(120, 20, 20, 0.18);
    color: #f0b3b3;
}

.profile-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 26px 24px;
    text-align: center;
    border: 1px solid rgba(210, 178, 122, 0.22);
    background: rgba(0, 0, 0, 0.24);
}

.profile-avatar-preview {
    width: 132px;
    height: 132px;
    margin: 0 auto 18px;
    padding: 4px;
    border-radius: 50%;
    border: 1px solid rgba(210, 178, 122, 0.46);
    background: rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.profile-info {
    margin-bottom: 22px;
    font-family: Arial, sans-serif;
}

.profile-info span {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.profile-info strong {
    font-size: 18px;
    color: #d2b27a;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    text-align: left;
}

.profile-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.profile-form input[type="file"] {
    width: 100%;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(0, 0, 0, 0.34);
    color: rgba(255, 255, 255, 0.76);
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.profile-help {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    color: rgba(255, 255, 255, 0.48);
}

.profile-form button {
    height: 42px;
    margin-top: 4px;
    border: 1px solid rgba(210, 178, 122, 0.38);
    background: rgba(210, 178, 122, 0.09);
    color: rgba(255, 255, 255, 0.88);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}

.profile-form button:hover {
    border-color: rgba(210, 178, 122, 0.72);
    background: rgba(210, 178, 122, 0.16);
    color: #ffffff;
}

.footer-review-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: none;
    background: transparent;
    padding: 0;
    color: rgba(255, 255, 255, 0.82);
    transition: opacity 0.18s ease;
}

.footer-review-link:hover {
    opacity: 0.86;
}

.footer-review-text {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
}

.footer-review-stars-big {
    position: relative;
    display: inline-block;
    width: 132px;
    height: 26px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 26px;
    letter-spacing: 2px;
}

.footer-review-stars-big-base,
.footer-review-stars-big-fill {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
}

.footer-review-stars-big-base {
    color: rgba(255, 255, 255, 0.28);
}

.footer-review-stars-big-fill {
    overflow: hidden;
    color: #f0c45c;
    text-shadow:
        0 0 6px rgba(240, 196, 92, 0.45),
        0 0 14px rgba(240, 196, 92, 0.22);
}

.site-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin-left: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.site-footer-actions .site-footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin: 0;
}

.site-footer-actions .site-footer-social a,
.site-footer-actions .site-footer-social-icon {
    padding: 0 10px;
}

.site-footer-actions .footer-review-link,
.site-footer-actions .site-footer-status,
.site-footer-actions .site-footer-social {
    flex-shrink: 0;
}

.footer-review-stars-big {
    width: 5.8em;
    height: 1.15em;
    font-size: 25px;
    line-height: 1;
    letter-spacing: 0.08em;
    overflow: hidden;
}

.footer-review-stars-big-base,
.footer-review-stars-big-fill {
    width: 5.8em;
}

.header-admin-button {
    border-color: rgba(210, 178, 122, 0.42);
    background: rgba(210, 178, 122, 0.08);
    color: #d2b27a;
}

.header-admin-button:hover {
    border-color: rgba(210, 178, 122, 0.78);
    background: rgba(210, 178, 122, 0.16);
    color: #ffffff;
}