/* ===== Pagination (No Bootstrap) ===== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 12px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    color: #efe7dd;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease,
        filter 0.18s ease;
}

.pagination .page-item:not(.disabled):not(.active) .page-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    border-color: rgba(255, 198, 112, 0.34);
}

.pagination .page-item.active .page-link {
    border-color: rgba(255, 198, 112, 0.45);
    background: linear-gradient(135deg, #ffc56f 0%, #ff9635 48%, #f05a24 100%);
    color: #18120d;
    box-shadow: 0 18px 36px rgba(255, 114, 36, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.07);
    color: rgba(239, 231, 221, 0.38);
    box-shadow: none;
    cursor: not-allowed;
}

.pagination .page-item.disabled:last-child .page-link {
    min-width: auto;
    padding: 0.55rem 0.95rem;
    border-style: dashed;
    background: transparent;
}

.pagination.pagination-sm .page-link {
    min-width: 36px;
    min-height: 36px;
    padding: 0.48rem 0.8rem;
    font-size: 0.84rem;
}

@media (max-width: 768px) {
    .pagination-wrapper {
        justify-content: center;
        padding: 10px 8px;
        overflow: hidden;
    }

    .pagination {
        flex-wrap: nowrap;
        gap: 4px;
        max-width: 100%;
        white-space: nowrap;
    }

    .pagination .page-link {
        min-width: 30px;
        min-height: 30px;
        padding: 0.36rem 0.56rem;
        font-size: 0.76rem;
    }

    .pagination .page-item.disabled .page-link {
        min-width: 30px;
        padding: 0.36rem 0.46rem;
    }

    .pagination .page-item.active .page-link {
        min-width: 32px;
    }
}
