@font-face {
    font-family: "Goldman-Bold";
    src: url("/assets/fonts/Goldman-Bold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Goldman-Regular";
    src: url("/assets/fonts/Goldman-Regular.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

footer img {
    display: block;
    width: 220px;

}



body {
    --firecat-red: #fe0000;
    --firecat-orange: #fe6a00;
    --panel: #212020;
    --panel-dark: #151515;
    --muted: #b8b8b8;
    --special: #ffd700;
    --red: #eb4b4b;
    --pink: #d32ce6;
    --purple: #8847ff;
    --blue: #4b69ff;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease;
    margin: 0;
    background: radial-gradient(circle at top left, #5a1a16 0%, #212020 25%, #111 100%) top left / 100% no-repeat, #111;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

* {
    box-sizing: border-box
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select {
    font: inherit
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #212020;
    /*background-image:radial-gradient(circle at bottom left,var(--firecat-orange) 7%,var(--firecat-red) 15%,transparent 30%);*/
    background-size: 2000px 200px;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 0 14px rgba(0, 0, 0, .35);
    background: rgb(0, 0, 0, .4);
}

.brand {
    font-weight: 900;
    font-size: 1.7rem;
    white-space: nowrap;
    margin-top: -5px;
    margin-left: 10px;
    margin-right: -10rem;
    z-index: 1000;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: max-content;
}

.brand img {
    width: 150px !important;
    height: auto !important;
    max-height: 44px;
    object-fit: contain;
    margin: 0 !important;
}

.discord img {
    width: 35px !important;
    height: auto !important;
    max-height: 44px;
    object-fit: contain;
    margin: 0 !important;
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.nav-links button,
.nav-links a {
    background: transparent;
    border: 0;
    color: white;
    padding: .75rem 1rem;
    border-radius: 999px;
    cursor: pointer;
}

.nav-links button:hover,
.nav-links button.active,
.nav-links a:hover {
    background: rgba(254, 0, 0, .3);
}

.dropdown {
    position: relative;
    display: inline-block
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #272728;
    border: 1px solid #333;
    border-radius: 14px;
    min-width: 190px;
    padding: .5rem;
    z-index: 100;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-content::-webkit-scrollbar {
    width: 4px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0; /* adds padding at top/bottom so it doesn't touch the border-radius */
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 999px;
    min-height: 30px; /* prevents thumb from becoming tiny */
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.dropdown:hover .dropdown-content {
    display: grid;
    gap: .2rem
}

.dropdown-content button {
    text-align: left;
    width: 100%;
    border-radius: 10px;
    padding: .65rem .8rem;
}

.menu-btn {
    display: none;
    margin-left: auto;
    background: var(--firecat-red);
    color: white;
    border: 0;
    padding: .7rem .9rem;
    border-radius: 8px;
}

.dropdown-content a {
    display: block;
    padding: .3rem .8rem;
    border-radius: 10px;
    white-space: nowrap;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-content a img {
    width: 60px;
    object-fit: contain;
}

.gun img {
    filter: brightness(110%);

}

.dark img {
    filter: brightness(200%);
}

.dropdown-content a:hover {
    background: rgba(254, 0, 0, .3);
}

.dropdown-content hr {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin: .35rem 0;
    margin-top: -5px;
}
.dropdown-content.user {
    right: 0;
    left: auto;

}



main {
    width: min(1280px, 94%);
    margin: auto
}

.collection.hero-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    scale: 130%
}

.collection .hero-info-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.collection .hero-info-text h1 {
    text-align: left;
    font-size: 2.5rem;
}

.collection .hero-info-text p {
    font-size: 0.9rem;
    color: #a0a0b0;
    margin: 0;
    max-width: 460px;
    line-height: 1.5;
    text-align: left;
}

img.weapon {
    width: 250px !important;
}


.hero {
    opacity: 0;
}

.hero.ready {
    padding: 3rem 0 1rem;
    text-align: center;
    opacity: 1;

}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    margin: 0;
    font-weight: 900;
    line-height: .95;
}

.hero-case-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero img {
    width: 150px;
    height: auto;
}

.hero p,
.active-filter-box,
.result-count {
    color: var(--muted)
}

.controls {
    max-width: 950px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: .8rem;
    margin-top: 0 !important;
}

.controls-labels {
    max-width: 950px;
    margin: 2rem auto .35rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: .8rem;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: left;
    padding-left: 5px;
    cursor: default;
}

.controls input,
.controls select {
    width: 100%;
    background: #151515;
    border: 1px solid #333;
    color: white;
    padding: .9rem 1rem;
    border-radius: 12px;
}

.control-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 15px;
    margin-bottom: 4px;
    margin-right: auto;
    padding-left: 10px;
    color: lightgray;
}

.active-filter-box {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
}

.skin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    padding-bottom: 5rem;
}

.skin-card.forbidden {
    --rarity: white;
}

.skin-card.special {
    --rarity: var(--special);
}

.skin-card.red {
    --rarity: var(--red);
}

.skin-card.pink {
    --rarity: var(--pink);
}

.skin-card.purple {
    --rarity: var(--purple);
}

.skin-card.blue {
    --rarity: var(--blue);
}

.skin-card {
    background: var(--panel);
    border: 1px solid #333;
    border-radius: 18px;
    overflow: hidden;
    transition: .2s ease;
    min-width: 0;
    cursor: pointer;
}

.skin-card:hover {
    transform: translateY(-5px);
    border-color: var(--rarity);
    box-shadow: 0 0 18px color-mix(in srgb, var(--rarity) 75%, transparent);
}

.skin-image-wrap {
    background: #272728;
    height: 190px;
    display: flex;
    justify-content: center;

    position: relative;
}

.rarity-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to top,
            color-mix(in srgb, var(--rarity) 35%, transparent) 0%,
            color-mix(in srgb, var(--rarity) 8%, transparent) 60%,
            transparent 100%);
}

.skin-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(5px 5px 5px #222);
    position: relative;
    z-index: 1;
}

.rarity-bar {
    height: 3px;
    background: var(--rarity);
}

.skin-card-info {
    padding: 1rem
}

.weapon-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.heart-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}


.heart-wrapper svg[data-prefix="far"],
.heart-wrapper svg[data-prefix="fas"] {
  position: absolute;
  top: 0;
  left: 0;
  margin-right: 1rem;
  transition: opacity 0.2s;
  scale:120%;
}

.heart-wrapper svg[data-prefix="far"] { opacity: 1; }
.heart-wrapper svg[data-prefix="fas"] { opacity: 0; }

.heart-wrapper:hover svg[data-prefix="far"] { opacity: 0; }
.heart-wrapper:hover svg[data-prefix="fas"] { opacity: 1; }

.skin-card.favorited .heart-wrapper svg[data-prefix="far"] { opacity: 0; }
.skin-card.favorited .heart-wrapper svg[data-prefix="fas"] { opacity: 1; }
.heart-wrapper.favorited svg[data-prefix="far"] { opacity: 0; }
.heart-wrapper.favorited svg[data-prefix="fas"] { opacity: 1; }

.detail-image-card .heart-wrapper svg[data-prefix="far"],
.detail-image-card .heart-wrapper svg[data-prefix="fas"] {
  scale:160%;
  padding-right: 1rem;
}

.weapon-label {
    color: #8d8d8d;
    margin: 0 0 .4rem;
    font-size: .9rem;
}

.case-label {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--muted);
    min-width: 0;
}

.case-label:hover {
    color: var(--firecat-orange);
}

.skin-card .case-label img {
    width: 30px;
}

.skin-card h2 {
    margin: 0 0 .7rem;
    font-size: 1.15rem;
    min-height: 45px;
    overflow-wrap: anywhere;
    font-size: 1.67rem;
}

.rarity-pill {
    display: inline-block;
    color: black;
    width: 100%;
    padding: .3rem 0;
    text-align: center;
    border-radius: 999px;
    font-weight: 800;
    font-size: .85rem;
    margin-top: -1rem;
}

.rarity-pill.forbidden {
    background: white
}

.rarity-pill.special {
    background: var(--special)
}

.rarity-pill.red {
    background: var(--red)
}

.rarity-pill.pink {
    background: var(--pink)
}

.rarity-pill.purple {
    background: var(--purple)
}

.rarity-pill.blue {
    background: var(--blue)
}

.card-bottom {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    color: var(--muted);
    font-size: .85rem;
}

.card-bottom span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-bottom strong {
    color: var(--firecat-orange);
    white-space: nowrap
}

.empty-message {
    grid-column: 1/-1;
    text-align: center;
    color: var(--muted);
}

.detail-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 3rem 8.5rem;
    width: fit-content;
    margin: 0 auto;
}

canvas {
    width: 100%;
    max-width: 960px;
    height: auto;
    border-radius: 10px
}

.detail-image-card,
.detail-info-card,
.detail-patterns-card{
    background: rgba(33, 32, 32, .92);
    border: 1px solid #333;
    border-radius: 22px;
    padding: 1.5rem;
}

.detail-image-card {
    align-items: center;
    justify-content: center;
}

.detail-image-card img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 10px
}

.detail-image-card .slider {
    max-width: 960px;

}

.slider {
    margin-top: 1%;
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;
    background: grey;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

/* Mouse-over effects */
.slider:hover {
    opacity: 1;
    /* Fully shown on mouse-over */
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: whitesmoke;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: whitesmoke;
    cursor: pointer;
}

.title-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.value-box {
    margin-left: auto;
    margin-bottom: 1rem;
    background: #151515;
    border-radius: 16px;
    padding: 1rem;

}

.value-box:empty {
    display: none;
}

.detail-layout h1 {
    margin: .2rem 0 1rem;
    font-size: clamp(2rem, 5vw, 4rem);
    overflow-wrap: anywhere;
}

.value-box span {
    display: block;
    color: var(--muted)
}

.value-box strong {
    font-size: 2rem;
    color: var(--firecat-orange)
}

.info-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.info-table p {
    background: #151515;
    border-radius: 12px;
    padding: .8rem 1rem;
    display: flex;
    justify-content: space-between;
    margin: 0.7rem 0rem;
}

.info-table span {
    color: var(--muted)
}

.info-table a:hover,
.inline-tag:hover {
    color: var(--firecat-orange);
}

.inline-tag {
    display: inline-block;
    margin-left: .35rem;
    color: white;
}

.compact-detail .detail-image-card,
.compact-detail .detail-info-card {
    padding: 1rem;
}

.compact-detail .detail-image-card {
    min-height: 360px;
}

.compact-detail .detail-image-card img {
    max-height: 340px;
}

.compact-detail .detail-info-card h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.compact-detail .info-table {
    gap: .5rem;
}

.compact-detail .info-table p {
    margin: 0;
    padding: 1rem .9rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    flex-wrap: wrap;
    padding: 0rem 0 4rem;
    background: transparent;
    box-shadow: none;
}

.pagination button,
.pagination span {
    background: #151515;
    color: white;
    border: 1px solid #333;
    border-radius: 10px;
    padding: .65rem .85rem;
}

.pagination button {
    cursor: pointer;
}

.pagination button:hover {
    background: rgba(254, 0, 0, 0.3);
}

.pagination button.active {

    border-color: var(--firecat-red);
}

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

.pagination .jump-wrap {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 1px solid #333;
    border-radius: 10px;
    background: #151515;
}

.pagination .jump-input {
    background: transparent;
    color: white;
    border: none;
    text-align: center;
    cursor: text;
    padding: .65rem .85rem;
    width: 46px;
}

.pagination .jump-input:focus {
    outline: none;
    border-color: var(--firecat-red);
}

.pagination .jump-input::-webkit-outer-spin-button,
.pagination .jump-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.pagination .jump-input[type=number] {
    -moz-appearance: textfield;
}

footer {
    align-items: center;
    display: flex;
    justify-content: space-around;
    background: transparent;
    color: #fff;
    padding: 20px;
    bottom: 0;
    width: 100%;
    font-family: "Goldman-Regular";
    color: transparent;
}

footer .links {
    display: flex;
    align-items: center;
    gap: 0.67rem;
}

footer .logo {
    display: flex;
    align-items: center;
    gap: 0.67rem;
}

footer img {
    display: block;
    width: 220px;
}

footer p {
    color: #404040;
}

footer a {
    color: #808080;
}

hr.footer {
    width: 95%;
    color: #404040;
    margin-bottom: -0.1rem;
}

footer .discord {
    filter: invert(55%) sepia(7%) saturate(0%) hue-rotate(131deg) brightness(88%) contrast(85%);
    margin-left: 1rem;
}

.admin-list {
    display: grid;
    gap: 1rem;
    padding-bottom: 4rem
}

.admin-row,
.form-page,
.login-box {
    background: var(--panel);
    border: 1px solid #333;
    border-radius: 18px;
    padding: 1rem
}

.admin-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center
}

.admin-row p {
    color: var(--muted)
}

.admin-row a {
    color: var(--firecat-orange);
    margin-left: .8rem
}

.form-page,
.login-box {
    max-width: 720px;
    margin: 3rem auto
}

.admin-form,
.login-form {
    display: grid;
    gap: .8rem
}

.admin-form input,
.admin-form select,
.login-form input {
    background: #111;
    border: 1px solid #333;
    color: white;
    border-radius: 10px;
    padding: .8rem
}

.admin-form button,
.login-form button,
.big-button {
    background: var(--firecat-red);
    color: white;
    border: 0;
    border-radius: 10px;
    padding: 1rem;
    font-weight: 900;
    cursor: pointer;
    display: inline-block
}

.error {
    color: #ff8a8a
}

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

    .detail-layout {
        grid-template-columns: 1fr
    }
    img.weapon{
        width: 150px !important;;
        height: auto;
    }
}

@media(max-width:850px) {
    .menu-btn {
        display: block
    }

    nav {
        flex-wrap: wrap
    }

    .nav-links {
        display: none;
        width: 100%;
        justify-content: flex-start
    }

    .nav-links.show {
        display: flex
    }

    .dropdown {
        width: 100%
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: .4rem
    }

    .dropdown:hover .dropdown-content {
        display: none
    }

    .dropdown.open .dropdown-content {
        display: grid
    }

    
    .controls {
        grid-template-columns: 1fr
    }

    .skin-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .active-filter-box {
        display: block
    }
}

@media(max-width:540px) {
    .skin-grid {
        grid-template-columns: 1fr
    }

    .hero {
        text-align: left
    }

    .admin-row {
        align-items: flex-start;
        flex-direction: column
    }

    .info-table p {
        display: block
    }

    .info-table span {
        display: block;
        margin-bottom: .35rem
    }
}


/* =========================
   MOBILE POLISH - LAUNCH
   ========================= */

@media (max-width: 850px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(254, 0, 0, 0.26), transparent 34rem),
            #111;
    }

    nav {
        padding: .75rem;
        gap: .5rem;
    }

    .brand {
        font-size: 1.35rem;
        letter-spacing: -0.03em;
    }

    .menu-btn {
        display: block;
        margin-left: auto;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.15rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        justify-content: flex-start;
        align-items: stretch;
        padding-top: .75rem;
        gap: .45rem;
    }

    .nav-links.show {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .nav-links>button,
    .nav-links>a,
    .dropdown-btn {
        width: 100%;
        background: rgba(255, 255, 255, .045);
        border: 1px solid rgba(255, 255, 255, .08);
        text-align: center;
        border-radius: 12px;
        padding: .85rem .65rem;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        margin-top: .4rem;
        padding: .45rem;
        box-shadow: none;
        border-radius: 12px;
        background: rgba(0, 0, 0, .35);
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.open .dropdown-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .35rem;
    }

    .dropdown-content button {
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .08);
        padding: .75rem .5rem;
        text-align: center;
        font-size: .92rem;
        border-radius: 10px;
    }


    main {
        width: min(100% - 1rem, 1280px);
    }

    .hero {
        text-align: left;
        padding: 2rem .25rem 1rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 12vw, 3.2rem);
        line-height: .98;
        letter-spacing: -0.06em;
    }

    .hero p {
        font-size: .98rem;
        line-height: 1.45;
    }

    .controls {
        margin-top: 1.25rem;
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .controls input,
    .controls select {
        min-height: 48px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .active-filter-box {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: .75rem;
        padding: .75rem .15rem 1rem;
        font-size: .92rem;
    }

    .active-filter-box p {
        margin: 0;
    }

    .skin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
        padding-bottom: 3rem;
    }

    .skin-card {
        border-radius: 16px;
    }

    .skin-card:hover {
        transform: none;
    }

    .skin-image-wrap {
        height: 135px;
        padding: .55rem;
    }

    .skin-card-info {
        padding: .75rem;
    }

    .weapon-label {
        font-size: .78rem;
        margin-bottom: .25rem;
    }

    .skin-card h2 {
        font-size: .95rem;
        line-height: 1.15;
        min-height: 36px;
        margin-bottom: .5rem;
    }

    .rarity-pill {
        font-size: .72rem;
        padding: .28rem .58rem;
    }

    .card-bottom {
        margin-top: .75rem;
        font-size: .72rem;
        gap: .5rem;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0 2.5rem;
    }

    .detail-image-card,
    .detail-info-card {
        border-radius: 18px;
        padding: 1rem;
    }

    .detail-image-card {
        min-height: 280px;
    }

    .detail-image-card img {
        max-height: 280px;
    }

    .detail-info-card h1 {
        font-size: clamp(2rem, 12vw, 3.4rem);
        line-height: .95;
    }

    .value-box {
        margin: 1rem 0;
        padding: .9rem;
    }

    .value-box strong {
        font-size: 1.65rem;
    }

    .info-table {
        gap: .55rem;
    }

    .info-table p {
        display: block;
        padding: .85rem;
        margin: 0;
    }

    .info-table span {
        display: block;
        margin-bottom: .35rem;
        font-size: .78rem;
    }

    .login-box,
    .form-page {
        margin: 1rem auto;
        border-radius: 18px;
    }
}

@media (max-width: 380px) {
    .skin-grid {
        grid-template-columns: 1fr;
    }

    .skin-image-wrap {
        height: 170px;
    }

    .nav-links.show {
        grid-template-columns: 1fr;
    }

    .dropdown.open .dropdown-content {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) and (pointer: coarse) {

    button,
    a,
    select,
    input {
        -webkit-tap-highlight-color: rgba(254, 0, 0, .25);
    }

    .skin-card:active {
        transform: scale(.985);
        border-color: var(--firecat-red);
    }
}


/* ===== Requirement polish patch ===== */

@media (min-width: 1101px) {
    .skin-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 850px) {
    .brand img {
        width: 105px !important;
        max-height: 36px;
    }

    .controls-labels {
        grid-template-columns: 1fr;
        gap: .15rem;
        margin-top: 1.25rem;
    }

    .controls-labels span:nth-child(2),
    .controls-labels span:nth-child(3) {
        display: none;
    }

    .nav-links.show {
        grid-template-columns: 1fr 1fr;
    }

    .dropdown-content {
        max-height: 320px;
        overflow: auto;
    }

    .dropdown.open .dropdown-content {
        grid-template-columns: 1fr;
    }

    .dropdown-content a {
        text-align: center;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .08);
        padding: .75rem .5rem;
    }

    .collection.hero-info {
        scale: 100%
    }

    .skin-image-wrap img {
        transform: scale(1.03);
    }

    .compact-detail {
        padding-top: 1rem;
    }

    .compact-detail .detail-image-card {
        min-height: 240px;
    }

    .compact-detail .detail-image-card img {
        max-height: 240px;
    }

    .compact-detail .detail-info-card {
        margin-top: -1.2rem;
        position: relative;
        z-index: 2;
    }

    .pagination {
        padding-bottom: 2.5rem;
    }
}

@media (max-width: 380px) {
    .nav-links.show {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    footer .logo {
        flex-direction: column;

    }

    footer p {
        margin-left: 0;
        font-size: 13px;
    }
}

/* ===== HIDE/SHOW HAMBURGER ===== */
@media (min-width: 851px) {
    .sidebar-drawer,
    .sidebar-overlay { display: none !important; }
}

@media (max-width: 850px) {
    nav #nav-links { display: none; }
    .menu-btn { display: block; margin-left: auto; }
}

/* ===== HIDE ON DESKTOP ===== */
@media (min-width: 851px) {
    .sidebar-drawer,
    .sidebar-overlay { display: none !important; }
}

/* ===== HIDE NAV LINKS IN NAV BAR ON MOBILE ===== */
@media (max-width: 850px) {
    nav #nav-links { display: none; }
    .menu-btn { display: block; margin-left: auto; }
}

/* ===== OVERLAY ===== */
.sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.sidebar-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ===== DRAWER ===== */
.sidebar-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 270px;
    height: 100%;
    background: #1a1a1a;
    border-left: 1px solid #333;
    z-index: 200;
    transition: right .3s ease;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    overflow-y: auto;
    overflow-x: visible;
}
.sidebar-drawer.open {
    right: 0;
}

.sidebar-drawer::-webkit-scrollbar { width: 4px; }
.sidebar-drawer::-webkit-scrollbar-thumb { background: #444; border-radius: 999px; }

/* ===== DRAWER HEADER ===== */
.sidebar-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: .85rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.sidebar-drawer-header img {
    width: 105px;
}
.sidebar-drawer-header button {
    background: transparent;
    border: 1px solid #444;
    color: white;
    border-radius: 8px;
    padding: .4rem .7rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}
.sidebar-drawer-header button:hover {
    background: rgba(254,0,0,.25);
    border-color: #fe0000;
}

/* ===== TOP ROW (account + discord) ===== */
.drawer-top-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem 0 .5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: .25rem;
}
.drawer-top-row .discord {
    margin-left: auto;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    border-radius: 12px;
    padding: .85rem 1rem;
    height: 100%;
    align-content: center;
}
.drawer-top-row .discord img {
    width: 35px !important;
    height: 35x;
    filter: brightness(0) invert(1);
}

/* ===== NAV LINKS IN DRAWER ===== */
.sidebar-drawer #nav-links {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    width: 100%;
}
.sidebar-drawer #nav-links > a {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: 0;
    color: #d0d0d0;
    padding: .85rem .9rem;
    border-radius: 10px;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
}
.sidebar-drawer #nav-links > a:hover {
    background: rgba(254,0,0,.25);
    color: white;
}

/* ===== DROPDOWNS IN DRAWER ===== */
.sidebar-drawer .dropdown {
    position: static;
    width: 100%;
}
.sidebar-drawer .dropdown-btn {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: #d0d0d0;
    padding: .85rem .9rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}
.sidebar-drawer .dropdown-btn.user{
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    border-radius: 12px;
    padding: .85rem 1rem;
    
}
.sidebar-drawer .dropdown-btn:hover {
    background: rgba(254,0,0,.25);
    color: white;
}
.sidebar-drawer .dropdown.open > .dropdown-btn {
    background: rgba(254,0,0,.15);
    color: white;
}

/* ===== ACCORDION CONTENT ===== */
.sidebar-drawer .dropdown-content {
    display: none;
    position: static !important;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: .4rem .5rem;
    box-shadow: none !important;
    max-height: none !important;
    overflow: visible !important;
    flex-direction: column;
    gap: .1rem;
    min-width: unset;
}
.sidebar-drawer .dropdown.open > .dropdown-content {
    display: flex !important;
}
.sidebar-drawer .dropdown-content a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .75rem;
    border-radius: 8px;
    font-size: .95rem;
    color: #b8b8b8;
    text-decoration: none;
    width: 100%;
    white-space: normal;
    word-break: break-word;
    text-align: left;
}
.sidebar-drawer .dropdown-content a:hover {
    background: rgba(254,0,0,.2);
    color: white;
}
.sidebar-drawer .dropdown-content a img {
    width: 35px !important;
    height: 35px;
    object-fit: contain;
    flex-shrink: 0;
}
.sidebar-drawer .dropdown-content > button {
    width: 100%;
    background: transparent;
    border: 0;
    color: #666;
    font-size: .78rem;
    text-align: left;
    padding: .5rem .75rem .1rem;
    pointer-events: none;
    cursor: default;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sidebar-drawer .dropdown-content hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.07);
    margin: .25rem 0;
}

/* ===== SECTION DIVIDERS ===== */
.sidebar-drawer > hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    margin: .5rem 0;
    flex-shrink: 0;
}