:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --verified: #10b981;
    --normal: #64748b;
    --accent: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 16px;
    --nav-height: 75px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    padding-top: 64px;
    padding-bottom: var(--nav-height);
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}

header {
    margin-bottom: 32px;
    text-align: left;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 850;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.premium-header {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.step-guide {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

/* Search & Inputs */
.search-container {
    position: relative;
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    padding-left: 48px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    margin-left: 4px;
}

/* Category Grid */
.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.category-card {
    background: var(--bg-card);
    padding: 12px 8px;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.category-card.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 4px;
}

.category-name {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Cards & Lists */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.product-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.price-tag {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Recipe Items */
.recipe-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s;
}

.recipe-card:active {
    transform: scale(0.98);
}

.recipe-img-placeholder {
    height: 180px;
    background: linear-gradient(45deg, #eef2ff, #f5f3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.recipe-info {
    padding: 16px;
}

.recipe-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.recipe-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

/* Submission Styling */
.results-hint {
    background: var(--bg-main);
    border-radius: 12px;
    margin-bottom: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.hint-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.9rem;
}

.hint-item:hover {
    background: #f1f5f9;
}

.ingred-tag {
    display: flex;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-weight: 500;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-item i {
    font-size: 1.6rem;
}

.nav-item.active {
    color: var(--primary);
}

/* Buttons */
.report-btn {
    width: 100%;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.report-btn:active {
    transform: scale(0.96);
}

.pulse {
    animation: shadow-pulse 2s infinite;
}

@keyframes shadow-pulse {
    0% {
        box-shadow: 0 0 0 0px rgba(99, 102, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(99, 102, 241, 0);
    }
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 16px;
}

.report-section {
    position: fixed;
    bottom: calc(var(--nav-height) + 20px);
    right: 20px;
    width: 180px;
    z-index: 900;
}

/* Utils */
.hidden {
    display: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.4s ease-out forwards;
}

.badges-container {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.badge {
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-verified {
    background: rgba(16, 185, 129, 0.1);
    color: var(--verified);
}

.badge-normal {
    background: rgba(100, 116, 139, 0.1);
    color: var(--normal);
}

/* --- Modern Ad Banners --- */
.top-ad-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(90deg, #065f46, #047857);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    font-size: 0.85rem;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    border-bottom: 3px solid #f59e0b;
}

.top-ad-banner .ad-info {
    display: flex;
    flex-direction: column;
}

.top-ad-banner span {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.top-ad-banner small {
    font-size: 0.6rem;
    opacity: 0.8;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.ad-cta-pill {
    background: #f59e0b;
    color: #064e3b;
    padding: 6px 16px;
    border-radius: 99px;
    font-weight: 900;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.sponsored-card {
    background: white;
    border: none;
    padding: 0;
    border-radius: 20px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease-out forwards;
}

.ad-visual {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}

.ad-label-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 0.55rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    backdrop-filter: blur(8px);
    letter-spacing: 0.05em;
}

.ad-body {
    padding: 24px;
}

.ad-body h4 {
    margin-bottom: 6px;
    font-size: 1.2rem;
    font-weight: 800;
}

.ad-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.ad-learn-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}