html {
    touch-action: manipulation;
}

body {
    margin: 0;
    padding-bottom: 0;
    background-color: #0c0c0c;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    font-family: "Inter", "Poppins", system-ui, -apple-system, sans-serif;
}

body[data-page="credits"] {
    padding-bottom: 0;
}

body[data-page="home"] {
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

body.home-has-background {
    background-image: linear-gradient(180deg, rgba(12, 12, 12, 0.45), rgba(12, 12, 12, 0.65)), var(--home-background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.home-has-background::before,
body.home-has-background::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body.home-has-background::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.4) 100%);
}

body.home-has-background::after {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.45) 100%);
}

.home-header {
    background: rgba(10, 10, 12, 0.55);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.home-header-inner {
    padding: 16px 32px;
}

.home-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.home-nav-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.15s ease;
}

.home-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #5b7cff;
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.home-nav-link:hover {
    color: #ffffff;
}

.home-nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.home-login-button {
    background: #5b7cff;
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(91, 124, 255, 0.35);
}

.home-main {
    padding: 140px 20px 120px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 70px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.home-hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.home-hero-panel {
    max-width: 720px;
    padding: 40px 44px;
    background: rgba(12, 12, 12, 0.45);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: center;
}

.home-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.home-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.home-subtitle {
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    max-width: 520px;
}

.home-cta-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.home-primary-cta,
.home-secondary-cta {
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-primary-cta {
    background: #5b7cff;
    color: #fff;
    box-shadow: 0 14px 26px rgba(91, 124, 255, 0.35);
}

.home-secondary-cta {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-primary-cta:hover,
.home-secondary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.home-primary-cta:active,
.home-secondary-cta:active {
    transform: translateY(0);
}

.home-tertiary-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.home-tertiary-link:hover {
    color: #ffffff;
}

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

.home-feature-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 22px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 124, 255, 0.6);
}

.home-feature-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(91, 124, 255, 0.15);
}

.home-feature-icon img {
    width: 22px;
    height: 22px;
}

.home-feature-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.home-feature-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.98rem;
}

.home-feature-card span {
    color: rgba(91, 124, 255, 0.95);
    font-weight: 600;
    margin-top: auto;
}

.credits-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 132px 20px 120px;
    position: relative;
    z-index: 1;
}

.credits-hero {
    text-align: center;
    margin: 0 auto 28px;
    max-width: 720px;
}

.credits-eyebrow {
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.62);
}

.credits-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
    letter-spacing: -0.02em;
}

.credits-subtitle {
    margin: 12px 0 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 240px));
    gap: 18px;
    justify-content: center;
}

.credits-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 0;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.credits-card::before {
    content: "";
    position: absolute;
    inset: -45%;
    background: radial-gradient(circle at center, rgba(91, 124, 255, 0.22), rgba(91, 124, 255, 0));
    opacity: 0;
    transform: scale(0.65);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.credits-card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -65%;
    width: 55%;
    height: 320%;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: rotate(18deg);
    opacity: 0;
    transition: left 0.45s ease, opacity 0.25s ease;
    pointer-events: none;
}

.credits-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(91, 124, 255, 0.55);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(91, 124, 255, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
}

.credits-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.credits-card:hover::after {
    left: 130%;
    opacity: 1;
}

.credits-card-photo {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(10, 10, 10, 0.9);
    margin: 0;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.credits-card-photo-ring {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    padding: 1px;
    margin: 0 auto 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 16px rgba(120, 170, 255, 0.24);
    z-index: 1;
}

.credits-card-photo-ring::before {
    content: "";
    position: absolute;
    inset: -50%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff003c, #ff5f00, #ffe600, #4dff00, #00ffd9, #00a2ff, #6a00ff, #ff00c8, #ff003c);
    filter: saturate(1.35) brightness(1.15);
    animation: credits-rainbow-spin 1.2s linear infinite;
    z-index: 0;
}

.credits-card:hover .credits-card-photo {
    transform: scale(1.07);
    border-color: rgba(91, 124, 255, 0.75);
    box-shadow: 0 12px 26px rgba(91, 124, 255, 0.28);
}

@keyframes credits-rainbow-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .credits-card-photo-ring::before {
        animation: none;
    }
}

.credits-card-name {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
}

.credits-card-role {
    margin: 6px 0 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    min-height: 1.35em;
}

.credits-card-discord {
    margin: 6px 0 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.86rem;
    word-break: break-word;
    min-height: 1.35em;
}

.credits-empty {
    margin: 28px 0 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
}

@media (max-width: 720px) {
    .home-header-inner {
        padding: 12px 20px;
    }

    .home-main {
        padding-top: 120px;
    }

    .home-hero-panel {
        padding: 32px 24px;
    }

    .home-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .home-primary-cta,
    .home-secondary-cta {
        justify-content: center;
    }

    .credits-main {
        padding-top: 116px;
    }

    .credits-grid {
        grid-template-columns: minmax(240px, 320px);
    }
}

/* HEADER ADS DISABLED - Commented out for future feature flag support
Header ad positioning - integrated into header
.header-ad {
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 320px;
    flex-shrink: 0;
}

Responsive header ads - show different numbers based on screen width
@media (max-width: 319px) {
    .header-ad {
        display: none !important;
    }
}

2 ads fit: 320px * 2 = 640px
@media (min-width: 320px) and (max-width: 639px) {
    #header-ad-1,
    #header-ad-2 {
        display: flex !important;
    }
    #header-ad-3,
    #header-ad-4,
    #header-ad-5,
    #header-ad-6,
    #header-ad-7,
    #header-ad-8 {
        display: none !important;
    }
}

3 ads fit: 320px * 3 = 960px
@media (min-width: 640px) and (max-width: 959px) {
    #header-ad-1,
    #header-ad-2,
    #header-ad-3 {
        display: flex !important;
    }
    #header-ad-4,
    #header-ad-5,
    #header-ad-6,
    #header-ad-7,
    #header-ad-8 {
        display: none !important;
    }
}

4 ads fit: 320px * 4 = 1280px
@media (min-width: 960px) and (max-width: 1279px) {
    #header-ad-1,
    #header-ad-2,
    #header-ad-3,
    #header-ad-4 {
        display: flex !important;
    }
    #header-ad-5,
    #header-ad-6,
    #header-ad-7,
    #header-ad-8 {
        display: none !important;
    }
}

5 ads fit: 320px * 5 = 1600px
@media (min-width: 1280px) and (max-width: 1599px) {
    #header-ad-1,
    #header-ad-2,
    #header-ad-3,
    #header-ad-4,
    #header-ad-5 {
        display: flex !important;
    }
    #header-ad-6,
    #header-ad-7,
    #header-ad-8 {
        display: none !important;
    }
}

6 ads fit: 320px * 6 = 1920px
@media (min-width: 1600px) and (max-width: 1919px) {
    #header-ad-1,
    #header-ad-2,
    #header-ad-3,
    #header-ad-4,
    #header-ad-5,
    #header-ad-6 {
        display: flex !important;
    }
    #header-ad-7,
    #header-ad-8 {
        display: none !important;
    }
}

7 ads fit: 320px * 7 = 2240px
@media (min-width: 1920px) and (max-width: 2239px) {
    #header-ad-1,
    #header-ad-2,
    #header-ad-3,
    #header-ad-4,
    #header-ad-5,
    #header-ad-6,
    #header-ad-7 {
        display: flex !important;
    }
    #header-ad-8 {
        display: none !important;
    }
}

8 ads fit: 320px * 8 = 2560px
@media (min-width: 2240px) {
    #header-ad-1,
    #header-ad-2,
    #header-ad-3,
    #header-ad-4,
    #header-ad-5,
    #header-ad-6,
    #header-ad-7,
    #header-ad-8 {
        display: flex !important;
    }
}

Hide all ads by default
#header-ad-1,
#header-ad-2,
#header-ad-3,
#header-ad-4,
#header-ad-5,
#header-ad-6,
#header-ad-7,
#header-ad-8 {
    display: none !important;
}

Override for screens that should show ads - these need to be more specific than inline styles
@media (min-width: 320px) {
    #header-ad-1 {
        display: flex !important;
    }
}

@media (min-width: 640px) {
    #header-ad-2 {
        display: flex !important;
    }
}

@media (min-width: 960px) {
    #header-ad-3 {
        display: flex !important;
    }
}

@media (min-width: 1280px) {
    #header-ad-4 {
        display: flex !important;
    }
}

@media (min-width: 1600px) {
    #header-ad-5 {
        display: flex !important;
    }
}

@media (min-width: 1920px) {
    #header-ad-6 {
        display: flex !important;
    }
}

@media (min-width: 2240px) {
    #header-ad-7,
    #header-ad-8 {
        display: flex !important;
    }
}
END HEADER ADS DISABLED */

header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    min-height: 100px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 4;
    transition-duration: 0.5s;
    padding: 0px 20px;
    column-gap: 10px;
}

.header-transparent {
    background-color: #000000c2;
}

.header-logo {
    aspect-ratio: 2.8/1;
    height: 95px;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 0;
    min-height: 0;
}

.header-logo-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo variants */
.header-logo-full {
    display: block;
}

.header-logo-small {
    display: none;
}

.login-button {
    background-color: #5865f2;
    border: none;
    border-radius: 200px;
    display: flex;
    align-items: center;
    padding: 8px 13px;
    column-gap: 5px;
    color: rgb(255, 255, 255);
    font-family: poppins, Arial;
    font-size: 1.1rem;
    font-weight: 700;
    transition-duration: 0.1s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Login button variants */
.login-button-full {
    display: flex;
}

.login-button-medium {
    display: none;
}

.login-button-small {
    display: none;
}

/* Logged-in button variants */
.login-button-logged-in-full {
    display: none;
}

.login-button-logged-in-small {
    display: none;
}

/* Keep Discord login visible on every page/state for subdomain templates */
.login-button-logged-in-full,
.login-button-logged-in-small {
    display: none !important;
}


.header-main-row {
    position: relative;
}

.header-center-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-header-menu-wrapper {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex-shrink: 0;
    z-index: 10005;
}

.mobile-header-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 13, 18, 0.78);
    color: #fff;
    font-family: poppins, Arial;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mobile-header-menu-button:hover {
    background: rgba(20, 24, 32, 0.92);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.mobile-header-menu-button-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.mobile-header-menu-button-icon span {
    width: 15px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-header-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 11, 16, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 10020;
}

.mobile-header-menu-open {
    display: flex;
}

.mobile-header-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    font-family: poppins, Arial;
    font-weight: 500;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.mobile-header-menu-link img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mobile-header-menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.mobile-header-menu-link-active {
    background: rgba(91, 124, 255, 0.16);
    color: #fff;
}

.login-button img {
    width: 25px;
}

.header-left {
    display: flex;
    align-items: center;
    column-gap: 30px;
    flex-shrink: 1;
    min-width: 0;
}

.dropdown-wrapper {
    width: 300px;
    position: relative;
}

.default-dropdown-wrapper {
    width: 200px;
    position: relative;
}

.dropdown {
    color: white;
    font-family: poppins;
    font-weight: 500;
    display: flex;
    column-gap: 10px;
    align-items: center;
    background-color: #ffffff18;
    padding: 0px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition-duration: 0.2s;
    position: relative;
    width: calc(100% - 20px);
    justify-content: space-between;
    max-height: 90vh;
    overflow-y: auto;
}

.default-dropdown {
    color: white;
    font-family: poppins;
    font-weight: 500;
    display: flex;
    column-gap: 10px;
    align-items: center;
    background-color: #ffffff18;
    padding: 0px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition-duration: 0.2s;
    position: relative;
    width: calc(100% - 20px);
    justify-content: space-between;
    overflow-y: auto;
    height: 40px;
}

.dropdown-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    margin: 4px 0px;
}

.dropdown-arrow {
    width: 20px;
}

.default-dropdown-arrow {
    width: 20px;
}

.dropdown-menu {
    position: absolute;
    background-color: #000000c4;
    z-index: 1000;
    width: calc(100% - 20px);
    padding: 10px;
    left: 0;
    top: 65px;
    cursor: default;
    border-radius: 15px;
    animation: fadeIn 0.5s ease-out forwards;
    box-shadow: rgba(0, 0, 0, 0.288) 0px 3px 10px 2px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.default-dropdown-menu {
    position: absolute;
    background-color: #000000c4;
    width: calc(100% - 20px);
    padding: 5px;
    left: 0;
    top: 45px;
    cursor: default;
    border-radius: 10px;
    animation: fadeIn 0.5s ease-out forwards;
    box-shadow: rgba(0, 0, 0, 0.288) 0px 3px 10px 2px;
    z-index: 1;
    box-sizing: border-box;
    overflow-x: hidden;
}

.default-dropdown-default {
    margin: 0;
}

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

.fade-out-animation {
    animation: fadeOut 0.3s ease-in forwards;
}

.top-menu-item-dropdown {
    display: flex;
    column-gap: 10px;
    align-items: center;
}

.menu-item-dropdown {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: transparent;
    border: none;
    color: white;
    font-family: poppins;
    font-weight: 500;
    font-size: 1rem;
    column-gap: 10px;
    border-radius: 9px;
    padding-left: 10px;
    transition-duration: 0.1s;
    cursor: pointer;
    text-decoration: none;
}

.default-menu-item-dropdown {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: transparent;
    border: none;
    color: white;
    font-family: poppins;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 9px;
    padding-left: 10px;
    transition-duration: 0.1s;
    cursor: pointer;
    column-gap: 5px;
}

.menu-item-dropdown-selected {
    pointer-events: none;
    transition: none !important;
    background-color: white;
    color: black;
    box-shadow: rgba(255, 255, 255, 0.171) 0px 3px 10px 2px;
}

.default-menu-item-dropdown-selected {
    background-color: white;
    color: black;
    box-shadow: rgba(255, 255, 255, 0.171) 0px 3px 10px 2px;
    transition: none !important;
    pointer-events: none;
}

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

@keyframes flip2 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

@keyframes flip2Reverse {
    from {
        transform: rotate(180deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.background-video {
    height: 100vh;
    width: 100vw;
    object-fit: cover;
    pointer-events: none;
}

.background-wrapper {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
}

.h1one {
    color: white;
    font-family: poppins;
    font-size: 6rem;
    font-weight: 600;
    margin: 0;
    line-height: 100px;
    animation: makeBigger 1s forwards;
    animation-delay: 1s;
    animation-duration: 1s;
    transform: scale(0.9);
    text-align: center;
    padding: 0 20px;
}

@keyframes makeBigger {
    0% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.h1two {
    margin: 0px;
    text-align: center;
    color: white;
    font-family: poppins, Arial;
    z-index: 2;
    font-size: clamp(1rem, 4rem, 4rem);
    text-shadow: 0px 3px 10px #00000062;
    background-color: rgba(0, 0, 0, 0.603);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 700;
    display: inline-block;
    padding: 0px 30px;
    border-radius: 30px 30px 0 0;
    white-space: nowrap;
}

.h1three {
    color: white;
    font-family: poppins;
    font-size: 4rem;
    font-weight: 600;
    margin: 0;
    line-height: 100px;
    animation: makeBigger 1s forwards;
    animation-delay: 1s;
    animation-duration: 1s;
    transform: scale(0.9);
    text-align: center;
    padding: 0 20px;
}

.value-list-header-wrapper {
    position: absolute;
    bottom: 3px;
    width: 100vw;
    display: flex;
    justify-content: center;
}

.background-wrapper p {
    color: white;
    font-family: poppins;
    font-weight: 400;
    margin-top: 0;
    font-size: 1.3rem;
}

.background-content-center {
    z-index: 2;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.background-content-center p {
    text-align: center;
    animation: makeSmaller 1s forwards;
    animation-delay: 1s;
    animation-duration: 1s;
    transform: scale(1.1);
    padding: 10px;
}

@keyframes makeSmaller {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.background-gradient {
    background: linear-gradient(to bottom, #f0f0f000, #0c0c0c);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 100px;
}

.value-list-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0px 0px 10px 0px;
    box-shadow: rgba(0, 0, 0, 0.329) 0px 3px 10px 2px;
    background-color: #111;
    position: relative;
    z-index: 1;
}

.value-list-items {
    display: flex;
    justify-content: center;
    width: 100vw;
}

.value-list-item {
    background-color: #1c1c1c;
    width: 100%;
    max-width: 200px;
    padding: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: white;
    font-family: poppins;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.315) 0px 3px 10px 2px;
    transition-duration: 0.5s;
    position: relative;
    justify-self: center;
    cursor: pointer;
}

.value-list-item-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.value-list-item-decoration-top-left {
    position: absolute;
    width: 50%;
    left: 0;
    top: 0;
    z-index: 0;
}

.value-list-item-decoration-bottom-right {
    position: absolute;
    width: 50%;
    right: 0;
    bottom: 0;
    transform: scaleY(-1) scaleX(-1);
    z-index: 0;
}

.value-list-item-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.value-list-item-category {
    font-size: 1.2rem;
    margin: 0px 0px 10px 0px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.value-list-item-information-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: white 1px solid;
    position: relative;
    z-index: 1;
}

.value-list-item-info {
    margin: 3px 0px 3px 0px;
}

.value-list-items-inner {
    width: 60vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    -ms-grid-column-align: center;
    column-gap: 50px;
    row-gap: 30px;
}

.value-list-items-inner-small-icons {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    column-gap: 10px;
    row-gap: 15px;
}

/* Ad placeholder styles - removed to prevent conflicts */

.value-list-scroller {
    margin-top: -100px;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 0;
}

.value-list-scroller-item {
    width: 350px;
    height: 500px;
    background-image: linear-gradient(#222, #0f0f0f);
    border-radius: 30px;
    box-shadow: rgba(0, 0, 0, 0.596) 0px 3px 20px 2px;
    position: relative;
    font-family: poppins;
    color: white;
    transition-duration: 0.2s;
    overflow-x: hidden;
    cursor: pointer;
}

.value-list-scroller-segment {
    display: flex;
    align-items: center;
    column-gap: 35px;
    animation: 15s slide infinite linear;
    padding: 0px 35px 0px 0px;
    transform: scale(1);
    overflow-y: visible;
}

.value-list-scroller-item-image {
    width: 100%;
    height: 200px;
    border-radius: 30px;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
}

.value-list-scroller-item-image-shadow {
    height: 200px;
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    filter: blur(40px);
}

.value-list-scroller-decoration {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 150px;
    height: 150px;
}

.value-list-scroller-title {
    font-weight: 600;
    font-size: 2rem;
    margin: 10px 0px 0px 25px;
    line-height: 40px;
    position: relative;
    z-index: 1;
}

.value-list-scroller-description {
    width: 300px;
    margin: 8px 0px 0px 25px;
    position: relative;
}

.discover-button {
    background-color: white;
    margin: 15px 0px 0px 25px;
    border: none;
    border-radius: 200px;
    display: flex;
    align-items: center;
    padding: 4px 10px 4px 4px;
    column-gap: 10px;
    color: black;
    font-family: poppins;
    font-size: 1.1rem;
    font-weight: 600;
    transition-duration: 0.1s;
    cursor: pointer;
}

.discover-button img {
    width: 30px;
}

@keyframes slide {
    from {
        transform: translateX(0%) scale(1);
    }
    to {
        transform: translateX(-100%) scale(1);
    }
}

@keyframes smallSlide {
    from {
        transform: translateX(0%) scale(0.6);
    }
    to {
        transform: translateX(-100%) scale(0.6);
    }
}

.value-list-banner-image {
    width: 100vw;
    height: 450px;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
}

.value-list-banner-image-shadow {
    width: 100vw;
    height: 450px;
    position: absolute;
    top: 110px;
    left: 0;
    right: 0;
    filter: blur(61px);
}

.header-translucent {
    background-color: #000000c2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.banner-error-fallback {
    object-fit: contain;
}

.value-list-filter-button {
    background-color: white;
    border: none;
    border-radius: 200px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    column-gap: 5px;
    color: black;
    font-family: poppins, Arial;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: rgba(255, 255, 255, 0.308) 0px 1.5px 4px 1px;
    transition-duration: 0.1s;
    cursor: pointer;
    color: black;
    position: relative;
}

.value-list-filter-button img {
    width: 25px;
}

.value-list-searchbar {
    background-color: #00000059;
    border: none;
    font-family: poppins, Arial;
    color: white;
    padding: 5px 12px;
    font-size: 1.1rem;
    border-radius: 100px;
    outline: none;
    width: 300px;
    transition-duration: 0.2s;
    scroll-margin-top: 10px;
}

.value-list-searchbar:focus {
    background-color: #11111159;
}

.value-list-searchbar::placeholder {
    color: white;
}

fieldset {
    border: none;
}

.filter-area-value-list {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
    padding: 0px;
    flex-wrap: wrap;
    row-gap: 20px;
}

.filter-area-trade-calculator {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
    flex-wrap: wrap;
    row-gap: 10px;
    background-color: #1b1b1b;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: fit-content;
    z-index: 2;
    padding: 10px 0px;
}

.background-tint {
    background-color: rgba(0, 0, 0, 0.664);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-tint-filter {
    z-index: 6;
}

.filter-popup {
    background-image: linear-gradient(53deg, #111, #222);
    color: white;
    font-family: poppins, Arial;
    padding: 20px;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.596) 0px 3px 20px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeIn 0.5s ease-out forwards;
    max-width: 60vw;
    max-height: 90vh;
    overflow-y: scroll;
}

.item-settings-popup {
    background-image: linear-gradient(53deg, #111, #222);
    color: white;
    font-family: poppins, Arial;
    padding: 20px;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.596) 0px 3px 20px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeIn 0.5s ease-out forwards;
    max-width: 100vw;
    max-height: 90vh;
    overflow-y: visible;
}

.add-item-popup {
    background-image: linear-gradient(53deg, #111, #222);
    color: white;
    font-family: poppins, Arial;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.596) 0px 3px 20px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeIn 0.5s ease-out forwards;
    max-width: 100vw;
    overflow: hidden;
    height: 70vh;
}

.category-popup-trade-calculator {
    background-image: linear-gradient(53deg, #111, #222);
    color: white;
    font-family: poppins, Arial;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.596) 0px 3px 20px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeIn 0.5s ease-out forwards;
    overflow: hidden;
    height: 70vh;
}

.popup-decoration {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35%;
    height: 35%;
    object-fit: contain;
    object-position: bottom right;
    transform: scaleX(-1);
    opacity: 0.4;
}

.close-button {
    width: 35px;
    height: 35px;
    object-fit: contain;
    position: fixed;
    right: 10px;
    top: 10px;
    cursor: pointer;
    transition-duration: 0.2s;
}

.close-button2 {
    width: 35px;
    height: 35px;
    object-fit: contain;
    cursor: pointer;
    transition-duration: 0.2s;
}

.small-icon-button {
    width: 35px;
    height: 35px;
    object-fit: contain;
    cursor: pointer;
}

.h2one img {
    filter: brightness(10000%);
    width: 50px;
    height: 50px;
    padding: 0px 15px;
}

.h2one {
    margin: 0;
    display: flex;
    align-items: center;
    column-gap: 10px;
    font-size: 2rem;
    font-weight: 500;
}

.filter-text-bold {
    text-align: center;
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0px;
    position: relative;
    z-index: 1;
}

.filter-text {
    display: flex;
    align-items: center;
    justify-content: left;
    column-gap: 10px;
    margin-top: 8px;
    position: relative;
}

.filter-text p {
    text-align: left;
    display: block;
    margin: 0;
    white-space: nowrap;
}

.small-input {
    background-color: #222;
    border: none;
    width: 80px;
    font-family: poppins, Arial;
    font-size: 1.1rem;
    color: white;
    outline: none;
    padding: 4px;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.322) 0px 3px 20px 2px;
    transition-duration: 0.1s;
}

.small-input:focus {
    box-shadow: rgba(172, 172, 172, 0.322) 0px 0px 7px 2px;
}

.error-text {
    color: #ff1111;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 5px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.error-text img {
    width: 15px;
    height: 15px;
    margin-bottom: 2px;
    object-fit: contain;
}

.checkbox-lists {
    display: flex;
    justify-content: center;
    column-gap: 30px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.checkbox-list {
    display: grid;
    grid-template-columns: min-content min-content;
    column-gap: 10px;
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    z-index: 1;
    opacity: 0;
}

.checkbox-overlay {
    position: absolute;
    top: 3px;
    left: 6px;
    width: 20px;
    height: 20px;
    background-color: #222;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.322) 0px 3px 20px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-overlay-selected {
    background-color: white;
}

.checkbox-overlay img {
    width: 15px;
    height: 15px;
}

.category-filter-button-area {
    display: flex;
    justify-content: center;
    column-gap: 10px;
    flex-wrap: wrap;
    row-gap: 10px;
    width: 60vw;
}

.category-filter-button-area-filter-popup {
    display: flex;
    justify-content: center;
    column-gap: 10px;
    flex-wrap: wrap;
    row-gap: 10px;
    width: 60vw;
}

.misc-button-area {
    display: flex;
    justify-content: center;
    column-gap: 10px;
    flex-wrap: wrap;
    row-gap: 10px;
    width: 60vw;
}

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

.category-filter-button {
    background-color: #00000059;
    border: none;
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    column-gap: 5px;
    color: white;
    font-family: poppins, Arial;
    font-size: 1.1rem;
    font-weight: 500;
    transition-duration: 0.3s;
    cursor: pointer;
    justify-content: center;
}

.section-button {
    background-color: #00000059;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    column-gap: 5px;
    color: white;
    font-family: poppins, Arial;
    font-size: 1.1rem;
    font-weight: 500;
    transition-duration: 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.section-button:hover {
    background-color: #00000094;
}

.section-button img {
    height: 25px;
}

.logout-button {
    background-color: #ff00001f;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    column-gap: 5px;
    color: rgb(255, 0, 0);
    font-family: poppins, Arial;
    font-size: 1.1rem;
    font-weight: 500;
    transition-duration: 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.logout-button:hover {
    background-color: #00000094;
}

.logout-button img {
    height: 25px;
}

.report-button {
    background-color: #1a0000;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    column-gap: 5px;
    color: rgb(255, 0, 0);
    font-family: poppins, Arial;
    font-size: 1.1rem;
    font-weight: 500;
    transition-duration: 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.report-button:hover {
    background-color: #00000094;
}

.report-button img {
    height: 25px;
}

.filter-area-value-list-outer {
    display: flex;
    align-items: center;
    flex-direction: column;
    row-gap: 20px;
    margin: 25px 0px;
    position: relative;
    z-index: 1;
}

.category-filter-button-selected {
    background-color: white;
    color: black;
    pointer-events: none;
}

.value-range-slider-background {
    background-color: #333;
    width: 200px;
    height: 6px;
    position: relative;
    border-radius: 10px;
}

.value-range-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.value-range-slider-highlighted {
    background-color: #ddd;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    box-shadow: rgba(255, 255, 255, 0.336) 0px 0px 10px 1px;
    border-radius: 10px;
}

.value-range-slider-knob {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    top: -5px;
    left: -5px;
    border-radius: 100px;
}

.value-range-slider-knob-right {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    top: -5px;
    right: -5px;
    border-radius: 100px;
}

.value-range-slider-hidden {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    position: absolute;
    left: -8px;
    right: -8px;
    top: -7px;
    z-index: 1;
    pointer-events: none;
    outline: none;
}

::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 100px;
    pointer-events: auto;
    cursor: grab;
    touch-action: pan-y;
}

.loader {
    width: 60px;
    aspect-ratio: 1;
    color: white;
    background: repeating-conic-gradient(from -47deg, #0000 0deg, currentColor 1deg 91deg, #0000 94deg 180deg);
    display: flex;
    animation: l12-0 2s infinite linear;
}
.loader::before,
.loader::after {
    content: "";
    flex: 1;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    animation: l12 1s infinite alternate;
    transform-origin: bottom left;
}
.loader::after {
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
    transform-origin: top right;
}
@keyframes l12-0 {
    0%,
    49.9% {
        transform: scaleX(1);
    }
    50%,
    100% {
        transform: scaleX(-1);
    }
}
@keyframes l12 {
    0%,
    20% {
        transform: rotate(0deg);
    }
    80%,
    100% {
        transform: rotate(-270deg);
    }
}

.preload-display {
    background-color: #111;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preload-text {
    font-family: poppins, Arial;
    color: white;
    display: flex;
    align-items: center;
    column-gap: 30px;
    font-size: 3rem;
    font-weight: 600;
}

footer {
    background-color: #1b1b1b;
    color: white;
    font-family: poppins, Arial;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

body[data-page="home"] footer {
    background: rgba(10, 10, 12, 0.84);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    margin-top: auto;
    padding: 20px 16px 28px;
    box-sizing: border-box;
}

.small-link {
    display: flex;
    align-items: center;
    text-decoration: underline;
    color: white;
    column-gap: 5px;
    line-height: 50px;
}

.small-link img {
    width: 18px;
}

.contact-button {
    background-color: white;
    border: none;
    border-radius: 200px;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    column-gap: 10px;
    color: black;
    font-family: poppins;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: rgba(255, 255, 255, 0.308) 0px 0px 8px 2px;
    transition-duration: 0.1s;
    cursor: pointer;
    text-decoration: none;
}

.contact-button img {
    width: 30px;
}

.privacy-policy-wrapper {
    display: flex;
    justify-content: center;
    width: 100vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.privacy-policy {
    color: white;
    font-family: poppins, Arial;
    width: 75%;
    max-width: 1000px;
}

.privacy-policy-header {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 10px;
}

.privacy-policy a {
    color: white;
}

.privacy-policy a:link {
    color: white;
}

.privacy-policy a:visited {
    color: white;
}

.no-results {
    color: white;
    font-family: poppins, Arial;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 500;
    width: 100%;
}

/* Trade Calculator Styles */
.trade-calculator-container {
    display: flex;
    justify-content: center;
    width: 100vw;
    position: relative;
    z-index: 1;
}

.trade-calculator-output {
    font-family: Poppins, Arial;
    color: white;
    font-weight: 500;
    text-align: center;
    margin: 0;
    font-size: 2rem;
}

.trade-calculator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 30px;
    row-gap: 20px;
    width: 60vw;
    max-width: 100%;
    color: white;
    font-family: poppins, Arial;
    justify-self: center;
    align-self: center;
}

.trade-calculator-trades {
    background-color: #ffffff0a;
    width: 100%;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.116) 0px 1.5px 15px 2px;
    padding-bottom: 10px;
    justify-self: center;
    min-height: auto;
    overflow: hidden;
}

.trade-calculator-info {
    display: flex;
    justify-content: left;
    align-items: center;
    column-gap: 30px;
    padding: 20px;
    position: relative;
}

.trade-calculator-add-item {
    width: 30%;
    min-width: 100px;
    max-width: 250px;
    aspect-ratio: 1/1 !important;
    background-color: white;
    border: none;
    border-radius: 30px;
    box-shadow: rgba(255, 255, 255, 0.329) 0px 0px 15px 1px;
    position: relative;
    transition-duration: 0.8s;
    cursor: pointer;
}

.trade-calculator-add-item img {
    width: 60%;
}

.trade-calculator-info-title {
    font-weight: 600;
    font-size: 2rem;
    margin: 0px;
}

.trade-calculator-info-inner {
    font-size: 1.2rem;
    margin: 0px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.watermark {
    position: absolute;
    opacity: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    right: 10px;
    bottom: 10px;
    flex-direction: column;
}

.watermark img {
    width: 100px;
    aspect-ratio: 2.8/1;
    object-fit: cover;
}

.watermark p {
    margin: 0;
}

.trade-source-label {
    color: #ff4d4d;
    opacity: 0.55;
    font-size: 0.85rem;
    font-weight: 400;
}

.trade-source-label-inline {
    margin-top: 24px;
    margin-bottom: 0;
    color: #ff2b2b;
    opacity: 0.9;
    font-size: 0.95rem;
}

.trade-side {
    flex: 1;
    background: var(--background-color-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.trade-side h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.trade-items-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trade-search {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-color);
    color: var(--text-color);
    width: 100%;
}

.selected-items {
    min-height: 100px;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 1rem;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

.trade-middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.trade-arrow {
    font-size: 2rem;
    color: var(--text-color);
}

.calculate-button {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.trade-total {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.trade-result {
    text-align: center;
    padding: 1rem;
    border-radius: 6px;
    min-width: 200px;
}

.trade-calculator-item-value {
    background-color: rgba(0, 0, 0, 0.603);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    padding: 5px 0px;
    font-size: 1rem;
    font-weight: 500;
}

.trade-calculator-item {
    width: 90%;
    aspect-ratio: 1/1;
    align-self: center;
    justify-self: center;
    border-radius: 15px;
    max-width: 150px;
    position: relative;
    font-family: poppins, Arial;
    transition-duration: 0.1s;
    cursor: pointer;
    color: white;
    background-color: #202020;
}

.trade-calculator-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    row-gap: 15px;
}

.trade-calculator-item-amount {
    background-color: #000000b2;
    min-width: 8px;
    height: 14px;
    padding: 0 5px;
    border-radius: 100px;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(50%) translateY(-76%);
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.value-display {
    font-weight: 600;
}

.our-games-section {
    font-family: poppins, Arial;
    color: white;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
}

.our-games-section h2 {
    text-align: center;
    font-size: 1.8rem;
}

.our-games-card {
    display: grid;
    grid-template-columns: 2fr 3fr;
    border-radius: 30px;
    background-image: linear-gradient(to right, #222, #0c0c0c);
    box-shadow: rgba(0, 0, 0, 0.315) 0px 3px 10px 2px;
    width: 50vw;
    max-width: 800px;
    height: fit-content;
    overflow: hidden;
    column-gap: 30px;
    position: relative;
    transform: translateX(100%);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, scale 0.3s;
    opacity: 0;
}

.our-games-card-left {
    grid-template-columns: 3fr 2fr;
    background-image: linear-gradient(to left, #222, #0c0c0c);
    transform: translateX(-100%);
}

.our-games-image {
    height: 100%;
    width: 40%;
    object-fit: cover;
    border-radius: 30px;
    position: absolute;
    z-index: 1;
}

.our-games-image-left {
    right: 0;
}

.our-games-image-shadow {
    object-fit: cover;
    position: absolute;
    width: 40%;
    top: 0px;
    bottom: 0;
    filter: blur(40px);
}

.our-games-image-shadow-left {
    right: 40px;
}

.our-games-buttons {
    display: flex;
    align-items: center;
    column-gap: 15px;
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    flex-wrap: wrap;
    row-gap: 10px;
}

.our-games-h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    margin: 10px 0px;
    line-height: 40px;
}

.filter-button-number {
    background-color: rgb(255, 43, 43);
    color: white;
    font-family: poppins, Arial;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 100px;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(50%) translateY(-70%);
}

.slide-in {
    opacity: 1;
    transform: translateX(0); /* Move back to its original position */
}

.filter-popup::-webkit-scrollbar {
    height: 12px;
    width: 5px;
}

/* Track */
.filter-popup::-webkit-scrollbar-track {
    background: #00000000;
    border-radius: 10px;
    width: 5px;
}

/* Handle (Thumb) */
.filter-popup::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 10px;
    width: 5px;
}

/* Handle on hover */

.add-item-popup::-webkit-scrollbar {
    height: 12px;
    width: 5px;
}

/* Track */
.add-item-popup::-webkit-scrollbar-track {
    background: #00000000;
    border-radius: 10px;
    width: 5px;
}

/* Handle (Thumb) */
.add-item-popup::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 10px;
    width: 5px;
}

/* Handle on hover */

.error-alert {
    width: 40px;
    animation: makeSmaller 1s forwards;
    animation-delay: 1s;
    animation-duration: 1s;
    transform: scale(1.1);
}

.trade-calculator-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.item-settings-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
}

.our-games-description {
    margin-top: 0px;
    position: relative;
    z-index: 1;
}

.currency-symbol {
    height: 25px;
    object-fit: cover;
}

.additional-value {
    display: flex;
    align-items: center;
    column-gap: 5px;
    margin-bottom: 10px;
}

.discord-button {
    background-color: #5865f2;
    border: none;
    border-radius: 200px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    column-gap: 5px;
    color: rgb(255, 255, 255);
    font-family: poppins, Arial;
    font-size: 1.1rem;
    font-weight: 800;
    transition-duration: 0.1s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.discord-button img {
    width: 25px;
}

.value-team-button {
    background-color: #000000;
    border: none;
    border-radius: 200px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    color: rgb(255, 255, 255);
    font-family: poppins, Arial;
    font-size: 1.1rem;
    font-weight: 600;
    transition-duration: 0.1s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.value-team-button img {
    height: 18px;
}

.discord-button2 {
    background-color: #5865f2;
    border: none;
    border-radius: 200px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    column-gap: 5px;
    color: rgb(255, 255, 255);
    font-family: poppins, Arial;
    font-size: 1.1rem;
    font-weight: 800;
    transition-duration: 0.1s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.discord-button2 img {
    width: 25px;
}

.searchbar-and-filter-button {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.particleCanvas {
    height: 100%;
}

/* Value Team Applications Section */
.value-team-applications-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #0c0c0c;
    color: white;
}

.value-team-applications-section h2 {
    font-family: poppins, Arial;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: white;
}

.value-team-applications-section p {
    font-family: poppins, Arial;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
    color: #cccccc;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.value-team-button-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Home screen specific value team button styling */
.value-team-applications-section .value-team-button {
    border: 1px solid white;
    padding: 8px 16px;
}

.discord-communities-section {
    padding: 70px 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background-color: #0a0a0a;
    font-family: poppins, Arial;
}

.discord-communities-header {
    text-align: center;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.discord-communities-header h2 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
}

.discord-communities-header p {
    margin: 0;
    color: #cfcfcf;
    font-size: 1.05rem;
    line-height: 1.6;
}

.discord-communities-grid {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.discord-community-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background-color: #101010;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.discord-community-card-media {
    position: absolute;
    inset: 0;
}

.discord-community-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discord-community-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.8) 80%);
}

.discord-community-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.discord-community-card-content h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.discord-community-card-button {
    align-self: flex-start;
    background-color: #5865f2;
    border-radius: 999px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.discord-community-card-button img {
    width: 20px;
    height: 20px;
}

.discord-community-card-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.discord-community-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.discord-community-card:hover .discord-community-card-button {
    filter: brightness(1.1);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.35);
    transform: translateY(-1px);
}

.discord-communities-empty {
    color: #9a9a9a;
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
}

.discord-communities-section-empty .discord-communities-grid {
    display: none;
}

@media (min-width: 640px) {
    .discord-communities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .discord-communities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .discord-communities-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.item-page-container-wrapper {
    display: flex;
    justify-content: center;
}

.item-page-container {
    width: 60vw;
    display: flex;
    align-items: stretch;
    justify-content: center;
    column-gap: 30px;
    row-gap: 20px;
    flex-wrap: wrap;
}

.item-page-description {
    color: white;
    font-family: poppins, Arial;
    background-color: #ffffff0a;
    box-shadow: rgba(0, 0, 0, 0.116) 0px 1.5px 15px 2px;
    border-radius: 30px;
    padding: 10px 10px 10px 25px;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 200px;
}

.item-page-description-h1 {
    font-weight: 600;
    font-size: 1.7rem;
    margin: 0;
}

.item-page-trade-ads-section {
    width: 60vw;
    margin: 20px auto 0 auto;
    display: flex;
    flex-direction: column;
    row-gap: 14px;
}

.item-page-trade-ads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.item-page-trade-ads-header .user-trade-ads-h2 {
    margin: 0;
}

.item-page-trade-ads-link {
    flex-shrink: 0;
}

.item-page-trade-ads-empty {
    width: 100%;
    box-sizing: border-box;
}

.item-page-trade-ads-empty p {
    margin: 8px 0 0 0;
    color: #cfcfcf;
    font-family: poppins, Arial;
}

.item-page-trade-ads-list {
    width: 100%;
}

.default-menu-item-dropdown p {
    margin: 5px 0px;
}

.item-page-image {
    border-radius: 15px;
    width: 100%;
}

.dynamic-item-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: #9fa7ba;
    font-size: 0.9rem;
}

.dynamic-item-breadcrumbs a {
    color: #b9d3ff;
    text-decoration: none;
}

.dynamic-item-breadcrumbs a:hover {
    text-decoration: underline;
}

.dynamic-item-detail-row {
    margin-top: 8px;
}

.dynamic-item-detail-label {
    color: #7eb5ff;
}

.dynamic-item-detail-value {
    text-align: right;
}

.dynamic-item-notes {
    margin-top: 14px;
    line-height: 1.6;
    color: #d1d5df;
}

.dynamic-item-image-card {
    max-width: 320px;
}

.menu-item-dropdown p {
    text-align: left;
    margin: 0;
}

.value-list-message {
    background-color: var(--banner-message-color, black);
    color: var(--banner-message-text-color, white);
    height: 40px;
    font-family: poppins, Arial;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 12px;
    width: 100%;
    flex-shrink: 0;
}

.value-list-message p {
    font-weight: 500;
}

.value-list-message a {
    color: var(--banner-message-text-color, white) !important;
    text-decoration: underline;
    cursor: pointer;
}

.value-list-message a:focus {
    text-decoration: underline;
}

.value-list-message a:active {
    text-decoration: underline;
}

.value-list-message:visited {
    text-decoration: underline;
}

.value-list-message .close-icon {
    width: 20px;
    height: 20px;
    transition-duration: 0.2s;
    cursor: pointer;
    color: var(--banner-message-text-color, white);
}

.user-profile-picture {
    width: 250px;
    height: 250px;
    border-radius: 150px;
    box-shadow: rgba(0, 0, 0, 0.26) 0px 8px 10px 2px;
}

.user-profile-info-wrapper {
    width: 100vw;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.user-profile-info {
    position: absolute;
    top: -125px;
    width: 60vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: poppins, Arial;
    color: white;
}

.user-profile-global-name {
    font-size: 1.9rem;
    text-align: center;
    margin: 10px;
    line-height: 40px;
}

.user-profile-name {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0px 0px 5px 0px;
}

.user-profile-details {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 10px;
}

.login-button p {
    margin: 0;
}

.trade-ad-field-wrapper {
    width: 100vw;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.trade-ad-quick-options {
    width: 100vw;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-top: 12px;
}

.trade-ad-quick-options-inner {
    width: 60vw;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 14px;
    box-sizing: border-box;
}

.trade-ad-quick-options-title {
    margin: 0;
    color: #fff;
    font-family: poppins, Arial;
    font-size: 1rem;
    font-weight: 600;
}

.trade-ad-quick-options-subtitle {
    margin: 4px 0 0;
    color: #b9b9b9;
    font-family: poppins, Arial;
    font-size: 0.82rem;
}

.trade-ad-quick-options-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.trade-ad-quick-option-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-family: poppins, Arial;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.trade-ad-quick-option-btn:hover {
    background: rgba(88, 101, 242, 0.42);
    transform: translateY(-1px);
}

.trade-ad-quick-option-btn-selected {
    background: rgba(88, 101, 242, 0.58);
    border-color: rgba(131, 146, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(131, 146, 255, 0.35) inset;
}

.trade-calculator-item-special {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(88, 101, 242, 0.45) 0%, rgba(33, 33, 47, 0.82) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.trade-calculator-item-special-inner {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 10px;
    box-sizing: border-box;
}

.trade-calculator-item-special-title {
    margin: 0;
    color: #fff;
    font-family: poppins, Arial;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.trade-calculator-item-special-subtitle {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-family: poppins, Arial;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

@media (max-width: 1000px) {
    .trade-ad-quick-options-inner {
        width: 90vw;
    }
}

.trade-ad-field {
    color: white;
    font-family: poppins, Arial;
    width: 60vw;
}

.trade-ad-field p {
    margin: 3px 0px;
    font-weight: 600;
    font-size: 1.2rem;
}

.trade-ad-field-input {
    background-color: #2e2e2e59;
    border: none;
    border-radius: 10px;
    color: white;
    font-family: poppins, Arial;
    font-weight: 600;
    transition-duration: 0.3s;
    padding: 4px 7px;
    font-size: 1.2rem;
    outline: none;
    width: 100%;
}

.trade-ad-field-input:focus {
    background-color: #35353559;
}

.trade-ad-field-textarea {
    background-color: #2e2e2e59;
    border: none;
    border-radius: 10px;
    color: white;
    font-family: poppins, Arial;
    font-weight: 400;
    transition-duration: 0.3s;
    padding: 4px 7px;
    font-size: 1rem;
    outline: none;
    width: 100%;
    resize: none;
    height: 100px;
}

.trade-ad-field-textarea:focus {
    background-color: #35353559;
}

.trade-ads-container {
    width: 100vw;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.trade-ads {
    width: 60vw;
    display: grid;
    grid-template-columns: 1fr;
    color: white;
    font-family: poppins, Arial;
    row-gap: 24px;
}

.trade-ad {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.trade-ad-user img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 100px;
}

.trade-ad-user {
    display: flex;
    align-items: center;
    column-gap: 10px;
    justify-content: space-between;
    flex-wrap: nowrap;
    row-gap: 10px;
    margin-bottom: 10px;
}

.trade-ad-user > div {
    margin-left: auto;
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end !important;
}

.trade-ad-user .discord-button2 {
    padding: 7px 12px;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
}

.trade-ad-user .discord-button2 img {
    width: 17px;
    height: 17px;
}

.trade-ad-user-text p {
    margin: 0px;
    color: grey;
    line-height: 18px;
    font-size: 0.75rem;
}

.trade-ad-global-name {
    font-weight: 600;
    color: white !important;
    font-size: 0.9rem !important;
}

.trade-ad-content {
    margin: 8px 0 0;
}

.trade-ad-title-row {
    text-decoration: none;
    display: flex;
    align-items: center;
    column-gap: 8px;
    margin: 0;
    flex-wrap: wrap;
}

.trade-ad-title {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    color: white;
}

.trade-ad-description {
    font-size: 0.9rem;
    margin: 4px 0 0;
    color: #a8adbb;
    line-height: 1.35;
}

.trade-ad-duration {
    color: #8f8f8f;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
}

.trade-ad-account-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    column-gap: 10px;
    min-width: 0;
}

.trade-ads .trade-calculator {
    width: 100%;
    column-gap: 12px;
    row-gap: 10px;
    margin-top: 10px;
}

.trade-ads .trade-calculator-trades {
    border-radius: 16px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px) saturate(135%);
    -webkit-backdrop-filter: blur(10px) saturate(135%);
    box-sizing: border-box;
    min-width: 0;
}

.trade-ads .trade-calculator-info {
    padding: 14px 16px;
    column-gap: 12px;
}

.trade-ads .trade-calculator-info-title {
    font-size: 1.1rem;
}

.trade-ads .trade-calculator-info-inner {
    font-size: 0.85rem;
}

.trade-ads .trade-calculator-items {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    justify-content: center;
    row-gap: 14px;
    column-gap: 14px;
}

.trade-ads .trade-calculator-item {
    width: 100%;
    max-width: 126px;
    justify-self: center;
    border-radius: 14px;
}

.trade-ads .trade-calculator-item img {
    border-radius: 14px;
}

.trade-ads .trade-calculator-item-value {
    font-size: 0.8rem;
    padding: 5px 0;
}

.trade-ads .trade-calculator-item-value[style*="bottom"] {
    background-color: rgba(0, 0, 0, 0.16);
}

.trade-ads .trade-calculator-item-amount {
    font-size: 0.68rem;
    padding: 3px 6px;
    right: 6px;
    top: 6px;
}

.trade-ads .additional-value {
    font-size: 0.9rem !important;
    margin-bottom: 2px !important;
}

.trade-ads .trade-calculator-item::after {
    inset: 0;
    content: '';
    background: linear-gradient(110deg, rgba(0, 0, 0, 0) 35%, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0) 65%);
    background-size: 220% 100%;
    background-position: 140% 0;
    position: absolute;
    border-radius: inherit;
    pointer-events: none;
    transition: background-position 1s ease-out;
}

.trade-ads .trade-calculator-item:hover::after {
    background-position: -40% 0;
}

.trade-ad-user .discord-button2::after {
    width: 0px;
    height: 0px;
    border-radius: 10px;
    position: absolute;
    content: '';
    background-color: #5865f2;
    left: calc(50% - 5px);
    display: block;
    z-index: -1;
}

.trade-ad-user .discord-button2:hover {
    background-color: transparent;
}

.trade-ad-user .discord-button2:hover::after {
    width: 100%;
    height: 100%;
    left: 0;
    transform: translateY(0px);
    border-radius: 20px;
    transition-duration: 0.1s;
    display: block;
}

.trade-ad-user .discord-button2:hover img {
    animation-name: shake;
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier;
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(20deg); }
    50% { transform: rotate(-22deg); }
    100% { transform: rotate(4deg); }
}

.trade-ad-user .discord-button2 {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(88, 101, 242, 0.55) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    background-color: rgba(88, 101, 242, 0.16);
    line-height: 2 !important;
    z-index: 2;
    padding: 4px 10px !important;
    height: max-content !important;
    align-items: center;
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.12), 0 6px 16px rgba(48, 58, 170, 0.24);
}

.trade-ads .trade-calculator-info-inner {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 0.80rem;
    color: black;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin: 0 15px 0 auto;
    margin-left: auto;
    text-align: center;
}

.trade-ads .trade-calculator-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.trade-ads .trade-calculator-info-text-yours,
.trade-ads .trade-calculator-info-text-theirs {
    width: 100%;
}

.trade-ads .trade-calculator-info-title {
    margin: 0;
}

.trade-ads .trade-calculator-info-inner-winner {
    background-color: rgba(31, 195, 87, 0.88);
    color: #fff;
    border-color: rgba(49, 219, 110, 0.9);
}

.trade-ads .trade-calculator-info-inner-loser {
    background-color: rgba(210, 49, 49, 0.9);
    color: #fff;
    border-color: rgba(255, 89, 89, 0.92);
}

.trade-ads .trade-calculator-info-inner-fair {
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
}

.trade-ads .trade-calculator-info-inner-neutral {
    background-color: rgba(255, 208, 0, 0.9);
    color: #111;
    border-color: rgba(255, 224, 102, 0.95);
}

.trade-ad-user .discord-button2 img {
    width: 25px;
    height: 25px;
}

.trade-ads .trade-calculator-trades {
    gap: 10px;
    flex-direction: column !important;
    margin-bottom: 2px;
    height: max-content;
    min-height: 235px;
}

.trade-ads .trade-calculator {
    overflow: scroll;
    overflow-x: clip;
    flex-direction: row;
    max-height: 240px;
    display: flex !important;
}

.trade-ads .trade-calculator-item {
    overflow: visible;
    position: relative;
}

.trade-ads .trade-calculator-item-amount {
    padding: 0 5px;
    right: -10px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    color: black;
    background-color: white;
    font-weight: 600;
    border: 2px solid rgba(0, 0, 0, 0.65);
    border-radius: 8px;
    position: absolute;
    z-index: 5;
    line-height: 1.5;
    min-width: 8px;
    height: 14px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trade-ads .trade-calculator-info {
    flex-wrap: wrap !important;
    flex-direction: row !important;
    padding: 5px 10px 20px 10px !important;
    display: flex;
    row-gap: 8px !important;
    align-items: center;
    width: 100% !important;
}

@media screen and (max-width: 600px) {
    .trade-ads .trade-calculator-info-inner {
        margin-left: auto;
    }

    .trade-ads .trade-calculator-info {
        row-gap: 8px;
    }

    .trade-ads .trade-calculator-info-header {
        align-items: flex-start;
    }

    .trade-ads .trade-calculator {
        flex-direction: column;
        max-height: none;
        overflow: visible;
    }

    .trade-ads .trade-calculator-trades {
        min-height: max-content;
    }
}

.social-buttons {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    height: 34px;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    transition-duration: 0.1s;
    cursor: pointer;
}

.social-buttons img {
    height: 19px;
    width: 19px;
    object-fit: contain;
}

.social-media-button {
    border: none;
    border-radius: 200px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    column-gap: 5px;
    font-family: poppins, Arial;
    font-size: 1.1rem;
    font-weight: 800;
    transition-duration: 0.1s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.social-media-button img {
    width: 25px;
}

@keyframes rainbow {
    0% {
        color: red;
    }
    16% {
        color: yellow;
    }
    33% {
        color: rgb(0, 255, 0);
    }
    50% {
        color: cyan;
    }
    66% {
        color: blue;
    }
    83% {
        color: magenta;
    }
    100% {
        color: red;
    }
}

.report-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.report-button {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.report-button-open {
    opacity: 1;
    pointer-events: all;
}

.user-trade-ads-h2 {
    font-family: poppins, Arial;
    color: white;
    margin: 10px;
    font-weight: 600;
    font-size: 1.5rem;
}

.category-popup-trade-calculator {
    padding: 20px;
    margin-right: 20px;
    box-sizing: border-box;
}

.discord-decoration {
    width: 200px;
    position: absolute;
    left: -35px;
    bottom: -40px;
    opacity: 0.1;
    transform: rotate(-10deg);
}

.notice {
    background-color: rgba(255, 255, 255, 0.103);
    border-radius: 20px;
    padding: 15px;
    color: white;
    font-family: poppins, Arial;
    display: flex;
    align-items: top;
    column-gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.notice p {
    margin: 0px;
}

.notice-icon {
    filter: brightness(25500);
    width: 20px;
    height: 20px;
    margin-top: 4px;
}

.search-trade-ad-sides-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    column-gap: 10px;
}


@media (max-width: 700px) {
    .trade-ad-user {
        flex-wrap: wrap;
    }

    .trade-ad-user > div {
        width: auto;
        max-width: 100%;
        justify-content: flex-start !important;
        margin-left: 0;
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    /* size of the ad */
    .trade-ads {
        width: 90vw;
    }
    .value-list-items-inner {
        width: 90vw;
    }
    .trade-ad-field {
        width: 90vw;
    }
    .user-profile-info {
        width: 90vw;
    }
    .item-page-container {
        width: 90vw;
    }

    .item-page-trade-ads-section {
        width: 90vw;
    }

    .item-page-trade-ads-header {
        align-items: stretch;
    }

    .item-page-trade-ads-link {
        width: 100%;
        justify-content: center;
    }
    .our-games-card {
        width: 90vw;
        /* Prevent horizontal overflow on mobile by starting cards in viewport */
        transform: translateX(0) !important;
        /* Reduce box-shadow to prevent 1px overflow */
        box-shadow: rgba(0, 0, 0, 0.315) 0px 3px 10px 1px;
    }
    .our-games-card-left {
        /* Prevent horizontal overflow on mobile by starting cards in viewport */
        transform: translateX(0) !important;
    }
    /* Ensure smooth slide-in animation on mobile */
    .our-games-card.slide-in {
        transform: translateX(0) !important;
    }
    /* Mobile-specific animation: fade in instead of slide to prevent overflow */
    .our-games-card {
        opacity: 0;
        transform: translateX(0) !important;
        transition: opacity 0.8s ease-out, scale 0.3s;
        /* Ensure card doesn't extend beyond viewport */
        max-width: 90vw;
        box-sizing: border-box;
    }
    .our-games-card.slide-in {
        opacity: 1;
        transform: translateX(0) !important;
    }
    .filter-popup {
        max-width: 100vw;
        position: absolute;
        left: 10px;
        top: 10px;
        right: 10px;
        height: 80vh;
    }
    .add-item-popup {
        max-width: 100vw;
        position: absolute;
        left: 10px;
        top: 10px;
        right: 10px;
        height: 85vh;
    }
    .trade-calculator-container {
        flex-direction: column;
    }

    .trade-middle {
        flex-direction: row;
        padding: 1rem 0;
    }

    .trade-arrow {
        transform: rotate(90deg);
    }
    .value-list-scroller {
        display: none;
    }
    .our-games-section {
        margin-top: -120px;
        position: relative;
        z-index: 2;
        /* Ensure no horizontal overflow on mobile */
        overflow-x: hidden;
        width: 100vw;
        /* Prevent any child elements from causing overflow */
        max-width: 100vw;
        box-sizing: border-box;
    }
    .trade-calculator {
        width: 90vw;
    }
    .trade-calculator-trades {
        max-width: 100%;
    }
}

.trade-calculator-container {
    width: 100vw;
    justify-content: center;
}


@media (max-width: 768px) {
    .trade-calculator-container {
        width: 100%;
        padding: 0 14px;
        box-sizing: border-box;
    }

    .trade-calculator {
        grid-template-columns: 1fr;
        width: 100%;
        row-gap: 16px;
        column-gap: 0;
    }

    .trade-calculator-trades {
        width: 100%;
    }

    .trade-calculator-info {
        column-gap: 16px;
        padding: 16px;
    }

    .trade-calculator-info-title {
        font-size: 1.5rem;
    }

    .trade-calculator-info-inner {
        font-size: 1rem;
    }

    .trade-calculator-items {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    footer {
        margin-top: 64px;
    }
}

@media (max-width: 666px) {
    .value-list-item-link {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .trade-calculator-items {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    }
    .value-list-items-inner-small-icons {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        column-gap: 2px !important;
    }
    .trade-calculator-item {
        max-width: 110px;
    }
    .trade-calculator-item-value {
        font-size: 0.8rem;
    }
    .trade-calculator-item-amount {
        font-size: 0.8rem;
    }
    .value-list-items-inner {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        column-gap: 30px;
        row-gap: 10px;
        width: 90vw;
    }
    .value-list-item-information-wrapper {
        font-size: 0.9rem;
    }
    .category-filter-button-area {
        width: 90vw;
    }
    .misc-button-area {
        width: 90vw;
    }
    .preload-text {
        transform: scale(0.7);
    }
}

@media (max-width: 400px) {
    .watermark img {
        width: 60px;
    }

    .watermark p {
        font-size: 0.8rem;
    }
    .header-left {
        transform: scale(0.9);
    }
    .menu-item-dropdown p {
        font-size: 0.9rem;
    }
}

@media (min-width: 851px) {
    .login-button {
        width: 220px;
        height: 50px;
        padding: 8px 13px;
        box-sizing: border-box;
        justify-content: center;
        flex-shrink: 0;
    }
    .header-logo {
        width: 220px;
        height: 79px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .login-button-full {
        display: flex;
    }
    .login-button-medium,
    .login-button-small {
        display: none;
    }
    .header-logo-full {
        display: block;
    }
    .header-logo-small {
        display: none;
    }
}

@media (max-width: 850px) and (min-width: 550px) {
    .header-center-menu {
        display: none !important;
    }
    .login-button {
        width: 120px;
        height: 50px;
        padding: 8px 13px;
        box-sizing: border-box;
        justify-content: center;
        flex-shrink: 0;
    }
    .header-logo {
        width: 120px;
        height: 43px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .login-button-medium {
        display: flex;
    }
    .login-button-full,
    .login-button-small {
        display: none;
    }
    .header-logo-full {
        display: block;
    }
    .header-logo-small {
        display: none;
    }
}

@media (max-width: 549px) {
    .header-center-menu {
        display: none !important;
    }
    .mobile-header-menu-wrapper {
        display: flex;
    }
    .value-list-message {
        background-color: rgba(0, 0, 0, 0.637);
        position: fixed;
        z-index: 1000;
        top: 150%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 40px);
        max-width: 400px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 10px;
        flex-wrap: wrap;
        height: fit-content;
        padding: 10px 0px;
    }

    .value-list-message p {
        margin: 0px 0px 10px 0px;
        width: 80%;
        text-align: center;
    }

    .value-list-message a {
        color: var(--banner-message-text-color, white);
        text-decoration: none;
        cursor: pointer;
        background-color: white;
        width: 90%;
        padding: 5px 0px;
        font-weight: 1.1rem;
        text-align: center;
        border-radius: 100px;
        font-weight: 600;
    }

    .value-list-message:visited {
        text-decoration: none;
    }

    .value-list-message a:hover {
        text-decoration: none !important;
    }

    .value-list-message a:focus {
        text-decoration: none;
    }

    .value-list-message a:active {
        text-decoration: none;
    }

    .value-list-message .close-icon {
        position: absolute;
        right: 10px;
        top: 10px;
        width: 30px;
        height: 30px;
        color: var(--banner-message-text-color, white);
    }
    .login-button {
        width: 50px;
        height: 50px;
        padding: 0;
        box-sizing: border-box;
        justify-content: center;
        flex-shrink: 0;
    }
    .header-logo {
        width: 50px;
        height: 50px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .login-button-small {
        display: flex;
    }
    .login-button-full,
    .login-button-medium {
        display: none;
    }
    .header-logo-full {
        display: none;
    }
    .header-logo-small {
        display: block;
    }
    .mobile-header-menu-button {
        padding: 0 14px;
    }
    .mobile-header-menu-button-label {
        display: none;
    }
    .mobile-header-menu {
        left: 50%;
        transform: translateX(-50%);
        min-width: 210px;
    }
    .header-left {
        flex-shrink: 1;
    }
}

@media (max-width: 500px) {
    .our-games-h3 {
        text-align: center;
    }
    .our-games-description {
        text-align: center;
    }
    .our-games-buttons {
        justify-content: center;
    }
    .trade-ad-title {
        font-size: 1.05rem;
    }

    .trade-ad-duration {
        font-size: 0.8rem;
    }
    .background-video {
        height: 800px;
    }
    .particleCanvas {
        height: 800px;
    }
    .filter-checkbox {
        width: 30px;
        height: 30px;
    }
    .checkbox-overlay {
        top: 3px;
        left: 6px;
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }
    ::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    .value-range-slider-hidden {
        left: -8px;
        right: -8px;
        top: -11px;
    }
    .our-games-card {
        grid-template-columns: 1fr;
        background-image: linear-gradient(to bottom, #222, #0c0c0c);
    }
    .value-range-slider {
        margin: 13px 0px;
    }
    .our-games-image {
        height: 170px;
        width: 100%;
        left: 0;
        right: 0;
    }
    .our-games-image-left {
        order: -1;
    }
    .our-games-info {
        padding: 0px 10px;
    }
    .our-games-image-shadow {
        top: 40;
        left: 0;
        right: 0;
        width: 100%;
        height: 170px;
    }
    .our-games-temp {
        height: 170px;
    }
    .our-games-temp-left {
        order: -1;
    }
    .trade-calculator-info-inner {
        font-size: 1rem;
    }
    .trade-calculator-info-title {
        font-size: 1.3rem;
    }
    .h1one {
        font-size: 3rem;
        line-height: 60px;
    }
    .h1three {
        font-size: 2rem;
        line-height: 40px;
    }
    .value-list-scroller {
        transform: scale(0.6);
        width: 166.666vw;
        margin-left: -33.333vw;
        margin-top: -20vh;
    }

    .value-list-searchbar {
        width: 90%;
    }
    body::-webkit-scrollbar {
        width: 0px;
    }

    /* Track */
    body::-webkit-scrollbar-track {
        width: 0px;
    }

    /* Handle (Thumb) */
    body::-webkit-scrollbar-thumb {
        width: 0px;
    }
}

@media (pointer: coarse) {
    .value-list-scroller {
        overflow: hidden;
    }
}

@media (max-width: 1500px) {
    .trade-calculator {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    .our-games-description {
        font-size: 0.8rem;
    }
}

::-webkit-scrollbar {
    height: 12px;
    width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #00000000;
    border-radius: 10px;
    width: 5px;
}

/* Handle (Thumb) */
::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 10px;
    width: 5px;
}

/* Handle on hover */

@media (hover: hover) {
    .social-buttons:hover {
        background-color: rgba(255, 255, 255, 0.123);
    }
    .value-list-message a:hover {
        color: var(--banner-message-text-color, white);
        text-decoration: underline;
    }
    .value-list-message .close-icon:hover {
        transform: rotate(90deg);
        color: var(--banner-message-text-color, white);
    }
    .menu-item-dropdown-selected:hover {
        background-color: white;
    }

    .default-menu-item-dropdown-selected:hover {
        background-color: white;
    }
    .default-menu-item-dropdown:hover {
        background-color: #ffffff2c;
    }
    .default-menu-item-dropdown p {
        margin: 0;
    }
    .menu-item-dropdown-selected {
        background-color: white;
    }
    .menu-item-dropdown:hover {
        background-color: #ffffff2c;
    }
    .default-dropdown:hover {
        background-color: #44444462;
        box-shadow: rgba(20, 20, 20, 0.308) 0px 3px 10px 2px;
    }
    .dropdown:hover {
        background-color: #44444462;
        box-shadow: rgba(20, 20, 20, 0.308) 0px 3px 10px 2px;
    }
    .login-button:hover {
        background-color: #5865f273;
        box-shadow: none;
        color: white;
    }
    .category-filter-button-selected:hover {
        background-color: rgb(224, 224, 224);
        color: white;
    }
    .category-filter-button:hover {
        background-color: #00000094;
    }
    .close-button:hover,
    .close-button2:hover {
        transform: rotate(90deg);
    }
    .value-list-filter-button:hover img {
        filter: brightness(10000%);
    }
    .value-list-filter-button:hover {
        background-color: #00000059;
        box-shadow: none;
        color: white;
    }
    .discover-button:hover {
        transform: scale(110%);
    }
    .value-list-scroller-item:hover {
        transform: translateY(-20px);
    }
    .value-list-scroller:hover .value-list-scroller-segment {
        animation-play-state: paused;
    }
    .value-list-item:hover {
        transform: scale(1.05);
        background-color: #1e1e1e;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #ffffff;
    }
    .discord-button:hover {
        background-color: #00000059;
        box-shadow: none;
        color: white;
    }
    .discord-button2:hover {
        background-color: #00000059;
        box-shadow: none;
        color: white;
    }
    .trade-calculator-item:hover {
        scale: 1.07;
    }
    .add-item-popup::-webkit-scrollbar-thumb:hover {
        background: #ffffff;
    }
    .filter-popup::-webkit-scrollbar-thumb:hover {
        background: #ffffff;
    }
    .our-games-card:hover {
        scale: 1.025;
    }
    .calculate-button:hover {
        background: var(--accent-color-hover);
    }
    .trade-calculator-add-item:hover {
        scale: 1.1;
    }
    .contact-button:hover {
        background-color: #222;
        box-shadow: none;
        color: white;
    }
}

@media (max-width: 450px) {
    .filter-area-value-list-outer {
        margin: 10px 0px;
    }
    .discord-button {
        width: 100%;
        font-size: 1.3rem;
        justify-content: center;
    }
    .value-team-button {
        width: 100%;
        font-size: 1.3rem;
        justify-content: center;
    }
    .section-button {
        width: 100%;
        justify-content: center;
        font-size: 1.3rem;
    }
    .logout-button {
        width: 90vw;
        justify-content: center;
        font-size: 1.3rem;
        box-sizing: border-box;
    }
}

/* Value History Chart Styles */
.value-history-chart-section {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.value-history-chart-container {
    background-color: #1c1c1c;
    border-radius: 20px;
    padding: 25px;
    box-shadow: rgba(0, 0, 0, 0.329) 0px 3px 10px 2px;
}

.value-history-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.value-history-chart-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    font-family: poppins;
}

.value-history-chart-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.value-history-selector {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444444;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    min-width: 180px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-family: poppins;
}

.value-history-selector:hover {
    background-color: #333333;
    border-color: #666666;
}

.value-history-selector:focus {
    outline: none;
    background-color: #333333;
    border-color: #888888;
}

.value-history-chart-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    background-color: #111111;
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
}

.value-history-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Responsive Design for Chart */

@media (max-width: 768px) {
    .value-history-chart-section {
        margin: 20px auto;
        padding: 0 10px;
    }

    .value-history-chart-container {
        padding: 20px;
    }

    .value-history-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .value-history-chart-title {
        font-size: 1.3rem;
    }

    .value-history-selector {
        min-width: 100%;
        width: 100%;
    }

    .value-history-chart-wrapper {
        height: 300px;
        padding: 15px;
    }
}

/* ===== OVERFLOW CONTAINER STYLES ===== */
.item-page-main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.item-page-trade-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 0;
    flex-wrap: nowrap;
}

.item-page-trade-action {
    min-width: 96px;
    justify-content: center;
    font-size: 0.9rem;
    padding: 7px 10px;
    border-radius: 10px;
}

.item-page-trade-actions-inside {
    pointer-events: auto;
    width: 100%;
    position: relative;
    z-index: 4;
}

.item-page-trade-actions-inside .item-page-trade-action {
    flex: 1;
    min-width: 0;
}

.item-page-trade-action-trade {
    background: linear-gradient(135deg, #ffcc7a, #ffad45);
    color: #ffffff;
    border: 1px solid rgba(255, 211, 146, 0.95);
}

.item-page-trade-action-trade:hover {
    background: linear-gradient(135deg, #ffd89a, #ffb866);
    color: #ffffff;
}

.item-page-trade-action-offers {
    background: linear-gradient(135deg, #67e9e5, #4cbaf8);
    color: #ffffff;
    border: 1px solid rgba(146, 245, 241, 0.95);
}

.item-page-trade-action-offers:hover {
    background: linear-gradient(135deg, #87f3ef, #74ccff);
    color: #ffffff;
}

.overflow-container {
    flex: 1;
    max-width: 400px;
    background-color: #111111;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #333333;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
}

.overflow-container-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.overflow-fields {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    min-height: 0;
    border-radius: 8px;
}

.overflow-fields::-webkit-scrollbar {
    width: 8px;
}

.overflow-fields::-webkit-scrollbar-track {
    background: #222222;
    border-radius: 4px;
}

.overflow-fields::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 4px;
}

.overflow-fields::-webkit-scrollbar-thumb:hover {
    background: #777777;
}

.overflow-field-wrapper {
    margin-bottom: 15px;
    padding: 12px;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333333;
}

.overflow-field-wrapper:last-child {
    margin-bottom: 0;
}

.overflow-field-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #ffffff;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.overflow-field-value {
    font-size: 0.85rem;
    margin: 0;
    color: #cccccc;
    word-wrap: break-word;
    line-height: 1.4;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Responsive design for overflow container */

@media (max-width: 768px) {
    .item-page-main-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        align-items: flex-start;
    }

    .overflow-container {
        max-width: 100%;
        order: 2;
        height: auto;
        min-height: 300px;
        max-height: none;
    }

    .value-list-item {
        order: 1;
    }

    .overflow-fields {
        flex: 1;
        min-height: 250px;
    }

    .item-page-trade-actions {
        margin-top: 10px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .overflow-container {
        min-height: 250px;
    }

    .overflow-fields {
        flex: 1;
        min-height: 200px;
    }

    .overflow-field-wrapper {
        padding: 10px;
        margin-bottom: 10px;
    }

    .overflow-field-name {
        font-size: 0.85rem;
    }

    .overflow-field-value {
        font-size: 0.8rem;
    }
}
/* ===== END OVERFLOW CONTAINER STYLES ===== */

@media (max-width: 480px) {
    .value-history-chart-container {
        padding: 15px;
    }

    .value-history-chart-title {
        font-size: 1.1rem;
    }

    .value-history-chart-wrapper {
        height: 250px;
        padding: 10px;
    }
}

/* Codes pages */
.codes-hero-content {
    width: min(1100px, 90vw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    z-index: 2;
}

.codes-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.codes-global-count {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 12px 18px;
    min-width: 160px;
    text-align: center;
    color: white;
}

.codes-global-count span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.codes-global-count strong {
    font-size: 1.6rem;
    color: white;
}

.codes-counts-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.codes-controls {
    width: 100%;
    padding: 40px 20px 10px;
    display: flex;
    justify-content: center;
}

.codes-games-grid {
    width: min(1200px, 92vw);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
    gap: 24px;
    margin: 20px auto 80px;
    justify-content: center;
}

.codes-game-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 170px;
    height: 170px;
    width: 300px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: white;
    font-family: poppins, Arial;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 10px 30px -15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.codes-game-card:hover {
    transform: translateY(-4px);
    box-shadow: rgba(0, 0, 0, 0.5) 0px 12px 36px -12px;
}

.codes-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.codes-card-content {
    position: relative;
    z-index: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    justify-content: flex-end;
    color: white;
}

.codes-card-content p {
    color: white;
}

.codes-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.codes-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.codes-card-count {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.codes-popular-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(245, 197, 66, 0.95);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
}

.codes-status-message {
    width: min(900px, 90vw);
    margin: 20px auto;
    padding: 16px 20px;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.is-hidden {
    display: none !important;
}

.codes-status-message.is-hidden {
    display: none;
}

.codes-status-message a {
    color: #ffffff;
    text-decoration: underline;
}

.codes-error-state {
    background-color: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.4);
}

.game-codes-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    padding: 160px 0 60px;
    background-size: cover;
    background-position: center;
    color: white;
}

.game-codes-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 0;
}

.game-codes-hero-content {
    position: relative;
    z-index: 1;
    width: min(1100px, 90vw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.codes-back-button {
    background-color: white;
    border: none;
    border-radius: 200px;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    column-gap: 8px;
    color: black;
    font-family: poppins, Arial;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: rgba(255, 255, 255, 0.308) 0px 1.5px 4px 1px;
    transition-duration: 0.1s;
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
}

.codes-back-button:hover {
    background-color: #222;
    box-shadow: none;
    color: white;
}

.codes-back-button:hover img {
    filter: brightness(10000%);
}

.codes-back-button img {
    width: 18px;
}

.codes-value-list-button {
    background-color: #f4d15f;
}

.codes-counts {
    width: min(1100px, 90vw);
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.codes-count-card {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    color: white;
}

.codes-count-card span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.codes-count-card strong {
    font-size: 1.6rem;
}

.codes-table-wrapper {
    width: min(1100px, 90vw);
    margin: 0 auto 80px;
    overflow-x: auto;
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.codes-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    min-width: 640px;
}

.codes-table thead {
    background-color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.codes-table th,
.codes-table td {
    padding: 16px;
    text-align: left;
}

.codes-table tbody tr:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.codes-code-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.codes-copy-button {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 6px 12px;
    color: white;
    font-family: poppins, Arial;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.codes-copy-button img {
    width: 16px;
}

.codes-copy-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.codes-report-button {
    background-color: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.45);
    border-radius: 999px;
    padding: 6px 12px;
    color: #ffb3b3;
    font-family: poppins, Arial;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.codes-report-button:hover:not(:disabled) {
    background-color: rgba(255, 107, 107, 0.35);
    color: #ffd1d1;
}

.codes-report-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.codes-status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
}

.codes-status-pill.is-active {
    background-color: rgba(0, 200, 83, 0.2);
    color: #00d168;
    border: 1px solid rgba(0, 200, 83, 0.5);
}

.codes-status-pill.is-inactive {
    background-color: rgba(255, 61, 61, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 61, 61, 0.5);
}

.codes-row-inactive {
    opacity: 0.6;
}

.vvx-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.vvx-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 700px) {
    .codes-hero-top {
        align-items: flex-start;
    }

    .codes-game-card {
        min-height: 160px;
        height: 160px;
        width: 260px;
    }

    .game-codes-hero {
        padding-top: 140px;
    }
}

.coming-soon-panel {
    margin: 32px auto 24px;
    width: min(820px, calc(100% - 40px));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    padding: 36px 24px;
    text-align: center;
}

.coming-soon-panel h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
}

.coming-soon-raw-timestamp {
    color: rgba(255, 255, 255, 0.65);
    margin: 12px 0 10px;
    font-size: 0.92rem;
}

.coming-soon-countdown {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.feature-hidden-content {
    display: block;
}
