* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background: #0a0a0a;
    color: #fff;
    padding-top: 80px;
    line-height: 1.6;
}



.values-main {
    padding: 2rem 0;
    min-height: calc(100vh - 70px - 300px);
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: transparent;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.banner-section {
    width: 100%;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.banner-gif {
    width: 100%;
    height: auto;
    display: block;
    max-height: 120px;
    object-fit: cover;
}

.promo-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.promo-card {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.promo-content {
    flex: 1;
    z-index: 2;
    position: relative;
    max-width: 60%;
    padding-right: 1rem;
}

.promo-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 0.3rem 0;
}

.promo-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 0.6rem 0;
    line-height: 1.2;
}

.promo-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #bbb;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.participate-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.participate-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.promo-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    filter: none;
}

.competition-bg {
    background-image: url('../images/competition_image.png');
}

.giveaway-bg {
    background-image: url('../images/giveaway_image.png');
}

.search-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.form button {
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
}

.form {
    --timing: 0.3s;
    --width-of-input: 100%;
    --height-of-input: 40px;
    --border-height: 2px;
    --input-bg: #000;
    --border-color: #5048E5;
    --border-radius: 12px;
    --after-border-radius: 1px;
    position: relative;
    width: var(--width-of-input);
    height: var(--height-of-input);
    display: flex;
    align-items: center;
    padding-inline: 0.8em;
    border-radius: var(--border-radius);
    transition: border-radius 0.5s ease;
    background: var(--input-bg);
    flex: 0 0 65.2%;
    min-width: 280px;
    border: 1px solid #151515;
}

.input {
    font-size: 0.9rem;
    background-color: transparent;
    width: 100%;
    height: 100%;
    padding-inline: 0.5em;
    padding-block: 0.7em;
    border: none;
    color: #fff;
    font-weight: 500;
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form:before {
    content: "";
    position: absolute;
    background: var(--border-color);
    transform: scaleX(0);
    transform-origin: center;
    width: 100%;
    height: var(--border-height);
    left: 0;
    bottom: 0;
    border-radius: 1px;
    transition: transform var(--timing) ease;
}

.form:focus-within {
    border-radius: var(--after-border-radius);
    border-color: #5048E5;
}

.input:focus {
    outline: none;
}

.form:focus-within:before {
    transform: scale(1);
}

.reset {
    border: none;
    background: none;
    opacity: 0;
    visibility: hidden;
    color: rgba(255, 255, 255, 0.6);
}

.input:not(:placeholder-shown) ~ .reset {
    opacity: 1;
    visibility: visible;
}

.form svg {
    width: 17px;
    margin-top: 3px;
}

.select {
    width: fit-content;
    cursor: pointer;
    position: relative;
    transition: 300ms;
    color: white;
    overflow: visible;
    flex: 0 0 18%;
    min-width: 120px;
    max-width: 180px;
}

.select:last-child {
    flex: 0 0 22%;
}

.selected {
    background-color: #000;
    padding: 0.7rem 1rem;
    margin-bottom: 3px;
    border-radius: 12px;
    position: relative;
    z-index: 49;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    border: 1px solid #151515;
    height: 40px;
    box-sizing: border-box;
}

.arrow {
    position: relative;
    right: 0px;
    height: 10px;
    transform: rotate(-90deg);
    width: 25px;
    fill: white;
    z-index: 100000;
    transition: 300ms;
}

.options {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    padding: 5px;
    background-color: #000;
    position: absolute;
    top: -100px;
    opacity: 0;
    transition: 300ms;
    width: 100%;
    z-index: 50;
    border: 1px solid #151515;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.select:hover > .options {
    opacity: 1;
    top: 100%;
    pointer-events: auto;
}

.selected:hover + .options {
    opacity: 1;
    top: 100%;
    pointer-events: auto;
}

.select:hover > .selected .arrow {
    transform: rotate(0deg);
}

.option {
    border-radius: 5px;
    padding: 0.5rem;
    transition: 300ms;
    background-color: #000;
    width: 100%;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

.option:hover {
    background-color: #111;
}

.options input[type="radio"] {
    display: none;
}

.options label {
    display: inline-block;
    cursor: pointer;
}

.options label::before {
    content: attr(data-txt);
}

.options input[type="radio"]:checked + label {
    display: none;
}

.select:has(.options input[type="radio"]#all:checked) .selected::before {
    content: attr(data-default);
}

.select:has(.options input[type="radio"]#pets:checked) .selected::before {
    content: attr(data-pets);
}

.select:has(.options input[type="radio"]#crops:checked) .selected::before {
    content: attr(data-crops);
}

.select:has(.options input[type="radio"]#recently-updated:checked) .selected::before {
    content: attr(data-recently);
}

.select:has(.options input[type="radio"]#common:checked) .selected::before {
    content: attr(data-common);
}

.select:has(.options input[type="radio"]#uncommon:checked) .selected::before {
    content: attr(data-uncommon);
}

.select:has(.options input[type="radio"]#rare:checked) .selected::before {
    content: attr(data-rare);
}

.select:has(.options input[type="radio"]#legendary:checked) .selected::before {
    content: attr(data-legendary);
}

.select:has(.options input[type="radio"]#mythical:checked) .selected::before {
    content: attr(data-mythical);
}

.select:has(.options input[type="radio"]#divine:checked) .selected::before {
    content: attr(data-divine);
}

.select:has(.options input[type="radio"]#prismatic:checked) .selected::before {
    content: attr(data-prismatic);
}

.select:has(.options input[type="radio"]#misc:checked) .selected::before {
    content: attr(data-misc);
}

.select:has(.options input[type="radio"]#name-asc:checked) .selected::before {
    content: attr(data-name-asc);
}

.select:has(.options input[type="radio"]#name-desc:checked) .selected::before {
    content: attr(data-name-desc);
}

.select:has(.options input[type="radio"]#value-high:checked) .selected::before {
    content: attr(data-value-high);
}

.select:has(.options input[type="radio"]#value-low:checked) .selected::before {
    content: attr(data-value-low);
}

.items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0 1rem 0.5rem;
    background: transparent;
    border-radius: 12px;
    border: none;
}

.items-count {
    color: #aaa;
    font-size: 1rem;
    margin-left: 0;
    padding-left: 0;
}

.favorites-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    margin-left: auto;
    margin-right: 0;
    padding-right: 0;
}

.plane-switch {
    --dot: #fff;
    --street: #6B6D76;
    --street-line: #A8AAB4;
    --street-line-mid: #C0C2C8;
    --sky-1: #5048E5;
    --sky-2: #4338CA;
    --light-1: rgba(80, 72, 229, 1);
    --light-2: rgba(80, 72, 229, 0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.plane-switch input {
    display: none;
}

.plane-switch input + div {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    position: relative;
    overflow: hidden;
    width: 40px;
    height: 20px;
    padding: 1px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--street) 0%, var(--street) 25%, var(--sky-1) 75%, var(--sky-2) 100%) left var(--p, 0%) top 0;
    background-position-x: var(--p, 0%);
    background-size: 400% auto;
    transition: background-position 0.6s;
}

.plane-switch input + div:before, .plane-switch input + div:after {
    content: "";
    display: block;
    position: absolute;
    transform: translateX(var(--s, 0));
    transition: transform 0.3s;
}

.plane-switch input + div:before {
    width: 42px;
    right: 2px;
    top: 4px;
    height: 1px;
    background: var(--street-line);
    box-shadow: 0 16px 0 0 var(--street-line);
}

.plane-switch input + div:after {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    left: 23px;
    top: 1px;
    animation: lights2 2s linear infinite;
    box-shadow: inset 0 0 0 2px var(--light-1), 0 21px 0 var(--light-1), 8px 0 0 var(--light-2), 8px 21px 0 var(--light-2), 16px 0 0 var(--light-2), 16px 21px 0 var(--light-2);
}

.plane-switch input + div span {
    display: block;
    position: absolute;
}

.plane-switch input + div span.street-middle {
    top: 12px;
    left: 21px;
    width: 3px;
    height: 1px;
    transform: translateX(var(--s, 0));
    background: var(--street-line-mid);
    box-shadow: 5px 0 0 var(--street-line-mid), 10px 0 0 var(--street-line-mid), 15px 0 0 var(--street-line-mid), 20px 0 0 var(--street-line-mid), 25px 0 0 var(--street-line-mid);
    transition: transform 0.3s;
}

.plane-switch input + div span.cloud {
    width: 12px;
    height: 4px;
    border-radius: 2px;
    background: #fff;
    position: absolute;
    top: var(--ct, 8px);
    left: 100%;
    opacity: var(--co, 0);
    transition: opacity 0.3s;
    animation: clouds2 2s linear infinite var(--cd, 0s);
}

.plane-switch input + div span.cloud:before, .plane-switch input + div span.cloud:after {
    content: "";
    position: absolute;
    transform: translateX(var(--cx, 0));
    border-radius: 50%;
    width: var(--cs, 5px);
    height: var(--cs, 5px);
    background: #fff;
    bottom: 1px;
    left: 1px;
}

.plane-switch input + div span.cloud:after {
    --cs: 6px;
    --cx: 4px;
}

.plane-switch input + div span.cloud.two {
    --ct: 20px;
    --cd: 1s;
    opacity: var(--co-2, 0);
}

.plane-switch input + div div {
    display: table;
    position: relative;
    z-index: 1;
    padding: 5px;
    border-radius: 50%;
    background: var(--dot);
    transform: translateX(var(--x, 0));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.35, 1.2);
}

.plane-switch input + div div svg {
    width: 10px;
    height: 10px;
    display: block;
    color: var(--c, var(--street));
    transition: color 0.6s;
}

.plane-switch input:checked + div {
    --p: 100%;
    --x: 20px;
    --s: -40px;
    --c: var(--sky-2);
    --co: .8;
    --co-2: .6;
}

@keyframes lights2 {
    20%, 30% {
        box-shadow: inset 0 0 0 2px var(--light-2), 0 21px 0 var(--light-2), 8px 0 0 var(--light-1), 8px 21px 0 var(--light-1), 16px 0 0 var(--light-2), 16px 21px 0 var(--light-2);
    }
    55%, 65% {
        box-shadow: inset 0 0 0 2px var(--light-2), 0 21px 0 var(--light-2), 8px 0 0 var(--light-2), 8px 21px 0 var(--light-2), 16px 0 0 var(--light-1), 16px 21px 0 var(--light-1);
    }
    90%, 100% {
        box-shadow: inset 0 0 0 2px var(--light-1), 0 21px 0 var(--light-1), 8px 0 0 var(--light-2), 8px 21px 0 var(--light-2), 16px 0 0 var(--light-2), 16px 21px 0 var(--light-2);
    }
}

@keyframes clouds2 {
    97% {
        transform: translateX(-72px);
        visibility: visible;
    }
    98%, 100% {
        visibility: hidden;
    }
    99% {
        transform: translateX(-72px);
    }
    100% {
        transform: translateX(0);
    }
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0;
}

.item-card {
    background: #080808;
    border: none;
    border-radius: 20px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px;
    width: 90%;
    margin: 0 auto;
}

/* Remove gap at grid edges */
.items-grid {
    justify-content: stretch;
}

.item-image-container {
    width: 120px;
    height: 110px;
    background: #111111;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1.2rem;
    border: none;
}

.item-image-container img {
    max-width: 85px;
    max-height: 85px;
    object-fit: contain;
}

.ui-bookmark {
    --icon-size: 20px;
    --icon-secondary-color: rgb(77, 77, 77);
    --icon-hover-color: rgb(97, 97, 97);
    --icon-primary-color: gold;
    --icon-circle-border: 1px solid var(--icon-primary-color);
    --icon-circle-size: 25px;
    --icon-anmt-duration: 0.3s;
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}

.ui-bookmark input {
    appearance: none;
    display: none;
}

.ui-bookmark .bookmark {
    width: var(--icon-size);
    height: auto;
    fill: var(--icon-secondary-color);
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-origin: top;
}

.bookmark::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    box-shadow: 0 30px 0 -4px var(--icon-primary-color),
        30px 0 0 -4px var(--icon-primary-color),
        0 -30px 0 -4px var(--icon-primary-color),
        -30px 0 0 -4px var(--icon-primary-color),
        -22px 22px 0 -4px var(--icon-primary-color),
        -22px -22px 0 -4px var(--icon-primary-color),
        22px -22px 0 -4px var(--icon-primary-color),
        22px 22px 0 -4px var(--icon-primary-color);
    border-radius: 50%;
    transform: scale(0);
}

.bookmark::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: var(--icon-circle-border);
    opacity: 0;
}

.ui-bookmark:hover .bookmark {
    fill: var(--icon-hover-color);
}

.ui-bookmark input:checked + .bookmark::after {
    animation: circles var(--icon-anmt-duration)
        cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: var(--icon-anmt-duration);
}

.ui-bookmark input:checked + .bookmark {
    fill: var(--icon-primary-color);
    animation: bookmark var(--icon-anmt-duration) forwards;
    transition-delay: 0.3s;
}

.ui-bookmark input:checked + .bookmark::before {
    animation: circle var(--icon-anmt-duration)
        cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: var(--icon-anmt-duration);
}

@keyframes bookmark {
    50% {
        transform: scaleY(0.6);
    }
    100% {
        transform: scaleY(1);
    }
}

@keyframes circle {
    from {
        width: 0;
        height: 0;
        opacity: 0;
    }
    90% {
        width: var(--icon-circle-size);
        height: var(--icon-circle-size);
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes circles {
    from {
        transform: scale(0);
    }
    40% {
        opacity: 1;
    }
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

.item-name {
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.rarity-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 0.4rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.rarity-common {
    background: rgba(102, 102, 102, 0.3);
    border-color: rgba(102, 102, 102, 0.5);
    color: #ffffff;
}

.rarity-uncommon {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
    color: #ffffff;
}

.rarity-rare {
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.5);
    color: #ffffff;
}

.rarity-epic {
    background: rgba(156, 39, 176, 0.3);
    border-color: rgba(156, 39, 176, 0.5);
    color: #ffffff;
}

.rarity-legendary {
    background: rgba(255, 152, 0, 0.3);
    border-color: rgba(255, 152, 0, 0.5);
    color: #ffffff;
}

.rarity-mythical {
    background: rgba(233, 30, 99, 0.3);
    border-color: rgba(233, 30, 99, 0.5);
    color: #ffffff;
}

.rarity-divine {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffffff;
}

.rarity-divider {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 0.3rem auto;
}

.item-stats {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    width: 100%;
    padding: 0 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0.3rem;
}

.stat-label {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.8rem;
    padding-left: 0.2rem;
}

.stat-value {
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    padding-right: 0.2rem;
}

.value-icon {
    width: 12px;
    height: 12px;
    margin-top: -1px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(21, 21, 21, 0.8);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pagination button:hover,
.pagination button.active {
    background: #5048E5;
    border-color: #5048E5;
    box-shadow: 0 4px 16px rgba(80, 72, 229, 0.3);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1200px) {
    .items-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .search-controls {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .search-input-container,
    .dropdown-container {
        flex: none;
        width: 100%;
        text-align: left;
    }
    
    .search-input {
        text-align: left !important;
    }
    
    .items-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }
    
    .items-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .promo-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .promo-card {
        padding: 1.2rem;
        min-height: 120px;
    }

    .promo-content {
        max-width: 65%;
        padding-right: 0.8rem;
    }

    .promo-image {
        width: 35%;
    }

    .promo-title {
        font-size: 1rem;
    }

    .promo-description {
        font-size: 0.75rem;
    }

    .participate-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}