.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.pagination .active,  .pagination a:hover {
    background: linear-gradient(180deg, #9CEDFF 0%, #3ED4F6 100%);
    box-shadow: 0px 2px 6px 0px rgba(62,212,246,.7);
    color: #fff;
}

.pagination li,.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-weight: 600;
    border-radius: 10px;
    background-color: #f9fafb;
    color: #333;
    font-size: 14px;
    transition: all .3s;
    margin-right:3px;
}

.pagination .disabled{
    border-radius: 10px;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* 404 Page */
.page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px 60px;
    text-align: center;
}

.page-404__hero {
    position: relative;
    margin-bottom: 32px;
}

.page-404__dice-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}

.page-404__dice {
    width: 72px;
    height: 72px;
    background: linear-gradient(145deg, #9cedff 0%, #3ed4f6 50%, #319dff 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(62, 212, 246, 0.45),
                inset 0 2px 4px rgba(255, 255, 255, 0.6);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 10px;
    gap: 4px;
    animation: diceFloat 3s ease-in-out infinite;
}

.page-404__dice--left {
    animation-delay: 0s;
    transform: rotate(-12deg);
}

.page-404__dice--right {
    animation-delay: 1.5s;
    transform: rotate(12deg);
}

.page-404__dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    margin: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.page-404__dot--empty {
    visibility: hidden;
}

.page-404__code {
    font-family: Baloo2-Bold, Baloo2-SemiBold, sans-serif;
    font-size: clamp(80px, 18vw, 140px);
    line-height: 1;
    background: linear-gradient(180deg, #9cedff 0%, #3ed4f6 45%, #319dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(62, 212, 246, 0.35));
    letter-spacing: -4px;
    margin: 0;
}

.page-404__title {
    font-family: Baloo2-Bold, Baloo2-SemiBold, sans-serif;
    font-size: clamp(22px, 4vw, 32px);
    color: #333;
    margin: 16px 0 12px;
}

.page-404__text {
    font-family: Baloo2-Regular, Baloo2-SemiBold, sans-serif;
    font-size: 16px;
    color: #999;
    max-width: 420px;
    line-height: 1.6;
    margin: 0 auto 32px;
}

.page-404__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.page-404__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    height: 50px;
    padding: 0 28px;
    border-radius: 25px;
    font-size: 16px;
    font-family: Baloo2-Bold, Baloo2-SemiBold, sans-serif;
    transition: all 0.3s cubic-bezier(0.2, 0.57, 0.36, 0.8);
    cursor: pointer;
}

.page-404__btn .iconfont {
    font-size: 18px;
}

.page-404__btn--primary {
    background: linear-gradient(180deg, #9cedff 0%, #3ed4f6 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(62, 212, 246, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.page-404__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 212, 246, 0.65);
    color: #fff;
}

.page-404__btn--secondary {
    background: #f9fafb;
    color: #666;
    border: 2px solid #ecedee;
}

.page-404__btn--secondary:hover {
    background: #fff;
    border-color: #3ed4f6;
    color: #3ed4f6;
}

.page-404__btn--secondary:hover .iconfont {
    color: #3ed4f6;
}

.page-404__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #eee;
    width: 100%;
    max-width: 480px;
}

.page-404__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #999;
    transition: color 0.3s;
}

.page-404__links a .iconfont {
    font-size: 16px;
    color: #3ed4f6;
}

.page-404__links a:hover {
    color: #3ed4f6;
}

@keyframes diceFloat {
    0%, 100% {
        transform: translateY(0) rotate(var(--dice-rotate, 0deg));
    }
    50% {
        transform: translateY(-10px) rotate(calc(var(--dice-rotate, 0deg) + 6deg));
    }
}

.page-404__dice--left {
    --dice-rotate: -12deg;
}

.page-404__dice--right {
    --dice-rotate: 12deg;
}

@media screen and (max-width: 767px) {
    .page-404 {
        min-height: calc(100vh - 160px);
        padding: 24px 16px 40px;
    }

    .page-404__dice {
        width: 56px;
        height: 56px;
        padding: 8px;
        border-radius: 12px;
    }

    .page-404__dot {
        width: 8px;
        height: 8px;
    }

    .page-404__dice-wrap {
        gap: 12px;
    }

    .page-404__actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .page-404__btn {
        width: 100%;
    }
}
