/* ============================================================
   Design tokens — v2 design system
   ============================================================ */
:root {
  --navy:        #111A28;
  --dark-navy:   #0C1420;
  --card-bg:     #1C2A3C;
  --card-hover:  #1F3045;
  --teal:        #21B4A6;
  --teal-hover:  #1AA095;
  --teal-pale:   rgba(33,180,166,0.12);
  --teal-border: rgba(33,180,166,0.30);
  --text:        #EDF6F3;
  --text-muted:  #aaaacc;
  --text-light:  #6a7a8e;
  --heading:     #FFFFFF;
  --border:      #2a3a4c;
  --border-light:#334455;
  --red:         #e74c3c;
  --red-pale:    rgba(231,76,60,0.12);
  --amber:       #d4a800;
  --amber-pale:  rgba(212,168,0,0.12);
  --green:       #27ae60;
  --green-pale:  rgba(39,174,96,0.12);
}

html { font-size: 16px; }

/* General Body Styles */
body {
    font-family: 'Lato', -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--navy);
    color: var(--text);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
}

.container {
    width: 80%;
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Headings */
h1, h2, h3 {
    font-family: 'Poppins', 'Lato', sans-serif;
    font-weight: 700;
    color: var(--heading);
    text-align: center;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

/* Paragraphs and Links */
p {
    line-height: 1.7;
    text-align: center;
    color: var(--text);
}

a {
    color: var(--teal);
    text-decoration: none;
}

a:hover {
    color: var(--teal-hover);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--teal);
    color: var(--heading);
    padding: 10px 20px;
    border: 2px solid var(--teal);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1em;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn:hover {
    background-color: var(--teal-hover);
    border-color: var(--teal-hover);
    text-decoration: none;
    color: var(--heading);
}

/* Map Container */
#map {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
}

/* Scanner Page */
#loadingMessage {
    text-align: center;
    font-style: italic;
    margin-top: 20px;
    color: var(--text);
}

#canvas {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border-radius: 8px;
}

/* ============================================================
   APP HEADER
   ============================================================ */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--dark-navy);
    border-bottom: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
}

.header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo {
    height: 28px;
    width: auto;
    /* invert the black wordmark to white for the dark header */
    filter: brightness(0) invert(1);
    display: block;
}

.header-divider {
    width: 1px;
    height: 22px;
    background: var(--border);
    flex-shrink: 0;
}

.header-product {
    font-size: 0.92em;
    color: var(--text);
    opacity: 0.75;
    flex: 1;
}

.btn--sm {
    padding: 6px 14px;
    font-size: 0.8em;
    margin-top: 0;
}

/* ── Consumer CTA bar (Buy Now / Get Support) ── */
.product-cta-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 20px;
}

.btn--cta {
    flex: 1;
    min-width: 180px;
    padding: 14px 20px;
    font-size: 0.95em;
    margin-top: 0;
    text-align: center;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: none;
}

.btn--buy {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.btn--buy:hover {
    background: var(--teal-hover);
    border-color: var(--teal-hover);
    color: #fff;
}

.btn--support {
    background: transparent;
    border-color: var(--teal);
    color: var(--teal);
}

.btn--support:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Language selector ── */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    font-size: 1.1em;
    line-height: 1;
    padding: 5px 8px;
    transition: border-color 0.2s;
}

.lang-btn:hover {
    border-color: var(--teal);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    z-index: 200;
    min-width: 100px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.lang-dropdown.open {
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 0.88em;
    padding: 8px 14px;
    text-align: left;
    transition: background 0.15s;
}

.lang-option:hover {
    background: var(--navy);
    color: var(--teal);
}

/* ============================================================
   PAGE SECTIONS
   ============================================================ */
.page-section {
    width: 100%;
    box-sizing: border-box;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.section-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: var(--heading);
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 0;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--teal);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95em;
    margin-top: 8px;
    margin-bottom: 0;
}

.subsection-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--heading);
    margin-top: 32px;
    margin-bottom: 18px;
}

/* Map ship cursor */
.map-ship-cursor {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(33, 180, 166, 0.9));
    user-select: none;
    pointer-events: none;
}

/* ============================================================
   JOURNEY TIMELINE
   ============================================================ */
.journey-timeline {
    display: flex;
    gap: 0;
    overflow-x: auto;
    margin-top: 24px;
    padding-bottom: 12px;
}

.timeline-stop {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-stop:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--teal);
    border: 2px solid var(--teal);
    z-index: 1;
    position: relative;
    flex-shrink: 0;
}

.timeline-card {
    margin-top: 16px;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
    width: calc(100% - 32px);
    border: 1px solid var(--border);
    box-sizing: border-box;
}

.timeline-icon {
    font-size: 1.8em;
    display: block;
    margin-bottom: 4px;
}

.timeline-name {
    font-weight: 700;
    font-size: 0.9em;
    color: var(--heading);
    display: block;
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 0.78em;
    color: var(--teal);
    display: block;
    margin-bottom: 8px;
}

.timeline-stats {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.timeline-stat {
    font-size: 0.75em;
    color: var(--text-muted);
    background: var(--navy);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ============================================================
   DIGITAL PRODUCT PASSPORT — PASSPORT GRID
   ============================================================ */
.passport-grid {
    display: grid;
    grid-template-columns: 5fr 3fr 5fr;
    gap: 16px;
    margin-top: 24px;
}

.passport-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px 22px;
    border: 1px solid var(--border);
}

/* Product image inside identity card */
.product-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
}

.card-label {
    text-align: left;
    font-size: 0.8em;
    color: var(--teal);
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

/* Info list (DL) */
.info-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin: 0;
}

.info-list dt {
    color: var(--text-muted);
    font-size: 0.82em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: center;
    white-space: nowrap;
}

.info-list dd {
    color: var(--text);
    font-size: 0.92em;
    margin: 0;
    align-self: center;
}

/* ESG bars */
.material-origin {
    font-size: 0.82em;
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 10px;
    margin-top: 0;
}

.esg-bar-wrap {
    margin-bottom: 10px;
}

.esg-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.84em;
    margin-bottom: 5px;
    color: var(--text);
}

.esg-value {
    font-weight: 500;
    color: var(--teal);
}

.esg-bar-track {
    height: 6px;
    background: var(--navy);
    border-radius: 3px;
    overflow: hidden;
}

.esg-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.esg-bar--good {
    background: linear-gradient(90deg, #21B4A6, #0FAF9F);
}

.esg-bar--warn {
    background: linear-gradient(90deg, #b88a00, #d4a800);
}

/* Certification badges */
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.cert-badge {
    font-size: 0.78em;
    color: var(--teal);
    border: 1px solid var(--teal);
    border-radius: 20px;
    padding: 3px 10px;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* ============================================================
   ESPR COMPLIANCE CARD
   ============================================================ */
.espr-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 16px;
}
.espr-status--compliant { background: rgba(33,180,166,0.15); color: #21B4A6; }
.espr-status--pending   { background: rgba(255,170,0,0.15);  color: #FFA800; }
.espr-status--exempt    { background: rgba(136,153,170,0.15); color: #8899AA; }
.espr-icon { font-size: 1.1em; }

.espr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(78,78,78,0.3);
}
.espr-row:last-of-type { border-bottom: none; }
.espr-row--block { flex-direction: column; align-items: flex-start; gap: 8px; }
.espr-label { color: var(--text-muted); font-size: 0.85em; }
.espr-value { color: var(--text); font-weight: 500; }
.espr-substances { display: flex; flex-wrap: wrap; gap: 6px; }

.espr-energy-label {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9em;
    color: #fff;
}
.espr-energy--a { background: #00843D; }
.espr-energy--b { background: #5BBD2B; }
.espr-energy--c { background: #B5CC18; }
.espr-energy--d { background: #FFC300; }
.espr-energy--e { background: #FF8C00; }
.espr-energy--f { background: #FF5722; }
.espr-energy--g { background: #D32F2F; }

.espr-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--teal);
    font-size: 0.85em;
    text-decoration: none;
}
.espr-link:hover { text-decoration: underline; }

.cert-badge--warn {
    color: #FFA800;
    border-color: #FFA800;
}

/* ============================================================
   CARBON OFFSET CARD
   ============================================================ */
.carbon-offset-card {
    margin-top: 24px;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--dark-navy) 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
}
.carbon-offset-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.carbon-offset-icon { font-size: 2em; }
.carbon-offset-data { flex: 1; }
.carbon-offset-data h4 {
    margin: 0;
    font-size: 0.95em;
    color: var(--text-muted);
    text-align: left;
    font-weight: 500;
}
.carbon-total {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0 2px;
}
.carbon-offset-cost {
    font-size: 0.85em;
    color: var(--text-muted);
    margin: 0;
}
.carbon-offset-tag {
    font-size: 0.75em;
    color: var(--teal);
    border: 1px solid var(--teal);
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
}

/* ============================================================
   DONATION BADGE
   ============================================================ */
.donation-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 20px;
    background: var(--teal-pale);
    border: 1px solid var(--teal-border);
    border-radius: 10px;
}
.donation-icon {
    font-size: 1.3em;
    color: #FF6B8A;
}
.donation-text {
    font-size: 0.9em;
    color: var(--text);
}
.donation-text a {
    color: var(--teal);
    text-decoration: none;
}
.donation-text a:hover { text-decoration: underline; }

/* ============================================================
   INDUSTRY / POSOLOGY CARDS
   ============================================================ */
.industry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.industry-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 18px 16px;
    border: 1px solid var(--border);
    text-align: center;
}

.industry-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.industry-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88em;
    color: var(--teal);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.industry-card p {
    font-size: 0.86em;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

/* ============================================================
   CUSTOMER REVIEWS
   ============================================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.review-platform {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 18px;
    border: 1px solid var(--border);
    border-top: 4px solid;
    display: flex;
    flex-direction: column;
}

.platform-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.platform-name {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1em;
    color: var(--heading);
    margin-bottom: 4px;
}

.platform-rating {
    font-size: 1em;
    color: #f5c518;
    letter-spacing: 1px;
}

.platform-count {
    display: block;
    font-size: 0.78em;
    color: var(--text-muted);
    margin-top: 2px;
}

.review-card {
    background: var(--navy);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--card-bg);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 0.84em;
    color: var(--text);
}

.review-date {
    font-size: 0.76em;
    color: var(--text-muted);
}

.review-stars {
    color: #f5c518;
    font-size: 0.84em;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.review-text {
    font-size: 0.82em;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
    margin: 0;
}

.platform-link {
    margin-top: auto;
    padding-top: 16px;
    display: inline-block;
    font-size: 0.85em;
    color: var(--teal);
    text-decoration: none;
}

.platform-link:hover {
    text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.app-footer {
    width: 100%;
    background: var(--dark-navy);
    padding: 32px 0;
    box-sizing: border-box;
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

.footer-logo {
    height: 72px;
    width: auto;
    display: block;
    opacity: 0.92;
    transition: opacity 0.2s;
}

.footer-logo-link:hover .footer-logo {
    opacity: 1;
}

.footer-tagline {
    font-size: 0.8em;
    color: var(--teal);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.footer-copy {
    font-size: 0.78em;
    color: var(--text-muted);
    margin: 0;
}

.footer-links {
    font-size: 0.78em;
    color: var(--text-muted);
    margin: 6px 0 0;
}
.footer-links a {
    color: var(--teal);
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .passport-grid {
        grid-template-columns: 1fr;
    }

    .section-inner,
    .footer-inner {
        padding: 0 20px;
    }

    .header-inner {
        padding: 14px 16px;
    }

    .header-product {
        font-size: 0.82rem;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-divider {
        margin: 0 8px;
    }

    #map {
        height: 350px;
    }

    .journey-timeline {
        flex-direction: column;
        overflow-x: visible;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-lead {
        font-size: 0.9rem;
    }

    .industry-cards {
        grid-template-columns: 1fr 1fr;
    }

    .btn, .btn--sm {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .industry-cards {
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding: 10px 12px;
        gap: 6px;
    }

    .header-logo {
        height: 24px;
    }

    .header-product {
        max-width: 100px;
        font-size: 0.75rem;
    }

    #map {
        height: 280px;
        border-radius: 6px;
    }

    .passport-card {
        padding: 20px 16px;
    }

    .info-list {
        gap: 8px 12px;
        font-size: 0.88rem;
    }

    .esg-bar-header {
        font-size: 0.82rem;
    }

    .review-platform {
        padding: 16px;
    }

    .blockchain-badge {
        font-size: 0.78rem;
        padding: 0.4rem 0.6rem;
    }

    .lang-selector {
        display: none;
    }
}

/* ============================================================
   DESKTOP BREAKPOINT — ≥1024px
   All rules in this block are ADDITIONS only; base styles are
   not changed. Improves layout on 1024px+ / 1440px monitors.
   ============================================================ */
@media (min-width: 1024px) {

    /* ── 1. Wider content container ── */
    .section-inner {
        max-width: 1280px;
    }

    /* ── 2. Map — taller on desktop ── */
    /* Base is 500px; 768px breakpoint drops it to 350px.
       At ≥1024px restore a comfortable tall height. */
    #map {
        height: 560px;
    }

    /* ── 3. Passport grid — keep 3-col base; tighten gap & sizing ──
       The base already has grid-template-columns: 5fr 3fr 5fr.
       On wider screens give the middle (QR/NFC) card a fixed min-
       width so it doesn't shrink awkwardly, and open up the gap. */
    .passport-grid {
        gap: 20px;
    }

    /* ── 4. Reviews grid — restore 3-col (collapses at 900px) ── */
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* ── 5. Industry cards — 4 columns ── */
    /* Base uses auto-fill minmax(220px). On wide screens pin to 4. */
    .industry-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    /* ── 6. Journey timeline — remove horizontal-scroll constraint;
       stops already lay out as a horizontal flex row on desktop. ── */
    .journey-timeline {
        overflow-x: visible;
        flex-wrap: nowrap;
    }

    .timeline-stop {
        min-width: 0;   /* let flex items shrink gracefully */
    }
}

/* Blockchain ID — monospace, truncated with tooltip */
.blockchain-id {
    font-family: 'Courier New', monospace;
    font-size: 0.82em;
    color: var(--teal);
    cursor: default;
    letter-spacing: 0.02em;
}

/* Expiration date — amber tint when present */
.expiration-date {
    color: var(--amber);
    font-weight: 500;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.landing-inner {
    max-width: 560px;
    text-align: center;
}

.landing-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.4em, 6vw, 3.6em);
    font-weight: 700;
    color: var(--heading);
    line-height: 1.15;
    margin-bottom: 24px;
}

.landing-lead {
    font-size: 1.05em;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

.landing-btn {
    font-size: 1em;
    padding: 14px 36px;
    margin-top: 0;
}

/* ============================================================
   Blockchain Verification Badge
   ============================================================ */
.blockchain-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.blockchain-badge-icon {
  font-size: 1rem;
  line-height: 1;
}
.blockchain-badge--verified {
  background: rgba(33, 180, 166, 0.12);
  color: #21B4A6;
  border: 1px solid rgba(33, 180, 166, 0.3);
}
.blockchain-badge--pending {
  background: rgba(243, 156, 18, 0.12);
  color: #F39C12;
  border: 1px solid rgba(243, 156, 18, 0.3);
}
.blockchain-badge--unavailable {
  background: rgba(136, 153, 170, 0.1);
  color: #8899AA;
  border: 1px solid rgba(136, 153, 170, 0.2);
}

/* ============================================================
   Product Info Page
   ============================================================ */
/* Product Info Page */
pre {
    background-color: var(--dark-navy);
    color: var(--text);
    padding: 15px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
    border-left: 3px solid var(--teal);
}

/* ============================================================
   PRODUCT STATUS ALERT BANNERS
   ============================================================ */
.status-alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    font-weight: 600;
    border-bottom: 4px solid;
    flex-wrap: wrap;
}

.status-alert__icon {
    font-size: 2em;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.status-alert__body {
    flex: 1;
    min-width: 200px;
}

.status-alert__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.status-alert__text {
    font-size: 0.92em;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.92;
}

.status-alert__ref {
    font-size: 0.78em;
    font-family: monospace;
    opacity: 0.7;
    margin-top: 6px;
}

.status-alert__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
    flex-shrink: 0;
}

.status-alert__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    font-family: 'Lato', sans-serif;
}

.status-alert__btn--primary {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.status-alert__btn--primary:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
    text-decoration: none;
}
.status-alert__btn--secondary {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.85);
}
.status-alert__btn--secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
}

.status-alert--stolen {
    background: linear-gradient(135deg, #8B0000 0%, #6B0000 100%);
    border-color: #ff2020;
    color: #fff;
    animation: stolen-pulse 2s ease-in-out infinite;
}
.status-alert--recalled {
    background: linear-gradient(135deg, #7A4100 0%, #5C3000 100%);
    border-color: #FF8C00;
    color: #fff;
}
.status-alert--flagged {
    background: linear-gradient(135deg, #5A4A00 0%, #3E3200 100%);
    border-color: #FFD700;
    color: #fff;
}

@keyframes stolen-pulse {
    0%, 100% { border-color: #ff2020; }
    50%       { border-color: #ff8080; }
}

@media (max-width: 600px) {
    .status-alert { padding: 16px; gap: 12px; }
    .status-alert__icon { font-size: 1.6em; }
    .status-alert__title { font-size: 0.95em; }
    .status-alert__actions { margin-top: 12px; width: 100%; }
    .status-alert__btn { flex: 1; justify-content: center; }
}

/* Stolen product report form */
.stolen-report-form {
    background: linear-gradient(135deg, #5a0000 0%, #3a0000 100%);
    padding: 20px 24px;
    border-bottom: 2px solid #ff2020;
}
.stolen-report-form__intro {
    color: rgba(255,255,255,0.85);
    font-size: 0.88em;
    line-height: 1.5;
    margin: 0 0 16px;
}
.stolen-report-form__geo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.stolen-report-form__geo-status {
    font-size: 0.85em;
    font-weight: 600;
}
.stolen-report-form__fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.stolen-report-form__field label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.82em;
    font-weight: 600;
    margin-bottom: 4px;
}
.stolen-report-form__field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 0.88em;
    font-family: 'Lato', sans-serif;
    box-sizing: border-box;
}
.stolen-report-form__field input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
}
.stolen-report-form__field input::placeholder {
    color: rgba(255,255,255,0.4);
}
.stolen-report-form__submit {
    margin-bottom: 8px;
}
.stolen-report-form__result {
    font-size: 0.88em;
    font-weight: 600;
    padding: 8px 0;
}
@media (max-width: 600px) {
    .stolen-report-form { padding: 16px; }
}

/* ============================================================
   VERIFICATION STATE BANNERS (NFC / QR dual-factor)
   ============================================================ */
.verification-banner {
    padding: 14px 24px;
    text-align: center;
    font-size: 0.92em;
    font-weight: 600;
}
.verification-banner--nfc-scanned {
    background: var(--teal-pale);
    color: var(--teal);
    border-bottom: 2px solid var(--teal);
}
.verification-banner--genuine {
    background: var(--teal-pale);
    color: var(--teal);
    border-bottom: 2px solid var(--teal);
    font-weight: 700;
}
.verification-banner--mismatch {
    background: var(--red-pale);
    color: var(--red);
    border-bottom: 3px solid var(--red);
    font-weight: 700;
    font-size: 0.95em;
}
.verification-banner--no-nfc-session {
    background: var(--amber-pale);
    color: var(--amber);
    border-bottom: 2px solid var(--amber);
}
.verification-banner--invalid-token {
    background: var(--red-pale);
    color: var(--red);
    border-bottom: 2px solid var(--red);
}
.report-counterfeit-btn {
    margin-top: 10px;
    padding: 6px 18px;
    border: 2px solid var(--red);
    background: transparent;
    color: var(--red);
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88em;
}

/* ============================================================
   GOOGLE MAPS FALLBACK (A-16)
   Displayed when Maps API key is missing, invalid, or network fails.
   ============================================================ */
.map-fallback {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 28px;
    margin-top: 12px;
}
.map-fallback-note {
    color: var(--text-muted);
    font-size: 0.88em;
    margin: 0 0 18px;
    text-align: center;
}
.map-fallback-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.map-fallback-stop {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(33,180,166,0.05);
    border: 1px solid rgba(33,180,166,0.15);
    border-radius: 6px;
}
.map-fallback-icon { font-size: 1.6em; flex-shrink: 0; }
.map-fallback-info { display: flex; flex-direction: column; gap: 2px; }
.map-fallback-info strong { color: var(--heading); font-size: 0.92em; }
.map-fallback-info span  { color: var(--text-muted); font-size: 0.82em; }

/* ============================================================
   TIMELINE + CERT BADGE HOVER STATES (A-21)
   ============================================================ */
.cert-badge {
    transition: background 0.15s, color 0.15s;
}
.cert-badge:hover {
    background: rgba(33,180,166,0.12);
}

/* ============================================================
   ACCESSIBILITY — SKIP LINK
   ============================================================ */
.skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    z-index: 9999;
    background: var(--teal);
    color: #000;
    font-weight: 700;
    font-size: 0.95em;
    padding: 10px 20px;
    border-radius: 0 0 6px 0;
    text-decoration: none;
    white-space: nowrap;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* ============================================================
   ACCESSIBILITY TOOLBAR
   ============================================================ */
.a11y-toolbar {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.a11y-btn {
    border-radius: 6px;
    border: 2px solid var(--border);
    background: var(--dark-navy);
    color: var(--text-muted);
    font-size: 0.72em;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.a11y-btn__icon {
    font-size: 1.2em;
    line-height: 1;
}

.a11y-btn__label {
    font-size: 0.92em;
}

.a11y-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.a11y-btn.a11y-btn--active {
    border-color: var(--teal);
    background: var(--teal-pale);
    color: var(--teal);
}

/* ============================================================
   HIGH-CONTRAST MODE  (html.hc-mode)
   Overrides colour tokens for WCAG 2.1 AA — all text ≥4.5:1
   ============================================================ */
html.hc-mode {
    --navy:       #000000;
    --dark-navy:  #000000;
    --card-bg:    #111111;
    --teal:       #00FFFF;
    --teal-hover: #00E5E5;
    --text:       #FFFFFF;
    --heading:    #FFFFFF;
    --text-muted: #CCCCCC;
    --border:     #555555;
}

html.hc-mode body {
    background-color: #000000;
    color: #FFFFFF;
}

html.hc-mode .app-header,
html.hc-mode .app-footer {
    background-color: #000000;
    border-color: #555555;
}

html.hc-mode .passport-card,
html.hc-mode .industry-card,
html.hc-mode .review-platform,
html.hc-mode .review-card,
html.hc-mode .timeline-card,
html.hc-mode .carbon-offset-card,
html.hc-mode .donation-badge,
html.hc-mode .map-fallback,
html.hc-mode .map-fallback-stop {
    background: #111111;
    border-color: #555555;
}

html.hc-mode .section-title,
html.hc-mode .subsection-title,
html.hc-mode h1, html.hc-mode h2, html.hc-mode h3, html.hc-mode h4 {
    color: #FFFFFF;
}

html.hc-mode .section-lead,
html.hc-mode .info-list dt,
html.hc-mode .review-text,
html.hc-mode .platform-count,
html.hc-mode .review-date,
html.hc-mode .timeline-stat,
html.hc-mode .material-origin,
html.hc-mode .carbon-offset-cost,
html.hc-mode .espr-label,
html.hc-mode .footer-copy,
html.hc-mode .footer-links {
    color: #CCCCCC;
}

html.hc-mode .info-list dd,
html.hc-mode .reviewer-name,
html.hc-mode .platform-name,
html.hc-mode .timeline-name,
html.hc-mode .carbon-total,
html.hc-mode .espr-value {
    color: #FFFFFF;
}

html.hc-mode a,
html.hc-mode .card-label,
html.hc-mode .blockchain-id,
html.hc-mode .esg-value,
html.hc-mode .timeline-date,
html.hc-mode .platform-link,
html.hc-mode .footer-tagline,
html.hc-mode .espr-link,
html.hc-mode .carbon-offset-tag {
    color: #00FFFF;
}

html.hc-mode .cert-badge {
    color: #00FFFF;
    border-color: #00FFFF;
}

html.hc-mode .section-title::after {
    background: #00FFFF;
}

html.hc-mode .esg-bar--good {
    background: #00FFFF;
}

html.hc-mode .lang-btn,
html.hc-mode .lang-dropdown {
    background: #111111;
    border-color: #555555;
    color: #FFFFFF;
}

html.hc-mode .lang-option {
    color: #FFFFFF;
}

html.hc-mode .lang-option:hover {
    background: #222222;
    color: #00FFFF;
}

html.hc-mode .esg-bar-track {
    background: #333333;
}

html.hc-mode .timeline-stop:not(:last-child)::after {
    background: #555555;
}

html.hc-mode .platform-header {
    border-color: #555555;
}

html.hc-mode .page-section {
    border-color: #555555;
}

html.hc-mode .header-divider {
    background: #555555;
}

/* Toolbar stays visible in HC mode */
html.hc-mode .a11y-btn {
    background: #000000;
    border-color: #555555;
    color: #CCCCCC;
}

html.hc-mode .a11y-btn:hover {
    border-color: #00FFFF;
    color: #00FFFF;
}

html.hc-mode .a11y-btn.a11y-btn--active {
    border-color: #00FFFF;
    background: rgba(0,255,255,0.15);
    color: #00FFFF;
}

/* ============================================================
   TTS / SCREEN-READER MODE  (html.tts-mode)
   ============================================================ */

/* Hide decorative elements */
html.tts-mode [data-decorative] {
    display: none !important;
}

/* Show the TTS summary panel */
html.tts-mode .tts-summary {
    display: block !important;
}

/* TTS summary panel — hidden by default */
.tts-summary {
    display: none;
    background: var(--card-bg);
    border: 2px solid var(--teal);
    border-radius: 8px;
    padding: 28px 32px;
    margin: 32px auto;
    max-width: 860px;
    box-sizing: border-box;
}

html.hc-mode .tts-summary {
    background: #111111;
    border-color: #00FFFF;
}

.tts-summary h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--teal);
    text-align: left;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

html.hc-mode .tts-summary h2 {
    color: #00FFFF;
}

.tts-summary ol {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tts-summary li {
    font-size: 0.92em;
    color: var(--text);
    line-height: 1.6;
}

html.hc-mode .tts-summary li {
    color: #FFFFFF;
}

.tts-summary li strong {
    color: #FFFFFF;
    font-weight: 700;
}

html.hc-mode .tts-summary li strong {
    color: #00FFFF;
}

@media (max-width: 480px) {
    .a11y-toolbar {
        top: auto;
        bottom: 16px;
        right: 16px;
        flex-direction: row;
    }
}
