@layer utilities {

.pagination-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; transition: all 0.2s;
    background: rgba(18, 22, 59, 0.05); color: var(--text-main);
}
.pagination-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination-nav { display: flex; align-items: center; gap: 0.5rem; }

.btn-sm { padding: 6px 12px !important; min-height: 34px !important; font-size: 0.8rem !important; gap: 6px !important; }
.btn-xs { padding: 4px 8px !important; min-height: 28px !important; font-size: 0.75rem !important; gap: 4px !important; }

.uppercase { text-transform: uppercase; }
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.bg-warning { background: var(--warning); }
.rounded-md { border-radius: 6px; }
.rounded-lg { border-radius: 8px; }
.rounded-full { border-radius: 50%; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.font-semibold { font-weight: 600; }

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-accent { color: var(--accent) !important; }
.text-white { color: var(--surface) !important; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-stack { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
@media (max-width: 768px) { .flex-stack { flex-direction: column; align-items: flex-start; } }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1.5rem; }
.gap-6 { gap: 2rem; }
.gap-8 { gap: 2rem; }
.gap-xl { gap: 2.5rem; }

.mt-auto { margin-top: auto; }
.m-0 { margin: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.font-semibold { font-weight: 600; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.bg-warning { background: var(--warning); }
.rounded-md { border-radius: 6px; }
.rounded-lg { border-radius: 8px; }
.rounded-full { border-radius: 50%; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: center; justify-content: flex-start; }
.block { display: block; }
.grid { display: grid; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 2rem; }
.mb-8 { margin-bottom: 3rem; }
.mb-12 { margin-bottom: 5rem; }
.m-0 { margin: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid.col-2 { grid-template-columns: 1fr; }
.grid.col-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid.col-2 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (min-width: 1200px) { .grid.col-3 { grid-template-columns: repeat(3, 1fr); } }

.is-hidden { display: none !important; }

.animate-in { animation: fadeInSlide 0.5s ease forwards; }
.animate-up { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.icon-xs { width: 14px; height: 14px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
.icon-md { width: 24px; height: 24px; flex-shrink: 0; }
.icon-lg { width: 32px; height: 32px; flex-shrink: 0; }
.icon-xl { width: 48px; height: 48px; flex-shrink: 0; }
.icon-xs svg, .icon-sm svg, .icon-md svg, .icon-lg svg, .icon-xl svg { width: 100%; height: 100%; }
.btn-icon {
    width: 40px; height: 40px; padding: 0; min-height: unset;
    display: inline-flex; align-items: center; justify-content: center;
}
svg.btn-icon {
    width: 20px; height: 20px;
}

@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) and (max-width: 1023px) { .hide-tablet { display: none !important; } }

.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.active-reveal { opacity: 1 !important; transform: translate(0, 0) !important; }
.flex-center-gap { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.flex-start-gap { display: flex; align-items: center; justify-content: flex-start; gap: 0.5rem; }
.flex-between-gap { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.text-center-p { text-align: center; padding: 2rem 1.5rem; }
.text-left-p { text-align: left; padding-top: 1.5rem; border-top: 1px solid var(--border-light); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.rounded-lg { border-radius: 8px; }
.rounded-md { border-radius: 6px; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.block { display: block; }

}
