main.flex-1 {
    margin-bottom: 0;
    padding-bottom: 0;
}
footer.mt-auto {
    margin-top: 0;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.88rem;
}
@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-image-container {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.card-image-container img {
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.card-image-container img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card-image-container img[loading="lazy"].loaded {
    opacity: 1;
}
.card-image-container .image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card-image-container .image-fallback.show {
    opacity: 1;
}
.view-all-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.view-all-btn:hover {
    transform: translateY(-0.5px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}
.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}
.view-all-btn:hover::before {
    left: 100%;
}
.category-tab, .tool-type-tab {
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    border: 1px solid transparent;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.category-tab:hover, .tool-type-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.category-tab.active, .tool-type-tab.active,
.category-tab.bg-blue-600, .tool-type-tab.bg-blue-600 {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
.tools-grid {
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-height: 400px;
}
.tools-grid.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.category-tools-container {
    position: relative;
    min-height: 400px;
}
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}
.animate-blob {
    animation: blob 7s infinite;
}
.animation-delay-2000 {
    animation-delay: 2s;
}
.animation-delay-4000 {
    animation-delay: 4s;
}
.gradient-text-enhanced {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.search-container:focus-within {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
@media (max-width: 768px) {
    .category-tab {
        min-width: auto;
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}
.top-banner-ad {
    z-index: 80;
    width: 100%;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.banner-item {
    transition: opacity 0.6s ease;
}
.navbar-layer {
    z-index: 60;
}
.dropdown-layer {
    z-index: 70;
}
.search-suggestions-layer {
    z-index: 30;
}
.banner-layer {
    z-index: 10;
}
.content-layer {
    z-index: 1;
}
.hero-section {
    position: relative;
    z-index: 10;
}
.hero-section .search-container {
    position: relative;
    z-index: 20;
}
.hero-section .search-dropdown {
    position: absolute;
    z-index: 30;
}
.group:hover .group-hover\:opacity-100 {
    pointer-events: auto;
}
.group .group-hover\:opacity-100 {
    pointer-events: none;
}
.dropdown-menu,
.group-hover\:opacity-100 {
    will-change: opacity;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.dropdown-menu::before,
.group-hover\:opacity-100::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
.group {
    position: relative;
}
.group > button + div[class*="absolute"] {
    top: calc(100% - 1px); 
}
.group:hover > div[class*="absolute"],
.group > div[class*="absolute"]:hover {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#mobile-menu .links-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu .links-container.expanded {
    overflow: visible;
}
#mobile-menu a {
    margin: 2px 0;
    border-radius: 8px;
    position: relative;
}
#mobile-menu a:active {
    background-color: rgba(59, 130, 246, 0.1);
}
#mobile-menu .text-xs.font-medium.text-gray-500 {
    padding: 8px 0;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}
#mobile-menu i.fas {
    width: 16px;
    text-align: center;
}
@media (max-width: 1023px) {
    #mobile-menu a {
        padding: 12px 16px !important;
    }
    #mobile-menu .text-xs.font-medium.text-gray-500 {
        padding: 12px 16px !important;
    }
    #mobile-menu .links-container a {
        padding-left: 40px !important;
    }
    .mobile-nav-button {
        background-color: #ffffff;
        border: 1px solid #d1d5db;
        color: #6b7280;
        transition: all 0.2s ease;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }
    .mobile-nav-button:hover {
        border-color: #9ca3af;
        color: #374151;
        background-color: #f9fafb;
    }
    .mobile-nav-button:active {
        background-color: #f3f4f6;
        transform: translateY(1px);
    }
    .mobile-nav-button i {
        line-height: 1;
    }
}