.values-body {
    color: var(--brand-text);
    background: var(--brand-page-bg);
}

.values-page {
    width: min(100%, 78rem);
    margin: 0 auto 3rem;
}

.values-hero {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    background: var(--brand-panel);
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(37, 99, 235, 0.12);
}

.values-eyebrow {
    margin: 0;
    color: var(--brand-blue-600);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.values-hero h1 {
    margin: 0.45rem 0 0;
    color: var(--brand-text);
    font-size: clamp(1.6rem, 3.4vw, 2.45rem);
    line-height: 1.08;
}

.values-hero p {
    margin: 0.75rem 0 0;
    color: var(--brand-muted);
    line-height: 1.6;
}
.wishlist-notice {
    margin-top: 0.8rem;
    padding: 0.65rem 0.8rem;
    color: #bfdbfe;
    background: rgba(30, 64, 175, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 0.55rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.values-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: 0.9rem;
    padding: 0.75rem;
    background: var(--brand-panel);
    border: 1px solid var(--brand-border);
    border-radius: 0.85rem;
}

.values-filters__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 15rem;
    padding: 0.55rem 0.7rem;
    background: #f8fbff;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 0.7rem;
}

.values-filters__search span {
    color: var(--brand-muted);
    font-size: 0.9rem;
}

.values-filters__search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--brand-text);
    font-size: 0.9rem;
    font-weight: 700;
    outline: none;
}

.values-filters__search input::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.values-filters__meta {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.value-grid-empty {
    margin: 0.8rem 0 0;
    color: var(--brand-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.value-grid-empty[hidden] {
    display: none !important;
}

.value-card {
    position: relative;
    display: grid;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.6rem;
    color: inherit;
    text-decoration: none;
    background: var(--brand-panel);
    border: 1px solid var(--brand-border);
    border-radius: 0.85rem;
    box-shadow: 0 0.85rem 1.8rem rgba(15, 23, 42, 0.12);
}

.value-card[hidden] {
    display: none !important;
}

.value-card:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.5);
}
.value-card__link {
    display: grid;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
}
.value-card__media {
    position: relative;
}
.wishlist-heart-form {
    position: absolute;
    top: 0.42rem;
    left: 0.42rem;
    z-index: 4;
}
.wishlist-heart {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(100, 116, 139, 0.55);
    border-radius: 999px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.wishlist-heart:hover {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.62);
}
.wishlist-heart.is-active {
    color: #f87171;
    background: rgba(127, 29, 29, 0.42);
    border-color: rgba(248, 113, 113, 0.75);
}

.value-card__badge {
    position: absolute;
    top: 0.42rem;
    right: 0.42rem;
    z-index: 3;
    padding: 0.22rem 0.55rem;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 800;
}

.value-card__art {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.75rem;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.value-card__art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(15, 23, 42, 0.15);
}

.value-card strong {
    color: var(--brand-text);
    font-size: 1rem;
    line-height: 1.2;
}

.value-card__modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.value-card__modes b,
.value-card__modes i,
.value-card__mode-pill {
    display: inline-flex;
    min-height: 1.65rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 700;
}

.value-card__modes b {
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.value-card__modes i {
    color: #334155;
    background: #eef2ff;
}

.value-card__mode-pill {
    color: #334155;
    background: #eef2ff;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
}

.value-card__mode-pill.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.value-card__stats {
    display: grid;
    gap: 0.35rem;
    padding: 0.55rem;
    background: #f8fbff;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.65rem;
}

.value-card__stats span {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--brand-text);
    font-size: 0.84rem;
    font-weight: 800;
}

.value-card__stats em {
    color: var(--brand-muted);
    font-style: normal;
    font-weight: 700;
}

.value-card__stats[data-current-mode="regular"] [data-mode-block="permanent"] {
    display: none;
}

.value-card__stats[data-current-mode="permanent"] [data-mode-block="regular"] {
    display: none;
}

.value-card small {
    color: #64748b;
    font-size: 0.72rem;
}

.value-card__art--portal { background: linear-gradient(135deg, #0ea5e9, #6366f1 52%, #67e8f9); }
.value-card__art--buddha { background: linear-gradient(135deg, #eab308, #f97316); }
.value-card__art--blizzard { background: linear-gradient(135deg, #93c5fd, #0ea5e9); }
.value-card__art--creation { background: linear-gradient(135deg, #22c55e, #a855f7); }
.value-card__art--phoenix { background: linear-gradient(135deg, #2563eb, #f59e0b); }
.value-card__art--sound { background: linear-gradient(135deg, #581c87, #d946ef); }
.value-card__art--shadow { background: linear-gradient(135deg, #020617, #4338ca 52%, #e11d48); }
.value-card__art--bat { background: linear-gradient(135deg, #f97316, #ef4444 58%, #8b5cf6); }
.value-card__art--giraffe { background: linear-gradient(135deg, #f59e0b, #fde68a 58%, #92400e); }
.value-card__art--owl { background: linear-gradient(135deg, #92400e, #fbbf24 52%, #fef3c7); }
.value-card__art--cow { background: linear-gradient(135deg, #f9a8d4, #d946ef); }
.value-card__art--turtle { background: linear-gradient(135deg, #065f46, #14b8a6); }
.value-card__art--limited { background: linear-gradient(135deg, #0f172a, #475569 52%, #f8fafc); }
.value-card__art--limited-blue { background: linear-gradient(135deg, #082f49, #0284c7 52%, #bae6fd); }
.value-card__art--ugc { background: linear-gradient(135deg, #6d28d9, #ec4899 52%, #f9a8d4); }
.value-card__art--gear { background: linear-gradient(135deg, #334155, #64748b 52%, #cbd5e1); }
.value-card__art--pass { background: linear-gradient(135deg, #14532d, #22c55e 52%, #bbf7d0); }
.value-card__art--default { background: linear-gradient(135deg, #1d4ed8, #7c3aed 52%, #38bdf8); }

:root[data-theme="dark"] .values-hero,
:root[data-theme="dark"] .value-card {
    background: var(--brand-panel);
    border-color: var(--brand-border);
    box-shadow: 0 1rem 2rem rgba(2, 6, 23, 0.4);
}

:root[data-theme="dark"] .value-card strong,
:root[data-theme="dark"] .value-card__stats span {
    color: #e5edf9;
}

:root[data-theme="dark"] .value-card__stats {
    background: #0f1f39;
    border-color: rgba(96, 165, 250, 0.3);
}

:root[data-theme="dark"] .value-card__modes i {
    color: #dbeafe;
    background: #1e293b;
}
:root[data-theme="dark"] .values-filters {
    background: var(--brand-panel);
    border-color: var(--brand-border);
}
:root[data-theme="dark"] .values-filters__search {
    background: #0f1f39;
    border-color: rgba(96, 165, 250, 0.34);
}
:root[data-theme="dark"] .values-filters__search input {
    color: #e5edf9;
}
:root[data-theme="dark"] .values-filters__search input::placeholder {
    color: #93a9c7;
}
:root[data-theme="dark"] .wishlist-heart {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(96, 165, 250, 0.32);
}
:root[data-theme="dark"] .wishlist-heart:hover {
    color: #fca5a5;
    border-color: rgba(251, 113, 133, 0.72);
}
:root[data-theme="dark"] .wishlist-heart.is-active {
    color: #fb7185;
    background: rgba(80, 7, 36, 0.44);
    border-color: rgba(251, 113, 133, 0.7);
}

:root[data-theme="dark"] .value-card__mode-pill {
    color: #dbeafe;
    background: #1e293b;
}

:root[data-theme="dark"] .value-card__mode-pill.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

@media (max-width: 1180px) {
    .value-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 880px) {
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .values-page {
        margin-bottom: 1.6rem;
    }

    .values-hero {
        padding: 0.9rem;
        border-radius: 0.85rem;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .values-filters {
        padding: 0.62rem;
        border-radius: 0.75rem;
    }

    .values-filters__search {
        min-width: 100%;
    }

    .value-card {
        padding: 0.52rem;
        border-radius: 0.75rem;
    }

    .wishlist-heart {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.92rem;
    }

    .value-card__badge {
        padding: 0.18rem 0.45rem;
        font-size: 0.58rem;
    }

    .value-card strong {
        font-size: 0.92rem;
    }

    .value-card__stats span {
        font-size: 0.79rem;
    }
}
