/* ==================== Modern AI Directory Styles ==================== */

:root {
    --primary-color: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --danger-color: #EF4444;
    --dark-bg: #1F2937;
    --light-bg: #F9FAFB;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Hero Section */
.modern-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.modern-hero h1 {
    color: white;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modern-hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Advanced Search Box */
.advanced-search-box {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input-group input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-input-group button {
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input-group button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Filter Pills */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    color: #374151;
    margin-right: 0.5rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    padding: 0.5rem 1rem;
    background: #F3F4F6;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.filter-pill:hover {
    background: #E5E7EB;
    transform: translateY(-1px);
}

.filter-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-pill .count {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.filter-pill.active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid #F3F4F6;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-light);
}

.card-header-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    background: #F9FAFB;
    padding: 0.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-title-section {
    flex: 1;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-modern {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-private {
    background: #D1FAE5;
    color: #065F46;
}

.badge-govt {
    background: #FEF3C7;
    color: #92400E;
}

.badge-category {
    background: #DBEAFE;
    color: #1E40AF;
}

.card-description {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-modern {
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

.btn-primary-modern {
    background: var(--primary-color);
    color: white;
}

.btn-primary-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary-modern {
    background: #F3F4F6;
    color: #374151;
}

.btn-secondary-modern:hover {
    background: #E5E7EB;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue {
    background: #DBEAFE;
    color: var(--primary-color);
}

.stat-icon.green {
    background: #D1FAE5;
    color: var(--secondary-color);
}

.stat-icon.orange {
    background: #FEF3C7;
    color: var(--accent-color);
}

.stat-icon.purple {
    background: #E9D5FF;
    color: #9333EA;
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6B7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #F3F4F6;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #F9FAFB;
}

.suggestion-item strong {
    color: var(--primary-color);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    color: inherit;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.action-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.action-content p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-hero h1 {
        font-size: 1.75rem;
    }

    .search-input-group {
        flex-direction: column;
    }

    .filter-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .card-actions {
        flex-direction: column;
    }

    .btn-modern {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Search Engine Specific */
.ai-provider-card {
    position: relative;
    overflow: hidden;
}

.ai-provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rating-stars {
    color: var(--accent-color);
    font-size: 0.875rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: #F3F4F6;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #6B7280;
}

/* Comparison Feature */
.comparison-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.comparison-badge:hover {
    background: #D97706;
    transform: scale(1.05);
}

/* Dark Mode Support */
[data-theme="dark"] {
    --primary-color: #818CF8;
    --primary-light: #A5B4FC;
    --primary-dark: #6366F1;
    --secondary-color: #34D399;
    --accent-color: #FBBF24;
    --danger-color: #F87171;
    --dark-bg: #0F172A;
    --light-bg: #0F172A;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --light-bg: #111827;
        --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }
}

[data-theme="dark"] body,
[data-theme="dark"] .main-content {
    background: #0F172A;
    color: #E2E8F0;
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
[data-theme="dark"] .brand-title, [data-theme="dark"] .card-title,
[data-theme="dark"] .platform-title, [data-theme="dark"] .blog-card-title,
[data-theme="dark"] .stat-number, [data-theme="dark"] .error-heading,
[data-theme="dark"] .section-header h2, [data-theme="dark"] .mega-menu-title {
    color: #F1F5F9;
}

[data-theme="dark"] p, [data-theme="dark"] .card-description,
[data-theme="dark"] .platform-desc, [data-theme="dark"] .blog-card-excerpt,
[data-theme="dark"] .stat-label, [data-theme="dark"] .section-header p,
[data-theme="dark"] .mega-col ul li a, [data-theme="dark"] .nav-link,
[data-theme="dark"] .brand-sub, [data-theme="dark"] .error-message,
[data-theme="dark"] .error-tip {
    color: #94A3B8;
}

[data-theme="dark"] .public-navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .public-navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
    background: rgba(129, 140, 248, 0.1);
    color: #818CF8;
}

[data-theme="dark"] .mega-dropdown {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .mega-col h6 {
    color: #E2E8F0;
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .mega-col ul li a:hover {
    background: rgba(51, 65, 85, 0.5);
    color: #818CF8;
}

[data-theme="dark"] .nav-toggle span {
    background: #E2E8F0;
}

[data-theme="dark"] .modern-card, [data-theme="dark"] .platform-card,
[data-theme="dark"] .blog-card, [data-theme="dark"] .category-card,
[data-theme="dark"] .stat-card-modern, [data-theme="dark"] .stat-card,
[data-theme="dark"] .detail-card, [data-theme="dark"] .sidebar-card-detail,
[data-theme="dark"] .action-card {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .modern-card:hover, [data-theme="dark"] .platform-card:hover,
[data-theme="dark"] .blog-card:hover, [data-theme="dark"] .category-card:hover {
    border-color: #818CF8;
}

[data-theme="dark"] .stat-icon-wrap.blue { background: rgba(129, 140, 248, 0.15); }
[data-theme="dark"] .stat-icon-wrap.green { background: rgba(52, 211, 153, 0.15); }
[data-theme="dark"] .stat-icon-wrap.orange { background: rgba(251, 191, 36, 0.15); }
[data-theme="dark"] .stat-icon-wrap.purple { background: rgba(167, 139, 250, 0.15); }

[data-theme="dark"] .public-footer {
    background: #0A0F1E;
}

[data-theme="dark"] .back-to-top {
    background: #818CF8;
    color: #0F172A;
}

[data-theme="dark"] .back-to-top:hover {
    background: #A5B4FC;
}

[data-theme="dark"] .error-page {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

[data-theme="dark"] .error-page::before {
    background: radial-gradient(ellipse at 20% 50%, rgba(129, 140, 248, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
}

[data-theme="dark"] .btn-error-secondary {
    background: #1E293B;
    color: #E2E8F0;
    border-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .btn-error-secondary:hover {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .search-input-group input {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(51, 65, 85, 0.5);
    color: #E2E8F0;
}

[data-theme="dark"] .advanced-search-box {
    background: #1E293B;
}

[data-theme="dark"] .filter-pill {
    background: rgba(51, 65, 85, 0.5);
    color: #94A3B8;
}

[data-theme="dark"] .filter-pill:hover {
    background: rgba(51, 65, 85, 0.8);
}

[data-theme="dark"] .filter-pill.active {
    background: #818CF8;
    color: #0F172A;
}

[data-theme="dark"] .animated-hero {
    background: linear-gradient(135deg, #0A0F1E 0%, #0F172A 30%, #1E1B4B 60%, #312E81 100%);
}

[data-theme="dark"] .section-wrapper.bg-gradient-light {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
}

[data-theme="dark"] .section-badge {
    background: rgba(129, 140, 248, 0.15);
    color: #818CF8;
}

[data-theme="dark"] .hero-shape-divider .shape-fill {
    fill: #0F172A;
}

[data-theme="dark"] .detail-hero-wave .shape-fill {
    fill: #0F172A;
}

[data-theme="dark"] .detail-body {
    background: #0F172A;
}

[data-theme="dark"] .share-btn-detail.email {
    background: rgba(51, 65, 85, 0.5);
    color: #E2E8F0;
}

[data-theme="dark"] .share-btn-detail.email:hover {
    background: #334155;
}

[data-theme="dark"] .sidebar-action-btn.outline {
    background: rgba(51, 65, 85, 0.5);
    color: #E2E8F0;
}

[data-theme="dark"] .sidebar-action-btn.outline:hover {
    background: #334155;
}

[data-theme="dark"] .blog-card-image img {
    opacity: 0.85;
}

[data-theme="dark"] .card-logo {
    background: rgba(30, 41, 59, 0.5);
}

[data-theme="dark"] .platform-logo {
    background: rgba(30, 41, 59, 0.5);
}

[data-theme="dark"] #global-loader {
    background: #0F172A;
}

[data-theme="dark"] .btn-secondary-modern {
    background: rgba(51, 65, 85, 0.5);
    color: #E2E8F0;
}

[data-theme="dark"] .btn-secondary-modern:hover {
    background: #334155;
}

[data-theme="dark"] .compare-badge {
    background: #FBBF24;
    color: #0F172A;
}

[data-theme="dark"] .mega-menu-dropdown {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .mega-menu-list li a {
    color: #94A3B8;
}

[data-theme="dark"] .mega-menu-list li a:hover {
    background: rgba(51, 65, 85, 0.5);
    color: #818CF8;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-control-lg {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
    color: #E2E8F0;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-control-lg:focus {
    background: #1E293B;
    border-color: #818CF8;
    color: #E2E8F0;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-control-lg::placeholder {
    color: #64748B;
}

[data-theme="dark"] .alert {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
    color: #E2E8F0;
}

[data-theme="dark"] .alert-success {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.2);
    color: #6EE7B7;
}

[data-theme="dark"] .alert-danger {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.2);
    color: #FCA5A5;
}

[data-theme="dark"] .alert-info {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
    color: #93C5FD;
}

[data-theme="dark"] .alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
    color: #FDE68A;
}

[data-theme="dark"] .alert .btn-close {
    filter: invert(1) brightness(200%);
}

[data-theme="dark"] .table {
    color: #E2E8F0;
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
    --bs-table-striped-bg: rgba(30, 41, 59, 0.5);
}

[data-theme="dark"] .table-hover > tbody > tr:hover {
    --bs-table-hover-bg: rgba(51, 65, 85, 0.3);
}

[data-theme="dark"] .accordion .card,
[data-theme="dark"] .card:not(.modern-card):not(.platform-card):not(.blog-card):not(.category-card):not(.stat-card-modern):not(.stat-card):not(.detail-card):not(.sidebar-card-detail):not(.action-card) {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .accordion .card-header,
[data-theme="dark"] .card-header {
    background: rgba(30, 41, 59, 0.8);
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .accordion .card-body {
    color: #94A3B8;
}

[data-theme="dark"] .spinner-border {
    --bs-spinner-border-color: #818CF8;
}

[data-theme="dark"] .spinner-border.text-light {
    --bs-spinner-border-color: rgba(255, 255, 255, 0.3);
    border-right-color: #818CF8;
}

[data-theme="dark"] .autocomplete-input {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.5);
    color: #E2E8F0;
}

[data-theme="dark"] .autocomplete-input::placeholder {
    color: #64748B;
}

[data-theme="dark"] .autocomplete-dropdown {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .autocomplete-item {
    color: #E2E8F0;
}

[data-theme="dark"] .autocomplete-item:hover {
    background: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .picker-label {
    color: #94A3B8;
}

[data-theme="dark"] .picker-selected {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.5);
    color: #E2E8F0;
}

[data-theme="dark"] .picker-vs-circle {
    background: rgba(129, 140, 248, 0.2);
    color: #818CF8;
    border-color: rgba(129, 140, 248, 0.3);
}

[data-theme="dark"] .picker-compare-btn {
    background: linear-gradient(135deg, #818CF8, #A5B4FC);
    color: #0F172A;
}

[data-theme="dark"] .compare-results-table {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(51, 65, 85, 0.5);
    color: #E2E8F0;
}

[data-theme="dark"] .compare-results-table th {
    background: rgba(30, 41, 59, 0.8);
    color: #F1F5F9;
}

[data-theme="dark"] .compare-results-table td {
    border-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .compare-picker-hero {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(51, 65, 85, 0.3);
}

[data-theme="dark"] .breadcrumb {
    background: transparent;
}

[data-theme="dark"] .breadcrumb-item {
    color: #94A3B8;
}

[data-theme="dark"] .breadcrumb-item a {
    color: #818CF8;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: #64748B;
}

[data-theme="dark"] .pagination .page-link {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
    color: #E2E8F0;
}

[data-theme="dark"] .pagination .page-link:hover {
    background: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background: #818CF8;
    border-color: #818CF8;
    color: #0F172A;
}

[data-theme="dark"] .pagination .page-item.disabled .page-link {
    background: rgba(30, 41, 59, 0.5);
    color: #64748B;
}

[data-theme="dark"] .list-group-item {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
    color: #E2E8F0;
}

[data-theme="dark"] .list-group-item-action:hover {
    background: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .modal-content {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .modal-footer {
    border-top-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .modal .btn-close {
    filter: invert(1) brightness(200%);
}

[data-theme="dark"] .dropdown-menu {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .dropdown-item {
    color: #E2E8F0;
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(51, 65, 85, 0.5);
    color: #F1F5F9;
}

[data-theme="dark"] .dropdown-divider {
    border-top-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .progress {
    background: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .nav-tabs {
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: #94A3B8;
}

[data-theme="dark"] .nav-tabs .nav-link:hover {
    border-color: transparent;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
    border-bottom-color: #1E293B;
    color: #818CF8;
}

[data-theme="dark"] .nav-pills .nav-link {
    color: #94A3B8;
}

[data-theme="dark"] .nav-pills .nav-link.active {
    background: #818CF8;
    color: #0F172A;
}

[data-theme="dark"] .badge:not(.badge-pulse):not(.badge-cat-detail):not(.badge-featured):not(.badge-modern) {
    color: #E2E8F0;
}

[data-theme="dark"] .text-muted {
    color: #64748B !important;
}

[data-theme="dark"] hr {
    border-color: rgba(51, 65, 85, 0.5);
}

/* Mega Menu Styles */
.mega-menu {
        position: static !important;
    }

    .mega-menu .dropdown-toggle::after {
        display: none;
    }

    .mega-menu-dropdown {
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid #E5E7EB;
        margin-top: 0;
        width: 100%;
        max-width: 1200px;
        left: 50%;
        transform: translateX(-50%);
    }

    .mega-menu-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .mega-menu-column {
        padding: 0.75rem;
    }

    .mega-menu-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #111827;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #E5E7EB;
        display: flex;
        align-items: center;
    }

    .mega-menu-title i {
        color: var(--primary-color);
    }

    .mega-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mega-menu-list li {
        margin-bottom: 0.5rem;
    }

    .mega-menu-list li a {
        color: #6B7280;
        text-decoration: none;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        display: block;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .mega-menu-list li a:hover {
        background: #F3F4F6;
        color: var(--primary-color);
        transform: translateX(4px);
    }

    .mega-menu-list li a i {
        margin-right: 0.5rem;
        font-size: 0.75rem;
    }

    /* Responsive Mega Menu */
    @media (max-width: 991px) {
        .mega-menu-dropdown {
            max-width: 100%;
            transform: none;
            left: 0;
        }

        .mega-menu-column {
            margin-bottom: 1rem;
        }

        .mega-menu-title {
            font-size: 0.9rem;
        }

        .mega-menu-list li a {
            font-size: 0.85rem;
        }
    }

    @media (max-width: 576px) {
        .mega-menu-dropdown {
            padding: 1rem;
        }

        .mega-menu-column {
            padding: 0.5rem;
        }
    }

/* ==================== Public Navbar Styles ==================== */
.public-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
    height: 68px;
}

.public-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.7rem;
    color: #6B7280;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    color: #4B5563;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4F46E5;
    background: rgba(79, 70, 229, 0.06);
}

.nav-link i {
    font-size: 0.875rem;
}

.dropdown-arrow {
    font-size: 0.625rem !important;
    transition: transform 0.2s ease;
}

.dropdown-trigger:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 1.5rem;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.5);
    margin-top: 0.75rem;
}

.dropdown-trigger:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mega-col h6 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #F3F4F6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-col h6 i {
    color: #4F46E5;
    font-size: 0.75rem;
}

.mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col ul li { margin-bottom: 0.25rem; }

.mega-col ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #6B7280;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mega-col ul li a:hover {
    background: #F9FAFB;
    color: #4F46E5;
    transform: translateX(4px);
}

.mega-col ul li a i {
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== Public Footer ==================== */
.public-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.5rem;
    color: #4F46E5;
}

.footer-brand h5 {
    color: white;
    font-weight: 700;
    margin: 0;
}

.footer-col p {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-col h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col ul li a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover { color: #4F46E5; }

.footer-col ul li a i {
    font-size: 0.625rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #4F46E5;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
}

/* ==================== Main Content ==================== */
.main-content {
    padding-top: 68px;
    min-height: 100vh;
}

/* ==================== Hero Section ==================== */
.animated-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 30%, #312E81 60%, #4F46E5 100%);
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.animated-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.hero-badge { margin-bottom: 1.5rem; }

.badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-pulse i { color: #F59E0B; }

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-search-box {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.375rem;
    margin-bottom: 1rem;
}

.search-icon {
    color: rgba(255, 255, 255, 0.4);
    padding-left: 0.75rem;
    font-size: 0.875rem;
}

.search-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 0.5rem;
    color: white;
    font-size: 0.95rem;
    outline: none;
}

.search-input-group input::placeholder { color: rgba(255, 255, 255, 0.35); }

.search-input-group .btn-primary {
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border: none;
    white-space: nowrap;
}

.search-input-group .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.search-tag-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.search-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateY(-1px);
}

.search-tag.accent {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(124, 58, 237, 0.3));
    border-color: rgba(79, 70, 229, 0.3);
}

.search-tag i { font-size: 0.7rem; }

.hero-shape-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-shape-divider .shape-fill { fill: #F7F7F7; }

/* ==================== Stats Section ==================== */
.stats-section-wrapper {
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    padding-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon-wrap.blue { background: #EEF2FF; color: #4F46E5; }
.stat-icon-wrap.green { background: #ECFDF5; color: #10B981; }
.stat-icon-wrap.orange { background: #FFFBEB; color: #F59E0B; }
.stat-icon-wrap.purple { background: #F5F3FF; color: #7C3AED; }

.stat-info { display: flex; flex-direction: column; }

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #6B7280;
    font-weight: 500;
}

/* ==================== Section Wrappers ==================== */
.section-wrapper {
    padding: 5rem 0;
}

.bg-gradient-light {
    background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: #EEF2FF;
    color: #4F46E5;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: #6B7280;
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ==================== Platform Cards ==================== */
.platform-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #F3F4F6;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #818CF8;
}

.platform-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.platform-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: contain;
    background: #F9FAFB;
    padding: 0.375rem;
}

.platform-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4F46E5, #818CF8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.platform-title-section { flex: 1; }

.platform-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.platform-tags {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.2rem 0.625rem;
    border-radius: 20px;
    font-size: 0.675rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.tag-private { background: #D1FAE5; color: #065F46; }
.tag-govt { background: #FEF3C7; color: #92400E; }
.tag-category { background: #DBEAFE; color: #1E40AF; }

.platform-desc {
    color: #6B7280;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.platform-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.platform-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* ==================== Blog Cards ==================== */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #F3F4F6;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(79, 70, 229, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.blog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-bottom: 0.75rem;
}

.blog-meta i { margin-right: 0.25rem; }

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-read-more {
    color: #4F46E5;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.2s ease;
}

.blog-read-more:hover {
    gap: 0.625rem;
    color: #3730A3;
}

/* ==================== Category Cards ==================== */
.category-card {
    display: block;
    background: white;
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    border: 1px solid #F3F4F6;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #818CF8;
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #EEF2FF;
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin: 0 auto 0.75rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: #4F46E5;
    color: white;
}

.category-card h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.375rem;
}

.category-count {
    font-size: 0.75rem;
    color: #6B7280;
}

/* ==================== Back to Top ==================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #4F46E5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #3730A3;
    color: white;
    transform: translateY(-2px);
}

/* ==================== Scroll Animations ==================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Responsive ==================== */
@media (max-width: 991px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 0.25rem;
    }

    .nav-link { width: 100%; padding: 0.75rem 1rem; }

    .mega-dropdown {
        position: static;
        transform: none;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0.75rem;
        margin-top: 0.25rem;
        display: none;
        border: none;
        background: #F9FAFB;
    }

    .dropdown-trigger:hover .mega-dropdown,
    .dropdown-trigger.active .mega-dropdown {
        display: block;
        transform: none;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .mega-col h6 { font-size: 0.8rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }

    .animated-hero { padding: 4rem 0 6rem; min-height: auto; }

    .hero-search-box { padding: 1rem; }

    .search-input-group { flex-direction: column; background: transparent; padding: 0; gap: 0.5rem; }

    .search-icon { display: none; }

    .search-input-group input {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .search-input-group .btn-primary { width: 100%; }

    .hero-shape-divider svg { height: 40px; }

    .stat-card-modern { padding: 1rem; }

    .section-wrapper { padding: 3rem 0; }

    .back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Prevent FOUC */
.public-navbar { opacity: 0; animation: navFadeIn 0.3s ease forwards; }

@keyframes navFadeIn {
    to { opacity: 1; }
}

/* ==================== Compare Page Utilities ==================== */
.text-purple { color: #7C3AED; }

.model-select-card .form-check-input:focus { box-shadow: 0 0 0 0.2rem rgba(108,99,255,.25); }

/* ==================== Detail Page Shared Styles ==================== */
.detail-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 30%, #312E81 60%, #4F46E5 100%);
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.detail-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.detail-hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.detail-hero-wave .shape-fill { fill: #F7F7F7; }
.detail-hero-content { position: relative; z-index: 1; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}

.back-link:hover { color: white; }

.badge-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-cat-detail { background: rgba(96, 165, 250, 0.2); color: #93C5FD; border: 1px solid rgba(96, 165, 250, 0.3); }
.badge-featured { background: rgba(251, 191, 36, 0.2); color: #FDE68A; border: 1px solid rgba(251, 191, 36, 0.3); }

.detail-body { padding: 3rem 0 5rem; background: #F7F7F7; }

.detail-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #F3F4F6;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.detail-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #E5E7EB;
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #F3F4F6;
}

.detail-card-header i { font-size: 1.25rem; color: #4F46E5; }
.detail-card-header h3 { font-size: 1.125rem; font-weight: 700; color: #111827; margin: 0; }

.share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.share-btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn-detail.twitter { background: #E8F5FD; color: #1DA1F2; }
.share-btn-detail.twitter:hover { background: #1DA1F2; color: white; }
.share-btn-detail.linkedin { background: #E8F0FE; color: #0A66C2; }
.share-btn-detail.linkedin:hover { background: #0A66C2; color: white; }
.share-btn-detail.facebook { background: #E8F0FE; color: #1877F2; }
.share-btn-detail.facebook:hover { background: #1877F2; color: white; }
.share-btn-detail.email { background: #F3F4F6; color: #374151; }
.share-btn-detail.email:hover { background: #374151; color: white; }

.sidebar-card-detail {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #F3F4F6;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #F3F4F6;
}

.sidebar-card-header i { color: #4F46E5; font-size: 1rem; }
.sidebar-card-header h5 { font-size: 0.95rem; font-weight: 700; color: #111827; margin: 0; }

.sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.sidebar-action-btn.primary {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
}

.sidebar-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
    color: white;
}

.sidebar-action-btn.outline { background: #F3F4F6; color: #374151; }
.sidebar-action-btn.outline:hover { background: #E5E7EB; }

.related-item-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 0.375rem;
}

.related-item-detail:hover { background: #F9FAFB; }

.related-logo-detail {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: #F9FAFB;
    padding: 0.375rem;
}

.related-info-detail { display: flex; flex-direction: column; }
.related-info-detail strong { font-size: 0.85rem; color: #111827; }
.related-info-detail span { font-size: 0.75rem; color: #6B7280; }

.categories-list { display: flex; flex-direction: column; gap: 0.375rem; }

.cat-link-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: #6B7280;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.cat-link-detail:hover {
    background: #EEF2FF;
    color: #4F46E5;
    transform: translateX(4px);
}

.cat-link-detail i { width: 16px; text-align: center; font-size: 0.75rem; }

@media (max-width: 768px) {
    .detail-hero { padding: 3rem 0 4rem; }
    .detail-hero-wave svg { height: 40px; }
    .share-grid { grid-template-columns: 1fr; }
}

/* ==================== Error Pages ==================== */
.error-page {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    position: relative;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.error-content {
    max-width: 520px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.error-code .digit { letter-spacing: -0.05em; }

.error-code .code-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3rem, 7vw, 5rem);
    animation: errorIconFloat 3s ease-in-out infinite;
}

.error-code-403 .code-icon { color: #EF4444; }
.error-code-403 .digit { color: #DC2626; }

.error-code-404 .code-icon { color: #4F46E5; }
.error-code-404 .digit { color: #4338CA; }

.error-code-500 .code-icon { color: #F59E0B; }
.error-code-500 .digit { color: #D97706; }

@keyframes errorIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.error-heading {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
}

.error-message {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #6B7280;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-error {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-error-primary {
    background: var(--primary-color);
    color: white;
}

.btn-error-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    color: white;
}

.btn-error-secondary {
    background: white;
    color: #374151;
    border: 1px solid #E5E7EB;
}

.btn-error-secondary:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    transform: translateY(-2px);
}

.error-tip {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #9CA3AF;
}

.error-tip i { margin-right: 0.25rem; }

.error-divider {
    width: 60px;
    height: 3px;
    border-radius: 2px;
    margin: 1.25rem auto;
}

.error-divider-403 { background: #EF4444; }
.error-divider-404 { background: #4F46E5; }
.error-divider-500 { background: #F59E0B; }

@media (max-width: 576px) {
    .error-page { padding: 3rem 1rem; }
    .error-actions { flex-direction: column; align-items: stretch; }
    .btn-error { justify-content: center; }
}
