    .hero-section-modern {
        background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
        border-bottom: 1px solid #dee2e6;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .hero-section-modern h1 {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
    }

    .hero-section-modern .highlighted {
        color: #ff9800;
        font-weight: 800;
    }

    .btn-modern {
        background-color: #ffffff;
        border: 1px solid #ddd;
        padding: 0.6rem 1.2rem;
        border-radius: 50px;
        font-weight: 500;
        color: #333;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        transition: all 0.25s ease-in-out;
    }

    .btn-modern:hover {
        background-color: #ff9800;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }

    .hero-section {
        background: linear-gradient(90deg, #1e3c72, #2a5298);
        color: #fff;
        padding-top: 4rem;
        padding-bottom: 4rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .hero-section h1 span.text-warning {
        font-weight: 700;
    }

    .hero-section .container-fluid {
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }

    .tool-index-wrapper {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: auto;
    }

    .tool-index-wrapper .row {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .tool-index-wrapper .btn {
        min-width: 180px;
        margin: 0.25rem;
    }

    @media (max-width: 768px) {
        .hero-section h1 {
            font-size: 2.25rem;
        }

        .hero-section p {
            font-size: 1rem;
        }
    }




    .tool-index .d-flex {
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
    }

    .tool-index .d-flex::-webkit-scrollbar {
        height: 6px;
    }

    .tool-index .d-flex::-webkit-scrollbar-thumb {
        background: #0d6efd;
        border-radius: 10px;
    }

    .card {
        border-radius: 1rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    }

    .card .btn-primary {
        border-radius: 10px;
    }

    .card .form-control,
    .card .form-select {
        border-radius: 0.5rem;
    }

    .tool-index {
        padding: 1rem 0;
    }

    .tool-index .btn {
        min-width: max-content;
        padding: 0.5rem 1rem;
        border-radius: 30px;
        transition: all 0.3s ease;
        flex: 0 0 auto;
    }

    .tool-index .btn:hover {
        transform: scale(1.05);
        background-color: #0d6efd;
        color: #fff;
        box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.25);
    }




    .tool-index a:hover {
        transform: scale(1.05);
        background-color: #0d6efd;
        color: #fff;
        box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.25);
    }

    /* Ensure loading overlay is hidden initially */
    #loadingOverlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.85);
        z-index: 9999;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        animation: fadeIn 0.4s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0
        }

        to {
            opacity: 1
        }
    }

    .estimation-time {
        background: linear-gradient(90deg, #f0f4f8, #e2e6ea);
        color: #212529;
        font-size: 0.9rem;
        font-weight: 500;
        padding: 0.5rem 0.75rem;
        border-left: 4px solid #0d6efd;
        border-radius: 0.5rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        transition: background 0.3s ease;
        line-height: 1.4;
    }

    .estimation-time::before {
        content: "⏱";
        font-size: 1rem;
        animation: pulseTimer 2s infinite ease-in-out;
        display: inline-block;
    }

    @keyframes pulseTimer {

        0%,
        100% {
            opacity: 0.6;
            transform: scale(1);
        }

        50% {
            opacity: 1;
            transform: scale(1.15);
        }
    }


    /* Logo animation */
    .loading-logo {
        width: 120px;
        height: auto;
        animation: fadeInOut 1.5s infinite ease-in-out;
    }

    .custom-popover {
        background-color: #f8f9fa;
        color: #333;
        border: 1px solid #ddd;
        border-radius: 0.75rem;
        box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }

    .popover-header {
        font-weight: 600;
        background-color: #e9ecef;
        border-bottom: 1px solid #ddd;
    }

    .popover-body {
        padding: 0.5rem 0.75rem;
    }

    /* Simple fade effect */
    @keyframes fadeInOut {
        0% {
            opacity: 0.3;
        }

        50% {
            opacity: 1;
        }

        100% {
            opacity: 0.3;
        }
    }


    .card {
        border-radius: 1.5rem;
        border: none;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    }

    .card-header {
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        font-weight: 600;
        border-bottom: 1px solid #dee2e6;
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        color: #333;
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .card .form-control,
    .card .form-select {
        border-radius: 0.75rem;
        padding: 0.6rem 1rem;
        border: 1px solid #ced4da;
    }

    .card .btn-primary {
        background: linear-gradient(90deg, #0d6efd, #3b82f6);
        border: none;
        font-weight: 500;
        border-radius: 0.75rem;
        transition: background 0.3s ease;
    }

    .card .btn-primary:hover {
        background: linear-gradient(90deg, #2563eb, #1d4ed8);
    }

    .card .btn-success {
        background: linear-gradient(90deg, #10b981, #059669);
        border: none;
        font-weight: 500;
        border-radius: 0.75rem;
    }

    .card .btn-success:hover {
        background: linear-gradient(90deg, #059669, #047857);
    }

    .card .form-check-label {
        font-weight: 500;
        color: #333;
    }

    .card .form-check-input:checked {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }


    /* ✅ Animation popover slide-fade */
    .bs-popover-auto[data-popper-placement^=top],
    .bs-popover-top {
        animation: fadeSlideUp 0.3s ease-out forwards;
    }


    .badge-new {
        position: absolute;
        top: -10px;
        right: -10px;
        background: linear-gradient(135deg, #00c6ff, #0072ff);
        color: white;
        font-size: 0.65rem;
        font-weight: 600;
        padding: 4px 8px;
        border-radius: 12px;
        box-shadow: 0 0 10px rgba(0, 114, 255, 0.5);
        animation: pulseNew 2s ease-in-out infinite;
        z-index: 10;
    }

    @keyframes pulseNew {
        0% {
            transform: scale(1);
            box-shadow: 0 0 10px rgba(0, 114, 255, 0.5);
        }

        50% {
            transform: scale(1.12);
            box-shadow: 0 0 14px rgba(0, 114, 255, 0.7);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 0 10px rgba(0, 114, 255, 0.5);
        }
    }


    @media (prefers-color-scheme: dark) {
        body {
            background-color: #121212;
            color: #f1f1f1;
        }

        .card {
            background: #1e1e1e;
            color: #f1f1f1;
            box-shadow: 0 8px 24px rgba(255, 255, 255, 0.05);
        }

        .card-header {
            background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
            border-color: #333;
            color: #fff;
        }

        .form-control,
        .form-select {
            background-color: #2e2e2e;
            color: #fff;
            border: 1px solid #555;
        }

        .btn-modern {
            background-color: #2a2a2a;
            color: #f1f1f1;
            border-color: #444;
        }

        .btn-modern:hover {
            background-color: #ff9800;
            color: #000;
        }

        .estimation-time {
            background: #2b2b2b;
            color: #ddd;
            border-left-color: #0d6efd;
        }
    }

    @media (max-width: 768px) {
        .tool-index .btn {
            font-size: 0.85rem;
            padding: 0.4rem 0.75rem;
        }

        .card {
            margin-left: auto;
            margin-right: auto;
        }
    }

    /* Responsive font scaling */
    @media (max-width: 576px) {
        .estimation-time {
            font-size: 0.85rem;
            padding: 0.5rem;
            flex-direction: column;
            text-align: center;
        }
    }