/* ==========================================================================
   فونت محلی وزیرمتن (در صورت داشتن فایل فونت در پوشه fonts مسیر را فعال کنید)
   ========================================================================== */
/*
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
*/

/* ==========================================================================
   تنظیمات پایه و Reset (معادل Tailwind Preflight)
   ========================================================================== */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: 'Vazirmatn', sans-serif;
    overflow-x: clip;
}

body {
    margin: 0;
    line-height: inherit;
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f1f5f9;
    color: #0f172a;
    overflow-x: clip;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: inherit;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, [role="button"] {
    cursor: pointer;
}

button {
    background-color: transparent;
    background-image: none;
}

button, a, select {
    touch-action: manipulation;
}

img, svg, canvas, video {
    display: block;
    max-width: 100%;
}

/* ==========================================================================
   استایل‌های سفارشی پروژه (مشترک بین صفحات)
   ========================================================================== */
.body-car-page {
    overflow-x: clip;
}

details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

#sortBar {
    position: sticky;
    top: 78px;
    z-index: 30;
}

@media (min-width: 640px) {
    #sortBar {
        top: 96px;
    }
}

#sortBar.is-stuck {
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 10px -4px rgba(37, 99, 235, 0.08);
}

@media (min-width: 1024px) {
    #filtersSidebar.lg\:sticky {
        position: sticky;
        top: 112px;
        align-self: flex-start;
    }
    #sortBar.is-stuck {
        max-width: 48rem;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }
    #sortBar.is-stuck .sort-btn {
        padding-top: 0.375rem;
        padding-bottom: 0.375rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.karnama-card-hover {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .karnama-card-hover:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
        border-color: #93c5fd;
    }
}

.karnama-card-hover:active {
    transform: scale(0.99);
}

@keyframes shimmerSweep {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.skeleton-shimmer {
    position: relative;
    overflow: hidden;
    background-color: #e2e8f0;
}

.skeleton-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: shimmerSweep 1.4s infinite;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* ==========================================================================
   کلاس‌های چیدمان (Display, Flex, Grid, Position)
   ========================================================================== */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.self-start { align-self: flex-start; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { inset: 0px; }
.top-0 { top: 0px; }
.top-2\.5 { top: 0.625rem; }
.-top-3 { top: -0.75rem; }
.top-\[78px\] { top: 78px; }
.top-24 { top: 6rem; }
.top-28 { top: 7rem; }
.bottom-2\.5 { bottom: 0.625rem; }
.left-2\.5 { left: 0.625rem; }
.left-4 { left: 1rem; }
.right-2\.5 { right: 0.625rem; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ==========================================================================
   ابعاد و فاصله‌ها (Width, Height, Padding, Margin, Gap)
   ========================================================================== */
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-2\/5 { width: 40%; }
.w-1\/2 { width: 50%; }
.w-3\/5 { width: 60%; }
.w-2\/3 { width: 66.666667%; }
.w-3\/4 { width: 75%; }
.w-4\/5 { width: 80%; }

.min-w-0 { min-width: 0px; }
.max-w-\[45\%\] { max-width: 45%; }
.max-w-\[55\%\] { max-width: 55%; }
.max-w-\[65\%\] { max-width: 65%; }
.max-w-\[68\%\] { max-width: 68%; }
.max-w-\[160px\] { max-width: 160px; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }

.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-44 { height: 11rem; }
.h-52 { height: 13rem; }
.h-full { height: 100%; }

.min-h-screen { min-height: 100vh; }
.min-h-\[68px\] { min-height: 68px; }
.min-h-\[4\.25rem\] { min-height: 4.25rem; }
.max-h-\[90vh\] { max-height: 90vh; }
.max-h-\[92vh\] { max-height: 92vh; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-2\.5 { margin-bottom: 0.625rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.ml-0\.5 { margin-left: 0.125rem; }
.ml-1 { margin-left: 0.25rem; }
.mr-1 { margin-right: 0.25rem; }

.p-0 { padding: 0px; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.pt-0 { padding-top: 0px; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }

.pb-0\.5 { padding-bottom: 0.125rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.875rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* ==========================================================================
   تایپوگرافی (Font Sizes, Weights, Alignments, Truncate, Wrap)
   ========================================================================== */
.text-\[10px\] { font-size: 10px; line-height: 1.4; }
.text-\[11px\] { font-size: 11px; line-height: 1.45; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.underline { text-decoration-line: underline; }
.line-through { text-decoration-line: line-through; }

.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-line { white-space: pre-line; }
.break-words { overflow-wrap: break-word; }

.select-none { user-select: none; -webkit-user-select: none; }
.select-all { user-select: all; -webkit-user-select: all; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ==========================================================================
   رنگ‌ها (Text, Background, Border, Gradients)
   ========================================================================== */
/* Text Colors */
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-gray-950 { color: #030712; }

.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }

.text-blue-100 { color: #dbeafe; }
.text-blue-200 { color: #bfdbfe; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }
.text-blue-900 { color: #1e3a8a; }

.text-karnama-600 { color: #1d4ed8; }
.text-karnama-700 { color: #1e40af; }
.text-karnama-900 { color: #172554; }

.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-emerald-900 { color: #064e3b; }

.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: #fbbf24; }
.text-amber-500 { color: #f59e0b; }
.text-amber-600 { color: #d97706; }
.text-amber-800 { color: #92400e; }
.text-amber-900 { color: #78350f; }

.text-indigo-500 { color: #6366f1; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-700 { color: #4338ca; }
.text-indigo-800 { color: #3730a3; }
.text-indigo-900 { color: #312e81; }

.text-rose-500 { color: #f43f5e; }
.text-rose-600 { color: #e11d48; }
.text-rose-700 { color: #be123c; }
.text-rose-800 { color: #9f1239; }
.text-rose-900 { color: #881337; }

/* Background Colors */
.bg-white { background-color: #ffffff; }
.bg-white\/70 { background-color: rgba(255, 255, 255, 0.7); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }

.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-200\/80 { background-color: rgba(229, 231, 235, 0.8); }
.bg-gray-900\/70 { background-color: rgba(17, 24, 39, 0.7); }
.bg-gray-900\/75 { background-color: rgba(17, 24, 39, 0.75); }

.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-100\/80 { background-color: rgba(241, 245, 249, 0.8); }

.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-600 { background-color: #2563eb; }

.bg-karnama-600 { background-color: #1d4ed8; }

.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-50\/80 { background-color: rgba(236, 253, 245, 0.8); }
.bg-emerald-50\/90 { background-color: rgba(236, 253, 245, 0.9); }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-600 { background-color: #059669; }

.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-50\/90 { background-color: rgba(255, 251, 235, 0.9); }
.bg-amber-400\/20 { background-color: rgba(251, 191, 36, 0.2); }
.bg-amber-500 { background-color: #f59e0b; }

.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-50\/90 { background-color: rgba(238, 242, 255, 0.9); }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-indigo-500 { background-color: #6366f1; }
.bg-indigo-600 { background-color: #4f46e5; }

.bg-rose-50 { background-color: #fff1f2; }
.bg-rose-100 { background-color: #ffe4e6; }

/* Gradients */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-via, transparent), var(--tw-gradient-to)); }

.from-white { --tw-gradient-from: #ffffff; --tw-gradient-to: rgba(255, 255, 255, 0); }
.to-slate-100 { --tw-gradient-to: #f1f5f9; }

.from-blue-50 { --tw-gradient-from: #eff6ff; --tw-gradient-to: rgba(239, 246, 255, 0); }
.from-blue-50\/80 { --tw-gradient-from: rgba(239, 246, 255, 0.8); --tw-gradient-to: rgba(239, 246, 255, 0); }
.to-indigo-50 { --tw-gradient-to: #eef2ff; }
.to-slate-50\/80 { --tw-gradient-to: rgba(248, 250, 252, 0.8); }

.from-blue-900 { --tw-gradient-from: #1e3a8a; --tw-gradient-to: rgba(30, 58, 138, 0); }
.to-karnama-900 { --tw-gradient-to: #172554; }

.from-amber-400 { --tw-gradient-from: #fbbf24; --tw-gradient-to: rgba(251, 191, 36, 0); }
.to-rose-500 { --tw-gradient-to: #f43f5e; }

.from-orange-500 { --tw-gradient-from: #f97316; --tw-gradient-via: rgba(239, 68, 68, 0); --tw-gradient-to: rgba(249, 115, 22, 0); }
.via-red-500 { --tw-gradient-via: #ef4444; }
.to-rose-600 { --tw-gradient-to: #e11d48; }

.hover\:from-orange-600:hover { --tw-gradient-from: #ea580c; }
.hover\:to-rose-700:hover { --tw-gradient-to: #be123c; }

/* ==========================================================================
   حاشیه‌ها، گردی گوشه و سایه‌ها (Borders, Rounded, Shadows)
   ========================================================================== */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-200\/60 { border-color: rgba(229, 231, 235, 0.6); }
.border-gray-200\/80 { border-color: rgba(229, 231, 235, 0.8); }
.border-gray-300 { border-color: #d1d5db; }

.border-slate-200 { border-color: #e2e8f0; }
.border-slate-200\/80 { border-color: rgba(226, 232, 240, 0.8); }

.border-blue-100 { border-color: #dbeafe; }
.border-blue-100\/70 { border-color: rgba(219, 234, 254, 0.7); }
.border-blue-100\/80 { border-color: rgba(219, 234, 254, 0.8); }
.border-blue-200 { border-color: #bfdbfe; }
.border-karnama-600\/30 { border-color: rgba(29, 78, 216, 0.3); }

.border-emerald-200 { border-color: #a7f3d0; }
.border-emerald-200\/80 { border-color: rgba(167, 243, 208, 0.8); }
.border-emerald-200\/90 { border-color: rgba(167, 243, 208, 0.9); }
.border-emerald-600 { border-color: #059669; }

.border-amber-200 { border-color: #fde68a; }
.border-amber-200\/90 { border-color: rgba(253, 230, 138, 0.9); }
.border-amber-400 { border-color: #fbbf24; }
.border-amber-400\/40 { border-color: rgba(251, 191, 36, 0.4); }

.border-indigo-200 { border-color: #c7d2fe; }
.border-indigo-200\/90 { border-color: rgba(199, 210, 254, 0.9); }

.border-rose-200 { border-color: #fecdd3; }
.border-rose-200\/80 { border-color: rgba(254, 205, 211, 0.8); }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-t-3xl { border-top-left-radius: 1.5rem; border-top-right-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.shadow-karnama-500\/30 { box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3), 0 2px 4px -2px rgba(37, 99, 235, 0.3); }
.shadow-karnama-600\/20 { box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.2), 0 2px 4px -2px rgba(29, 78, 216, 0.2); }
.shadow-amber-500\/20 { box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2), 0 2px 4px -2px rgba(245, 158, 11, 0.2); }
.shadow-rose-500\/20 { box-shadow: 0 4px 6px -1px rgba(244, 63, 94, 0.2), 0 2px 4px -2px rgba(244, 63, 94, 0.2); }
.shadow-rose-500\/30 { box-shadow: 0 20px 25px -5px rgba(244, 63, 94, 0.3), 0 8px 10px -6px rgba(244, 63, 94, 0.3); }

/* ==========================================================================
   افکت‌ها، انیمیشن‌ها و تعاملات (Opacity, Blur, Transforms, Transitions)
   ========================================================================== */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.object-cover { object-fit: cover; }

.opacity-0 { opacity: 0; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }

.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.scale-95 { --tw-scale-x: .95; --tw-scale-y: .95; transform: scale(0.95); }
.scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; transform: scale(1); }
.rotate-180 { --tw-rotate: 180deg; transform: rotate(180deg); }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Hover, Focus & Active States */
.hover\:underline:hover { text-decoration-line: underline; }
.hover\:text-gray-700:hover { color: #374151; }
.hover\:text-gray-800:hover { color: #1f2937; }
.hover\:text-gray-900:hover { color: #111827; }
.hover\:text-karnama-600:hover { color: #1d4ed8; }
.hover\:text-white:hover { color: #ffffff; }

.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-gray-300:hover { background-color: #d1d5db; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-blue-50\/40:hover { background-color: rgba(239, 246, 255, 0.4); }
.hover\:bg-blue-50\/50:hover { background-color: rgba(239, 246, 255, 0.5); }
.hover\:bg-blue-100:hover { background-color: #dbeafe; }
.hover\:bg-karnama-600:hover { background-color: #1d4ed8; }
.hover\:bg-karnama-700:hover { background-color: #1e40af; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:bg-emerald-100:hover { background-color: #d1fae5; }
.hover\:bg-amber-100:hover { background-color: #fef3c7; }
.hover\:bg-amber-400:hover { background-color: #fbbf24; }
.hover\:bg-indigo-100:hover { background-color: #e0e7ff; }

.hover\:border-blue-200:hover { border-color: #bfdbfe; }
.hover\:border-blue-300:hover { border-color: #93c5fd; }
.hover\:border-karnama-500\/50:hover { border-color: rgba(37, 99, 235, 0.5); }

.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-karnama-600:focus { border-color: #1d4ed8; }

.active\:scale-95:active { transform: scale(0.95); }
.active\:scale-\[0\.99\]:active { transform: scale(0.99); }

.group:hover .group-hover\:text-karnama-600 { color: #1d4ed8; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group[open] .group-open\:rotate-180 { transform: rotate(180deg); }

/* ==========================================================================
   واکنش‌گرایی (Responsive Breakpoints: sm, md, lg, xl)
   ========================================================================== */
@media (min-width: 640px) {
    .sm\:inline { display: inline; }
    .sm\:block { display: block; }
    .sm\:hidden { display: none; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
    .sm\:justify-end { justify-content: flex-end; }
    .sm\:self-auto { align-self: auto; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .sm\:top-3 { top: 0.75rem; }
    .sm\:top-24 { top: 6rem; }
    .sm\:bottom-3 { bottom: 0.75rem; }
    .sm\:left-3 { left: 0.75rem; }
    .sm\:left-6 { left: 1.5rem; }
    .sm\:right-3 { right: 0.75rem; }

    .sm\:w-auto { width: auto; }
    .sm\:w-11 { width: 2.75rem; }
    .sm\:w-12 { width: 3rem; }
    .sm\:w-24 { width: 6rem; }
    .sm\:w-56 { width: 14rem; }
    .sm\:max-w-xs { max-width: 20rem; }

    .sm\:h-11 { height: 2.75rem; }
    .sm\:h-12 { height: 3rem; }
    .sm\:h-16 { height: 4rem; }
    .sm\:h-20 { height: 5rem; }
    .sm\:h-36 { height: 9rem; }
    .sm\:h-40 { height: 10rem; }
    .sm\:h-48 { height: 12rem; }
    .sm\:h-56 { height: 14rem; }
    .sm\:max-h-\[90vh\] { max-height: 90vh; }

    .sm\:mt-0 { margin-top: 0px; }
    .sm\:mt-2 { margin-top: 0.5rem; }
    .sm\:mt-3 { margin-top: 0.75rem; }
    .sm\:mt-8 { margin-top: 2rem; }
    .sm\:mt-12 { margin-top: 3rem; }
    .sm\:mt-16 { margin-top: 4rem; }
    .sm\:mb-3 { margin-bottom: 0.75rem; }
    .sm\:mb-5 { margin-bottom: 1.25rem; }
    .sm\:mb-6 { margin-bottom: 1.5rem; }

    .sm\:p-4 { padding: 1rem; }
    .sm\:p-5 { padding: 1.25rem; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:p-8 { padding: 2rem; }
    .sm\:p-12 { padding: 3rem; }
    .sm\:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
    .sm\:px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
    .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .sm\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .sm\:py-0 { padding-top: 0px; padding-bottom: 0px; }
    .sm\:py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .sm\:py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
    .sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .sm\:py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
    .sm\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
    .sm\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .sm\:pt-0 { padding-top: 0px; }
    .sm\:pt-12 { padding-top: 3rem; }
    .sm\:pb-0 { padding-bottom: 0px; }
    .sm\:pb-8 { padding-bottom: 2rem; }
    .sm\:pb-12 { padding-bottom: 3rem; }

    .sm\:gap-2 { gap: 0.5rem; }
    .sm\:gap-3 { gap: 0.75rem; }
    .sm\:gap-4 { gap: 1rem; }
    .sm\:gap-5 { gap: 1.25rem; }
    .sm\:gap-6 { gap: 1.5rem; }
    .sm\:gap-8 { gap: 2rem; }

    .sm\:space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
    .sm\:space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
    .sm\:space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
    .sm\:space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
    .sm\:space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

    .sm\:text-right { text-align: right; }
    .sm\:text-xs { font-size: 0.75rem; line-height: 1rem; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }

    .sm\:rounded-3xl { border-radius: 1.5rem; }
    .sm\:shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
    .sm\:border-t-0 { border-top-width: 0px; }
}

@media (min-width: 768px) {
    .md\:inline { display: inline; }
    .md\:inline-block { display: inline-block; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:max-w-md { max-width: 28rem; }
    .md\:mt-0 { margin-top: 0px; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-4 { grid-column: span 4 / span 4; }
    .lg\:col-span-8 { grid-column: span 8 / span 8; }
    .lg\:sticky { position: sticky; }
    .lg\:top-28 { top: 7rem; }
    .lg\:w-72 { width: 18rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:gap-8 { gap: 2rem; }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}