/* ===== TOOLSNOVA - COMPLETE CSS ===== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93c5fd;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
}

.dark-mode {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --border: #374151;
    --border-light: #1f2937;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.2s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 50;
}

.dark-mode .navbar {
    background: rgba(17, 24, 39, 0.8);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo i {
    color: var(--primary);
    -webkit-text-fill-color: initial;
    background: none;
    font-size: 1.8rem;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: 60px;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-cta::after {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: rotate(15deg);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    width: 45px;
    height: 45px;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

/* ===== AUTH STYLES ===== */
.auth-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-greeting {
    color: var(--text-primary);
    font-weight: 500;
    background: var(--bg-secondary);
    padding: 6px 16px;
    border-radius: 60px;
    border: 1px solid var(--border);
}

.logout-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 80px 32px;
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 60px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.guest-badge {
    display: inline-block;
    background: var(--warning);
    color: white;
    padding: 4px 12px;
    border-radius: 60px;
    font-size: 0.875rem;
    margin-left: 8px;
}

/* ===== SEARCH BAR ===== */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto 20px;
    position: relative;
    animation: fadeUp 0.6s ease-out 0.2s both;
    z-index: 10;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1.2rem;
    z-index: 1;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: 2px solid var(--border);
    border-radius: 60px;
    font-size: 1.1rem;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    position: relative;
    z-index: 5;
    outline: none;
    box-sizing: border-box;
    display: block;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
}

.search-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.7;
}

/* ===== USAGE COUNTER & WELCOME MESSAGE ===== */
.usage-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 60px;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

.usage-counter i {
    color: var(--warning);
}

.usage-link {
    color: var(--primary);
    text-decoration: none;
    margin-left: 8px;
    font-weight: 500;
}

.usage-link:hover {
    text-decoration: underline;
}

.welcome-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 8px 20px;
    border-radius: 60px;
    margin-top: 16px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.welcome-message i {
    font-size: 1.2rem;
}

.welcome-message strong {
    color: var(--text-primary);
}

/* ===== TOOLS SECTION ===== */
.tools-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-all:hover {
    color: var(--primary);
    gap: 12px;
}

.clear-search {
    background: none;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 60px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.clear-search:hover {
    background: var(--bg-secondary);
    color: var(--error);
    border-color: var(--error);
}

/* ===== TOOL CARD ===== */
.tools-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeScale 0.5s ease-out forwards;
}

.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.03), transparent);
    transition: height 0.3s ease;
}

.tool-card:hover::before {
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
}

.tool-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon i {
    color: white;
    transform: rotate(-5deg);
}

.tool-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-category {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 60px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.tool-card:hover .tool-category {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.tool-link {
    margin-left: auto;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tool-card:hover .tool-link {
    color: var(--primary);
    transform: translateX(4px);
}

/* ===== AD SECTIONS ===== */
.ad-container {
    padding: 20px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ad-banner {
    text-align: center;
}

.ad-banner p {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ad-placeholder {
    background: var(--bg-tertiary);
    border: 2px dashed var(--border);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-tertiary);
}

.ad-placeholder i {
    font-size: 2rem;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
}

.category-group {
    margin-bottom: 48px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.category-header i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 60px;
    box-shadow: var(--shadow-sm);
}

.category-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.tool-count {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: normal;
    margin-left: 8px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.footer-brand:hover i {
    transform: rotate(10deg) scale(1.1);
}

.footer-brand span {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 8px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 16px 0;
    max-width: 300px;
    line-height: 1.6;
}

.guest-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 60px;
    width: fit-content;
}

.guest-info i {
    color: var(--warning);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-group h4 {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.footer-group a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.footer-group a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-logout {
    color: var(--error) !important;
}

.footer-logout:hover {
    color: var(--error) !important;
    opacity: 0.8;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--bg-primary);
    z-index: 1000;
    padding: 30px 25px;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-xl);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-logo i {
    color: var(--primary);
    -webkit-text-fill-color: initial;
    background: none;
    font-size: 1.5rem;
}

.mobile-menu-close {
    background: var(--bg-secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-link {
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 60px;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    border: 1px solid transparent;
}

.mobile-link:hover,
.mobile-link.active {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--primary);
}

.mobile-link.mobile-cta {
    background: var(--primary);
    color: white;
    text-align: center;
}

.mobile-link.mobile-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-user-info {
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-radius: 60px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.mobile-user-info i {
    color: var(--primary);
}

.mobile-logout {
    color: var(--error) !important;
    border-color: var(--error) !important;
}

.mobile-logout:hover {
    background: var(--error) !important;
    color: white !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 20px;
    }
    
    .search-input {
        font-size: 16px;
        padding: 16px 20px 16px 50px;
    }
    
    .search-icon {
        left: 18px;
    }
    
    .category-header h3 {
        font-size: 1.1rem;
    }
    
    .tools-grid,
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .tools-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .ad-placeholder {
        padding: 30px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .usage-counter {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== DARK MODE SPECIFIC ===== */
.dark-mode .tool-card {
    background: var(--bg-secondary);
}

.dark-mode .category-header i {
    background: var(--bg-secondary);
}

.dark-mode .search-input {
    background: var(--bg-secondary);
}

.dark-mode .ad-placeholder {
    background: var(--bg-secondary);
}

.dark-mode .mobile-menu {
    background: var(--bg-secondary);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 60px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .ad-container,
    .search-wrapper,
    .theme-toggle,
    .mobile-menu-btn {
        display: none !important;
    }
}

/* User info in footer */
.user-info-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 60px;
    width: fit-content;
    margin-top: 10px;
}

.user-info-footer i {
    font-size: 1rem;
}

/* User info in footer */
.user-info-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 60px;
    width: fit-content;
    margin-top: 10px;
}

.user-info-footer i {
    font-size: 1rem;
}

/* Dark mode support */
.dark-mode .user-info-footer {
    background: var(--bg-secondary);
}

/* Category Showcase Styles */
.category-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.category-showcard {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeScale 0.5s ease-out forwards;
    text-decoration: none;
    display: block;
}

.category-showcard:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.category-showcard i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.category-showcard h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.category-showcard p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.category-showcard .tool-count-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 60px;
    font-size: 0.75rem;
}

/* All Tools Card */
.all-tools-card {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border: none;
}

.all-tools-card i,
.all-tools-card h4,
.all-tools-card p {
    color: white;
}

.all-tools-card .tool-count-badge {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Click Animation */
.click-animation {
    animation: clickPop 0.3s ease;
}

@keyframes clickPop {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Category Grid Update */
.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.view-all-link {
    margin-left: auto;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    gap: 8px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
}

/* Coming Soon Tool */
.tool-card.coming-soon {
    opacity: 0.8;
    background: var(--bg-secondary);
}

.tool-card.coming-soon .tool-icon {
    background: var(--bg-tertiary);
}

.tool-card.coming-soon .tool-icon i {
    color: var(--text-tertiary);
}

.coming-soon-badge {
    display: inline-block;
    background: var(--text-tertiary);
    color: white;
    padding: 4px 10px;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .category-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .category-showcase {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr !important;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .view-all-link {
        margin-left: 0;
    }
}

/* Category Showcase Styles */
.category-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.category-showcard {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeScale 0.5s ease-out forwards;
    text-decoration: none;
    display: block;
}

.category-showcard:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.category-showcard i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.category-showcard h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.category-showcard p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.category-showcard .tool-count-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 60px;
    font-size: 0.75rem;
}

/* All Tools Card */
.all-tools-card {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border: none;
}

.all-tools-card i,
.all-tools-card h4,
.all-tools-card p {
    color: white;
}

.all-tools-card .tool-count-badge {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Click Animation */
.click-animation {
    animation: clickPop 0.3s ease;
}

@keyframes clickPop {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .category-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .category-showcase {
        grid-template-columns: 1fr;
    }
}

/* ===== BADGES ABOVE TOOL NAME ON MOBILE - FINAL FIX ===== */
@media (max-width: 768px) {
    /* Force tool item to stack vertically */
    .tool-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 12px !important;
    }
    
    /* Move the badge to the TOP */
    .tool-item .tool-badge,
    .tool-item .coming-soon-badge {
        order: -1 !important;
        margin-left: 0 !important;
        margin-bottom: 4px !important;
        align-self: flex-start !important;
        display: inline-block !important;
        font-size: 0.7rem !important;
        padding: 4px 12px !important;
    }
    
    /* Stack icon and name vertically */
    .tool-item-left {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    /* Smaller icon on mobile */
    .tool-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
    
    /* Tool name styling */
    .tool-name {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        text-align: left !important;
    }
}