/* 2026 app-experience polish: additive overrides only. */
:root {
    --app-surface: #ffffff;
    --app-surface-soft: #f7f8fb;
    --app-ink: #1f2937;
    --app-muted: #687385;
    --app-line: rgba(31, 41, 55, 0.08);
    --app-primary: #ff6b35;
    --app-primary-dark: #e85b27;
    --app-teal: #0f9f8f;
    --app-blue: #3467d6;
    --app-shadow: 0 12px 34px rgba(31, 41, 55, 0.11);
    --app-shadow-soft: 0 6px 20px rgba(31, 41, 55, 0.08);
}

html {
    scroll-padding-top: 78px;
}

body {
    background: var(--app-surface-soft);
    color: var(--app-ink);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.hero-section,
.page-header {
    min-height: 340px;
}

.hero-section::before,
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.46)),
        linear-gradient(90deg, rgba(255, 107, 53, 0.26), rgba(15, 159, 143, 0.18));
    z-index: 0;
}

.hero-section .container,
.page-header .container {
    position: relative;
    z-index: 1;
}

.modern-search-container {
    max-width: 680px;
}

.modern-search-input {
    border-radius: 18px;
    min-height: 58px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.modern-search-suggestions {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.app-hook-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: -34px 0 24px;
    position: relative;
    z-index: 3;
}

.app-hook-card {
    background: var(--app-surface);
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: var(--app-shadow-soft);
    color: var(--app-ink);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 14px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.app-hook-card:hover {
    border-color: rgba(255, 107, 53, 0.28);
    box-shadow: var(--app-shadow);
    color: var(--app-ink);
    transform: translateY(-2px);
}

.app-hook-card:active {
    transform: scale(0.98);
}

.app-hook-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    font-size: 1.15rem;
}

.app-hook-card:nth-child(1) .app-hook-icon { background: var(--app-primary); }
.app-hook-card:nth-child(2) .app-hook-icon { background: var(--app-teal); }
.app-hook-card:nth-child(3) .app-hook-icon { background: var(--app-blue); }
.app-hook-card:nth-child(4) .app-hook-icon { background: #7c3aed; }

.app-hook-title {
    display: block;
    font-weight: 750;
    line-height: 1.2;
}

.app-hook-meta {
    color: var(--app-muted);
    display: block;
    font-size: 0.82rem;
    line-height: 1.25;
    margin-top: 2px;
}

.category-card,
.stall-card,
.filter-section,
.app-footer .footer-unified-card {
    border-radius: 8px !important;
    border: 1px solid var(--app-line);
}

.category-card,
.stall-card {
    box-shadow: var(--app-shadow-soft);
}

.stall-card {
    overflow: hidden;
}

.stall-image-container {
    background: #eef1f5;
}

.stall-name,
.stall-number,
.stall-description {
    letter-spacing: 0;
}

.section-header {
    align-items: center;
    margin-top: 1.5rem;
}

.section-title {
    color: var(--app-ink);
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    letter-spacing: 0;
}

.view-all-btn {
    border-radius: 8px;
    min-height: 40px;
}

.filter-section {
    box-shadow: var(--app-shadow-soft);
    position: sticky;
    top: 74px;
    z-index: 20;
}

.mobile-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.mobile-type-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    color: var(--app-ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    padding: 8px 6px;
    text-align: center;
    text-decoration: none;
}

.mobile-type-card.active {
    background: #fff4ef;
    border-color: rgba(255, 107, 53, 0.45);
    color: var(--app-primary-dark);
}

.mobile-type-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-type-text {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 6px;
}

.btn-group-mobile {
    background: #eef1f5;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
}

.btn-group-mobile .btn {
    border-radius: 6px !important;
    font-size: 0.82rem;
    min-height: 42px;
}

.merchant-readiness-card {
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: var(--app-shadow-soft);
}

.merchant-readiness-hero {
    align-items: center;
    display: flex;
    gap: 18px;
}

.merchant-progress-ring {
    --progress: 0%;
    align-items: center;
    background:
        radial-gradient(circle closest-side, #fff 68%, transparent 69%),
        conic-gradient(var(--app-primary) var(--progress), #edf0f4 0);
    border-radius: 50%;
    color: var(--app-ink);
    display: flex;
    flex: 0 0 auto;
    font-weight: 800;
    height: 82px;
    justify-content: center;
    width: 82px;
}

.merchant-next-steps {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.merchant-next-step {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    color: var(--app-ink);
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
}

.merchant-next-step:hover {
    border-color: rgba(255, 107, 53, 0.35);
    color: var(--app-ink);
}

.merchant-next-step i {
    align-items: center;
    background: #fff4ef;
    border-radius: 8px;
    color: var(--app-primary-dark);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.merchant-next-step i:last-child {
    background: transparent;
    color: var(--app-muted);
    height: auto;
    width: auto;
}

@media (max-width: 767px) {
    .hero-section,
    .page-header {
        min-height: 260px;
        padding: 34px 0 56px;
    }

    .modern-search-input {
        border-radius: 14px;
        min-height: 54px;
        padding-left: 52px;
        padding-right: 52px;
    }

    .app-hook-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: -42px;
    }

    .app-hook-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        min-height: 116px;
        padding: 12px;
    }

    .app-hook-icon {
        height: 38px;
        width: 38px;
    }

    .app-hook-title {
        font-size: 0.92rem;
    }

    .app-hook-meta {
        font-size: 0.76rem;
    }

    .filter-section {
        margin-left: -4px;
        margin-right: -4px;
        padding: 12px;
        top: 60px;
    }

    .stall-grid {
        gap: 10px !important;
    }

    .stall-grid .stall-card {
        min-height: 0 !important;
    }

    .merchant-readiness-hero {
        align-items: flex-start;
    }

    .merchant-progress-ring {
        height: 70px;
        width: 70px;
    }
}

@media (max-width: 420px) {
    .mobile-type-grid {
        gap: 6px;
    }

    .mobile-type-card {
        min-height: 66px;
        padding: 7px 4px;
    }

    .mobile-type-text {
        font-size: 0.66rem;
    }
}
