* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Broela';
    /* Make sure the path below matches where you saved the file */
    src: url('../fonts/Broela.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --eco-green-primary: #10B981;
    --eco-green-dark: #047857;
    --eco-green-light: #D1FAE5;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --bg-color: #F9FAFB;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: "Outfit", sans-serif;
}

.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    transition: all 0.28s ease;
}

.navbar-custom.navbar-scrolled {
    /* background: rgba(15, 23, 42, 0.98); */
    /* background: #6BBC3E; */
    background: #000000;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(6, 78, 59, 1) 50%, rgba(0, 0, 0, 1) 100%);
    border-bottom-color: transparent;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.55);
}

.navbar-custom .navbar-toggler i {
    color: black;
}

.navbar-custom.navbar-scrolled .navbar-toggler i {
    color: white !important;
}

.navbar-custom .navbar-brand {
    font-family: 'Broela', sans-serif;
    /* text-transform: uppercase; */
    color: var(--eco-green-dark) !important;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 99px;
    padding: 6px 14px;
    background: radial-gradient(circle at 0 0, rgba(52, 211, 153, 0.18), transparent 55%);
}

.navbar-custom .navbar-brand i {
    transition: transform 0.35s ease, filter 0.35s ease;

}

.navbar-custom .navbar-brand:hover i {
    transform: scale(1.12) rotate(-6deg);
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.75));
}

.navbar-custom.navbar-scrolled .navbar-brand i {
    color: white;
}

.navbar-custom.navbar-scrolled .navbar-brand {
    color: white !important;
}

.link-custom {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 1px;
    left: 50%;
    background-color: #10B981;
    transition: width 0.3s ease-out;
    transform: translateX(-50%);

}

.link-custom:hover::after {
    width: 100%;
}

.link-custom:hover {
    color: var(--eco-green-primary);
}

.navbar-custom.navbar-scrolled .link-custom {
    color: white !important;
}

.navbar-custom.navbar-scrolled .link-custom:hover {
    color: var(--eco-green-primary) !important;
}

/* button span{
    filter: invert(1);
} */



.badge-eco {
    /* background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(4, 120, 87, 0.08)); */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.4);
    /* color: var(--eco-green-dark); */
    /* color: #10b981; */
    background: linear-gradient(135deg, #10b981, #047857);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    font-size: 0.95em;
    padding: 9px 20px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-eco #ecoScoreValue {
    /* background: linear-gradient(135deg, #10b981, #047857); */
    background: #10B981;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.1em;
}

.badge-eco:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 45px rgba(16, 185, 129, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 1);
    /* background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(4, 120, 87, 0.18)); */
    border-color: rgba(16, 185, 129, 0.75);

}

.hero-section {
    background: linear-gradient(135deg, #ECFDF5 0%, rgba(255, 255, 255, 1) 100%);
    padding-top: 120px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(135deg, #10b981, #047857);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
}

.btn-primary-custom {
    /* display: inline-flex;
    justify-content: center;
    align-items: center; */
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: white;
}

.hero-img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* .hero-title{
    white-space: nowrap;
} */

.section-title {
    text-align: center;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.scanner-card {
    background-color: white;
}

.result-image {
    background-color: var(--eco-green-light);
}

.results-column {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.results-column::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;

    background: linear-gradient(90deg, #10b981, #34d399);
}

.webcam-placeholder {
    border: 2px dashed var(--eco-green-primary);
}

.result-tag {
    background-color: var(--eco-green-dark);
    color: white;
    background: rgba(4, 120, 87, 0.8);
}

@media(max-width:244px) {
    .result-tag {
        color: var(--eco-green-dark);
        background: none;
    }
}

@media(max-width:288px) {
    .webcam-head {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}




#cameraOverlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    margin-top: 0;

}

.footer {
    background: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
    padding: 80px 0 30px;
    margin-top: 100px;
    color: #d1fae5;
    position: relative;
    overflow: hidden;
}

.footer-logo {
    font-family: 'Broela', sans-serif;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.footer-text {
    color: #a7f3d0;
    margin-bottom: 24px;
    line-height: 1.7;
    font-weight: 300;
    font-size: 1.05rem;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icons a:hover {
    background-color: #10b981;
    color: white;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
    border-color: transparent;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a7f3d0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 20px;
}

.footer-links a::before {
    content: "\2192";
    margin-right: -15px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    margin-right: 8px;
    opacity: 1;
    transform: translateX(0);
}

.newsletter-form {
    position: relative;
    margin-top: 15px;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 20px;
    padding-right: 130px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn-subscribe {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 0 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form .btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a7f3d0;
    font-weight: 400;
}

.copyright a {
    color: #a7f3d0;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #ffffff;
}

/* Animated Eco leaves in background */
.footer-bg-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
}

.footer-bg-icon.icon-1 {
    top: -20px;
    left: -20px;
    font-size: 200px;
    transform: rotate(15deg);
}

.footer-bg-icon.icon-2 {
    bottom: -50px;
    right: 5%;
    font-size: 250px;
    transform: rotate(-15deg);
}

/* Make recycle icons appear bolder */
.navbar-brand .bi-recycle,
.footer .bi-recycle {
    -webkit-text-stroke: 0.7px currentColor;
    /* Thin outline for boldness */
    text-shadow: 0 0 1.1px currentColor;
    /* Subtle shadow for depth */
}




/* History card fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── History Scroll Wrapper ──────────────────── */
.history-scroll-wrapper {
    /* Tall enough to show one card row (~card height + gap) */
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 20px;
    padding: 4px 4px 8px 4px;
    /* Subtle inner shadow at bottom to hint more content below */
    background:
        linear-gradient(to bottom, transparent 85%, rgba(249, 250, 251, 0.95) 100%);
    position: relative;
}

/* Custom scrollbar — slim & green */
.history-scroll-wrapper::-webkit-scrollbar {
    width: 5px;
}

.history-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
}

.history-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.45);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.history-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.75);
}

/* Firefox */
.history-scroll-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.45) rgba(0, 0, 0, 0.04);
}


/* Category Color Theme Transitions */
.results-column {
    transition: border-color 0.6s ease,
        background-color 0.6s ease;
}

.results-column::before {
    transition: background 0.6s ease;
}

.result-image {
    transition: background-color 0.6s ease;
}



/* ── Scan Overlay (darkens edges around frame) ── */
.scan-overlay {
    background: radial-gradient(ellipse at center,
            transparent 28%,
            rgba(0, 0, 0, 0.65) 70%);
    pointer-events: none;
    z-index: 1;
}

/* ── Scanning Frame Box ─────────────────────── */
.scan-frame {
    width: min(72vw, 300px);
    height: min(72vw, 300px);
    position: relative;
    z-index: 2;
    animation: framePulse 2.5s ease-in-out infinite;
}

/* Frame pulse animation */
@keyframes framePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.75;
        transform: scale(1.03);
    }
}

/* ── Corner Brackets ────────────────────────── */
.corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: #10B981;
    border-style: solid;
}

.corner-tl {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
    border-radius: 4px 0 0 0;
}

.corner-tr {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
    border-radius: 0 4px 0 0;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 4px;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 4px 0;
}

/* ── Scanning Line ──────────────────────────── */
.scan-line {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            #10B981,
            transparent);
    animation: scanMove 2s ease-in-out infinite;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

@keyframes scanMove {
    0% {
        top: 8px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: calc(100% - 8px);
        opacity: 0;
    }
}

/* ── Instruction Text ───────────────────────── */
.scan-instruction {
    bottom: 100px;
    left: 0;
    right: 0;
    z-index: 3;
    font-size: 0.85rem;
    opacity: 0.85;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
}

/* ── Capture Button Ring ────────────────────── */
.capture-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.5);
    animation: ringPulse 2s ease-out infinite;
}

@keyframes ringPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* ── Tips Trigger Button ── */
.tips-trigger-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.07), rgba(4, 120, 87, 0.12));
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.28s ease;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}

.tips-trigger-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(4, 120, 87, 0.2));
    border-color: var(--eco-green-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.18);
    color: var(--eco-green-dark);
}

.tips-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    flex-shrink: 0;
}

.tips-trigger-text {
    flex: 1;
}

.tips-arrow {
    font-size: 1rem;
    color: var(--eco-green-primary);
    transition: transform 0.25s ease;
}

.tips-trigger-btn:hover .tips-arrow {
    transform: translateX(4px);
}




/* ── Tips Modal Overlay ── */
.tips-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tips-modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.tips-modal-card {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(16, 185, 129, 0.12);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.tips-modal-overlay.is-open .tips-modal-card {
    transform: translateY(0) scale(1);
}

/* Header */
.tips-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    flex-shrink: 0;
}

.tips-modal-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.12);
    border: 1.5px solid rgba(245, 158, 11, 0.2);
}

.tips-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.tips-modal-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.tips-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tips-modal-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: rotate(90deg);
}

/* Body */
.tips-modal-body {
    overflow-y: auto;
    padding: 22px 24px 24px;
    flex: 1;
}

.tips-modal-body::-webkit-scrollbar {
    width: 4px;
}

.tips-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.tips-modal-body::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 4px;
}

/* Tips List */
.tips-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tips-modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInTip 0.3s ease both;
}

.tips-modal-list li:nth-child(1) {
    animation-delay: 0.04s;
}

.tips-modal-list li:nth-child(2) {
    animation-delay: 0.09s;
}

.tips-modal-list li:nth-child(3) {
    animation-delay: 0.14s;
}

.tips-modal-list li:nth-child(4) {
    animation-delay: 0.19s;
}

.tips-modal-list li:nth-child(5) {
    animation-delay: 0.24s;
}

@keyframes fadeInTip {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tips-modal-list .tip-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.tips-modal-list .tip-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.tips-modal-list .tip-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* No-tips placeholder */
.tips-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.tips-modal-empty i {
    font-size: 2.5rem;
    opacity: 0.35;
    margin-bottom: 12px;
}





/* ── Infinite Marquee Strip ─────────────────────── */
.marquee-section {
    /* background: linear-gradient(135deg, #0F172A 0%, #1a2e1a 100%); */
    /* background: #054736; */
    /* background: #198754; */
    background: #000000;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #000000, #0f9b0f);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #000000, #0f9b0f);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    padding: 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    margin-bottom: 24px;
}

/* Edge fade effect — left and right */
.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee-section::before {
    left: 0;
    background: linear-gradient(to right,
            #0F172A 0%,
            transparent 100%);
}

.marquee-section::after {
    right: 0;
    background: linear-gradient(to left,
            #0F172A 0%,
            transparent 100%);
}

/* The scrolling track */
.marquee-track {
    display: flex;
    width: 100%;
    overflow: hidden;
    padding: 14px 0;
}

/* Each content strip (original + clone) */
.marquee-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    animation: marqueeScroll 45s linear infinite;
    will-change: transform;
}

/* Pause on hover */
.marquee-section:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Individual item */
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    /* color: #94A3B8; */
    color: white !important;
    white-space: nowrap;
    padding: 6px 20px;
    transition: color 0.3s ease;
    cursor: default;
}

.marquee-item:hover {
    color: #E2E8F0;
}

.marquee-item i {
    color: white !important;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Category pill items */
.marquee-item.item-category {
    background: rgba(var(--cat-color-rgb, 16, 185, 129), 0.08);
    border: 1px solid rgba(var(--cat-color-rgb, 16, 185, 129), 0.2);
    border-radius: 100px;
    padding: 5px 16px;
    color: color-mix(in srgb, var(--cat-color, #10B981) 100%, transparent);
    font-weight: 700;
    font-size: 0.82rem;
    margin: 0 8px;
}

/* Separator dot */
.marquee-dot {
    color: #10B981;
    font-size: 0.5rem;
    opacity: 0.5;
    padding: 0 4px;
    flex-shrink: 0;
}

/* Responsive — slightly slower on mobile */
@media (max-width: 768px) {
    .marquee-content {
        animation-duration: 35s;
    }

    .marquee-section::before,
    .marquee-section::after {
        width: 60px;
    }

    .marquee-item {
        font-size: 0.8rem;
        padding: 5px 14px;
    }
}






@media(max-width:540px) {
    #history-head {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #clearHistoryBtn {
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-top: 24px !important;
    }
}