html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {

}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-errors {
    list-style-type: none;
    padding-left: 0;
    text-align: center;
    margin-right: auto;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.register-container {
    max-width: 512px;
    margin: auto;
}

.login-container {
    max-width: 512px;
    margin: auto;
}

.password-container {
    position: relative;
}

.password-criteria {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
}

.password-strength .progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.password-criteria ul li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.loading-container {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #5AA473;
    min-height: 100vh;
    color: white;
}

.loading-animation {
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
    animation: text-pulse 2s ease-in-out infinite;
}

.loading-text-pulse {
    font-size: 1.5rem;
    font-weight: 600;
    animation: text-pulse 2s ease-in-out infinite;
    color: white;
    user-select: none;
}

@keyframes text-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.85;
    }
}

.scanner-wrapper {
    position: relative;
    max-width: 640px;
}

    .scanner-wrapper.loading {
        min-height: 260px;
    }

.scanner-torch-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

    .scanner-torch-btn:active {
        background: rgba(0, 0, 0, 0.65);
    }

    .scanner-torch-btn.active {
        background: #4DB66E;
        color: #fff;
    }

.scanner-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4DB66E;
    color: #fff;
    font-weight: 600;
    z-index: 9;
}

#scanner > video {
    max-width: 100% !important;
}

/* Ensure the scanner canvas/overlay fits the container without gaps */
#scanner, #scanner > div, #scanner canvas, #scanner video {
    width: 100% !important;
    max-width: 100% !important;
}

/* Prevent horizontal overflow gray areas on resize */
.scanner-wrapper, #scanner {
    overflow: hidden;
}

    /* Keep aspect fill behavior to avoid side gaps when container grows */
    #scanner video {
        height: auto !important;
        max-height: 340px;
        object-fit: cover;
        display: block;
    }

/* Scanner guide overlay - shows where to aim the barcode */
.scanner-guide {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.scanner-guide-box {
    position: absolute;
    /* left, top, width, height are set by JS from the actual crop region */
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
}

.scanner-guide-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #4DB66E;
    border-style: solid;
    border-width: 0;
}

    .scanner-guide-corner.tl {
        top: -2px;
        left: -2px;
        border-top-width: 3px;
        border-left-width: 3px;
        border-top-left-radius: 10px;
    }

    .scanner-guide-corner.tr {
        top: -2px;
        right: -2px;
        border-top-width: 3px;
        border-right-width: 3px;
        border-top-right-radius: 10px;
    }

    .scanner-guide-corner.bl {
        bottom: -2px;
        left: -2px;
        border-bottom-width: 3px;
        border-left-width: 3px;
        border-bottom-left-radius: 10px;
    }

    .scanner-guide-corner.br {
        bottom: -2px;
        right: -2px;
        border-bottom-width: 3px;
        border-right-width: 3px;
        border-bottom-right-radius: 10px;
    }

/* Confirmation progress bar inside the guide box */
.scanner-confirm-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #4DB66E, #6fcf8a);
    border-radius: 0 0 8px 8px;
}

/* Success flash when barcode is confirmed */
.scanner-guide-box.confirmed {
    border-color: #4DB66E !important;
    border-width: 3px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35), 0 0 20px 4px rgba(77, 182, 110, 0.5);
    animation: scanner-confirmed-pulse 0.35s ease;
}

    .scanner-guide-box.confirmed .scanner-guide-corner {
        border-color: #4DB66E !important;
    }

    .scanner-guide-box.confirmed .scanner-confirm-bar {
        width: 100% !important;
        opacity: 0;
    }

@keyframes scanner-confirmed-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.scanner-guide-hint {
    margin-top: 12px;
    padding: 4px 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 20px;
    white-space: nowrap;
}

/* New fluffy themed page/content loader */
.mo-loader {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: 
        radial-gradient(circle at 85% 15%, var(--brand-pink-soft, #FCE0ED) 0, transparent 60%),
        radial-gradient(circle at 12% 88%, var(--brand-lav, #E5D9FF) 0, transparent 55%),
        linear-gradient(145deg, var(--brand-cream, #FFF9F2), #ffffff 70%);
    overflow: hidden;
    box-sizing: border-box; /* ensure padding never expands overlay beyond viewport */
    overscroll-behavior: contain; /* prevent scroll chaining to page */
    animation: mo-fade-in 0s ease;
}

.mo-loader-inner {
    position: relative;
    width: 100%;
    max-width: 340px;
    text-align: center;
    font-family: 'Quicksand','Fredoka',sans-serif;
}

.mo-logo-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.25rem;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 34px -10px rgba(90,164,115,.35), 0 4px 14px -6px rgba(0,0,0,.08);
    position: relative;
}

.mo-logo {
    width: 78%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.12));
    animation: mo-soft-pulse 3.2s ease-in-out infinite;
}

.mo-loader-text {
    position: relative;
    font-weight: 600;
    color: var(--brand-green, #5AA473);
    display: flex;
    flex-direction: column;
    gap: .4rem;
    letter-spacing: .25px;
}

    .mo-loader-text .line.main {
        font-size: 1.15rem;
    }

    .mo-loader-text .line.sub {
        font-size: .85rem;
        opacity: .7;
    }

.mo-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: .5rem;
    margin: .35rem 0 0 0;
}

    .mo-dots span {
        width: .6rem;
        height: .6rem;
        border-radius: 50%;
        background: linear-gradient(90deg,var(--brand-green,#5AA473), var(--brand-green-soft,#6EC689));
        animation: mo-bounce 1.4s ease-in-out infinite;
    }

        .mo-dots span:nth-child(2) {
            animation-delay: .2s
        }

        .mo-dots span:nth-child(3) {
            animation-delay: .4s
        }

/* Floating soft bubbles */
.mo-loader-bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .55;
    animation: mo-float 9s linear infinite;
}

    .mo-loader-bubble.big {
        width: 180px;
        height: 180px;
        top: -50px;
        left: -60px;
        background: radial-gradient(circle at 35% 35%, var(--brand-pink,#F7B7D4), var(--brand-pink-soft,#FCE0ED));
        animation-duration: 16s;
    }

    .mo-loader-bubble.mid {
        width: 120px;
        height: 120px;
        bottom: -40px;
        right: -30px;
        background: radial-gradient(circle at 65% 40%, var(--brand-lav,#E5D9FF), #ffffff);
        animation-duration: 18s;
    }

    .mo-loader-bubble.small {
        width: 70px;
        height: 70px;
        top: 10%;
        right: 18%;
        background: radial-gradient(circle at 50% 50%, var(--brand-green-soft,#6EC689), var(--brand-green,#5AA473));
        animation-duration: 12s;
    }

/* Fade-out helper when JS hides overlay */
.mo-loader.fade-out {
    animation: mo-fade-out .4s ease forwards;
}

@keyframes mo-soft-pulse {
    0%,100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.045)
    }
}

@keyframes mo-bounce {
    0%,80%,100% {
        transform: translateY(0);
        opacity: .7
    }

    40% {
        transform: translateY(-6px);
        opacity: 1
    }
}

@keyframes mo-float {
    0% {
        transform: translateY(0) translateX(0)
    }

    50% {
        transform: translateY(-25px) translateX(10px)
    }

    100% {
        transform: translateY(0) translateX(0)
    }
}

@keyframes mo-fade-in {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes mo-fade-out {
    to {
        opacity: 0;
        visibility: hidden
    }
}

/* Accessibility prefers-reduced-motion adjustments */
@media (prefers-reduced-motion: reduce) {
    .mo-logo, .mo-dots span, .mo-loader-bubble, .float-soft {
        animation: none !important;
    }
}

/* Lock page scroll while loader is shown */
html.mo-scroll-lock, body.mo-scroll-lock {
    overflow: hidden !important;
}
html {
    scroll-behavior: smooth;
}

.friendly-font, body.friendly-font, .friendly-font *:not(i):not(.bi) {
    font-family: 'Quicksand', 'Fredoka', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: .2px;
}

/* Softer brand palette */
:root {
    --brand-green-dark: #27703E;
    --brand-green: #5AA473;
    --brand-green-soft: #6EC689;
    --brand-pink: #F7B7D4;
    --brand-pink-soft: #FCE0ED;
    --brand-cream: #FFF9F2;
    --brand-lav: #E5D9FF;
}

.bg-hero-soft {
    background: radial-gradient(circle at 85% 15%, var(--brand-pink-soft) 0, transparent 60%), radial-gradient(circle at 10% 90%, var(--brand-lav) 0, transparent 55%), linear-gradient(145deg, var(--brand-cream), #FFFFFF 70%);
}

.bg-brand-gradient {
    background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-green-soft) 100%);
}

.badge-heart {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    border-radius: 9999px;
    font-size: .7rem;
    font-weight: 600;
    background: var(--brand-pink-soft);
    color: #b94c7c;
    box-shadow: 0 2px 4px -2px rgb(0 0 0 / 8%);
}

.card-soft {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 6px 18px -8px rgba(0,0,0,.08);
    transition: transform .35s cubic-bezier(.16,.8,.24,1), box-shadow .35s;
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

    .card-soft:hover {
        transform: translateY(-8px) rotateX(2.2deg) rotateY(-2.4deg) scale(1.012);
        box-shadow: 0 18px 40px -14px rgba(31,65,53,.28),0 6px 18px -6px rgba(31,65,53,.18);
    }

    .card-soft:active {
        transform: translateY(-2px) scale(.985);
    }

    .card-soft:after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg,var(--brand-green),var(--brand-pink));
        opacity: 0;
        transform: translateY(-6px);
        transition: .55s;
    }

    .card-soft:hover:after {
        opacity: 1;
        transform: translateY(0);
    }

    .card-soft .shine {
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: 0;
        background: radial-gradient(circle at 25% 20%,rgba(255,255,255,.7),rgba(255,255,255,0)60%),linear-gradient(140deg,rgba(90,164,115,.18),rgba(255,255,255,0)55%);
        mix-blend-mode: overlay;
        transition: opacity .8s ease,transform 1.2s ease;
    }


    .card-soft.interactive:focus-visible {
        outline: 3px solid var(--brand-pink);
        outline-offset: 4px;
    }

.section-title {
    font-family: 'Fredoka','Quicksand',sans-serif;
}

.soft-divider {
    height: 4px;
    width: 90px;
    border-radius: 9999px;
    background: linear-gradient(90deg,var(--brand-pink), var(--brand-green));
    margin: 1.2rem auto 0;
}

.accent-ring {
    position: relative;
}

    .accent-ring::before {
        content: "";
        position: absolute;
        inset: -6px;
        border: 3px dashed var(--brand-pink);
        border-radius: 0.75rem;
        opacity: .35;
        pointer-events: none;
    }

.testimonial-quote {
    position: relative;
    padding-top: 1.5rem;
}

    .testimonial-quote::before {
        content: "\201C";
        position: absolute;
        top: -10px;
        left: 8px;
        font-size: 3.5rem;
        color: var(--brand-pink);
        opacity: .3;
        font-family: 'Fredoka',sans-serif;
    }

/* Hero blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .35;
    animation: blobMove 18s ease-in-out infinite;
    mix-blend-mode: multiply;
}

    .hero-blob.blob-a {
        width: 420px;
        height: 420px;
        top: -120px;
        left: -120px;
        background: radial-gradient(circle,var(--brand-green)0%,rgba(90,164,115,.35)55%,transparent 70%);
    }

    .hero-blob.blob-b {
        width: 360px;
        height: 360px;
        bottom: -140px;
        right: -100px;
        background: radial-gradient(circle,var(--brand-pink)0%,rgba(255,95,143,.4)55%,transparent 70%);
        animation-delay: 4s;
    }

    .hero-blob.blob-c {
        width: 280px;
        height: 280px;
        top: 40%;
        right: 10%;
        background: radial-gradient(circle,#3f7d86 0%,rgba(63,125,134,.45)55%,transparent 70%);
        animation-delay: 8s;
    }

@keyframes blobMove {
    0%,100% {
        transform: translate(0,0) scale(1)
    }

    25% {
        transform: translate(60px,40px) scale(1.08)
    }

    50% {
        transform: translate(-20px,80px) scale(.92)
    }

    75% {
        transform: translate(-80px,-40px) scale(1.05)
    }
}

.step-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg,var(--brand-green),var(--brand-pink));
    box-shadow: 0 6px 20px -4px rgba(90,164,115,.45);
    position: relative;
    transition: transform .6s cubic-bezier(.19,1,.22,1),box-shadow .6s;
}

    .step-circle:after {
        content: "";
        position: absolute;
        inset: -6px;
        border-radius: inherit;
        background: linear-gradient(135deg,var(--brand-green),var(--brand-pink));
        opacity: .35;
        filter: blur(12px);
        z-index: -1;
    }

.card-soft:hover .step-circle {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 10px 30px -6px rgba(90,164,115,.55);
}

/* Media boxes */
.media-interactive {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 4px 14px -8px rgba(31,65,53,.30),0 1px 6px -2px rgba(31,65,53,.18);
    transition: transform .9s cubic-bezier(.19,1,.22,1),box-shadow .75s cubic-bezier(.22,.61,.36,1) .05s;
    will-change: transform,box-shadow;
}

    .media-interactive img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform .9s cubic-bezier(.19,1,.22,1),filter .9s ease;
        transform-origin: center;
    }

    .media-interactive:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(145deg,rgba(90,164,115,.25),rgba(255,255,255,0)60%);
        opacity: 0;
        transition: .6s;
        mix-blend-mode: overlay;
        backdrop-filter: blur(2px);
    }

    .media-interactive:after {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(120deg,var(--brand-green),var(--brand-pink));
        -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: .6s;
    }

    .media-interactive:hover {
        transform: translateY(-6px) scale(1.015);
        box-shadow: 0 22px 60px -24px rgba(31,65,53,.46),0 10px 34px -14px rgba(31,65,53,.32);
    }

        .media-interactive:hover:before {
            opacity: .85;
        }

        .media-interactive:hover:after {
            opacity: 1;
        }

        .media-interactive:hover img {
            transform: scale(1.08) rotate(.5deg);
            filter: brightness(1.05) saturate(1.07);
        }

    .media-interactive.tilt:hover img {
        transform: scale(1.06) rotate3d(.5,.866,0,4deg);
    }

/* FAQ */
.faq details {
    background: #fff;
    border: 1px solid #f1f1f3;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    transition: background .3s,box-shadow .3s,border-color .3s;
    position: relative;
    margin-top: .5em;
}

    .faq details[open] {
        background: var(--brand-pink-soft);
        box-shadow: 0 6px 16px -8px rgba(0,0,0,.08);
        border-color: var(--brand-green);
    }

.faq summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

    .faq summary::-webkit-details-marker {
        display: none;
    }

.faq-icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,var(--brand-green),var(--brand-pink));
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 10px -4px rgba(90,164,115,.45);
    transition: .5s;
}

    .faq-icon:before, .faq-icon:after {
        content: "";
        position: absolute;
        background: #fff;
        border-radius: 2px;
        transition: .4s;
    }

    .faq-icon:before {
        width: 11px;
        height: 2px;
    }

    .faq-icon:after {
        width: 2px;
        height: 11px;
    }

.faq details[open] .faq-icon {
    transform: rotate(180deg);
}

    .faq details[open] .faq-icon:after {
        height: 0;
        opacity: 0;
    }
/* FAQ content (max-height) */
.faq details .faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height .55s ease,opacity .4s ease .05s,transform .55s ease;
    padding-top: 0;
}

.faq details[open] .faq-content {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    padding-top: .35rem;
}
/* Stagger */
[data-stagger] > * {
    animation: cardPop .75s cubic-bezier(.21,1.02,.73,1) forwards;
    opacity: 0;
}

    [data-stagger] > *:nth-child(1) {
        animation-delay: .05s;
    }

    [data-stagger] > *:nth-child(2) {
        animation-delay: .15s;
    }

    [data-stagger] > *:nth-child(3) {
        animation-delay: .25s;
    }

    [data-stagger] > *:nth-child(4) {
        animation-delay: .35s;
    }

    [data-stagger] > *:nth-child(5) {
        animation-delay: .45s;
    }

@keyframes cardPop {
    0% {
        transform: scale(.9) translateY(18px);
        opacity: 0
    }

    60% {
        transform: scale(1.02)
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1
    }
}
/* Gradient text */
.text-gradient {
    background: linear-gradient(90deg,var(--brand-green),var(--brand-pink));
    -webkit-background-clip: text;
    color: transparent;
}
/* Reduced motion */
@media (prefers-reduced-motion:reduce) {
    .media-interactive img, .media-interactive:before, .media-interactive:after, .card-soft, .faq details .faq-content {
        transition: none !important;
    }

    [data-stagger] > * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Utility pastel backgrounds */
.bg-pink-soft {
    background: var(--brand-pink-soft);
}

.bg-cream {
    background: var(--brand-cream);
}

.bg-lav {
    background: var(--brand-lav);
}

.text-brand-green {
    color: var(--brand-green-dark);
}

.greeting-text {
    color: var(--brand-green);
    font-size: 1.125rem;
    font-weight: 700;
}

.text-brand-pink {
    color: #c45d8d;
}

/* Gentle animation */
@keyframes float-soft {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.float-soft {
    animation: float-soft 6s ease-in-out infinite;
}


.container {
    width: 100%;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    --tw-bg-opacity: 1;
    background-color: rgb(90 164 115 / var(--tw-bg-opacity, 1));
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

    .btn-primary:hover {
        --tw-bg-opacity: 1;
        background-color: rgb(77 182 110 / var(--tw-bg-opacity, 1));
    }

/* Auth page theming */
.auth-bg {
    background: linear-gradient(135deg,var(--brand-cream) 0%, #FFFFFF 40%, var(--brand-pink-soft) 100%);
}

.auth-card {
    background: #fff;
    border: 1px solid #f1f1f3;
    border-radius: 1.5rem;
    padding: 2.25rem 2rem 2.5rem;
    box-shadow: 0 12px 34px -12px rgba(0,0,0,.12);
    position: relative;
    overflow: hidden;
}

    .auth-card::before {
        content: "";
        position: absolute;
        top: -60px;
        right: -60px;
        width: 160px;
        height: 160px;
        background: radial-gradient(circle at center,var(--brand-pink) 0%, var(--brand-pink-soft) 70%, transparent 72%);
        opacity: .18;
    }

    .auth-card h2 {
        font-family: 'Fredoka','Quicksand',sans-serif;
        font-weight: 700;
        font-size: 1.9rem;
        margin-bottom: .75rem;
        color: var(--brand-green);
    }

.auth-divider {
    height: 4px;
    width: 80px;
    border-radius: 9999px;
    background: linear-gradient(90deg,var(--brand-pink),var(--brand-green));
    margin: 0 0 1.75rem 0;
}

.soft-form .form-control {
    border-radius: 14px;
    border: 1.5px solid #e4e6ea;
    padding: .75rem 1rem;
    font-size: .95rem;
    background: #fff;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

    .soft-form .form-control:focus {
        border-color: var(--brand-green);
        box-shadow: 0 0 0 3px rgba(90,164,115,.25);
        background: #fff;
    }

.soft-form label {
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--brand-green);
    margin-bottom: .35rem;
}

.soft-form .text-danger, .soft-form .validation-message {
    font-size: .7rem;
    margin-top: .25rem;
}

.auth-footer-link {
    font-size: .8rem;
    color: #637076;
}

    .auth-footer-link a {
        color: var(--brand-green);
        text-decoration: none;
        font-weight: 600;
    }

        .auth-footer-link a:hover {
            text-decoration: underline;
        }

/* Submit button variant override inside auth */
.btn-success, .auth-card .btn-primary {
    background: var(--brand-green);
    border: none;
    border-radius: 9999px;
    padding: .9rem 2rem;
    font-weight: 600;
    box-shadow: 0 6px 18px -6px rgba(90,164,115,.55);
}

    .btn-success:hover, .btn-primary:hover {
        background: var(--brand-green-soft);
    }

/* Password strength bar soft styling */
.progress {
    height: 6px;
    border-radius: 4px;
    background: #eceef1;
}

.progress-bar {
    border-radius: 4px;
    background: linear-gradient(90deg,var(--brand-pink), var(--brand-green));
}

/* Prominent stepper for auth/register */
.mo-stepper {
    position: relative;
}

.mo-stepper-surface {
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 1rem;
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 8px 18px -12px rgba(0,0,0,.16);
}

.mo-stepper-track {
    position: relative;
    height: 10px;
    background: #eceef1;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 1em;
}

.mo-stepper-progress {
    position: absolute;
    inset: 0 0 0 0;
    width: 50%;
    height: 100%;
    background: var(--brand-green);
    border-radius: inherit;
    transition: width .35s ease;
}

.mo-stepper-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem;
    margin-top: .75rem;
}

.mo-stepper-item {
    text-align: center;
}

.mo-stepper-circle {
    width: 44px;
    height: 44px;
    margin: 0 auto .4rem auto;
    border-radius: 9999px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #cfd6db;
    box-shadow: 0 4px 12px -6px rgba(0,0,0,.25);
}

.mo-stepper-item.active .mo-stepper-circle {
    background: linear-gradient(135deg,var(--brand-green), var(--brand-green-soft));
}

.mo-stepper-label {
    font-size: .8rem;
    font-weight: 600;
    color: #5f6b73;
}

/* Section blocks inside auth forms */
.auth-section {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 1rem;
    padding: 1rem 1rem 1.25rem;
    box-shadow: 0 10px 22px -14px rgba(0,0,0,.12);
}

.auth-section-title {
    font-weight: 700;
    color: var(--brand-green);
    font-family: 'Fredoka','Quicksand',sans-serif;
    margin-bottom: .75rem;
}

/* Media refinement */
@media (min-width:768px) {
    .auth-card {
        padding: 2.75rem 2.75rem 3rem;
    }
}

/* Email confirm / status cards */
.status-card {
    background: #fff;
    border: 1px solid #f1f1f3;
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    box-shadow: 0 10px 30px -12px rgba(0,0,0,.10);
}

    .status-card h2 {
        font-family: 'Fredoka','Quicksand',sans-serif;
        font-weight: 700;
        color: var(--brand-green);
        font-size: 1.75rem;
        margin-bottom: .75rem;
    }

.status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg,var(--brand-pink) 0%, var(--brand-green) 100%);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 6px 18px -6px rgba(0,0,0,.25);
}

/* Profile card */
.profile-card {
    background: #fff;
    border: 1px solid #eceff2;
    border-radius: 1.5rem;
    padding: 2rem 2rem 2.25rem;
    box-shadow: 0 8px 24px -10px rgba(0,0,0,.10);
}

    .profile-card h2 {
        font-family: 'Fredoka','Quicksand',sans-serif;
        font-weight: 700;
        color: var(--brand-green);
        font-size: 1.85rem;
        margin-bottom: .25rem;
    }

.profile-sub {
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #7b8a8f;
    margin-bottom: 1.5rem;
}

/* Soft tabs matching brand look */
.soft-tabs {
    display: flex;
    gap: .5rem;
    background: #f9fafb;
    border: 1px solid #eef1f4;
    border-radius: 9999px;
    padding: .35rem;
    box-shadow: 0 8px 16px -10px rgba(0,0,0,.08) inset;
}

.soft-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: .9rem;
    color: #5f6b73;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    width: 100%;
    text-align: center;
}

.soft-tab:hover {
    background: #fff;
    box-shadow: 0 6px 16px -10px rgba(0,0,0,.12);
}

.soft-tab.active {
    color: #fff;
    background: linear-gradient(90deg,var(--brand-green), var(--brand-green-soft));
    box-shadow: 0 8px 18px -10px rgba(90,164,115,.55);
}

/* Scanner UI */
.scanner-surface {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 1.25rem;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 8px 20px -8px rgba(0,0,0,.12);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.scanner-surface.compact {
    padding: 1rem 1rem 1.25rem;
    margin-top: 0;
    margin-bottom: 0;
}

.scanner-surface.compact .scanner-header {
    margin-bottom: 0.75rem;
}

/* Unobtrusive collapsible health note on scanner and result views (store-required) */
.health-disclaimer {
    margin: 1rem auto 0;
    max-width: 44ch;
    text-align: left;
}

.health-disclaimer > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    list-style: none;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 500;
    color: #9aa4a9;
    padding: .35rem;
    transition: color .15s ease;
    user-select: none;
}

.health-disclaimer > summary::-webkit-details-marker {
    display: none;
}

.health-disclaimer > summary:hover {
    color: #6b7478;
}

.health-disclaimer > summary::after {
    content: "\F282"; /* bi-chevron-down */
    font-family: "bootstrap-icons";
    font-size: .7rem;
    transition: transform .2s ease;
}

.health-disclaimer[open] > summary::after {
    transform: rotate(180deg);
}

.health-disclaimer-body {
    font-size: .72rem;
    line-height: 1.5;
    color: #9aa4a9;
    text-align: center;
    padding: .25rem .5rem 0;
}

/* DEBUG-only scanner simulation toolbar (compiled out of release builds) */
.dev-scan-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-bottom: .75rem;
    padding: .5rem;
    border: 1px dashed #cbd3d8;
    border-radius: .6rem;
    background: #fafbfc;
}

.dev-scan-tools-label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #9aa4a9;
    padding: 0 .1rem;
}

.dev-scan-tools-msg {
    flex-basis: 100%;
    font-size: .7rem;
    color: #b04b79;
}

.scanner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.scanner-chip {
    background: var(--brand-pink-soft);
    color: #b04b79;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .4rem .7rem;
    border-radius: 9999px;
}

.result-card {
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    margin-top: 1.25rem;
    box-shadow: 0 6px 16px -8px rgba(0,0,0,.08);
    margin-bottom: 1rem;
}

    .result-card h5 {
        font-weight: 700;
        color: var(--brand-green);
    }

/* Additional utilities & component styles for extended fluffy theme */
.max-w-lg {
    max-width: 32rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.rounded-2xl {
    border-radius: 1.25rem;
}

/* Subtle animation for status */
@keyframes pulse-soft {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .55;
    }
}

.loading-soft {
    animation: pulse-soft 1.4s ease-in-out infinite;
}

/* Auth action button (for logout etc.) */
.auth-action-btn {
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 6px 18px -6px rgba(90,164,115,.55);
}

    .auth-action-btn:hover {
        background: var(--brand-green-soft) !important;
    }

/* Unified primary/secondary buttons for scanner & profile */
.btn-soft-outline {
    background: #fff;
    border: 1.5px solid var(--brand-green);
    color: var(--brand-green);
    border-radius: 9999px;
    font-weight: 600;
    padding: .75rem 1.5rem;
    box-shadow: 0 4px 10px -4px rgba(90,164,115,.25);
    transition: all .25s;
    text-decoration: none;
    text-align: center;
}

    .btn-soft-outline:hover {
        background: var(--brand-green);
        color: #fff;
    }

.btn-soft-outline.btn-sm {
    padding: .4rem 1rem;
    font-size: .85rem;
}

/* Gradient full height helper */
.full-gradient-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scanner theming overrides */
.scanner-wrapper {
    background: linear-gradient(140deg,#ffffff 0%, var(--brand-pink-soft) 120%);
    border-radius: 1.25rem;
    position: relative;
    box-shadow: 0 10px 28px -14px rgba(0,0,0,.18);
}

    .scanner-wrapper.loading {
        min-height: 260px;
    }

/* Torch button themed override */
.scanner-torch-btn {
    box-shadow: 0 4px 14px -6px rgba(0,0,0,.25);
}

/* Logout / auth action button already defined - ensure consistent padding */
.auth-action-btn {
    padding: .6rem 1.25rem;
}

/* Top row spacing & separator */
.top-row {
    padding: .6rem 1.25rem;
    box-shadow: 0 2px 8px -4px rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(180,190,200,.35);
}

/* Auth background full height refinement */
.auth-bg {
    min-height: 100dvh;
    /* Changed from 100dvh to 100% so header + content do NOT exceed viewport height */
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg,var(--brand-cream) 0%, #ffffff 40%, var(--brand-pink-soft) 85%);
    background-attachment: fixed;
}

/* Allow auth-bg to scroll when it is the direct content container */
article.content > .auth-bg {
    overflow-y: auto;
}

/* When viewport height is small, stop vertical centering to avoid header overlap and enable natural scroll */
@media (max-height: 700px) {
    article.content > .auth-bg {
        justify-content: flex-start; /* start at top instead of center to prevent overlap */
        padding-top: 3.75rem; /* header (3.5rem) + small spacer */
        background-attachment: scroll; /* prevent white gaps / repaint issues on tiny heights */
    }
}

/* Ultra small heights (landscape phones etc.) */
@media (max-height: 520px) {
    article.content > .auth-bg {
        padding-top: 3.25rem;
    }

    .auth-card, .status-card, .profile-card, .scanner-surface {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

.auth-bg > .container-app {
    width: 100%;
}

@media (min-width:768px) {
    .auth-bg {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Override any full-height wrappers when used directly under article.content so they don't add extra vh height */
article.content > .auth-bg,
article.content > .full-gradient-page {
    flex: 1 1 auto;
    min-height: 0; /* allow flex parent to control height without overflow */
}

/* Ensure small auth pages center nicely without leaving white gap */
.auth-card, .status-card, .profile-card, .scanner-surface {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (min-height:620px) {
    .auth-card, .status-card, .profile-card, .scanner-surface {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Compact scanner removes extra margins */
.scanner-surface.compact {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Switch / checkbox styling aligned with app design */
.form-check.form-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .form-check.form-switch .form-check-input {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        position: relative;
        width: 2.75rem;
        height: 1.5rem;
        border-radius: 9999px;
        background-color: #e9ecef;
        border: 1px solid #d1d5db;
        cursor: pointer;
        transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
        outline: none;
    }

        .form-check.form-switch .form-check-input::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 0.2rem;
            transform: translateY(-50%);
            width: 1.1rem;
            height: 1.1rem;
            border-radius: 9999px;
            background-color: #ffffff;
            box-shadow: 0 1px 2px rgba(0,0,0,0.08);
            transition: left 150ms ease, transform 150ms ease;
        }

        /* Checked state uses brand green (rgb(90 164 115)) */
        .form-check.form-switch .form-check-input:checked {
            background-color: rgb(90, 164, 115);
            border-color: rgb(90, 164, 115);
        }

            .form-check.form-switch .form-check-input:checked::before {
                left: calc(100% - 1.3rem);
            }

        .form-check.form-switch .form-check-input:focus {
            box-shadow: 0 0 0 0.25rem rgba(90, 164, 115, 0.25);
        }

        .form-check.form-switch .form-check-input:disabled {
            cursor: not-allowed;
            opacity: 0.6;
        }

.form-check-label {
    margin: 0;
    font-weight: 600;
    display: contents;
}

/* Highlighted select for illness */
.highlighted-select {
    border: 2px solid var(--brand-green);
    border-radius: 14px;
    padding: .8rem 1rem;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(90,164,115,.08);
}

@media (max-width: 480px) {
    .highlighted-select {
        padding: .7rem .9rem;
        font-size: 1rem;
    }
}

.profile-download-btn:hover {
    background-color: #e9ecef !important;
}

.profile-delete-btn:hover {
    background-color: #fff5f5 !important;
    opacity: 1 !important;
}

/* ===== HERO WITH LOLA ===== */
.hero-title-with-lola {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

.hero-title-with-lola h1 {
    font-size: 1.25rem;
    flex: 1;
    min-width: 0;
    max-width: min-content;
}

.hero-lola-image {
    flex-shrink: 0;
}

.lola-hero {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(90, 164, 115, 0.25));
}

.hero-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: hidden;
}

.hero-content > p {
    margin-top: 0.75rem !important;
}

.hero-content .hero-buttons {
    justify-content: center;
    max-width: 450px;
    margin: 2.5rem auto 0;
}

.hero-content .hero-buttons .btn {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

@media (min-width: 400px) {
    .hero-title-with-lola h1 {
        font-size: 1.5rem;
    }

    .lola-hero {
        width: 60px;
    }
}

@media (min-width: 480px) {
    .hero-title-with-lola h1 {
        font-size: 1.75rem;
    }

    .lola-hero {
        width: 70px;
    }
}

@media (min-width: 640px) {
    .hero-title-with-lola h1 {
        font-size: 1.5rem;
    }

    .lola-hero {
        width: 55px;
    }
}

@media (min-width: 750px) {
    .hero-title-with-lola h1 {
        font-size: 1.75rem;
    }

    .lola-hero {
        width: 70px;
    }
}

@media (min-width: 900px) {
    .hero-title-with-lola h1 {
        font-size: 2.25rem;
    }

    .lola-hero {
        width: 95px;
    }
}

@media (min-width: 1000px) {
    .hero-title-with-lola h1 {
        font-size: 3rem;
    }

    .lola-hero {
        width: 105px;
    }
}

/* ===== SCAN RESULT SECTION ===== */
.result-surface {
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem 2.5rem;
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.12);
    max-width: 420px;
    margin: 0 auto;
}

.lola-result-image {
    width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.1));
}

.product-thumb {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid #eee;
    padding: 0.5rem;
}

/* Result state colors */
.result-surface.result-danger {
    border-top: 4px solid var(--bs-danger);
}

.result-surface.result-success {
    border-top: 4px solid var(--brand-green);
}

.result-surface.result-warning {
    border-top: 4px solid var(--bs-warning);
}

.result-surface.result-neutral {
    border-top: 4px solid #6c757d;
}

/* Result header with icon */
.result-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.result-icon.danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--bs-danger);
}

.result-icon.success {
    background: rgba(90, 164, 115, 0.15);
    color: var(--brand-green);
}

.result-icon.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #cc9a00;
}

/* Scan again button styling */
.btn-scan-again {
    background: var(--brand-green);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(90, 164, 115, 0.3);
}

.btn-scan-again:hover {
    background: #4a9362;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(90, 164, 115, 0.35);
}

.btn-scan-again:active {
    transform: translateY(0);
}

/* Product info card */
.product-info-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1.5rem;
    border: 1px solid #eee;
}

.product-info-card .product-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.product-info-card .product-model {
    color: #666;
    font-size: 0.875rem;
}

.product-info-card .product-ean {
    color: #999;
    font-size: 0.75rem;
    font-family: monospace;
}

/* Allergy chips for displaying product allergies */
.allergy-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.allergy-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(108, 117, 125, 0.1);
    color: #555;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.allergy-chip.allergy-chip-colliding {
    background: rgba(220, 53, 69, 0.15);
    color: var(--bs-danger);
    font-weight: 600;
    border: 2px solid rgba(220, 53, 69, 0.5);
}

.allergy-chip.allergy-chip-colliding i {
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .result-surface {
        padding: 2.5rem 2rem 3rem;
    }

    .lola-result-image {
        width: 140px;
    }
}

/* Subtle pulse animation for verified badge */
@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(90, 164, 115, 0.1);
    color: var(--brand-green);
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    animation: subtle-pulse 3s ease-in-out infinite;
}

.verified-badge i {
    font-size: 0.9rem;
}

/* Result badges container */
.result-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Gluten-free marking badge - Distinctive golden/wheat theme */
.gluten-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    position: relative;
    overflow: hidden;
}

.gluten-free-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: gluten-shimmer 3s ease-in-out infinite;
}

.gluten-free-badge i {
    font-size: 1.1rem;
    color: #d97706;
}

@keyframes gluten-shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Suitable-for-coeliacs badge - Reassuring green theme */
.coeliac-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    position: relative;
    overflow: hidden;
}

.coeliac-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: coeliac-shimmer 3s ease-in-out infinite;
    animation-delay: 0.75s;
}

.coeliac-badge i {
    font-size: 1.1rem;
    color: #059669;
}

@keyframes coeliac-shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Partner product badge - Premium purple theme */
.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #5b21b6;
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
    position: relative;
    overflow: hidden;
}

.partner-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: partner-shimmer 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

.partner-badge i {
    font-size: 1rem;
    color: #7c3aed;
}

@keyframes partner-shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}