.shop_ranks {
    margin: 2rem auto;
    border-collapse: separate;
    border-spacing: 20px 0px;
    width: 90%;
    max-width: 1200px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
}

.shop_ranks td {
    vertical-align: middle;
    padding: 1vh 1vw;
    transition: padding 0.4s ease;
    text-align: center;
}

.dark td, .clear td { text-align: left; padding: 1.5vh 1vw; }

.clear td { background-color: rgb(29, 29, 29); }
.dark td { background-color: rgb(20, 20, 20); }

p.shop-name {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
}

.Explorer {
    background-image: linear-gradient(
        90deg,
        #4a2d0c 0%,
        #b9691d 30%,
        #f3b84c 50%,
        #b9691d 70%,
        #4a2d0c 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.Expert {
    background-image: linear-gradient(
        90deg,
        #212529 0%,
        #6c7a8a 25%,
        #b0b7bf 50%,
        #6c7a8a 75%,
        #212529 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.Legend {
    background-image: linear-gradient(
        90deg,
        #5a4813 0%,
        #b79919 25%,
        #e1c50b 50%,
        #b79919 75%,
        #5a4813 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

p.shop-price {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0px;
}

.shop-spec {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background-image: linear-gradient(
        90deg,
        #7a7f85 0%,
        #d1d5d8 45%,
        #7a7f85 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 3px rgba(0,0,0,0.3);
}

.rankIcon {
    width: 180px;
    margin: auto;
    display: block;
    transition: width 0.4s ease, transform 0.4s ease;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.7));
    cursor: pointer;
    text-align: center;
}

.rankIcon:hover {
    transform: scale(1.15);
}

.specCheck {
    width: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
}

.buyRank {
    margin-bottom: 3vh;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65em 1.6em;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    user-select: none;
    overflow: hidden;
    z-index: 0;
    background: transparent;
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.4s ease;
    box-shadow: 0 6px 14px rgba(59, 59, 59, 0.45);
}

.buyRank::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, #646464, #525252);
    border-radius: 10px;
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 1;
}

.buyRank::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, #7e7e7e, #424242);
    border-radius: 10px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.buyRank:hover::after,
.buyRank:focus::after {
    opacity: 1;
}

.buyRank:hover::before,
.buyRank:focus::before {
    opacity: 0;
}

.buyRank:hover,
.buyRank:focus {
    box-shadow: 0 0 28px rgba(82, 82, 82, 0.95);
    transform: scale(1.1);
    outline: none;
}

.buyRank:active {
    transform: translateY(2px);
    box-shadow: 0 3px 8px rgba(63, 63, 63, 0.85);
}

.buyRank:disabled {
    cursor: not-allowed;
    color: #ccc;
    box-shadow: none;
    background: none !important;
    pointer-events: none;
}

.buyRank i {
    font-size: 1.25rem;
}

.buyRank.Explorer::before {
    background: linear-gradient(90deg, #6b3e1e, #b87333);
    box-shadow: 0 4px 10px rgba(184, 115, 51, 0.6);
}

.buyRank.Explorer::after {
    background: linear-gradient(90deg, #b87333, #6b3e1e);
    box-shadow: 0 0 25px rgba(184, 115, 51, 1);
}

.buyRank.Explorer:hover,
.buyRank.Explorer:focus {
    box-shadow: 0 0 25px rgba(184, 115, 51, 1);
}

.buyRank.Expert {
    color: #eee;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.55);
}

.buyRank.Expert::before {
    background: linear-gradient(90deg, #3f4348, #7f868d);
    box-shadow: 0 4px 10px rgba(127, 134, 141, 0.6);
}

.buyRank.Expert::after {
    background: linear-gradient(90deg, #7f868d, #3f4348);
    box-shadow: 0 0 25px rgba(127, 134, 141, 1);
}

.buyRank.Expert:hover,
.buyRank.Expert:focus {
    box-shadow: 0 0 25px rgba(127, 134, 141, 1);
}

.buyRank.Legend::before {
    background: linear-gradient(90deg, #8c6b1f, #d4af37);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.6);
}

.buyRank.Legend::after {
    background: linear-gradient(90deg, #d4af37, #8c6b1f);
    box-shadow: 0 0 25px rgba(212, 175, 55, 1);
}

.buyRank.Legend:hover,
.buyRank.Legend:focus {
    box-shadow: 0 0 25px rgba(212, 175, 55, 1);
}
