/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #51b5bf;
    --primary-rgb: 81, 181, 191;
    --secondary-color: #a0aac0;
    --secondary-rgb: 160, 170, 192;

    --background-color: rgb(10 13 13);
    --background-soft: rgb(10 13 13);
    --text-color: #d4d9e1;
    --muted-color: #8892a8;

    --navbar-bg: rgb(10 13 13);
    --navbar-border: rgba(136, 146, 168, 0.15);
    --nav-link-color: #a0aac0;

    --card-bg: rgb(10 13 13);
    --glass-bg: rgb(10 13 13);
    --dark-glass-bg: rgb(10 13 13);
    --border-color: rgba(136, 146, 168, 0.15);
    --border-soft: rgba(136, 146, 168, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.4);


    --navbar-height: 78px;
    --section-padding: 90px 60px;
    --container-width: 1200px;

    --hero-overlay-dark: rgba(8, 10, 15, 0.98);
    --hero-overlay-soft: rgba(8, 10, 15, 0.65);
    --hero-glow-opacity: 0.1;

    --success-color: #00ff88;
    --danger-color: #ff4a4a;
    --warning-color: #ffaa00;
    --success-bg: rgba(0, 255, 136, 0.12);
    --danger-bg: rgba(255, 74, 74, 0.12);
    --warning-bg: rgba(255, 170, 0, 0.12);
    --hero-bg-image: "";
    --page-bg-image: "";
    --accent-cyan: #51b5bf;
    --accent-cyan-rgb: 81, 181, 191;
    --accent-cyan-light: #77d1dd;
    --accent-cyan-glow: #34e7ff;

    --color-white: #ffffff;
    --color-light-gray: #e0e0e0;
    --color-muted-gray: #8892a8;

    --glass-subtle: rgba(255, 255, 255, 0.02);
    --glass-light: rgba(255, 255, 255, 0.05);
    --glass-medium: rgba(255, 255, 255, 0.08);
    --glass-heavy: rgba(255, 255, 255, 0.12);
    --glass-cyan: rgba(81, 181, 191, 0.15);
    --glass-cyan-strong: rgba(81, 181, 191, 0.25);

    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-cyan: #51b5bf;

    --bg-1: #03010c;
    --bg-2: #0d0a1f;
}

/* ==========================================================================
   2. RESETS & GLOBAL BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


/* ==========================================================================
   Global Scrollbar Styles
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

/* Hide all scrollbars completely on mobile devices */
@media (max-width: 1000px) {

    html,
    body,
    * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    ::-webkit-scrollbar,
    *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

html {
    scroll-behavior: smooth;
    background: rgb(10 13 13);
    overflow-x: hidden;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

/* Color tint overlay on top of the animated particle canvas (canvas z-index: -1, UI starts at 0+) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(10, 13, 13, 0.10);
    pointer-events: none;
}

.pill-nav-container {
    width: 100%;
    position: fixed;
    top: 20px;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.pill-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2c717d29;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    border: 1px solid rgba(136, 146, 168, 0.15);
    padding: 10px 24px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-color);
}

.site-logo-img {
    max-height: 42px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: var(--nav-link-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
    color: var(--primary-color);
}

button {
    font-family: inherit;
}

/* ==========================================================================
   3. BASE COMPONENTS (Buttons, Cards, Forms & Micro-components)
   ========================================================================== */

/* ─── Base Button Component ─────────────────────────────────────────────── */
.primary-btn,
.primary-btn-submit,
.auth-btn,
.download-btn,
.login-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px !important;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* ─── Primary Button Variant (Styled like auth form buttons) ─────────────── */
.primary-btn,
.primary-btn-submit,
.auth-btn,
.download-btn,
.login-btn {
    background: rgba(81, 181, 191, 0.22);
    color: #ffffff;
    border: 1px solid #5fa3ab52;
}

.primary-btn:hover,
.primary-btn-submit:hover,
.auth-btn:hover,
.download-btn:hover,
.login-btn:hover {
    background: rgba(81, 181, 191, 0.35);
    border-color: rgba(81, 181, 191, 0.6);
    opacity: 0.95;
    box-shadow: 0 0 15px rgba(81, 181, 191, 0.3);
}

.secondary-btn {
    background: #ffffff;
    color: #121212;
    border: 1px solid var(--border-light);
    padding: 12px 24px;
}

.secondary-btn:hover {
    background: #e0e0e0;
    color: #121212;
    opacity: 0.95;
}

.hero {
    min-height: 100vh;
    padding: 140px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at bottom, var(--hero-overlay-soft) 0%, var(--hero-overlay-dark) 100%),
        var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid rgba(136, 146, 168, 0.2);
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-bottom: 40px;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--text-color);
    box-shadow: 0 0 6px var(--text-color);
}

.badge-divider {
    color: rgba(136, 146, 168, 0.4);
}

.massive-title {
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: 4px;
    background: linear-gradient(to bottom, #ffffff, #a0aac0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(160, 170, 192, 0.2);
}

.hero-tagline {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 12px;
}

.hero-tagline strong {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-subtext {
    color: var(--muted-color);
    font-size: 15px;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.server-card {
    padding: 32px;
    background: #081212c4;
    border: 1px solid var(--glass-heavy);
    box-shadow: 0 24px 70px var(--shadow-color);
}

.server-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.server-card>p {
    color: var(--primary-color);
    margin-bottom: 28px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
    color: #cfd3dc;
}

.status-row strong {
    color: var(--text-color);
    text-transform: uppercase;
}

.status-online {
    color: #4ade80;
}

.status-offline {
    color: #f87171;
}

.rates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.rates span {
    padding: 12px;
    text-align: center;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 700;
}

.section {
    padding: var(--section-padding);
}

.dark-section {
    background: var(--background-soft);
}

.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-header p {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 12px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 42px;
}

.news-grid,
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.news-card.glass-panel,
.download-card.glass-panel {
    padding: 30px;
    background: rgb(10 13 13);

    border: 1px solid var(--glass-cyan);
    border-top: 1px solid var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.news-card.glass-panel::before,
.download-card.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card.glass-panel:hover {
    background: rgba(13, 17, 23, 0.7);
    border-color: rgba(136, 146, 168, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.news-card.glass-panel:hover::before {
    opacity: 1;
}

.news-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.news-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(136, 146, 168, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(136, 146, 168, 0.2);
}

.news-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}

.news-card h3,
.download-card h3 {
    margin-bottom: 14px;
    font-size: 21px;
}

.news-card p,
.download-card p {
    color: var(--muted-color);
    line-height: 1.6;
    font-size: 14px;
}

.ranking-card {
    max-width: 1050px;
    margin: auto;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgb(10 13 13);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--primary-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

td {
    color: #d8dbe3;
}

.download-section {
    background:
        radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), 0.15), transparent 35%),
        transparent;
}

.download-meta {
    margin: 16px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-meta span {
    font-size: 12px;
    padding: 7px 10px;
    background: var(--glass-medium);
    color: var(--primary-color);
}

.download-btn {
    margin-top: 5px;
    padding: 13px 20px;
    text-decoration: none;
}

.download-btn:hover {
    box-shadow: none !important;
}

.footer {
    padding: 32px 60px;
    text-align: center;
    color: #777d8c;
    border-top: 1px solid var(--glass-medium);
    background: #2c717d29;
}

.empty-state {
    text-align: center;
    color: #8d93a3;
    padding: 30px;
}

@media (max-width: 950px) {
    .navbar {
        padding: 0 22px;
    }

    nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 130px 22px 70px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .section {
        padding: 70px 22px;
    }

    .news-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        overflow-x: auto;
    }
}

.logo {
    cursor: pointer;
}

nav a {
    cursor: pointer;
}

.page-hero {
    padding: 160px 60px 90px;
    text-align: center;
    border-top: 1px solid rgba(var(--accent-cyan-rgb), 0.29);
    border-bottom: 1px solid rgba(var(--accent-cyan-rgb), 0.29);
    background:
        radial-gradient(circle at 50% 20%, rgba(var(--primary-rgb), 0.22), transparent 35%),
        linear-gradient(180deg, var(--hero-overlay-dark), var(--hero-overlay-soft)),
        var(--page-bg-image);
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat;
}

.page-hero p {
    color: var(--primary-color);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 18px;
}

.page-hero h1 {
    font-size: 58px;
    margin-bottom: 18px;
}

.page-hero span {
    color: var(--muted-color);
    font-size: 17px;
    max-width: 720px;
    display: block;
    margin: auto;
    line-height: 1.7;
}

.ranking-tabs {
    max-width: 1050px;
    margin: 0 auto 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ranking-tabs button {
    padding: 12px 18px;
    border: 1px solid var(--glass-heavy);
    background: rgb(10 13 13);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 700;
}

.ranking-tabs button:hover,
body.ranking-page-active .ranking-tabs button:hover {
    background: var(--glass-cyan);
    border-color: var(--accent-cyan);
    color: #ffffff;
    box-shadow: none;
}

@media (max-width: 950px) {
    .page-hero {
        padding: 130px 22px 70px;
    }

    .page-hero h1 {
        font-size: 40px;
    }
}

.auth-page {
    min-height: 100vh;
    padding: 150px 22px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(var(--primary-rgb), 0.18), transparent 35%),
        transparent;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 38px;
    background: #081212c4;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    border: 1px solid var(--glass-heavy);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.auth-subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 12px;
    margin-bottom: 12px;
}

.auth-card h1 {
    font-size: 38px;
    margin-bottom: 28px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--glass-heavy);
    background: var(--dark-glass-bg);
    color: var(--text-color);
    outline: none;
}

.auth-form input:focus {
    border-color: var(--primary-color);
}

.auth-btn {
    margin-top: 6px;
}

.auth-link {
    margin-top: 22px;
    color: var(--muted-color);
    font-size: 14px;
}

.auth-link span {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 700;
}

.auth-message {
    margin-top: 18px;
    padding: 14px;
    font-size: 14px;
    opacity: 1;
    transform: translateY(0);
    max-height: 150px;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    overflow: hidden;
}

.auth-message:not(.success):not(.error),
.auth-message.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
    min-height: 0;
    border: none;
    overflow: hidden;
}

.auth-message.error {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.auth-message.success {
    background: rgba(119, 209, 221, 0.12);
    color: var(--accent-cyan-light);
    border: 1px solid rgba(119, 209, 221, 0.3);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu span {
    color: var(--primary-color);
    font-weight: 800;
}

.user-menu button {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--glass-medium);
    color: var(--text-color);
    cursor: pointer;
}

.account-dashboard {
    max-width: 1150px;
    margin: auto;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.account-card {
    padding: 28px;
    background: rgb(10 13 13);
    border: 1px solid var(--border-color);
}




.account-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.account-row span {
    color: #9ca3af;
}

.account-row strong {
    color: var(--text-color);
    text-align: right;
}

.character-section {
    margin-top: 24px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.character-card {
    position: relative;
    padding: 24px;
    background: rgb(10 13 13);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.character-card h4 {
    font-size: 22px;
    margin-bottom: 8px;
}

.character-card p {
    color: var(--muted-color);
    margin-bottom: 12px;
}

.character-card span {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
}

.character-level {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--background-color);
    background: var(--primary-color);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.muted-text {
    color: #9ca3af;
    line-height: 1.7;
}

@media (max-width: 950px) {

    .account-grid,
    .character-grid {
        grid-template-columns: 1fr;
    }
}

.change-password-card {
    margin-top: 24px;
}

.admin-dashboard {
    max-width: 1150px;
    margin: auto;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stat-card {
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.16), transparent 35%),
        rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border-color);
}

.admin-stat-card span {
    display: block;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 12px;
}

.admin-stat-card strong {
    display: block;
    font-size: 32px;
    color: var(--primary-color);
}

.admin-server-card {
    margin-top: 24px;
}

.admin-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-actions button {
    padding: 14px 20px;
    border: 1px solid var(--glass-heavy);
    background: var(--glass-bg);
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
}

.admin-actions button:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

@media (max-width: 950px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

.admin-news-layout {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--glass-heavy);
    background: var(--dark-glass-bg);
    color: var(--text-color);
    outline: none;
}

.admin-form textarea {
    resize: vertical;
}

.secondary-admin-btn {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-list-item {
    padding: 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--glass-medium);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.admin-list-item strong {
    display: block;
    margin-bottom: 7px;
}

.admin-list-item span {
    color: #9ca3af;
    font-size: 13px;
}

.admin-list-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-list-actions button {
    padding: 9px 12px;
    border: none;
    cursor: pointer;
    font-weight: 800;
}

@media (max-width: 950px) {
    .admin-news-layout {
        grid-template-columns: 1fr;
    }

    .admin-list-item {
        flex-direction: column;
    }
}

.admin-status-layout {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

.admin-status-preview {
    position: static;
    width: 100%;
    box-shadow: none;
}

@media (max-width: 950px) {
    .admin-status-layout {
        grid-template-columns: 1fr;
    }
}

.ranking-title {
    padding: 22px 24px;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 900;
    border-bottom: 1px solid var(--border-soft);
}

.rank-player {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rank-player strong {
    color: var(--text-color);
}

.online-dot,
.offline-dot {
    width: fit-content;
    font-size: 11px;
    padding: 4px 8px;
    font-weight: 800;
}

.online-dot {
    color: var(--success-color);
    background: var(--success-bg);
}

.offline-dot {
    color: var(--danger-color);
    background: var(--danger-bg);
}

.status-maintenance {
    color: var(--warning-color);
}

.player-profile {
    max-width: 1150px;
    margin: auto;
}

.player-profile-header {
    margin-bottom: 24px;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.18), transparent 35%),
        rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.player-profile-header h2 {
    font-size: 42px;
    margin: 14px 0 8px;
}

.player-profile-header p {
    color: var(--muted-color);
}

.rank-player strong {
    cursor: default;
}



.admin-users-layout {
    max-width: 1200px;
    margin: auto;
}

.admin-users-table {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-user-row {
    padding: 18px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--glass-medium);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-user-info strong {
    color: var(--text-color);
    font-size: 18px;
}

.admin-user-info span {
    color: var(--primary-color);
}

.admin-user-info small {
    color: #9ca3af;
}

.admin-user-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-user-controls select,
.admin-user-controls button {
    padding: 10px 12px;
    border: 1px solid var(--glass-heavy);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-color);
}

.admin-user-controls button {
    cursor: pointer;
    font-weight: 800;
}

.admin-user-controls button:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

@media (max-width: 950px) {
    .admin-user-row {
        flex-direction: column;
    }
}



.theme-primary-text {
    color: var(--primary-color);
}

.theme-primary-bg {
    background: var(--primary-color);
}

.theme-gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.theme-primary-border {
    border-color: rgba(var(--primary-rgb), 0.45);
}

.admin-settings-layout {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 24px;
}

.settings-group {
    padding: 18px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--glass-medium);
    margin-bottom: 18px;
}

.settings-group h4 {
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: 2px;
    font-size: 13px;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.settings-field span {
    color: #b8bdc9;
    font-size: 13px;
    font-weight: 700;
}

.settings-field input,
.settings-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--glass-heavy);
    background: var(--dark-glass-bg);
    color: #fff;
    outline: none;
}

.settings-field input[type="color"] {
    height: 52px;
    padding: 6px;
}

.settings-preview-card {
    padding: 30px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 25%, transparent), transparent 40%),
        rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border-color);
}

.settings-preview-logo {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 28px;
    letter-spacing: 2px;
}

.settings-preview-card p {
    color: var(--primary-color);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 16px;
}

.settings-preview-card h2 {
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.settings-preview-card span {
    color: #b8bdc9;
    line-height: 1.7;
    display: block;
}

.settings-preview-actions {
    margin-top: 26px;
}

@media (max-width: 950px) {
    .admin-settings-layout {
        grid-template-columns: 1fr;
    }
}

.settings-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.settings-upload-box {
    padding: 16px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
}

.settings-upload-box h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.settings-upload-box input {
    width: 100%;
    margin-bottom: 12px;
    color: var(--muted-color);
}

@media (max-width: 950px) {
    .settings-upload-grid {
        grid-template-columns: 1fr;
    }
}

.theme-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.theme-presets button {
    padding: 12px 18px;
    border: 1px solid var(--border-soft);
    background: var(--glass-bg);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 800;
    transition: 0.25s;
}

.theme-presets button:hover {
    border-color: var(--primary-color);
}

.theme-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.theme-import-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-preset-card {
    margin-bottom: 22px;
}

.settings-field input,
.settings-field textarea,
.settings-field select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    background: var(--dark-glass-bg);
    color: var(--text-color);
    outline: none;
}

.danger-btn {
    border-color: rgba(248, 113, 113, 0.35);
    color: var(--danger-color);
}

.danger-btn:hover {
    background: var(--danger-bg);
}

.footer {
    padding: 0;
    color: var(--muted-color);
    border-top: 1px solid var(--border-soft);
    background: var(--background-soft);
}

.footer-inner {
    max-width: var(--container-width);
    margin: auto;
    padding: 42px 60px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 32px;
}

.footer-logo {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.footer-brand p {
    max-width: 480px;
    line-height: 1.7;
    color: var(--muted-color);
}

.footer h4 {
    color: var(--text-color);
    margin-bottom: 16px;
}

.footer-links,
.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer a {
    color: var(--muted-color);
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 20px 60px;
    border-top: 1px solid var(--border-soft);
    text-align: center;
    color: #777d8c;
}

@media (max-width: 950px) {
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 34px 22px;
    }

    .footer-bottom {
        padding: 20px 22px;
    }
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.settings-tabs button {
    padding: 11px 16px;
    border: 1px solid var(--border-soft);
    background: var(--glass-bg);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 800;
}

.settings-tabs button.active,
.settings-tabs button:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

.settings-tab-panel {
    display: none;
}

.settings-tab-panel.active {
    display: block;
}

.settings-image-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-image-card {
    display: grid;
    grid-template-columns: 180px 1fr 150px;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
}

.settings-image-preview {
    min-height: 110px;
    border: 1px dashed var(--border-soft);
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.12), transparent 40%),
        var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    color: var(--muted-color);
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

.settings-image-preview.wide {
    min-height: 115px;
}

.settings-image-preview.small {
    min-height: 90px;
}

.settings-image-preview img {
    width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.settings-image-preview.wide img {
    max-height: 100px;
    object-fit: cover;
}

.settings-image-preview.small img {
    max-width: 64px;
    max-height: 64px;
}

.settings-image-preview small {
    margin-top: 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted-color);
    font-size: 11px;
}

.settings-image-info h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 18px;
}

.settings-image-info p {
    color: var(--muted-color);
    line-height: 1.6;
    font-size: 13px;
    margin-bottom: 12px;
}

.settings-image-info input {
    width: 100%;
    padding: 11px;
    background: var(--glass-bg);
    border: 1px solid var(--border-soft);
    color: var(--muted-color);
}

.settings-image-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-image-actions button {
    width: 100%;
}

@media (max-width: 950px) {
    .settings-image-card {
        grid-template-columns: 1fr;
    }

    .settings-image-actions {
        flex-direction: row;
    }
}

.settings-backup-tools {
    padding: 18px;
    margin-bottom: 20px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
}

.settings-backup-tools h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.settings-backup-tools p {
    color: var(--muted-color);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 14px;
}

.settings-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35);
}

.settings-error-text {
    display: block;
    margin-top: 6px;
    color: #f87171;
    font-size: 12px;
    line-height: 1.4;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-input-group input[type="color"] {
    width: 56px;
    min-width: 56px;
    height: 46px;
    padding: 0;
    border: none;
    background: none;
}

.admin-logs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-log-item {
    padding: 16px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.admin-log-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 6px;
}

.admin-log-item p {
    color: var(--text-color);
    margin-bottom: 8px;
}

.admin-log-item span,
.admin-log-item small {
    color: var(--muted-color);
    font-size: 12px;
}

@media (max-width: 950px) {
    .admin-log-item {
        flex-direction: column;
    }
}

button.is-loading,
.secondary-admin-btn.is-loading,
.auth-btn.is-loading {
    opacity: 0.65;
    cursor: wait;
    pointer-events: none;
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.shop-layout {
    max-width: var(--container-width);
    margin: auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.shop-balance-card,
.shop-character-card,
.shop-category-card {
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.14), transparent 40%),
        var(--card-bg);
    border: 1px solid var(--border-soft);
}

.shop-balance-card span {
    color: var(--muted-color);
    font-size: 13px;
}

.shop-balance-card strong {
    display: block;
    color: var(--primary-color);
    font-size: 32px;
    margin: 8px 0;
}

.shop-balance-card p {
    color: var(--muted-color);
    line-height: 1.6;
    font-size: 13px;
}

.shop-character-card label,
.shop-category-card h3 {
    display: block;
    color: var(--text-color);
    margin-bottom: 12px;
    font-weight: 800;
}

.shop-character-card select,
.shop-search input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    background: var(--dark-glass-bg);
    color: var(--text-color);
    outline: none;
}

.shop-category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-category-list button {
    padding: 13px 14px;
    border: 1px solid var(--border-soft);
    background: var(--dark-glass-bg);
    color: var(--muted-color);
    cursor: pointer;
    text-align: left;
    font-weight: 800;
}

.shop-category-list button.active,
.shop-category-list button:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

.shop-main {
    min-width: 0;
}

.shop-toolbar {
    margin-bottom: 22px;
    padding: 22px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.shop-toolbar p {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    margin-bottom: 8px;
}

.shop-toolbar h2 {
    font-size: 32px;
}

.shop-search {
    width: 280px;
}

.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.shop-item-card {
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.12), transparent 35%),
        var(--card-bg);
    border: 1px solid var(--border-soft);
    transition: 0.25s;
}

.shop-item-card:hover {
    border-color: rgba(var(--primary-rgb), 0.45);
}

.shop-item-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.shop-item-icon {
    width: 68px;
    height: 68px;
    background:
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.22), rgba(var(--secondary-rgb), 0.08)),
        var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-item-icon span {
    font-size: 30px;
    color: var(--primary-color);
    font-weight: 900;
}

.shop-item-badge {
    padding: 7px 10px;
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.12);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.shop-item-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.shop-item-content p {
    min-height: 44px;
    color: var(--muted-color);
    line-height: 1.5;
    font-size: 13px;
}

.shop-item-meta {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-soft);
}

.shop-item-meta span {
    color: var(--muted-color);
    font-size: 13px;
}

.shop-item-meta strong {
    color: var(--text-color);
}

.shop-item-footer {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.shop-item-footer span {
    color: var(--muted-color);
    font-size: 12px;
}

.shop-item-footer strong {
    display: block;
    color: var(--primary-color);
    font-size: 18px;
}

.shop-item-footer button {
    padding: 12px 16px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-color);
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .shop-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 950px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-search {
        width: 100%;
    }

    .shop-items-grid {
        grid-template-columns: 1fr;
    }
}

.admin-shop-layout {
    max-width: var(--container-width);
    margin: auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

.admin-shop-wide {
    grid-column: span 2;
}

.admin-shop-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-shop-table-row {
    padding: 16px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-shop-table-row strong {
    color: var(--primary-color);
}

.admin-shop-table-row span {
    color: var(--text-color);
    line-height: 1.5;
}

.admin-shop-table-row small {
    color: var(--muted-color);
}

@media (max-width: 950px) {
    .admin-shop-layout {
        grid-template-columns: 1fr;
    }

    .admin-shop-wide {
        grid-column: span 1;
    }
}

.shop-history-card {
    margin-top: 28px;
    padding: 22px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
}

.shop-history-header {
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.shop-history-header p {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    margin-bottom: 8px;
}

.shop-history-header h2 {
    font-size: 28px;
}

.shop-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-history-item {
    padding: 16px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.shop-history-item strong {
    color: var(--text-color);
}

.shop-history-item p {
    margin: 7px 0;
    color: var(--muted-color);
    line-height: 1.5;
}

.shop-history-item span {
    color: var(--muted-color);
    font-size: 12px;
}

.shop-history-status {
    min-width: 120px;
    text-align: right;
}

.shop-history-status b {
    display: block;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.shop-history-status em {
    display: inline-block;
    padding: 6px 10px;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.shop-status-sent,
.shop-status-completed {
    color: var(--success-color);
    background: var(--success-bg);
}

.shop-status-pending {
    color: var(--warning-color);
    background: var(--warning-bg);
}

.shop-status-failed {
    color: var(--danger-color);
    background: var(--danger-bg);
}

@media (max-width: 700px) {

    .shop-history-header,
    .shop-history-item {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-history-status {
        text-align: left;
    }
}

.admin-shop-icon-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.admin-shop-icon-tools input {
    padding: 12px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
    color: var(--muted-color);
}

.admin-shop-item-preview {
    margin: 10px 0;
}

.admin-shop-filters {
    display: grid;
    grid-template-columns: 1fr 220px 160px;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-shop-filters input,
.admin-shop-filters select {
    width: 100%;
    padding: 13px 15px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-color);
    outline: none;
}

.admin-shop-item-mini {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-shop-mini-icon {
    width: 48px;
    height: 48px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-shop-mini-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-shop-mini-icon span {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 20px;
}

@media (max-width: 950px) {

    .admin-shop-filters,
    .admin-shop-icon-tools {
        grid-template-columns: 1fr;
    }
}

.shop-category-list button {
    padding: 13px 14px;
    border: 1px solid var(--border-soft);
    background: var(--dark-glass-bg);
    color: var(--muted-color);
    cursor: pointer;
    text-align: left;
    font-weight: 800;

    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-category-image {
    width: 34px;
    height: 34px;
    overflow: hidden;
    background: rgba(var(--primary-rgb), 0.12);

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.shop-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-category-image span {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 900;
}

.admin-shop-tabs-layout {
    display: block;
}

.admin-shop-two-col {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

.admin-shop-tab-panel {
    display: none;
}

.admin-shop-tab-panel.active {
    display: block;
}

@media (max-width: 950px) {
    .admin-shop-two-col {
        grid-template-columns: 1fr;
    }
}

.guest-auth,
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.register-btn,
.user-dashboard-btn,
.admin-navbar-btn {
    padding: 10px 16px;
    border: 1px solid var(--border-soft);
    background: var(--glass-bg);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 800;
    transition: 0.2s;
}

.register-btn:hover,
.user-dashboard-btn:hover,
.admin-navbar-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.user-dashboard-btn,
.user-menu .user-dashboard-btn {
    background: rgb(12 15 15) !important;
    color: #ffffff;
    ;
}

.admin-navbar-btn {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-color);
}

@media (max-width: 800px) {

    .guest-auth,
    .user-menu {
        gap: 6px;
    }

    .register-btn,
    .user-dashboard-btn,
    .admin-navbar-btn,
    .login-btn {
        padding: 9px 12px;
        font-size: 12px;
    }
}

.vote-layout {
    max-width: var(--container-width);
    margin: auto;
}

.vote-header-card {
    margin-bottom: 24px;
    padding: 26px;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.16), transparent 38%),
        var(--card-bg);
    border: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.vote-header-card p {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    margin-bottom: 8px;
}

.vote-header-card h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.vote-header-card span {
    color: var(--muted-color);
    line-height: 1.6;
}

.vote-balance {
    min-width: 210px;
    padding: 20px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
    text-align: center;
}

.vote-balance span {
    display: block;
    color: var(--muted-color);
    margin-bottom: 8px;
}

.vote-balance strong {
    color: var(--primary-color);
    font-size: 26px;
}

.vote-sites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.vote-site-card {
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.12), transparent 34%),
        var(--card-bg);
    border: 1px solid var(--border-soft);
    transition: 0.25s;
}

.vote-site-card:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
}

.vote-site-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.vote-site-icon {
    width: 66px;
    height: 66px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vote-site-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vote-site-icon span {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 900;
}

.vote-site-status {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.vote-site-status.ready {
    color: var(--success-color);
    background: var(--success-bg);
}

.vote-site-status.cooldown {
    color: var(--warning-color);
    background: var(--warning-bg);
}

.vote-site-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.vote-site-content p {
    color: var(--muted-color);
    line-height: 1.6;
    min-height: 48px;
}

.vote-site-meta {
    margin-top: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
}

.vote-site-meta span {
    color: var(--muted-color);
}

.vote-site-meta strong {
    color: var(--text-color);
}

.vote-site-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

.vote-site-actions a,
.vote-site-actions button {
    flex: 1;
    padding: 13px 15px;
    text-align: center;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.vote-site-actions a {
    border: 1px solid var(--border-soft);
    color: var(--text-color);
    background: var(--dark-glass-bg);
}

.vote-site-actions button {
    border: none;
    color: var(--background-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.vote-site-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.vote-history-card {
    margin-top: 28px;
    padding: 22px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
}

.vote-history-header {
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.vote-history-header p {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    margin-bottom: 8px;
}

.vote-log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vote-log-item {
    padding: 16px;
    background: var(--dark-glass-bg);
    border: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.vote-log-item strong {
    color: var(--text-color);
}

.vote-log-item p {
    color: var(--primary-color);
    margin-top: 6px;
}

.vote-log-item span {
    color: var(--muted-color);
    font-size: 12px;
}

@media (max-width: 950px) {

    .vote-header-card,
    .vote-history-header,
    .vote-log-item {
        flex-direction: column;
        align-items: stretch;
    }

    .vote-sites-grid {
        grid-template-columns: 1fr;
    }

    .vote-site-actions {
        flex-direction: column;
    }
}








@supports (-moz-appearance: none) {
    * {
        scrollbar-width: thin;
        scrollbar-color: #333333 #111111;
    }
}





#results::-webkit-scrollbar,
.skills-sidebar::-webkit-scrollbar {
    display: none;
}

#results,
.skills-sidebar {
    scrollbar-width: none;

    -ms-overflow-style: none;

}

*,
*::before,
*::after,
input,
button,
select,
textarea {
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100vh;
    min-height: 100dvh;
}

body {
    background: #080808;
    color: #e0e0e0;
    padding: 0;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body.home-page-active {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

body.home-page-active #app {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.home-page-active .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
    overflow: hidden;
}

body.home-page-active .hero {
    min-height: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================================
   4. LAYOUT & SECTIONS (Header, Hero, Pages & Footer)
   ========================================================================== */
.site-header {
    position: relative;
    z-index: 1010;
    width: 100%;
    background: rgb(10 13 13);

    border-bottom: 1px solid rgba(var(--accent-cyan-rgb), 0.29);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}



.site-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #0000002e;
    border: 1px solid #5fa3ab52;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-sizing: border-box;
}

.site-logo-link:hover {
    border-color: var(--accent-cyan);
    background: var(--glass-cyan);
}

.site-logo-link:active,
.site-logo-link.active {
    border-color: var(--accent-cyan);
    background: var(--glass-cyan-strong);
    box-shadow: 0 0 10px rgba(81, 181, 191, 0.3);
}

.site-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px;
    padding: 0;
    position: relative;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-btn {
    background: transparent;
    border: none;
    color: #dddddd;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;

    padding: 8px 14px;
    cursor: pointer;
    transition: color 0.15s, background 0.2s;
    font-family: inherit;
    white-space: nowrap;


    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.nav-btn:hover {
    color: #ffffff;
}

.nav-btn.active {
    color: #ffffff;
}

.burger-btn {
    display: none;
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 20px;
    line-height: 1;
    transition: color 0.15s, border-color 0.15s;
    z-index: 1002;
}

.burger-btn:hover {
    color: #fff;
    border-color: #666;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

@media (max-width: 1000px) {
    .lang-dropdown-container-fixed {
        right: 20px;
    }

    .top-bar {
        justify-content: flex-start;
        gap: 10px;
    }

    .site-logo-link {
        position: relative;
        z-index: 10005;
    }

    .burger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #0000002e;
        border: 1px solid #5fa3ab52;
        color: #dddddd;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        margin-left: 12px;
        z-index: 10005;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .burger-btn:hover,
    .burger-btn.open {
        border-color: var(--accent-cyan);
        color: #fff;
        background: var(--glass-cyan-strong);
        box-shadow: 0 0 12px rgba(81, 181, 191, 0.4);
    }

    .burger-icon-bars {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 14px;
        height: 10px;
    }

    .burger-bar {
        display: block;
        width: 100%;
        height: 2px;
        background: currentColor;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    }

    .burger-btn.open .burger-bar:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }

    .burger-btn.open .burger-bar:nth-child(2) {
        opacity: 0;
    }

    .burger-btn.open .burger-bar:nth-child(3) {
        transform: translateY(-4px) rotate(-45deg);
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: rgb(10 13 13);
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);

        padding: 40px 20px;
        box-sizing: border-box;
        z-index: 10000;
        opacity: 0;
        pointer-events: none;
        transform: scale(0.96);
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 16px;
    }

    .nav-menu.open {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }

    .nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        max-width: 360px;
        padding: 14px 20px;
        background: rgb(10 13 13);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #a0aac0;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: all 0.25s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-btn:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    .nav-btn.active {
        background: rgb(10 13 13) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #a0aac0 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    }

    .nav-icon,
    .nav-btn svg {
        width: 18px;
        height: 18px;
        color: #ffffff !important;
    }

    .menu-overlay.open {
        display: none;
    }

    body.auth-page-active #auth-portal,
    #auth-portal:has(.auth-card) {
        position: fixed;
        inset: 0;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        z-index: 9999;
        background: rgb(10 13 13);
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);

        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
    }

    #auth-portal .auth-card {
        width: 100%;
        max-width: 360px;
        background: rgba(13, 22, 28, 0.85);
        border: 1px solid rgba(81, 181, 191, 0.3);
        padding: 24px 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
        position: relative;
        z-index: 10000;
    }

    body.auth-page-active .lang-dropdown-container-fixed,
    body.auth-page-active .lang-dropdown-container {
        display: none;
    }
}


.lang-dropdown-container {
    position: relative;
    display: inline-block;
    width: 78px;

    flex-shrink: 0;

    z-index: 9999;

}


.lang-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    z-index: 9998;
    transition: opacity 0.25s ease;
}

.lang-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Blur all page elements except the lang dropdown */
body.lang-open #orb-bg-container,
body.lang-open canvas.noise {
    filter: blur(8px);
    transform: scale(1.04);
    transition: filter 0.25s ease, transform 0.25s ease;
}

body.lang-open .site-header,
body.lang-open .sub-header-auth,
body.lang-open .main-content,
body.lang-open .sub-footer-auth,
body.lang-open .site-footer {
    filter: blur(5px);
    transition: filter 0.25s ease;
}

body:not(.lang-open) #orb-bg-container,
body:not(.lang-open) canvas.noise {
    filter: none;
    transform: scale(1);
    transition: filter 0.25s ease, transform 0.25s ease;
}

body:not(.lang-open) .site-header,
body:not(.lang-open) .sub-header-auth,
body:not(.lang-open) .main-content,
body:not(.lang-open) .sub-footer-auth,
body:not(.lang-open) .site-footer {
    filter: none;
    transition: filter 0.25s ease;
}

.lang-trigger {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    background: #0000002e;
    border: 1px solid #5fa3ab52;
    color: #dddddd;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.lang-trigger span {
    display: inline-block;
    width: 18px;

    text-align: center;

    flex-shrink: 0;

}

.lang-trigger:hover {
    border-color: var(--accent-cyan);
    color: #fff;
    background: var(--glass-cyan);
}

.lang-dropdown-container.open .lang-trigger {
    border-color: var(--accent-cyan);
    color: #ffffff;
    background: var(--glass-cyan-strong);
    box-shadow: 0 0 10px rgba(81, 181, 191, 0.3);
}

.lang-trigger .globe-icon {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lang-trigger:hover .globe-icon,
.lang-dropdown-container.open .globe-icon {
    opacity: 1;
}



.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(13, 22, 24, 0.95);
    border: 1px solid rgba(81, 181, 191, 0.4);
    width: 130px;
    padding: 0;
    overflow: hidden;
    z-index: 1006;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--glass-cyan);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.lang-dropdown-container.open .lang-dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    justify-content: space-between;
    align-items: center;


    padding: 9px 16px 9px 17px;

    color: #dddddd;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-option:hover {
    background: rgba(81, 181, 191, 0.12);
    color: #ffffff;
}

.lang-option.active {
    color: #ffffff;
    font-weight: 600;
    background: rgba(81, 181, 191, 0.22);
}

.lang-option .lang-code {
    font-size: 10px;
    color: #dddddd;
    font-weight: 600;
    border: 1px solid #5fa3ab52;
    padding: 2px 5px;
    transition: all 0.15s ease;
    background: #99f2f32e;
}

.lang-option:hover .lang-code {
    color: #ffffff;
    border-color: var(--accent-cyan);
    background: rgba(81, 181, 191, 0.4);
}

.lang-option.active .lang-code {
    color: #ffffff;
    border-color: var(--accent-cyan);
    background: rgba(81, 181, 191, 0.5);
}

.search-box {
    display: flex;
    margin-bottom: 20px;
}

.search-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-wrapper input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 120px 12px 45px;
    border: 1px solid #444;
    background: #1e1e1e;
    color: #fff;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    transition: border-color 0.2s;
}

.search-wrapper input:hover,
.search-wrapper input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 10px var(--border-light);
}


.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: stroke 0.2s ease;
    z-index: 5;
}

.search-wrapper input:focus~.search-icon {
    stroke: #ffffff;

}

.search-controls {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 18px;

    z-index: 5;
}


.search-shortcut {
    background: #111;
    border: 1px solid #444;
    height: 24px;
    padding: 0 8px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: #ccc;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.search-wrapper input:focus~.search-controls .search-shortcut,
.search-wrapper input:not(:placeholder-shown)~.search-controls .search-shortcut {
    display: none;
}

@media (max-width: 640px) {
    .search-controls .search-shortcut {
        display: none;
    }
}


.search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.search-card {
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid var(--glass-light);
    padding: 10px 14px;
    padding-left: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    animation: fadeInFast 0.2s ease-out forwards;
    opacity: 0;
}


.search-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.06);

    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInFast {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-card:hover {
    background: rgba(35, 35, 35, 0.65);
    border-color: var(--glass-heavy);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-card:hover::before {
    background: var(--card-accent-color, #ffffff);

}

.search-card-img-wrapper {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-card-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 42px;
    box-sizing: border-box;
}

.search-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.search-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    margin-top: -5px;
    flex: 1;
    transition: color 0.2s ease;
}

.search-card-tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    color: var(--badge-color, #888);
    background: var(--badge-bg, var(--glass-light));
    border: 1px solid var(--badge-border, var(--border-light));
}

.search-card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.search-card-level-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3px 9px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888888;
    flex-shrink: 0;
}

.search-card-sub-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3px 9px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888888;
    flex-shrink: 0;
}

.search-card-extra-info {
    font-size: 10px;
    color: #666666;
    font-weight: 600;
    flex-shrink: 0;
}


.titles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.title-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 115px;

    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.title-card:hover {
    border-color: #666;
    background: #222;
}

.title-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    box-sizing: border-box;
    background: #000;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}


.title-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-grow: 1;
    padding-bottom: 10px;
}

.title-card-id {
    position: absolute;
    bottom: 8px;
    left: 15px;
    font-size: 10px;
    color: #555;
    font-weight: bold;
}

.title-card-name {
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.title-card-attrs {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 10px;
}

.stat-pos {
    color: #00ff00;
}

.stat-neg {
    color: #ff4444;
}

.title-attr-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.title-attr-row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-grow: 1;
}

@media (max-width: 1100px) {
    .titles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .titles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .titles-grid {
        grid-template-columns: 1fr;
    }
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 30px;
}

.page-btn {
    background: #1e1e1e;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: #fff;
    background: #2a2a2a;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


.single-item-view {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.details-section {
    flex-grow: 1;
    min-width: 0;
}

.right-column {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: fit-content;
    align-self: flex-start;
    padding-bottom: 5px;
    transform: translateZ(0);
}

.model-section {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #111;
    border: 1px solid #252525;
    overflow: hidden;
    box-shadow: none;
    cursor: grab;
    position: relative;
    transform: translateZ(0);
}

.model-section:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border: none;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    background: #151515;
}

.model-section:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border: none;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    background: #151515;
}

.model-section:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border: none;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    background: #151515;
}

.model-section:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border: none;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    background: #151515;
}

.model-section>button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.model-section>button svg {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
}

.model-section>button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.viewer-btn-active {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.viewer-btn-active:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.copy-links-container {
    background: #161616;
    border: 1px solid #252525;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.copy-row {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
    padding: 12px 4px;
    border: 1px solid #252525;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
    user-select: none;
}

.copy-row:hover {
    background: #222;
    border-color: #444;
}

.copy-label {
    color: #fff;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.copy-success-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

#loading3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    text-align: center;
    z-index: 5;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--glass-medium);
    border-top-color: #ffffff;
    display: inline-block;
    box-sizing: border-box;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 4px var(--border-medium));
}

.spinner::before,
.spinner::after {
    content: none;
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    to {
        transform: rotate(-360deg);
    }
}


.skeleton-card {
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(255, 255, 255, 0.01);
}

.skeleton-shimmer {
    position: relative;
    overflow: hidden;
    background: var(--glass-light);
    height: 16px;
    display: block;
}

.skeleton-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.04) 20%,
            var(--glass-medium) 60%,
            rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}


.skeleton-row td {
    padding: 8px 12px;
}

.skeleton-cell-rank {
    width: 16px;
}

.skeleton-cell-name {
    width: 120px;
}

.skeleton-cell-race {
    width: 60px;
}

.skeleton-cell-class {
    width: 80px;
}

.skeleton-cell-level {
    width: 24px;
}

.skeleton-cell-score {
    width: 70px;
}

.skeleton-cell-members {
    width: 50px;
}

.skeleton-cell-contrib {
    width: 90px;
}

.skeleton-cell-cp {
    width: 80px;
}

.item-card {
    background: #161616;
    border: 1px solid #252525;
    border-left: 3px solid #333333;
    padding: 14px;
    box-shadow: none;
}

.item-header {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.item-icon {
    width: 64px;
    height: 64px;
    background: #000;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    object-fit: cover;
}

.section-title {
    color: #ffffff;
    font-size: 13px;
    margin-top: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    font-size: 12px;
    margin-top: 10px;
    word-break: break-word;
}

.stat-name {
    color: #888;
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
}

.stat-val {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.true-val {
    color: #44ff44;
    font-weight: bold;
}

.false-val {
    color: #ff4444;
    font-weight: bold;
}

.lore-desc {
    color: #bbb;
    font-style: italic;
    font-size: 13px;
    margin-top: 10px;
    padding: 12px;
    background: #222;
    border-left: 3px solid #555;
    line-height: 1.4;
}

#custom-popup {
    position: absolute;
    background: #1e1e1e;
    border: 1px solid #ffb700;
    padding: 20px 15px 15px 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
    color: #eee;
    font-size: 13px;
    max-width: 350px;
    z-index: 9999;
    display: none;
    line-height: 1.6;
}

#custom-popup-close {
    position: absolute;
    top: 2px;
    right: 8px;
    cursor: pointer;
    color: #888;
    font-size: 18px;
    font-weight: bold;
}

#custom-popup-close:hover {
    color: #fff;
}


.skills-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.skills-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: calc(105vh - 290px);
    overflow-y: auto;
}

.race-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    margin: 0;
}

.custom-checkbox input {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #555;
    background: #222;
    cursor: pointer;
    position: relative;
    outline: none;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.custom-checkbox input:checked::after {
    display: none;
}

.custom-checkbox input.elyos:checked {
    background: #1eff00;
    border-color: #1eff00;
}

.custom-checkbox input.asmo:checked {
    background: #00aaff;
    border-color: #00aaff;
}

.race-elyos {
    color: #1eff00;
}

.race-asmo {
    color: #00aaff;
}

.tree-menu {
    border-top: 1px solid #333;
    padding-top: 22px;
}

.tree-menu .custom-checkbox {
    margin-bottom: 12px;
}

.tree-item {
    padding: 10px 20px 10px 5px;

    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    width: 100%;
    flex-shrink: 0;
}

.tree-item:hover {
    color: #ccc;
}

.tree-item.path-active {
    color: #ccc;
}

.tree-item.active {
    color: #fff;
}


.sidebar-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    color: currentColor;
    opacity: 0.65;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.sidebar-arrow {
    margin-left: auto;
    width: 12px;
    height: 12px;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s;
    color: currentColor;
    flex-shrink: 0;
}

.tree-item:hover .sidebar-icon,
.tree-item.active .sidebar-icon {
    opacity: 0.95;
}

.tree-item:hover .sidebar-arrow,
.tree-item.active .sidebar-arrow {
    opacity: 0.8;
}

.tree-item-container.open>.tree-item .sidebar-arrow {
    transform: rotate(90deg);
}


.tree-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid #333;
    font-size: 10px;
    background: transparent;
    color: transparent;
    position: relative;
    z-index: 2;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}


.tree-item.path-active .tree-icon {
    border-color: #ccc;
    background: #555;
}

.tree-item.active .tree-icon {
    background: #ffffff;
    border-color: #ffffff;
    color: transparent;
}

.tree-children {
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 0;
}

.tree-children::before {
    content: '';
    position: absolute;
    top: -5px;
    bottom: 12px;
    left: 8px;
    border-left: 1px solid #444;
    z-index: 1;
}



.tree-children.open {
    max-height: 4000px;
}

.sub-item {
    font-size: 13px;
    padding-left: 24px;
    position: relative;
}

.sub-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    width: 16px;
    height: 1px;
    background: #444;
    z-index: 1;
}

.skills-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

#skills-grid-results .search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 1200px) {
    #skills-grid-results .search-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    #skills-grid-results .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #skills-grid-results .search-grid {
        grid-template-columns: 1fr;
    }
}

#skills-grid-results .search-card {
    padding: 5px 9px;
    padding-left: 13px;
    gap: 8px;
}

#skills-grid-results .search-card-img-wrapper {
    width: 30px;
    height: 30px;
}

#skills-grid-results .search-card-details {
    height: 30px;
}

#skills-grid-results .search-card-name {
    font-size: 12px;
    margin-top: -2.5px;
}

#skills-grid-results .search-card-tag-badge {
    font-size: 8px;
    padding: 1px 3.5px;
}

#skills-grid-results .search-card-level-badge {
    font-size: 8.5px;
    padding: 1px 3.5px;
}

.skills-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 10px 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.level-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #aaa;
}

.level-filter input {
    width: 40px;
    background: #111;
    border: 1px solid #444;
    color: #fff;
    padding: 4px 0;
    text-align: center;
    outline: none;
}

.pagination-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #888;
}

.pagination-mini span {
    display: inline-block;
    width: 75px;

    text-align: center;

    font-weight: 600;

    flex-shrink: 0;
    font-variant-numeric: tabular-nums;

}

.pagination-mini button {
    background: #111;
    border: 1px solid #444;
    color: #ccc;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-mini button:hover:not(:disabled) {
    background: #222;
    color: #fff;
    border-color: #666;
}

.pagination-mini button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.search-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-mini input {
    background: #111;
    border: 1px solid #444;
    color: #fff;
    padding: 6px 12px;
    outline: none;
    width: 200px;
}

.btn-blue {
    background: #00aaff;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
}

.btn-blue:hover {
    background: #0088cc;
}

.btn-dark {
    background: #222;
    color: #ccc;
    border: 1px solid #444;
    padding: 6px 12px;
    cursor: pointer;
}

.btn-dark:hover {
    background: #333;
    color: #fff;
}

.skill-level-group {
    margin-bottom: 20px;
}

.skill-level-title {
    color: #999;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--glass-medium);
    padding-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-level-title span {
    color: #777;
    font-weight: normal;
    font-size: 11px;
}



.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
    margin: 20px 0;
}


.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 4px;
    transition: opacity 0.2s;
}

.custom-checkbox:hover {
    opacity: 0.8;
}

.custom-checkbox input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #444;
    background: #1a1a1a;
    position: relative;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    transition: all 0.2s;
}

.custom-checkbox input:checked {
    background: #ffffff;
    border-color: #ffffff;
}

.custom-checkbox input:checked::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 10px;
    font-weight: bold;
}

.custom-checkbox span {
    font-size: 13px;
    color: #ccc;
    line-height: 1;
    transition: color 0.2s;
}

.custom-checkbox input:checked+span {
    color: #fff;
    font-weight: 500;
}

.custom-checkbox input:hover {
    border-color: #666;
}

.entity-link {
    color: var(--theme-color, #ffffff);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dotted var(--theme-color, #ffffff);
    transition: filter 0.2s, opacity 0.2s;
    cursor: pointer;
}

.entity-link:hover {
    filter: brightness(1.2);
    opacity: 0.9;
}


.map-viewer-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    background: #0a0a0a;
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.map-viewer-header {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-light);
    z-index: 10;
}

.map-viewer-title {
    font-size: 18px;
}

.map-viewer-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.map-control-btn {
    background: var(--glass-light);
    border: 1px solid var(--border-light);
    color: #fff;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.map-control-btn:hover {
    background: var(--border-medium);
    border-color: #00aaff;
    color: #00aaff;
}

.map-layer-select {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 6px 12px;
    outline: none;
    cursor: pointer;
}

.map-viewport {
    flex-grow: 1;
    overflow: hidden;
    background: #000;
    cursor: grab;
    position: relative;
}

.map-container {
    display: grid;
    position: absolute;
    transform-origin: 0 0;
    user-select: none;
}

.map-container.smooth-zoom {
    transition: transform 0.15s ease-out;
}

.map-tile {
    width: 256px;
    height: 256px;
    display: block;
    user-drag: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.map-card:hover {
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.2);
}




.map-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.map-category-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-category-card:hover {
    border-color: var(--card-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.map-category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-color);
}

.map-category-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--card-color);
}

.map-category-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.map-category-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.map-stat-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.map-stat-val {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.map-stat-label {
    font-size: 12px;
    color: #555;
}

.map-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    color: #fff;
}

.map-section-title {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.map-view-all {
    color: #00aaff;
    font-size: 14px;
    text-decoration: none;
}

.map-view-all:hover {
    text-decoration: underline;
}

.map-preview-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 2px 10px 0;
    margin-bottom: 20px;
    scrollbar-width: none;

    -ms-overflow-style: none;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.map-preview-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;

}



.maps-unified-view {
    background: var(--glass-subtle);
    border: 1px solid var(--glass-light);
    padding: 30px;
    margin-top: 10px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}

.map-category-block {
    background: #1a1a1a;
    border: 1px solid var(--glass-light);
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.map-category-block:hover {
    border-color: var(--border-light);
}

.map-carousel-wrapper {
    position: relative;
}

.carousel-nav-btn {
    position: absolute;
    bottom: -38px;

    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 32px;
}

.map-category-block:hover .carousel-nav-btn {
    opacity: 0.6;
}

.carousel-nav-btn:hover {
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.carousel-nav-btn.next {
    right: -10px;
}

.carousel-nav-btn.prev {
    left: -10px;
}

.map-preview-card {
    flex: 0 0 calc(11.11% - 10px);
    min-width: 90px;
}


.map-category-block {
    margin-bottom: 20px;
    padding: 12px;
    background: var(--glass-subtle);
    border: 1px solid var(--glass-light);
    transition: all 0.3s ease;
}

.map-section-title {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.8;
}

@media (max-width: 1200px) {
    .map-preview-card {
        flex: 0 0 calc(14.28% - 8px);
    }
}

@media (max-width: 950px) {
    .map-preview-card {
        flex: 0 0 calc(16.66% - 8px);
    }
}

@media (max-width: 750px) {
    .map-preview-card {
        flex: 0 0 calc(20% - 7px);
    }
}

@media (max-width: 550px) {
    .map-preview-card {
        flex: 0 0 calc(25% - 6px);
    }
}

@media (max-width: 400px) {
    .map-preview-card {
        flex: 0 0 calc(33.33% - 5px);
    }
}

.map-preview-card {
    background: #1a1a1a;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    position: relative;
}

.map-preview-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #333;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 10;
}

.map-preview-card:hover::after {
    border-color: #ffffff;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.25);
}



.map-preview-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    background: #080808;
    background-image: linear-gradient(90deg, #080808 0%, #151515 50%, #080808 100%);
    background-size: 200% 100%;
    animation: mapShimmer 1.5s infinite linear;
    overflow: hidden;
    position: relative;
}

.map-preview-img-wrapper:has(.map-preview-img.loaded) {
    animation: none;
    background: #151515;
}

@keyframes mapShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.map-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-preview-img.loaded {
    opacity: 0.75;
    transform: scale(1);
}

.map-preview-card:hover .map-preview-img.loaded {
    opacity: 1;
    transform: scale(1.05);
}

.map-preview-info {
    padding: 5px 6px;
    background: #222;
}

.map-preview-name {
    font-size: 11px;
    font-weight: bold;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.aion-player-container {
    position: fixed;
    right: 12px;
    bottom: 13px;
    z-index: 9999;
    font-family: inherit;
}


.player-trigger {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.3;

    pointer-events: auto;
}


.player-trigger.playing {
    opacity: 1;

}

.player-trigger:hover {
    opacity: 1;

    background: radial-gradient(circle at center, var(--glass-heavy) 0%, rgba(10, 10, 10, 1) 100%);
    border-color: #ffffff;
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(255, 255, 255, 0.5);
    animation: none;

}


.aion-player-container.open .player-trigger {
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
}


.player-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 260px;
    background: linear-gradient(135deg, rgba(12, 12, 12, 0.98) 0%, rgba(22, 22, 22, 0.95) 100%);
    border: 1.5px solid #ffffff;
    padding: 10px 12px;
    box-shadow:
        inset 0 0 8px var(--border-light),
        0 10px 30px rgba(0, 0, 0, 0.8),
        0 0 30px var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(30px) scale(0.9);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    backdrop-filter: blur(20px);
    z-index: 1;
}

.aion-player-container.open .player-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}


.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-medium);
    padding-bottom: 7px;
}

.player-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    margin-right: 24px;
}


.player-info-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.player-disc-art {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: linear-gradient(180deg, #151515, #080808);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
    overflow: hidden;
}

.player-disc-art.playing {
    border-color: #ffffff;
    background: radial-gradient(circle at center, var(--glass-heavy) 0%, rgba(10, 10, 10, 1) 100%);
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(255, 255, 255, 0.25);
    animation: pulse-border 2s ease-in-out infinite alternate;
}

@keyframes pulse-border {
    0% {
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9), 0 0 6px var(--border-medium);
        border-color: rgba(255, 255, 255, 0.8);
    }

    100% {
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 255, 255, 0.35);
        border-color: rgba(255, 255, 255, 1);
    }
}

.player-visualizer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player-visualizer svg {
    width: 200%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.player-visualizer svg.wave1 {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.45));
    z-index: 3;
}



.wave-line {
    fill: none;
    stroke-linecap: round;
    transition: stroke 0.3s ease;
    vector-effect: non-scaling-stroke;
}

.wave-line.wave1 {
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 1.5px;
}

.player-disc-art.playing svg.wave1 {
    animation: flow-wave-left 4s linear infinite;
}

@keyframes flow-wave-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.player-track-details {
    flex: 1;
    overflow: hidden;
}

.player-track-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.player-track-artist {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1px;
}

.player-minimize {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
    padding: 0;
}

.player-minimize:hover {
    color: #ffffff;
    transform: scale(1.1);
}


.player-progress-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    user-select: none;
}


.player-time {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    font-variant-numeric: tabular-nums;
    min-width: 26px;
    text-align: center;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.player-progress-bg {
    flex: 1;
    height: 6px;
    background: var(--glass-medium);
    border: 1px solid var(--glass-light);

    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.player-progress-bar {
    height: 100%;
    width: 0;
    background: #ffffff;
    position: relative;
    transition: background-color 0.2s;
}

.player-progress-bg:hover .player-progress-bar {
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}


.player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.player-btn {
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.player-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--glass-medium);
    transform: scale(1.1);
}

.player-btn:active {
    transform: scale(0.95);
}

.player-btn.active {
    color: #ffffff;
    background: var(--border-medium);
    border-color: rgba(255, 255, 255, 0.3);
}

.player-btn.play-pause-btn {
    width: 32px;
    height: 32px;
    background: var(--border-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transition: all 0.3s ease;
    padding: 0;
}

.player-btn.play-pause-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}


.player-volume-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    min-width: 28px;
    text-align: right;
    user-select: none;
    cursor: default;
    letter-spacing: 0.3px;
    margin-left: auto;
}


.player-volume-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    margin-left: -1px;
}


.player-volume-bar {
    flex: 1;
    height: 6px;
    background: var(--border-light);
    border: 1px solid var(--border-medium);
    position: relative;
    cursor: pointer;
    min-width: 40px;
    margin-right: 1px;
}

.player-volume-fill {
    height: 100%;
    width: 50%;
    background: #ffffff;
    transition: width 0.15s ease;
}


.player-volume-row {
    display: none;
}

@keyframes border-pulse {
    0% {
        box-shadow:
            inset 0 0 6px rgba(255, 255, 255, 0.2),
            0 0 15px rgba(255, 255, 255, 0.25),
            0 4px 15px rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 255, 255, 0.6);
    }

    100% {
        box-shadow:
            inset 0 0 10px rgba(255, 255, 255, 0.4),
            0 0 25px rgba(255, 255, 255, 0.5),
            0 4px 20px rgba(0, 0, 0, 0.7);
        border-color: #ffffff;
    }
}

@keyframes icon-pulse {
    0% {
        transform: scale(0.9);
        color: rgba(255, 255, 255, 0.6);
    }

    100% {
        transform: scale(1.1);
        color: #ffffff;
    }
}


.site-footer {
    width: 100%;
    background: rgb(15 18 18);
    border-top: 1px solid rgba(var(--accent-cyan-rgb), 0.29);
    padding: 20px 0;
    margin-top: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-disclaimer-text {
    font-size: 12px;
    color: #dddddd;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.footer-update-text {
    font-size: 12px;
    color: #dddddd;
    line-height: 1.5;
    margin: 0;
    text-align: right;
}


@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-disclaimer-text,
    .footer-update-text {
        text-align: center;
    }
}


.site-logo-link,
.burger-btn,
.lang-trigger,
.lang-dropdown-menu,
.search-wrapper input,
.search-mini input,
.search-shortcut,
.pagination-mini button,
.nav-menu,
.nav-btn,
.search-bar,
.category-grid,
.category-card,
.db-stats,
.stat-pill,
.search-card,
.search-card-img-wrapper img,
.search-card-tag-badge,
.search-card-level-badge,
.search-card-sub-badge,
.title-card,
.title-card-icon,
.pagination-btn,
.detail-container,
.detail-card,
.info-grid,
.spawn-table-wrapper,
.spawn-map-wrapper,
.calculator-container,
.calc-btn,
.skills-header,
.skill-type-btn,
.class-sidebar,
.class-item,
.stigma-slot,
.skill-tree-container,
.tree-icon,
.map-selector,
.map-view-wrapper,
.floating-player,
.player-inner,
.player-toggle-btn,



input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}


.lvl-input {
    width: 50px;
    height: 27px;
    background: var(--glass-light);
    border: 1px solid var(--border-light);
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.lvl-input::placeholder {
    color: #555;
    font-size: 11px;
}

.lvl-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.lvl-sep {
    color: #444;
    font-size: 16px;
    font-weight: 300;
    user-select: none;
}


.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='9 18 15 12 9 6' transform='rotate(90 12 12)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
    cursor: pointer;
}

.custom-select option {
    padding: 5px 10px;
    min-height: 27px;
    line-height: 27px;
    background: #151515;
}


.cd {
    position: relative;
    display: inline-block;
    user-select: none;
}

.cd-trigger {
    height: 27px;
    background: var(--glass-light);
    border: 1px solid var(--border-light);
    padding: 0 28px 0 10px;
    font-size: 12px;
    font-family: inherit;
    min-width: 120px;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    transition: border-color 0.15s;
    white-space: nowrap;
}

.cd-trigger:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.cd.open .cd-trigger {
    border-color: rgba(255, 255, 255, 0.25);
}

.cd-arrow {
    color: #888888;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.5;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cd.open .cd-arrow {
    transform: translateY(-50%) rotate(180deg);
    opacity: 0.8;
}

.cd-list {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    min-width: 100%;
    background: #1a1a1a;
    border: 1px solid var(--glass-heavy);
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.cd.open .cd-list {
    display: block;
    animation: cdFadeIn 0.12s ease-out;
}

@keyframes cdFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cd-item {
    height: 27px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.1s;
    white-space: nowrap;
}

.cd-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.cd-item.cd-active {
    background: rgba(255, 255, 255, 0.04);
}


.skills-sidebar {
    width: 260px;
    background: #111111;
    border: 1px solid var(--glass-light);
}






.quest-location-sidebar .tree-menu,
.npc-location-sidebar .tree-menu,
.item-type-sidebar .tree-menu,
.titles-sidebar .tree-menu,
.maps-sidebar .tree-menu {
    border-top: none;
    padding-top: 0;
}

.quest-location-sidebar .tree-item,
.npc-location-sidebar .tree-item,
.item-type-sidebar .tree-item,
.titles-sidebar .tree-item,
.maps-sidebar .tree-item {
    height: 38px;
    flex-shrink: 0;
    padding: 0 16px 0 17px;
    margin: 0;
    margin-left: 1px;
    width: calc(100% - 1px);
    font-size: 13px;
    font-weight: 500;
    color: #999999;
    background: transparent;
    border-left: 3px solid transparent;
    position: relative;
    gap: 0;
    transition: all 0.15s ease;
}

.quest-location-sidebar .tree-item:hover,
.npc-location-sidebar .tree-item:hover,
.item-type-sidebar .tree-item:hover,
.titles-sidebar .tree-item:hover,
.maps-sidebar .tree-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.quest-location-sidebar .tree-item.active,
.npc-location-sidebar .tree-item.active,
.item-type-sidebar .tree-item.active,
.titles-sidebar .tree-item.active,
.maps-sidebar .tree-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border-left: 3px solid #ffffff;
}

.quest-location-sidebar .tree-item.path-active,
.npc-location-sidebar .tree-item.path-active,
.item-type-sidebar .tree-item.path-active,
.titles-sidebar .tree-item.path-active,
.maps-sidebar .tree-item.path-active {
    color: #dddddd;
}

.quest-location-sidebar .sidebar-icon,
.npc-location-sidebar .sidebar-icon,
.item-type-sidebar .sidebar-icon,
.titles-sidebar .sidebar-icon,
.maps-sidebar .sidebar-icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    color: currentColor;
    opacity: 0.65;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.quest-location-sidebar .tree-item:hover .sidebar-icon,
.quest-location-sidebar .tree-item.active .sidebar-icon,
.npc-location-sidebar .tree-item:hover .sidebar-icon,
.npc-location-sidebar .tree-item.active .sidebar-icon,
.item-type-sidebar .tree-item:hover .sidebar-icon,
.item-type-sidebar .tree-item.active .sidebar-icon,
.titles-sidebar .tree-item:hover .sidebar-icon,
.titles-sidebar .tree-item.active .sidebar-icon,
.maps-sidebar .tree-item:hover .sidebar-icon,
.maps-sidebar .tree-item.active .sidebar-icon {
    opacity: 0.95;
}

.quest-location-sidebar .sidebar-arrow,
.npc-location-sidebar .sidebar-arrow,
.item-type-sidebar .sidebar-arrow,
.titles-sidebar .sidebar-arrow,
.maps-sidebar .sidebar-arrow {
    margin-left: auto;
    width: 12px;
    height: 12px;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s;
    color: currentColor;
    flex-shrink: 0;
}

.quest-location-sidebar .tree-item:hover .sidebar-arrow,
.quest-location-sidebar .tree-item.active .sidebar-arrow,
.npc-location-sidebar .tree-item:hover .sidebar-arrow,
.npc-location-sidebar .tree-item.active .sidebar-arrow,
.item-type-sidebar .tree-item:hover .sidebar-arrow,
.item-type-sidebar .tree-item.active .sidebar-arrow,
.titles-sidebar .tree-item:hover .sidebar-arrow,
.titles-sidebar .tree-item.active .sidebar-arrow,
.maps-sidebar .tree-item:hover .sidebar-arrow,
.maps-sidebar .tree-item.active .sidebar-arrow {
    opacity: 0.8;
}


.quest-location-sidebar .tree-item-container.open>.tree-item .sidebar-arrow,
.npc-location-sidebar .tree-item-container.open>.tree-item .sidebar-arrow,
.item-type-sidebar .tree-item-container.open>.tree-item .sidebar-arrow,
.titles-sidebar .tree-item-container.open>.tree-item .sidebar-arrow,
.maps-sidebar .tree-item-container.open>.tree-item .sidebar-arrow {
    transform: rotate(90deg);
}

.quest-location-sidebar .tree-children,
.npc-location-sidebar .tree-children,
.item-type-sidebar .tree-children,
.titles-sidebar .tree-children,
.maps-sidebar .tree-children {
    padding-left: 0;
    background: transparent;
    gap: 0;
    position: relative;
}

.quest-location-sidebar .tree-children::before,
.npc-location-sidebar .tree-children::before,
.item-type-sidebar .tree-children::before,
.titles-sidebar .tree-children::before,
.maps-sidebar .tree-children::before {
    display: none;
}

.quest-location-sidebar .tree-item.sub-item,
.npc-location-sidebar .tree-item.sub-item,
.item-type-sidebar .tree-item.sub-item,
.titles-sidebar .tree-item.sub-item,
.maps-sidebar .tree-item.sub-item {
    padding-left: 36px;
    color: #888888;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--glass-subtle);
}

.skills-sidebar .tree-children .tree-children .tree-item.sub-item {
    padding-left: 52px;
}



.quest-location-sidebar .tree-item.sub-item::before,
.npc-location-sidebar .tree-item.sub-item::before,
.item-type-sidebar .tree-item.sub-item::before,
.titles-sidebar .tree-item.sub-item::before,
.maps-sidebar .tree-item.sub-item::before {
    display: none;
}

.quest-location-sidebar .tree-item.path-active .sidebar-icon,
.npc-location-sidebar .tree-item.path-active .sidebar-icon,
.item-type-sidebar .tree-item.path-active .sidebar-icon,
.titles-sidebar .tree-item.path-active .sidebar-icon,
.maps-sidebar .tree-item.path-active .sidebar-icon {
    opacity: 0.85;
}

.quest-location-sidebar .tree-item.path-active .sidebar-arrow,
.npc-location-sidebar .tree-item.path-active .sidebar-arrow,
.item-type-sidebar .tree-item.path-active .sidebar-arrow,
.titles-sidebar .tree-item.path-active .sidebar-arrow,
.maps-sidebar .tree-item.path-active .sidebar-arrow {
    opacity: 0.6;
}

.quest-location-sidebar .tree-item.sub-item:hover,
.npc-location-sidebar .tree-item.sub-item:hover,
.item-type-sidebar .tree-item.sub-item:hover,
.titles-sidebar .tree-item.sub-item:hover,
.maps-sidebar .tree-item.sub-item:hover {
    color: #ffffff;
    background: var(--glass-light);
}

.quest-location-sidebar .tree-item.sub-item.active,
.npc-location-sidebar .tree-item.sub-item.active,
.item-type-sidebar .tree-item.sub-item.active,
.titles-sidebar .tree-item.sub-item.active,
.maps-sidebar .tree-item.sub-item.active {
    color: #ffffff;
    background: var(--glass-medium);
    border-left: 3px solid rgba(255, 255, 255, 0.4);
}

.landing-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 50px auto 30px auto;
    color: #444444;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: 80%;
    max-width: 800px;
}

.landing-separator::before,
.landing-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-light);
}

.landing-separator:not(:empty)::before {
    margin-right: 20px;
}

.landing-separator:not(:empty)::after {
    margin-left: 20px;
}

.landing-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding-bottom: 60px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.category-card {
    background: var(--glass-subtle);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-decoration: none;
    min-height: 120px;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-medium);
    transform: none;
    box-shadow: none;
}

.category-icon-wrapper {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    color: #888888;
}

.category-card:hover .category-icon-wrapper {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-light);
    color: #ffffff;
}

.category-icon-wrapper svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-label {
    font-size: 13px;
    font-weight: 600;
    color: #aaaaaa;
    text-align: center;
    transition: color 0.2s ease;
}

.category-card:hover .category-label {
    color: #ffffff;
}


@media (max-width: 1100px) {
    .landing-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 850px) {
    .landing-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .landing-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-separator {
        margin: 30px auto 20px auto;
    }
}

@media (max-width: 400px) {
    .landing-category-grid {
        grid-template-columns: 1fr;
    }
}


.landing-server-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    width: 80%;
    max-width: 1000px;
    margin: 0 auto 50px auto;
}

.server-status-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(15, 15, 15, 0.9));
    border: 1px solid var(--glass-light);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.server-status-card:hover {
    border-color: var(--glass-heavy);
}

.server-status-card.online {
    border-left: 3px solid #ffffff;
}

.server-status-card.offline {
    border-left: 3px solid #444444;
    opacity: 0.5;
}

.server-status-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
}

.server-status-card.online .status-indicator {
    background-color: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.server-status-card.offline .status-indicator {
    background-color: #444444;
    box-shadow: none;
}

.server-name-wrapper {
    display: flex;
    flex-direction: column;
}

.server-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.server-status-card.offline .server-name {
    color: #666666;
}

.server-type {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.server-status-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.server-pop {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.server-status-card.offline .server-pop {
    color: #444444;
}


.empty-state-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: transparent;
    border: none;
    margin: 30px auto;
    max-width: 500px;
    width: 100%;
    animation: fadeInScale 0.3s ease-out;
    box-sizing: border-box;
}

.empty-state-wrapper.compact {
    padding: 30px 15px;
    margin: 15px auto;
    max-width: 100%;
    background: transparent;
    border: none;
}

.empty-state-icon {
    margin-bottom: 16px;
    color: var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.empty-state-wrapper:hover .empty-state-icon {
    transform: scale(1.08);
    color: rgba(255, 255, 255, 0.3);
}

.empty-state-title {
    font-size: 15px;
    font-weight: 600;
    color: #eaeaea;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.empty-state-desc {
    font-size: 13px;
    color: #888899;
    max-width: 340px;
    line-height: 1.5;
    margin: 0 auto;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.test-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    margin-bottom: 50px;
    width: 100%;
}

.test-pagination-btn {
    background: var(--glass-subtle);
    border: 1px solid var(--glass-light);
    color: #888888;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    box-sizing: border-box;
    text-decoration: none;
}

.test-pagination-btn:hover:not(:disabled) {
    background: var(--glass-light);
    border-color: var(--border-medium);
    color: #ffffff;
}

.test-pagination-btn.active {
    background: var(--border-light);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.test-pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.test-pagination-nav {
    padding: 8px;
}



.mini-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.mini-loading .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-light);
    border-top: 2px solid #ffffff;

    animation: spin 0.8s linear infinite;
}





.test-inspect-btn:hover {
    background: var(--glass-heavy);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}


.test-search-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.test-search-card {
    padding: 6px;
    gap: 4px;
}


.test-search-card .search-card-img-wrapper {
    width: 28px;
    height: 28px;
}

.test-search-card .search-card-name {
    font-size: 10px;
}

.test-search-card .search-card-tag-badge,
.test-search-card .search-card-level-badge,
.test-search-card .search-card-sub-badge {
    font-size: 7px;
    padding: 0.5px 4px;
}

.test-search-card .test-card-path {
    font-size: 8px;
}

.test-search-card .test-inspect-btn {
    font-size: 9px;
    padding: 2px 6px;
}


body:has(.window-fullscreen) .right-column {
    transform: none;
    position: static;
}

.window-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    margin: 0;
    border: none;
    box-shadow: none;
    transform: none;
    overflow: hidden;
    animation: viewerFadeIn 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.window-fullscreen-closing {
    animation: viewerFadeOut 0.18s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes viewerFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes viewerFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.card-fading-in {
    animation: cardFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.item-copy-pill {
    background: var(--glass-subtle);
    color: #888;
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    height: 26px;
    flex-shrink: 0;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    gap: 4px;
}

.item-copy-pill:hover {
    background: var(--glass-medium);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}




.page-hero {
    background: #0e1111;
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(var(--accent-cyan-rgb), 0.29);
    border-bottom: 1px solid rgba(var(--accent-cyan-rgb), 0.29);
}

.page-hero p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    margin-bottom: 8px;
}

.page-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.page-hero span {
    color: #888888;
    font-size: 14px;
    max-width: 600px;
    display: inline-block;
}

.section-header {
    margin-bottom: 30px;
    text-align: left;
}

.section-header p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    margin-bottom: 6px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
}




.hero-actions {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 158px);
    padding: 10vh 20px 40px 20px;
    background: #080808;
    box-sizing: border-box;
}

.auth-card {
    background: #0000002e;
    border: 1px solid #5fa3ab52;

    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 0 15px rgba(81, 181, 191, 0.1);
    text-align: left;
}

.auth-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    margin-bottom: 6px;
    text-align: center;
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 30px 0;
    letter-spacing: -0.5px;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    font-family: 'Inter', sans-serif;
    background: rgb(81 181 191 / 3%);
    border: 1px solid #5fa3ab52;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 14px;
    height: 46px;
    transition: border-color 0.2s;
    width: 100%;
    outline: none;
    box-sizing: border-box;
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-form input:hover,
.auth-form input:focus {
    border-color: var(--accent-cyan);
}


.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
}

.password-wrapper input {
    padding-right: 44px;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgb(131 209 222 / 51%);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, opacity 0.3s ease, visibility 0.3s ease;
    outline: none;
    opacity: 1;
    visibility: visible;
}

.toggle-password-btn:hover {
    color: rgb(45 72 77);
}

.password-wrapper input:placeholder-shown+.toggle-password-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-form input:hover {
    border-color: var(--accent-cyan);
}

.auth-form input:focus {
    border-color: var(--accent-cyan);
    background: rgba(81, 181, 191, 0.22);
    box-shadow: 0 0 8px rgba(81, 181, 191, 0.2);
}

.auth-btn {
    width: 100%;
    margin-top: 25px;
    padding: 12px 40px !important;
}

#loginForm .auth-btn,
#registerForm .auth-btn {
    width: auto;
    align-self: center;
    padding: 12px 40px !important;
}


.auth-link {
    margin-top: 24px;
    text-align: center;
    color: #666666;
    font-size: 13px;
}

.auth-link span {
    color: #ffffff;
    cursor: pointer;
    text-decoration: underline;
}

.auth-link span:hover {
    color: #cccccc;
}

.auth-message {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 46px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.auth-message.success {
    background: rgba(119, 209, 221, 0.12);
    color: var(--accent-cyan-light);
    border: 1px solid rgba(119, 209, 221, 0.3);
}

.auth-message.error {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.3);
}


.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0;
    margin: 40px auto;
    max-width: 1160px;
}

.download-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 40px auto;
    max-width: 1160px;
}

.news-card {
    background: #181818;
    border: 1px solid #252525;
    padding: 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card:hover {
    border-color: #444444;
    background: rgba(255, 255, 255, 0.01);
}

.download-card {
    background: #000000d9;
    border: 1px solid var(--glass-cyan);
    border-top: 1px solid var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 360px;
}



.download-meta span {
    color: #8892a8;
    background: rgba(136, 146, 168, 0.08);
    border: 1px solid rgba(136, 146, 168, 0.15);
}

.download-card .news-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #0000002e;
    border: 1px solid #5fa3ab52;
    color: #ffffff;
    box-sizing: border-box;
}

.news-card::before,
.download-card::before {
    display: none;

}

.news-card h3,
.download-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 10px 0 10px 0;
}

.news-card p,
.download-card p {
    font-size: 14px;
    color: #888888;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

.news-card-header,
.news-card-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666666;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.ranking-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.ranking-tabs button {
    background: rgb(10 13 13);
    border: 1px solid var(--glass-cyan);
    color: #8892a8;
    padding: 10px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.ranking-tabs button:hover,
body.ranking-page-active .ranking-tabs button:hover {
    background: var(--glass-cyan);
    border-color: var(--accent-cyan);
    color: #ffffff;
    box-shadow: none;
}

.ranking-tabs button.active {
    background: rgb(10 13 13);
    color: #ffffff;
    border-color: var(--glass-cyan) var(--glass-cyan) var(--glass-cyan) var(--accent-cyan);
    border-left: 1px solid var(--accent-cyan);
    font-weight: 500;
}

.ranking-card {
    background: #000000d9;
    border: 1px solid var(--glass-cyan);
    border-top: 1px solid var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 1160px;
    height: fit-content;
    overflow: hidden;

    transition: opacity 0.25s ease-in-out;
}

.ranking-card.loading {
    opacity: 0;
    transition: none;

}

.ranking-table-wrapper {
    overflow: visible;
    position: relative;
}

.ranking-table-wrapper table {
    opacity: 1;
}



.ranking-table-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ranking-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
}

.ranking-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(81, 181, 191, 0.3);
}

.ranking-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(81, 181, 191, 0.6);
}

.ranking-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.ranking-card table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ranking-card th:nth-child(1),
.ranking-card td:nth-child(1) {
    width: 6%;
}

.ranking-card th:nth-child(2),
.ranking-card td:nth-child(2) {
    width: 32%;
}

.ranking-card th:nth-child(3),
.ranking-card td:nth-child(3) {
    width: 15%;
}

.ranking-card th:nth-child(4),
.ranking-card td:nth-child(4) {
    width: 18%;
}

.ranking-card th:nth-child(5),
.ranking-card td:nth-child(5) {
    width: 12%;
}

.ranking-card th:nth-child(6),
.ranking-card td:nth-child(6) {
    width: 17%;
}

.ranking-card th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: transparent;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan-light);
    border-bottom: 1px solid rgba(119, 209, 221, 0.3);
    padding: 8px 12px;
    text-align: left;
}

.ranking-card td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(81, 181, 191, 0.08);
    color: #d4d9e1;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}





.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
}

.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-balance-card,
.shop-character-card,
.shop-category-card {
    background: #181818;
    border: 1px solid #252525;
    padding: 24px;
}

.shop-balance-card span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888888;
    display: block;
    margin-bottom: 4px;
}

.shop-balance-card strong {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 10px;
}

.shop-balance-card p {
    font-size: 12px;
    color: #666666;
    margin: 0;
}

.shop-character-card label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888888;
    display: block;
    margin-bottom: 8px;
}

.shop-character-card select {
    background: var(--glass-subtle);
    border: 1px solid #252525;
    color: #ffffff;
    padding: 10px;
    width: 100%;
    outline: none;
    font-size: 13px;
}

.shop-category-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.shop-category-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shop-category-list button {
    background: transparent;
    border: 1px solid transparent;
    color: #888888;
    text-align: left;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.shop-category-list button:hover {
    color: #ffffff;
    background: var(--glass-subtle);
}

.shop-category-list button.active {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border-left: 2px solid #ffffff;
    font-weight: 500;
}

.shop-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-toolbar {
    background: #181818;
    border: 1px solid #252525;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.shop-toolbar p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888888;
    margin: 0 0 4px 0;
}

.shop-toolbar h2 {
    font-size: 20px;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

.shop-search input {
    background: var(--glass-subtle);
    border: 1px solid #252525;
    color: #ffffff;
    padding: 10px 16px;
    width: 250px;
    outline: none;
    font-size: 13px;
    transition: all 0.2s;
}

.shop-search input:focus {
    border-color: #555555;
    background: var(--glass-light);
}

.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.shop-item-card {
    background: #181818;
    border: 1px solid #252525;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-item-card:hover {
    border-color: #444444;
    background: rgba(255, 255, 255, 0.01);
}

.shop-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.shop-item-icon {
    width: 48px;
    height: 48px;
    background: #080808;
    border: 1px solid #252525;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-item-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.shop-item-icon span {
    font-size: 20px;
    font-weight: 700;
    color: #666666;
}

.shop-item-badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888888;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 8px;
    border: 1px solid var(--glass-light);
}

.shop-item-content {
    flex: 1;
    margin-bottom: 15px;
}

.shop-item-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.shop-item-content p {
    font-size: 13px;
    color: #888888;
    line-height: 1.5;
    margin: 0;
}

.shop-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 6px;
}

.shop-item-meta span {
    color: #666666;
}

.shop-item-meta strong {
    color: #cccccc;
}

.shop-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.shop-item-footer span {
    font-size: 10px;
    color: #666666;
    display: block;
}

.shop-item-footer strong {
    font-size: 15px;
    color: #ffffff;
}

.shop-item-footer button {
    background: transparent;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-item-footer button:hover {
    border-color: #666666;
    background: var(--glass-light);
}


.account-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1155px;
    margin: 0 auto;
}

.dashboard-card {
    background: #181818;
    border: 1px solid #252525;
    padding: 24px;
}

.dashboard-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.dashboard-card p {
    font-size: 13px;
    color: #888888;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666666;
    font-size: 14px;
    background: #181818;
    border: 1px solid #252525;
    width: 100%;
}

.user-menu,
.guest-auth {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-menu button,
.guest-auth button,
.guest-auth .login-btn,
.guest-auth .register-btn,
.sub-header-auth button {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid #23383b;
    box-shadow: none;
    color: #ffffff;
    text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
    padding: 8px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

}

.user-menu button:hover,
.guest-auth button:hover,
.guest-auth .login-btn:hover,
.guest-auth .register-btn:hover,
.sub-header-auth button:hover {
    background: var(--glass-cyan);
    border-color: var(--accent-cyan);
    box-shadow: none;
    color: #ffffff;
}

.user-menu button#logoutBtn {
    border-color: rgb(255 255 255 / 38%);
    color: #dbcece;
}

.user-menu button#logoutBtn:hover {
    background: var(--glass-medium);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.sub-header-auth {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
    width: 100%;
    background: transparent;
    box-sizing: border-box;
}

.sub-footer-auth {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
    width: 100%;
    background: transparent;
    box-sizing: border-box;
}

.whats-new-btn {
    position: absolute;
    right: max(20px, calc(50vw - 600px + 20px));
    cursor: pointer !important;
    z-index: 10;
    transition: all 0.2s ease;
}

@media (min-width: 769px) {
    .server-version-btn {
        position: absolute;
        left: max(20px, calc(50vw - 600px + 20px));
        z-index: 10;
    }
}

.whats-new-btn:hover {
    background: rgb(16 18 18) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: none;
}

.whats-new-btn:hover .btn-text {
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .whats-new-btn {
        display: none !important;
    }

    .server-version-btn {
        position: static !important;
        left: auto !important;
    }
}

@media (min-width: 769px) {
    body.home-page-active .hero-updates-widget:not(.open) {
        display: none !important;
    }

    body.home-page-active .hero-updates-widget.open {
        display: flex !important;
        animation: fadeInWidget 0.25s ease-out forwards;
    }
}

@keyframes fadeInWidget {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body:not(.home-page-active) .sub-footer-auth {
    display: none;
}

.site-footer {
    width: 100%;
    padding: 20px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-disclaimer-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    margin: 0;
}

.footer-info-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-info-btn {
    background: rgb(16 18 18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    border: 1px solid #23383b;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 33px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.footer-info-btn:hover {
    background: var(--glass-medium);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.status-indicator-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
}

.status-indicator-dot.online {
    background: var(--accent-cyan-light);
    box-shadow: 0 0 8px var(--accent-cyan-light);
}

.status-indicator-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.hero {
    background: transparent;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px);
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.hero-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-updates-widget {
    width: 490px;
    max-width: 100%;
    margin: 0 auto;
    background: rgb(10 13 13);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(81, 181, 191, 0.18);
    border-top: 1px solid var(--accent-cyan);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 var(--glass-light);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(81, 181, 191, 0.12);
}

.updates-title-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.updates-badge {
    background: rgba(119, 209, 221, 0.12);
    color: var(--accent-cyan-light);
    border: 1px solid rgba(119, 209, 221, 0.3);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    letter-spacing: 1px;
}

.updates-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0;
}

.updates-ver {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan-light);
    letter-spacing: 1px;
    background: rgba(119, 209, 221, 0.06);
    padding: 2px 8px;
    border: 1px solid rgba(119, 209, 221, 0.15);
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.update-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: var(--glass-subtle);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 2px solid rgba(119, 209, 221, 0.2);
    text-decoration: none;
    cursor: default;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    overflow: hidden;
}

.update-item:hover {
    background: rgba(119, 209, 221, 0.08);
    border-color: rgba(119, 209, 221, 0.25);
    border-left-color: var(--accent-cyan-light);
    transform: none;
}

.update-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: max-content;
    min-width: 0;
    flex-shrink: 0;
}

.update-tag {
    font-size: 9px;
    font-weight: 800;
    padding: 1px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    background: rgba(119, 209, 221, 0.2);
    color: var(--accent-cyan-light);
}

.update-date {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

.update-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.update-heading {
    font-size: 12px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    display: block;
}

.update-item:hover .update-heading {
    color: #ffffff;
}

.update-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    display: block;
}

.updates-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(81, 181, 191, 0.12);
    display: flex;
    justify-content: center;
}

.all-updates-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    background: rgba(119, 209, 221, 0.05);
    border: 1px solid rgba(119, 209, 221, 0.25);
    color: var(--accent-cyan-light);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.all-updates-btn:hover {
    background: rgba(119, 209, 221, 0.15);
    border-color: var(--accent-cyan-light);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(119, 209, 221, 0.2);
}

.all-updates-btn svg {
    transition: transform 0.25s ease;
}

.all-updates-btn:hover svg {
    transform: translateX(4px);
}

.hero-content {
    margin-top: -60px;
}

.guest-auth .login-btn {
    background: rgb(16 18 18);
    border: 1px solid #23383b;
    box-shadow: none;
    color: #ffffff;
    text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 11px;
    height: 33px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transform: none;
    transition: all 0.2s ease;
}

.guest-auth .login-btn:hover {
    background: var(--glass-cyan);
    border-color: var(--accent-cyan);
    box-shadow: none;
}

.guest-auth .register-btn,
.user-menu .register-btn {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent-cyan-light);
    border: 1px solid var(--border-medium);
    box-shadow: 0 0 12px rgba(97, 201, 211, 0.45);
    color: #ffffff;
    text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 11px;
    box-sizing: border-box;
    text-transform: uppercase;
    transform: none;
    transition: all 0.2s ease;
    overflow: visible;
}

.guest-auth .register-btn .download-icon,
.user-menu .register-btn .download-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    stroke: currentColor;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.guest-auth .register-btn .btn-text,
.user-menu .register-btn .btn-text {
    color: #ffffff;
    font-weight: 400;
}

.guest-auth .register-btn:hover,
.user-menu .register-btn:hover {
    background: #65c4cd;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    color: #ffffff;
}

.guest-auth .register-btn .border-svg,
.user-menu .register-btn .border-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}

.guest-auth .register-btn .border-rect,
.user-menu .register-btn .border-rect {
    width: 100%;
    height: 100%;
    stroke: #8df3ff;
    stroke-width: 1px;
    stroke-dasharray: 12 38;
    animation: strokeMoveCW 4.5s linear infinite;
    filter: drop-shadow(0 0 2px var(--accent-cyan-light));
}

@keyframes strokeMoveCW {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -100;
    }
}

.hero-subtext {
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(81, 181, 191, 0.2);
}

.hero-badge {
    margin-top: 40px;
    margin-bottom: 0;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e, 0 0 4px #22c55e;
}


.site-footer {
    width: 100%;
    background: rgb(15 18 18);

    border-top: 1px solid rgba(var(--accent-cyan-rgb), 0.29);
    padding: 20px 0;
    margin-top: auto;
    box-sizing: border-box;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-disclaimer-text {
    font-size: 12px;
    color: #83d1de42;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.footer-update-text {
    font-size: 12px;
    color: #83d1de42;
    line-height: 1.5;
    margin: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-disclaimer-text,
    .footer-update-text {
        text-align: center;
    }
}


body,
#app {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.main-content::-webkit-scrollbar,
.main-content.page-enter::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}


body {
    background: transparent;
}

#orb-bg-container {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: -5;
    pointer-events: none;
    background: rgb(10 13 13);
    background-attachment: scroll;
}

#orb-bg-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 13, 13, 0.15);
    z-index: 1;
    pointer-events: none;
}

.noise {
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
    opacity: 0.035;
}






.hero-image-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/img/bg.png?v=1.0.35');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    pointer-events: none;
    display: none;
    filter: none;
}

.hero-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
    display: none;
    filter: none;
}

.hero-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: -1;
    pointer-events: none;
    display: none;
}

body.home-page-active .hero-image-bg,
body.home-page-active .hero-video-bg,
body.home-page-active .hero-bg-overlay {
    display: block;
}

body.home-page-active #app {
    flex: 1;
    min-height: 0;
}

body.home-page-active .hero {
    background: transparent;
    flex: 1;
    min-height: 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body.home-page-active .hero-content {
    margin-top: 40px;
}

.hero-tagline strong {
    color: #e2e8f0;
    font-weight: 700;
}


.hero-actions .primary-btn,
.hero-actions .secondary-btn {
    background: transparent;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transform: none;
}

.hero-actions .primary-btn:hover,
.hero-actions .secondary-btn:hover {
    border-color: #666666;
    background: var(--glass-light);
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.massive-title {
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #ffffff, #838e8f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: 0 0 40px rgba(237, 237, 237, 0.26);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0px;
    width: 100%;
}

.hero-tagline {
    margin-top: -6px;
    margin-bottom: 7px;
    font-size: 20px;
}

.hero-logo-img {
    max-width: 680px;
    width: 90%;
    height: auto;
    display: block;
    animation: logoGlow 4s ease-in-out infinite alternate;
    margin-bottom: -40px;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 15px rgba(81, 181, 191, 0.35));
    }

    100% {
        filter: drop-shadow(0 0 35px rgba(81, 181, 191, 0.7));
    }
}


.preloader-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 3px;
    background: rgba(255, 255, 255, 0.03);
    z-index: 999999;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan), 0 0 5px var(--accent-cyan);
    transition: width 0.3s ease-out;
}


.logout-btn {
    background: rgba(220, 38, 38, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.4);
    margin-top: 25px;
    width: 100%;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.1);
}

.logout-btn:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.7);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.45);
}

.dashboard-section {
    padding: 0;
}

.account-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


.character-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.change-password-card,
.character-section {
    margin-top: 0;
}


body.account-page-active .hero-image-bg,
body.account-page-active .hero-video-bg,
body.ranking-page-active .hero-image-bg,
body.ranking-page-active .hero-video-bg,
body.download-page-active .hero-image-bg,
body.download-page-active .hero-video-bg {
    display: block;
}

body.account-page-active .hero-bg-overlay,
body.ranking-page-active .hero-bg-overlay,
body.download-page-active .hero-bg-overlay {
    display: block;
    background: rgba(8, 10, 15, 0.45);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

}

body.account-page-active .dashboard-section,
body.ranking-page-active .dark-section,
body.download-page-active .download-section {
    background: transparent;
    padding: 20px;
}

body.ranking-page-active .page-hero,
body.download-page-active .page-hero {
    background: transparent;
    border-bottom: 1px solid var(--glass-cyan);
}

body.ranking-page-active .page-hero p,
body.download-page-active .page-hero p,
body.ranking-page-active .page-hero span,
body.download-page-active .page-hero span {
    color: #8892a8;
}


body.auth-page-active .hero-image-bg,
body.auth-page-active .hero-video-bg {
    display: block;
}

body.auth-page-active .hero-bg-overlay {
    display: block;
    background: rgba(8, 10, 15, 0.45);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

}

body.auth-page-active .auth-page {
    background: transparent;
    min-height: calc(100vh - 158px);
    padding: 10vh 20px 40px 20px;
    box-sizing: border-box;
}

body.auth-page-active .auth-card {
    background: #0000008c;
    border: 1px solid var(--glass-cyan);
    border-top: 1px solid var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}



body.account-page-active .account-card {
    background: rgb(10 13 13);
    border: 1px solid var(--glass-cyan);
    border-top: 1px solid var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}


body.account-page-active .character-card {
    background: rgb(10 13 13);
    border: 1px solid rgba(81, 181, 191, 0.12);
}

body.account-page-active .sub-header-auth {
    background: transparent;
    border-bottom: none;
}


body.account-page-active .account-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 950px) {
    body.account-page-active .sub-header-auth {
        display: none !important;
    }

    body.account-page-active .account-grid {
        grid-template-columns: 1fr;
    }

    body.account-page-active .account-sidebar-col {
        order: -1;
        border-right: none;
        padding-right: 0;
        margin-bottom: 24px;
    }
}

body.account-page-active .account-sidebar-col {
    order: -1;
}

body.account-page-active .account-content-col {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

body.account-page-active .tab-panel {
    display: none;
    flex-direction: column;
    gap: 24px;
}

body.account-page-active .tab-panel.active {
    display: flex;
}

body.account-page-active #panel-settings.active {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

body.account-page-active #panel-settings .account-card {
    flex: 1 1 300px;
}



body.account-page-active .sidebar-nav-card {
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;

    padding: 0;
}

body.account-page-active .sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.account-page-active .sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    color: #8892a8;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 600;
    background: rgb(10 13 13);
    border: 1px solid var(--glass-cyan);
    letter-spacing: 0.5px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.account-page-active .sidebar-nav-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

body.account-page-active .sidebar-nav-item:hover {
    background: rgb(10 13 13);
    color: #ffffff;
    border-color: var(--border-medium);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

body.account-page-active .sidebar-nav-item.active {
    background: rgb(10 13 13);
    color: #ffffff;
    border-color: rgba(81, 181, 191, 0.5);
    box-shadow: inset 1px 0 0 var(--accent-cyan-light), 0 0 20px var(--glass-cyan-strong);
}

body.account-page-active .sidebar-nav-item.logout-item {
    margin-top: 16px;
    background: rgb(10 13 13);
}



body.account-page-active .character-level {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent-cyan);
    color: #0c0f17;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}


body.account-page-active .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

body.account-page-active .character-card {
    position: relative;
    padding: 16px 16px 14px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-light);
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

body.account-page-active .character-card:hover {
    border-color: rgba(81, 181, 191, 0.2);
    background: rgba(0, 0, 0, 0.35);
}

body.account-page-active .character-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    padding-right: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.account-page-active .character-card p {
    font-size: 13px;
    color: #8892a8;
    margin: 0;
}




body.account-page-active .account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 10px;
    border-bottom: 1px solid var(--glass-light);
    transition: all 0.2s ease-in-out;
}

body.account-page-active .account-row:first-of-type {
    border-top: 1px solid var(--glass-light);
}



body.account-page-active .account-row:hover {
    background: var(--glass-subtle);
}

body.account-page-active .account-row span {
    font-size: 11px;
    color: #8892a8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

body.account-page-active .account-row strong {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-align: right;
}

@keyframes securityPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(81, 181, 191, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(81, 181, 191, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(81, 181, 191, 0);
    }
}



.auth-btn {
    margin-top: 20px;
}


@keyframes pageEnter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.main-content.page-enter,
.auth-card.page-enter,
#auth-portal .auth-card.page-enter {
    animation: pageEnter 0.25s ease-in-out;
}


#preloader {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 999999;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.done {
    opacity: 0;
    visibility: hidden;
}

#preloader-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--glass-light);
}

#preloader-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan), 0 0 6px var(--accent-cyan);
    transition: width 0.35s ease-out;
}

.blur-warmup {
    position: fixed;
    top: -1px;
    left: -1px;
    width: 1px;
    height: 1px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);

    pointer-events: none;
    z-index: -1;
}


.nav-btn {
    text-decoration: none;
    font-weight: 400;
}

.link-external-icon {
    margin-left: 0px;
    vertical-align: middle;
}

.lang-dropdown-container-margin {
    margin-left: 15px;
}

/* Fixed positioned lang dropdown (outside header, for blur effect) */
.lang-dropdown-container-fixed {
    position: fixed;
    top: 20px;
    right: max(20px, calc(50vw - 600px + 20px));
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 10005;
    width: 78px;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.lang-trigger .globe-icon,
.lang-trigger svg {
    display: block;
    flex-shrink: 0;
}

.lang-trigger #activeLangText {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

#accountDashboard {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.shimmer-row-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.shimmer-avatar {
    width: 32px;
    height: 32px;
}

.shimmer-label-small {
    width: 80px;
    height: 16px;
}

.shimmer-title-main {
    width: 80%;
    height: 22px;
    margin: 15px 0 10px 0;
}

.shimmer-text-full {
    width: 100%;
    height: 16px;
    margin-bottom: 6px;
}

.shimmer-text-partial {
    width: 60%;
    height: 16px;
}

.shimmer-title-sub {
    width: 180px;
    height: 22px;
    margin: 10px 0;
}

.shimmer-title-alt {
    width: 160px;
    height: 22px;
    margin: 10px 0;
}

.shimmer-button-large {
    width: 100%;
    height: 42px;
    margin-top: 15px;
}

.news-icon {
    color: #ffffff;
}

.premium-btn-disabled {
    background: #213b3f61;
    color: #7171718a;
    border: 1px solid #213b3f61;
    cursor: not-allowed;
    pointer-events: none;
}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

@media (min-width: 992px) {

    body.home-page-active .main-content,
    body.auth-page-active .main-content {
        overflow: hidden;
    }
}

/* Auth portal - renders at body level so backdrop-filter works */
#auth-portal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

body.auth-page-active #auth-portal {
    display: flex;
}

#auth-portal .auth-card {
    pointer-events: all;
    position: relative;

    background: rgb(10 13 13);
    border: 1px solid var(--glass-cyan);
    border-top: 1px solid var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    width: 90%;
    z-index: auto;
}

.download-card.glass-panel,
.ranking-card,
body.ranking-page-active .ranking-card,
body.account-page-active .account-card,
body.account-page-active .character-card,
body.account-page-active .sidebar-nav-item {
    background: rgb(10 13 13);

    border: 1px solid var(--glass-cyan);
    border-top: 1px solid var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ranking-card,
body.ranking-page-active .ranking-card {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.ranking-tabs,
body.ranking-page-active .ranking-tabs {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 16px auto;
}

.ranking-tabs button,
body.ranking-page-active .ranking-tabs button {
    font-size: 11px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ranking-tabs button:hover,
body.ranking-page-active .ranking-tabs button:hover {
    background: var(--glass-cyan);
    border-color: var(--accent-cyan);
    color: #ffffff;
    box-shadow: none;
}

/* ─── Compact Download Grid & Cards (Mobile Only, Sharp Borders) ─────────── */
@media (max-width: 768px) {

    /* Ranking Tabs: Smooth horizontal scrollbar on mobile */
    .ranking-tabs,
    body.ranking-page-active .ranking-tabs {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        gap: 6px;
        padding: 4px 16px 12px 16px;
        margin-bottom: 12px;
        box-sizing: border-box;
        scrollbar-width: none;
    }

    .ranking-tabs::-webkit-scrollbar {
        display: none;
    }

    .ranking-tabs button,
    body.ranking-page-active .ranking-tabs button {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0 14px;
        height: 34px;
        font-size: 11px;
    }

    /* Ranking Table: Clean 3-column mobile view (#, Player/Legion, Target Stat) */
    .ranking-card,
    body.ranking-page-active .ranking-card {
        width: 100%;
        margin: 0;
        border-left: none;
        border-right: none;
    }

    .ranking-table-wrapper {
        overflow-x: hidden;
        width: 100%;
    }

    .ranking-card table {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: auto !important;
    }

    .ranking-card th:nth-child(3),
    .ranking-card td:nth-child(3),
    .ranking-card th:nth-child(4),
    .ranking-card td:nth-child(4),
    .ranking-card th:nth-child(5),
    .ranking-card td:nth-child(5) {
        display: none !important;
    }

    .ranking-card th:nth-child(1),
    .ranking-card td:nth-child(1) {
        width: 36px !important;
        text-align: center;
        padding-left: 8px;
        padding-right: 4px;
    }

    .ranking-card th:nth-child(2),
    .ranking-card td:nth-child(2) {
        width: auto !important;
        padding-left: 8px;
    }

    .ranking-card th:nth-child(6),
    .ranking-card td:nth-child(6) {
        width: auto !important;
        text-align: right;
        padding-right: 14px;
    }

    .ranking-card th {
        white-space: nowrap;
        font-size: 11px;
        padding: 12px 8px;
    }

    .ranking-card td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .download-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 8px;
    }

    .download-card {
        padding: 8px 10px;
        gap: 6px;
    }

    .download-card .news-icon {
        width: 22px;
        height: 22px;
    }

    .download-card .news-icon svg {
        width: 12px;
        height: 12px;
    }

    .download-card .news-category {
        font-size: 10px;
    }

    .download-btn {
        padding: 6px 8px;
        font-size: 9px;
        letter-spacing: 0.5px;
    }
}

.ranking-table-wrapper,
body.ranking-page-active .ranking-table-wrapper {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;

    border: none;
    box-shadow: none;
    width: 100%;
}

body.ranking-page-active .dark-section {
    background: transparent;
}

body.ranking-page-active table,
body.ranking-page-active thead,
body.ranking-page-active tbody,
body.ranking-page-active tr,
body.ranking-page-active th,
body.ranking-page-active td {
    background: transparent;
}

body.account-page-active .account-sidebar-col,
body.account-page-active .account-sidebar-col .account-card,
body.account-page-active .account-sidebar-col .sidebar-nav-card {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;

    border: none;
    box-shadow: none;
}

body.account-page-active .sidebar-nav-item.logout-item {
    margin-top: 24px;
    background: rgb(10 13 13);

    border: 1px solid rgba(81, 181, 191, 0.2);
    color: #a0aac0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

body.account-page-active .sidebar-nav-item:hover,
body.account-page-active .sidebar-nav-item.logout-item:hover {
    background: rgb(10 13 13);
    border-color: rgba(81, 181, 191, 0.5);
    color: #ffffff;
    opacity: 1;
    box-shadow: 0 0 20px var(--glass-cyan-strong);
}

body.account-page-active .sidebar-nav-item.active {
    background: rgb(10 13 13);
    border-color: rgba(81, 181, 191, 0.5);
    color: #ffffff;
    opacity: 1;
    box-shadow: inset 1px 0 0 var(--accent-cyan-light), 0 0 20px var(--glass-cyan-strong);
}

@media (max-width: 768px),
(max-height: 750px) {
    body.home-page-active .update-item:nth-child(n+3) {
        display: none;
    }

    body.home-page-active .hero-updates-widget {
        padding: 12px 14px;
        gap: 8px;
    }

    body.home-page-active .updates-header {
        padding-bottom: 8px;
    }

    body.home-page-active .updates-list {
        gap: 6px;
    }

    body.home-page-active .update-item {
        padding: 8px 10px;
        gap: 8px;
    }

    body.home-page-active .update-desc {
        font-size: 11px;
    }
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Smooth Page Transitions */
.main-content {
    will-change: opacity, transform;
}

.main-content.page-enter {
    animation: pageEnterFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEnterFade {
    0% {
        opacity: 0.1;
        transform: translateY(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}