body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.hero-card {
    background: linear-gradient(135deg, #232946, #4c5fd5);
    color: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(35, 41, 70, 0.35);
}

.app-card,
.tweak-card {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.tweak-card .form-select {
    border-radius: 0.75rem;
}

.app-card img {
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
    .hero-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .hero-card .display-4 {
        font-size: 2rem;
    }

    .hero-card .lead {
        font-size: 1rem;
    }

    .hero-card img {
        max-width: 100%;
        height: auto;
    }

    /* Stack buttons vertically on mobile */
    .hero-card .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }

    /* App detail page mobile fixes */
    .app-detail-header .ms-auto {
        margin-left: 0 !important;
        margin-top: 1rem;
        width: 100%;
    }

    .app-detail-header .btn {
        width: 100%;
    }

    /* Make tabs scrollable on mobile */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
    }

    /* Better modal sizing on mobile */
    .modal-dialog {
        margin: 0.5rem;
    }

    /* Reduce container padding on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Better spacing for build options on mobile */
    .build-option,
    .build-option-input {
        font-size: 0.875rem;
    }

    /* Make tweak cards more compact on mobile */
    .tweak-card .card-body {
        padding: 1rem;
    }

    /* Better catalog header on mobile */
    .d-flex.flex-wrap .text-end {
        width: 100%;
        text-align: left !important;
        margin-top: 0.5rem;
    }

    /* Optimize back button on mobile */
    .mb-4 a {
        font-size: 0.875rem;
    }
}
