.codes-hub-body {
    color: #dbe7f6;
    background:
        radial-gradient(circle at 14% 0%, rgba(29, 78, 216, 0.3), transparent 30rem),
        radial-gradient(circle at 86% 0%, rgba(56, 189, 248, 0.14), transparent 24rem),
        linear-gradient(180deg, #07152d 0%, #071126 100%);
}

.codes-hub-page {
    width: 100%;
    max-width: 76rem;
    margin: 0 auto 4rem;
    padding: 0.2rem 0 0;
}

.codes-hub-hero,
.codes-hub-controls,
.codes-hub-trending,
.codes-hub-listings {
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 0.95rem;
    background: rgba(8, 24, 49, 0.84);
    box-shadow: 0 1.2rem 2.8rem rgba(2, 6, 23, 0.35);
}

.codes-hub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 11rem;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
}

.codes-hub-eyebrow {
    margin: 0;
    color: #8ec5ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.codes-hub-hero h1 {
    margin: 0.25rem 0 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.codes-hub-hero p {
    margin: 0.7rem 0 0;
    max-width: 40rem;
    color: #9fb3cc;
    line-height: 1.55;
}

.codes-hub-hero__icon {
    display: grid;
    width: 100%;
    aspect-ratio: 1/1;
    place-items: center;
    color: #dbeafe;
    background: radial-gradient(circle at 30% 25%, rgba(96, 165, 250, 0.52), rgba(29, 78, 216, 0.3));
    border: 1px solid rgba(147, 197, 253, 0.45);
    border-radius: 1rem;
    font-size: 2rem;
    font-weight: 900;
}

.codes-hub-controls {
    margin-top: 0.9rem;
    padding: 0.8rem;
}

.codes-hub-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.8rem;
    padding: 0 0.75rem;
    background: rgba(11, 26, 49, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.65rem;
}

.codes-hub-search span {
    color: #8ca3bc;
}

.codes-hub-search input {
    width: 100%;
    color: #f8fbff;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
}

.codes-hub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.codes-hub-filter {
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    color: #c9dbef;
    background: rgba(15, 29, 52, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 760;
    cursor: pointer;
}

.codes-hub-filter.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #1d4ed8;
}

.codes-hub-trending {
    margin-top: 0.85rem;
    padding: 0.75rem;
}

.codes-hub-trending h2 {
    margin: 0 0 0.6rem;
    color: #e2e8f0;
    font-size: 0.94rem;
}

.codes-hub-trending__row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.codes-hub-trending__pill {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.5rem;
    color: #dbeafe;
    background: rgba(15, 31, 56, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.62rem;
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
}

.codes-hub-trending__pill img {
    width: 1.55rem;
    height: 1.55rem;
    object-fit: cover;
    border-radius: 0.35rem;
}

.codes-hub-listings {
    margin-top: 0.85rem;
    padding: 0.8rem;
}

.codes-hub-listings__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.65rem;
}

.codes-hub-listings__header p {
    margin: 0;
    color: #dbeafe;
    font-weight: 750;
}

.codes-hub-listings__header select {
    min-height: 2.2rem;
    padding: 0 0.6rem;
    color: #dbeafe;
    background: rgba(15, 30, 53, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.55rem;
    font: inherit;
    font-size: 0.82rem;
}

.codes-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.codes-hub-card {
    display: grid;
    gap: 0.62rem;
    padding: 0.65rem;
    background: rgba(13, 28, 50, 0.88);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 0.75rem;
}

.codes-hub-card__head {
    display: grid;
    grid-template-columns: 3.55rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
}

.codes-hub-card__head img {
    width: 3.55rem;
    height: 3.55rem;
    object-fit: cover;
    border-radius: 0.55rem;
}

.codes-hub-card__head h3 {
    margin: 0;
    color: #f8fbff;
    font-size: 1rem;
}

.codes-hub-card__head span {
    display: inline-block;
    margin-top: 0.28rem;
    padding: 0.22rem 0.45rem;
    color: #86efac;
    background: rgba(22, 101, 52, 0.42);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 780;
}

.codes-hub-card__meta {
    display: grid;
    gap: 0.25rem;
}

.codes-hub-card__meta small {
    color: #9fb3cc;
    font-size: 0.76rem;
    font-weight: 660;
}

.codes-hub-card__action {
    display: inline-flex;
    min-height: 2.1rem;
    align-items: center;
    justify-content: center;
    color: #bfdbfe;
    background: rgba(29, 78, 216, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.36);
    border-radius: 0.5rem;
    font-size: 0.82rem;
    font-weight: 780;
    text-decoration: none;
}

.codes-hub-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
}

.codes-hub-pagination button,
.codes-hub-pagination span {
    min-width: 2rem;
    min-height: 2rem;
    padding: 0 0.45rem;
    color: #dbeafe;
    background: rgba(15, 30, 53, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.42rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 740;
}

.codes-hub-pagination .is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #1d4ed8;
}

.codes-hub-hidden {
    display: none !important;
}

@media (max-width: 980px) {
    .codes-hub-hero {
        grid-template-columns: 1fr;
    }

    .codes-hub-hero__icon {
        max-width: 7rem;
    }

    .codes-hub-trending__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .codes-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .codes-hub-listings__header {
        display: grid;
    }

    .codes-hub-grid {
        grid-template-columns: 1fr;
    }
}

