.menu-hero {
    position: relative;
    padding: 76px 0 50px;
    overflow: hidden;
    border-bottom: 1px solid rgba(68, 221, 246, 0.13);
    background:
        radial-gradient(circle at 84% 8%, rgba(30, 184, 226, 0.24), transparent 31%),
        radial-gradient(circle at 10% 87%, rgba(41, 100, 255, 0.14), transparent 27%),
        linear-gradient(to bottom, rgba(6, 26, 36, 0.65), rgba(8, 7, 13, 0.08));
}

.menu-hero::before {
    position: absolute;
    width: 450px;
    height: 270px;
    content: "";
    top: -115px;
    right: 7%;
    border: 1px solid rgba(117, 234, 255, 0.12);
    border-radius: 20px;
    transform: rotate(-11deg);
    box-shadow:
        0 0 0 40px rgba(72, 215, 255, 0.018),
        0 0 0 82px rgba(72, 215, 255, 0.011);
    pointer-events: none;
}

.menu-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #7eeeff;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.menu-back-link:hover {
    color: #dcfbff;
    transform: translateX(-4px);
}

.menu-back-link span {
    font-size: 19px;
}

.menu-hero-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 45px;
    margin-top: 41px;
}

.menu-hero h1,
.menu-page-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -2px;
}

.menu-hero h1 {
    margin-top: 8px;
    font-size: clamp(39px, 5vw, 57px);
    line-height: 1;
}

.menu-hero h1 span,
.menu-page-heading h2 span {
    background: linear-gradient(100deg, #25cfee, #89efff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.menu-hero p {
    max-width: 625px;
    margin-top: 16px;
    color: #a0b7bd;
    font-size: 14px;
    line-height: 1.75;
}

.menu-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.menu-hero-pills span {
    padding: 7px 10px;
    color: #a7effb;
    background: rgba(37, 192, 224, 0.1);
    border: 1px solid rgba(111, 234, 255, 0.16);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
}

.menu-preview-window {
    position: relative;
    width: min(100%, 385px);
    justify-self: end;
    padding: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(11, 25, 36, 0.96), rgba(8, 16, 28, 0.92));
    border: 1px solid rgba(102, 230, 255, 0.3);
    border-radius: 15px;
    box-shadow:
        0 23px 48px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(31, 190, 231, 0.1);
    transform: perspective(800px) rotateY(-6deg) rotateX(2deg);
}

.menu-preview-window::after {
    position: absolute;
    width: 250px;
    height: 110px;
    content: "";
    right: -65px;
    bottom: -65px;
    background: rgba(36, 194, 235, 0.13);
    border-radius: 50%;
    filter: blur(26px);
}

.menu-preview-header,
.menu-preview-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    padding: 0 7px;
    color: #93dbe7;
    font-size: 9px;
}

.menu-preview-header strong {
    color: #e6fbff;
    font-size: 10px;
}

.menu-preview-header span {
    width: 7px;
    height: 7px;
    background: #35e2af;
    border-radius: 50%;
    box-shadow: 0 0 9px #35e2af;
}

.menu-preview-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 10px;
    background:
        linear-gradient(rgba(104, 222, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104, 222, 255, 0.03) 1px, transparent 1px),
        rgba(6, 15, 25, 0.75);
    background-size: 16px 16px;
    border: 1px solid rgba(113, 222, 255, 0.1);
    border-radius: 10px;
}

.preview-item {
    display: flex;
    min-height: 66px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    color: #fff;
}

.preview-item span {
    font-size: 22px;
}

.preview-item small {
    color: rgba(255, 255, 255, 0.73);
    font-size: 8px;
    font-weight: 700;
}

.purple-item {
    background: rgba(142, 58, 255, 0.34);
}

.blue-item {
    background: rgba(42, 145, 255, 0.3);
}

.pink-item {
    background: rgba(255, 54, 181, 0.26);
}

.green-item {
    background: rgba(29, 207, 150, 0.23);
}

.orange-item {
    background: rgba(255, 141, 33, 0.25);
}

.gray-item {
    background: rgba(255, 255, 255, 0.06);
}

.menu-preview-footer {
    color: #6da6b0;
    font-weight: 700;
}

.menu-category-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.menu-category-stats > div {
    display: flex;
    flex: 1 1 155px;
    flex-direction: column;
    gap: 5px;
    min-width: 140px;
    padding: 15px 18px;
    background: rgba(11, 26, 37, 0.58);
    border: 1px solid rgba(95, 226, 255, 0.13);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.menu-category-stats strong {
    color: #bdf7ff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
}

.menu-category-stats span {
    color: #829fa8;
    font-size: 10px;
    font-weight: 700;
}

.menu-resources-section {
    padding: 73px 0 95px;
}

.menu-page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 29px;
}

.menu-page-heading h2 {
    margin-top: 9px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
}

.menu-page-heading > p {
    color: #859ca4;
    font-size: 13px;
}

.menu-toolbar {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto auto;
    gap: 12px;
    margin-bottom: 25px;
}

.menu-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    background: rgba(11, 23, 32, 0.86);
    border: 1px solid rgba(96, 220, 250, 0.16);
    border-radius: 11px;
}

.menu-search-wrap:focus-within {
    border-color: rgba(53, 213, 245, 0.62);
    box-shadow: 0 0 0 3px rgba(35, 194, 225, 0.1);
}

.menu-search-wrap svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: #55dceb;
}

.menu-search-wrap input {
    width: 100%;
    height: 45px;
    outline: none;
    color: #effdff;
    background: transparent;
    border: 0;
    font-size: 12px;
}

.menu-search-wrap input::placeholder {
    color: #627e88;
}

.menu-filter-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(11, 23, 32, 0.86);
    border: 1px solid rgba(96, 220, 250, 0.16);
    border-radius: 11px;
}

.menu-filter-button {
    min-height: 36px;
    padding: 0 12px;
    color: #82a2ab;
    background: transparent;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.menu-filter-button:hover {
    color: #d9fbff;
}

.menu-filter-button.active {
    color: #04232a;
    background: linear-gradient(135deg, #53e7fb, #2abbd6);
    box-shadow: 0 5px 14px rgba(26, 192, 221, 0.28);
}

.menu-sort-select {
    min-height: 46px;
    padding: 0 33px 0 13px;
    outline: none;
    color: #ccecef;
    background: #0d1c26;
    border: 1px solid rgba(96, 220, 250, 0.16);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.menu-sort-select:focus {
    border-color: rgba(53, 213, 245, 0.62);
}

.menu-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.menu-resource-card {
    overflow: hidden;
    background: linear-gradient(145deg, rgba(14, 26, 34, 0.98), rgba(10, 14, 21, 0.98));
    border: 1px solid rgba(98, 217, 249, 0.12);
    border-radius: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.menu-resource-card:hover {
    transform: translateY(-7px);
    border-color: rgba(88, 222, 250, 0.42);
    box-shadow: 0 22px 35px rgba(0, 0, 0, 0.25);
}

.menu-card-visual {
    position: relative;
    height: 166px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.visual-server-selector {
    background: linear-gradient(135deg, #113e68, #168fa4);
}

.visual-ranks {
    background: linear-gradient(135deg, #422264, #a04fd4);
}

.visual-profile {
    background: linear-gradient(135deg, #4c2056, #c145ae);
}

.visual-warps {
    background: linear-gradient(135deg, #123c46, #249c9c);
}

.visual-island {
    background: linear-gradient(135deg, #224760, #4678cb);
}

.visual-settings {
    background: linear-gradient(135deg, #3b4c24, #6aa738);
}

.menu-card-type {
    position: absolute;
    z-index: 3;
    bottom: 13px;
    left: 15px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.mini-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 37px);
    gap: 6px;
    padding: 10px;
    background: rgba(5, 14, 24, 0.53);
    border: 1px solid rgba(181, 246, 255, 0.22);
    border-radius: 8px;
    box-shadow: 0 8px 17px rgba(0, 0, 0, 0.2);
}

.mini-slot {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 5px;
    color: white;
    font-size: 16px;
}

.purple-slot {
    background: rgba(138, 52, 245, 0.5);
}

.blue-slot {
    background: rgba(46, 144, 250, 0.44);
}

.pink-slot {
    background: rgba(241, 46, 175, 0.4);
}

.green-slot {
    background: rgba(29, 200, 142, 0.39);
}

.orange-slot {
    background: rgba(248, 135, 32, 0.4);
}

.gray-slot {
    background: rgba(255, 255, 255, 0.1);
}

.rank-preview {
    display: flex;
    width: 171px;
    flex-direction: column;
    gap: 7px;
    padding: 12px;
    background: rgba(27, 11, 43, 0.45);
    border: 1px solid rgba(231, 194, 255, 0.2);
    border-radius: 9px;
}

.rank-row {
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 5px;
    color: white;
    font-size: 9px;
    font-weight: 800;
}

.rank-row-one {
    background: linear-gradient(90deg, #9d41ff, #d676ff);
}

.rank-row-two {
    background: linear-gradient(90deg, #3975ff, #68c3ff);
}

.rank-row-three {
    background: linear-gradient(90deg, #da3c8e, #ff8ec8);
}

.profile-preview {
    position: relative;
    display: grid;
    width: 155px;
    height: 107px;
    place-items: center;
    background: rgba(53, 13, 48, 0.5);
    border: 1px solid rgba(255, 204, 240, 0.2);
    border-radius: 11px;
}

.profile-head {
    position: absolute;
    top: 16px;
    left: 16px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    background: #b750af;
    border: 2px solid rgba(255, 230, 248, 0.45);
    border-radius: 7px;
    color: white;
}

.profile-line {
    position: absolute;
    right: 14px;
    height: 6px;
    background: rgba(255, 220, 245, 0.55);
    border-radius: 5px;
}

.line-one {
    top: 20px;
    width: 70px;
}

.line-two {
    top: 35px;
    width: 53px;
}

.line-three {
    top: 50px;
    width: 62px;
}

.profile-xp {
    position: absolute;
    right: 13px;
    bottom: 14px;
    padding: 5px 7px;
    background: rgba(99, 37, 116, 0.85);
    border-radius: 4px;
    color: #ffe5fb;
    font-size: 8px;
    font-weight: 800;
}

.warp-preview {
    position: relative;
    width: 177px;
    height: 107px;
}

.warp-node {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;
    background: rgba(39, 188, 177, 0.77);
    border: 1px solid rgba(217, 255, 251, 0.4);
    border-radius: 50%;
    color: white;
    font-size: 16px;
}

.node-one {
    top: 10px;
    left: 0;
}

.node-two {
    right: 0;
    bottom: 3px;
}

.node-three {
    top: 20px;
    right: 44px;
}

.warp-line {
    position: absolute;
    height: 2px;
    background: rgba(180, 255, 248, 0.55);
    transform-origin: left;
}

.warp-line-one {
    top: 33px;
    left: 33px;
    width: 80px;
    transform: rotate(4deg);
}

.warp-line-two {
    top: 46px;
    left: 86px;
    width: 70px;
    transform: rotate(47deg);
}

.island-preview {
    position: relative;
    display: grid;
    width: 130px;
    height: 110px;
    place-items: center;
}

.island-core {
    position: relative;
    z-index: 2;
    color: #d2eaff;
    font-size: 47px;
    text-shadow: 0 0 15px rgba(190, 232, 255, 0.7);
}

.island-orbit {
    position: absolute;
    border: 1px solid rgba(202, 236, 255, 0.34);
    border-radius: 50%;
}

.orbit-a {
    width: 105px;
    height: 51px;
    transform: rotate(-20deg);
}

.orbit-b {
    width: 87px;
    height: 45px;
    transform: rotate(43deg);
}

.orbit-c {
    width: 119px;
    height: 57px;
    transform: rotate(15deg);
}

.settings-preview {
    display: flex;
    width: 166px;
    flex-direction: column;
    gap: 7px;
    padding: 10px;
    background: rgba(19, 43, 17, 0.5);
    border: 1px solid rgba(226, 255, 201, 0.2);
    border-radius: 8px;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(241, 255, 233, 0.87);
    font-size: 9px;
    font-weight: 700;
}

.toggle-row i {
    position: relative;
    display: block;
    width: 25px;
    height: 12px;
    border-radius: 50px;
}

.toggle-on {
    background: #62d78a;
}

.toggle-off {
    background: #5c6860;
}

.toggle-row i::after {
    position: absolute;
    width: 8px;
    height: 8px;
    content: "";
    top: 2px;
    background: white;
    border-radius: 50%;
}

.toggle-on::after {
    right: 2px;
}

.toggle-off::after {
    left: 2px;
}

.menu-card-content {
    padding: 19px;
}

.menu-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.menu-card-meta > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.menu-label {
    color: #9aeef9;
    background: rgba(34, 193, 222, 0.14);
}

.menu-premium-label {
    padding: 5px 9px;
    color: #ffda7f;
    background: rgba(255, 181, 24, 0.12);
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.menu-rating {
    color: #ffcc69;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.menu-card-content h3 {
    margin-top: 15px;
    color: #eefbfd;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.menu-card-content > p {
    min-height: 57px;
    margin-top: 8px;
    color: #98aeb4;
    font-size: 12px;
    line-height: 1.58;
}

.menu-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.menu-card-tags span {
    padding: 5px 8px;
    color: #afd1d6;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
}

.menu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    color: #789298;
    font-size: 10px;
    font-weight: 700;
}

.menu-open-link {
    color: #72e6f6;
    font-size: 11px;
    font-weight: 800;
}

.menu-open-link span {
    padding-left: 3px;
    font-size: 14px;
    transition: padding 0.2s ease;
}

.menu-open-link:hover span {
    padding-left: 7px;
}

.no-menu-results {
    display: none;
    padding: 60px 20px;
    color: #849ca2;
    border: 1px dashed rgba(94, 219, 248, 0.23);
    border-radius: 17px;
    text-align: center;
}

.no-menu-results.show {
    display: block;
}

.no-menu-results > span {
    display: block;
    margin-bottom: 12px;
    color: #76e9f9;
    font-size: 34px;
}

.no-menu-results h3 {
    color: #ddf9fd;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
}

.no-menu-results p {
    margin-top: 7px;
    font-size: 12px;
}

@media (max-width: 1050px) {
    .menu-hero-layout {
        grid-template-columns: 1fr;
    }

    .menu-preview-window {
        justify-self: start;
    }

    .menu-resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-toolbar {
        grid-template-columns: 1fr auto;
    }

    .menu-search-wrap {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .menu-hero {
        padding: 49px 0 35px;
    }

    .menu-hero-layout {
        gap: 28px;
        margin-top: 30px;
    }

    .menu-hero h1 {
        font-size: 39px;
    }

    .menu-hero p {
        font-size: 13px;
    }

    .menu-preview-window {
        width: 100%;
        transform: none;
    }

    .menu-category-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-category-stats > div {
        min-width: 0;
        padding: 13px;
    }

    .menu-page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .menu-toolbar {
        grid-template-columns: 1fr;
    }

    .menu-filter-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .menu-filter-button {
        flex: 1;
        padding: 0 7px;
    }

    .menu-sort-select {
        width: 100%;
    }

    .menu-resource-grid {
        grid-template-columns: 1fr;
    }

    .menu-card-content > p {
        min-height: auto;
    }
}