#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 18px;
    z-index: 900;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.2s, color 0.2s, box-shadow 0.2s;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    font-family: inherit;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

#back-to-top::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    transform: rotate(-45deg) translate(7px, 7px);
    pointer-events: none;
    transition: border-color 0.2s;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

#back-to-top:hover::before {
    border-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1024px) {
    #back-to-top {
        bottom: 80px;
        right: 14px;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

body.low-end-mode #back-to-top {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#copy-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(0, 255, 170, 0.5);
    color: #00ffaa;
    padding: 8px 20px;
    font-family: 'Geist Pixel', system-ui;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    text-shadow: 0 0 8px #00ffaa;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.15);
}

#copy-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1024px) {
    #copy-toast {
        bottom: 90px;
    }
}

#mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    background: rgba(0, 0, 0, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 62px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.low-end-mode #mobile-bottom-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 1024px) {
    #mobile-bottom-nav {
        display: flex;
    }
}

.mobile-nav-items {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    border: none;
    background: transparent;
    font-family: inherit;
    position: relative;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mobile-nav-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1.5px;
    background: var(--fg, #fff);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 0 0 2px 2px;
}

.mobile-nav-item.active::after {
    opacity: 1;
}

.mobile-nav-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: #fff;
}

.mobile-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
    display: block;
    filter: grayscale(100%) brightness(1000%);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.mobile-nav-item.active .mobile-nav-icon,
.mobile-nav-item:hover .mobile-nav-icon {
    opacity: 1;
}

.mobile-nav-label {
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

@media (max-width: 1024px) {
    .page-wrapper {
        padding-bottom: 70px !important;
    }
}



.search-shortcut-hint {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.55rem;
    font-family: inherit;
    padding: 1px 5px;
    border-radius: 3px;
    pointer-events: none;
    letter-spacing: 1px;
    transition: opacity 0.2s;
    font-weight: 800;
}

.search-container:focus-within .search-shortcut-hint {
    opacity: 0;
}

@media (max-width: 1024px) {
    .search-shortcut-hint {
        display: none;
    }
}

.val-copy-btn {
    width: 100%;
    padding: 7px 10px;
    margin-top: 6px;
    background: rgba(0, 255, 170, 0.06);
    border: 1px solid rgba(0, 255, 170, 0.3);
    color: #00ffaa;
    font-family: 'Geist Pixel', system-ui;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    border-radius: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.val-copy-btn:hover {
    background: rgba(0, 255, 170, 0.15);
    border-color: rgba(0, 255, 170, 0.7);
    color: #00ffaa;
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.15);
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}

.val-copy-btn.copied {
    background: rgba(0, 255, 170, 0.2);
    border-color: #00ffaa;
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.7);
}

.val-copy-btn.expired-code {
    background: rgba(255, 50, 50, 0.05);
    border-color: rgba(255, 50, 50, 0.25);
    color: rgba(255, 100, 100, 0.6);
}

.val-copy-btn.expired-code:hover {
    background: rgba(255, 50, 50, 0.1);
    border-color: rgba(255, 50, 50, 0.5);
    color: rgba(255, 100, 100, 0.85);
    box-shadow: none;
    text-shadow: none;
}



.section-anchor {
    scroll-margin-top: 200px;
}

@media (max-width: 1024px) {
    .section-anchor {
        scroll-margin-top: 80px;
    }
}

.search-input.has-value {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.no-results-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.3);
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    filter: grayscale(100%) opacity(0.5);
    display: block;
}

.no-results-text {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
}

.no-results-sub {
    font-size: 0.65rem;
    margin-top: 6px;
    letter-spacing: 1px;
    opacity: 0.6;
    display: block;
}

.sort-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 24px;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: none;
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    text-transform: uppercase;
}

.sort-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.sort-btn.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    box-shadow: none;
    transform: none;
}

@media (max-width: 600px) {


    #back-to-top {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
        right: 10px;
        bottom: 76px;
    }
}
