/* Catalogue Frontend Stage 4 - luminous dark-blue/electric-yellow public
   catalogue UI. Standalone stylesheet, loaded only by catalogue.html - no
   collision with style.css's :root (used by index.html/admin.html), and no
   change to style.css itself. Token names match the already-committed
   docs/CATALOGUE_UI_SYSTEM.md design system, not a second incompatible set. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #040817;
    --color-surface: #0A1533;
    --color-surface-raised: #102047;
    --color-text-primary: #F7F9FF;
    --color-text-muted: #9EACCC;
    --color-accent-yellow: #FFE600;
    --color-accent-green: #39FF14;
    --color-accent-orange: #FF7A00;
    --color-accent-pink: #FF2BD6;
    --color-accent-purple: #9D4EDD;
    --color-danger: #FF4D4D;
    --color-border: rgba(158, 172, 204, 0.22);
    --radius: 14px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Visible keyboard focus - one token, reserved for this purpose, distinct
   from hover state (docs/CATALOGUE_UI_SYSTEM.md Section 3). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-accent-yellow);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--color-accent-yellow);
    color: var(--color-bg);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    z-index: 1000;
    transition: top 0.15s ease;
}
.skip-link:focus {
    top: 1rem;
}
@media (prefers-reduced-motion: reduce) {
    .skip-link { transition: none; }
}

/* ---- Header / nav ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(4, 8, 23, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    color: var(--color-text-primary);
    text-decoration: none;
}
.brand__highlight {
    color: var(--color-accent-yellow);
}

.site-nav {
    display: flex;
    gap: 1.25rem;
}
.site-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.site-nav a[aria-current="page"] {
    color: var(--color-accent-yellow);
}

/* Stage 10Y: icon-only WhatsApp contact link - the phone number lives only
   in the href, never as visible text/title/aria-label (see the anchor
   markup itself). #25D366 is WhatsApp's own public brand color, used
   directly rather than a themed token, matching this file's existing
   third-party-brand-color convention. ~44px default size matches the
   recommended minimum touch target; the --footer modifier is intentionally
   smaller since it's a secondary/supplementary placement, not the primary
   discoverable one (the header instance). */
.whatsapp-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--color-text-muted);
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.whatsapp-contact-link:hover,
.whatsapp-contact-link:focus-visible {
    color: #25D366;
    border-color: #25D366;
}
.whatsapp-contact-link:focus-visible {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}
.whatsapp-contact-link__icon {
    width: 1.4rem;
    height: 1.4rem;
}
.whatsapp-contact-link--footer {
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.85rem;
}
.whatsapp-contact-link--footer .whatsapp-contact-link__icon {
    width: 1.15rem;
    height: 1.15rem;
}

/* ---- Hero with decorative player-card collage ---- */

.catalogue-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(26rem, 62vh, 42rem);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 230, 0, 0.12), transparent 42%),
        var(--color-bg);
}

.catalogue-hero__players,
.catalogue-hero__overlay {
    position: absolute;
    inset: 0;
}

.catalogue-hero__players {
    z-index: -2;
    pointer-events: none;
}

.catalogue-hero__overlay {
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(4, 8, 23, 0.96),
        rgba(4, 8, 23, 0.72),
        rgba(4, 8, 23, 0.94)
    );
}

/* Decorative player-card images - never links/controls, never inferred by a
   screen reader (parent has aria-hidden="true", each img has alt=""). Card
   borders are kept (object-fit: contain), not cropped away, per spec. */
.catalogue-hero__player {
    position: absolute;
    width: clamp(9rem, 15vw, 16rem);
    aspect-ratio: 240 / 340;
    object-fit: contain;
    opacity: 0.26;
    border-radius: 10px;
    border: 1px solid rgba(255, 230, 0, 0.16);
    filter: saturate(1.05) drop-shadow(0 0 1.1rem rgba(255, 230, 0, 0.16));
    pointer-events: none;
    user-select: none;
}

.catalogue-hero__player--aguero {
    left: 4%;
    top: 12%;
    transform: rotate(-6deg);
}
.catalogue-hero__player--messi {
    left: 30%;
    top: 4%;
    transform: rotate(4deg);
    opacity: 0.2;
}
.catalogue-hero__player--bellingham {
    right: 30%;
    bottom: 2%;
    transform: rotate(-3deg);
    opacity: 0.2;
}
.catalogue-hero__player--diouf {
    right: 4%;
    top: 16%;
    transform: rotate(7deg);
}

.catalogue-hero__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    width: 100%;
}

.catalogue-hero__content h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.1;
    max-width: 40rem;
}
.catalogue-hero__content h1 .highlight {
    color: var(--color-accent-yellow);
}

.catalogue-hero__content p {
    margin-top: 1rem;
    max-width: 36rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.catalogue-hero__actions {
    margin-top: 1.75rem;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    min-height: 44px;
    text-decoration: none;
}
.btn-primary {
    background: var(--color-accent-yellow);
    color: var(--color-bg);
}
.btn-primary:hover {
    box-shadow: 0 0 1.25rem rgba(255, 230, 0, 0.35);
}
.btn-secondary {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text-primary);
}
@media (prefers-reduced-motion: reduce) {
    .btn-primary:hover { box-shadow: none; }
}

/* ---- Toolbar: filters + sort + results summary ---- */

.catalogue-toolbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 0.5rem;
}

.filters {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.filters legend {
    font-weight: 800;
    padding: 0 0.4rem;
}

.filters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.9rem;
    margin-top: 0.75rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.field label {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 600;
}
.field input,
.field select {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    font-size: 0.95rem;
    min-height: 44px;
}

.field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}
.field--checkbox input {
    min-height: auto;
    width: 1.15rem;
    height: 1.15rem;
}

.filters__actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.field-error {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.catalogue-toolbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sort-control label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.results-summary {
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.low-inventory-note {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

/* ---- Results: grid / loading / empty / error ---- */

.catalogue-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem 2rem;
    min-height: 12rem;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1.25rem;
    list-style: none;
}

.listing-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    position: relative;
}
.listing-card:hover,
.listing-card:focus-visible {
    border-color: var(--color-accent-yellow);
}

.listing-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--color-surface-raised);
}
.listing-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card__badges {
    position: absolute;
    inset: 0.6rem 0.6rem auto 0.6rem;
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    pointer-events: none;
}

.listing-card__body {
    padding: 1rem;
}
.listing-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.listing-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}
.listing-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}
.listing-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.listing-card__price {
    color: var(--color-accent-yellow);
    font-weight: 800;
    font-size: 1.1rem;
}
.listing-card__cta {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

/* ---- Badges ---- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid transparent;
    background: var(--color-surface-raised);
    color: var(--color-text-primary);
}
.badge--tier-premium { color: var(--color-accent-purple); border-color: var(--color-accent-purple); }
.badge--tier-b-rank { color: var(--color-accent-yellow); border-color: var(--color-accent-yellow); }
.badge--tier-standard { color: var(--color-text-muted); border-color: var(--color-border); }

.badge--availability-available { color: var(--color-accent-green); border-color: var(--color-accent-green); }
.badge--availability-reserved { color: var(--color-accent-orange); border-color: var(--color-accent-orange); }
.badge--availability-unavailable { color: var(--color-text-muted); border-color: var(--color-border); }

.badge--verified { color: var(--color-accent-green); border-color: var(--color-accent-green); }
.badge--featured { color: var(--color-accent-pink); border-color: var(--color-accent-pink); }
.badge--division { color: var(--color-text-muted); border-color: var(--color-border); }

/* ---- Loading / empty / error states ---- */

.state-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    padding: 3rem 1.5rem;
    color: var(--color-text-muted);
}

.spinner {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent-yellow);
    animation: spin 0.9s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none;
        border-top-color: var(--color-border);
    }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.state-panel__title {
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 1.05rem;
}

/* ---- Pagination ---- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.pagination__status {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.pagination button {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    min-height: 44px;
    font-weight: 700;
    cursor: pointer;
}
.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---- Listing detail dialog ---- */

.listing-detail-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 12, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 100;
}
.listing-detail-backdrop[hidden] {
    display: none;
}

.listing-detail {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    max-width: 56rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}

.listing-detail__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    cursor: pointer;
}

.gallery {
    margin-top: 1rem;
}
.gallery__main-wrap {
    aspect-ratio: 4 / 3;
    background: var(--color-surface-raised);
    border-radius: 10px;
    overflow: hidden;
}
.gallery__main {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery__thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}
.gallery__thumb {
    flex: 0 0 auto;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--color-surface-raised);
    padding: 0;
    cursor: pointer;
}
.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery__thumb[aria-current="true"] {
    border-color: var(--color-accent-yellow);
}
.gallery__role-label {
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.gallery__main-wrap,
.gallery__thumb img {
    transition: opacity 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
    .gallery__main-wrap,
    .gallery__thumb img {
        transition: none;
    }
}

/* Stage 11G: was an inline style="margin-top:..." attribute on both, which
   this project's CSP (style-src: 'self', no unsafe-inline) silently blocked -
   the spacing never actually applied. Moved here so it genuinely renders. */
.listing-detail__badges {
    margin-top: 0.5rem;
}
.listing-detail__short-description {
    margin-top: 0.75rem;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.9rem;
    margin-top: 1.5rem;
}
.detail-stats dt {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.detail-stats dd {
    font-size: 1.05rem;
    font-weight: 700;
}

/* ---- Reservation panel (Reservation Workflow Stage 6) - a temporary
   marketplace hold / expression of interest, never a purchase. Deliberately
   restrained: no urgency colours beyond the existing accent palette, no
   pulsing/flashing on the countdown. ---- */

.reservation-panel {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface-raised);
}

.reservation-panel--active {
    border-color: var(--color-accent-orange);
}

.reservation-panel__note,
.reservation-panel__hint {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 0.6rem;
}

.reservation-panel__status {
    font-weight: 600;
    margin: 0 0 0.4rem;
}

.reservation-panel__countdown {
    font-size: 1.4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--color-accent-orange);
    margin: 0 0 0.75rem;
}

.reservation-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reservation-panel__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

/* ---- Footer ---- */

.site-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .catalogue-hero__player {
        width: clamp(8rem, 18vw, 13rem);
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    .site-nav {
        gap: 0.85rem;
    }
    .catalogue-hero {
        min-height: 24rem;
    }
    .catalogue-hero__player {
        opacity: 0.16;
    }
    .catalogue-hero__player--messi,
    .catalogue-hero__player--bellingham {
        display: none;
    }
    .filters__grid {
        grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    }
}

@media (max-width: 480px) {
    .catalogue-hero__content {
        padding: 2.25rem 1.1rem;
    }
    .catalogue-hero__player--aguero {
        left: -2%;
        width: 7.5rem;
    }
    .catalogue-hero__player--diouf {
        right: -2%;
        width: 7.5rem;
    }
    .catalogue-hero__player--messi,
    .catalogue-hero__player--bellingham {
        display: none;
    }
    .listing-grid {
        grid-template-columns: 1fr;
    }
    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
}

/* Stage 8B: minimal buyer order-tracking/verification/destination page
   (public/order.html, public/order.js) - reuses every token/class already
   defined above (.field, .field-error, .btn/.btn-primary/.btn-secondary,
   .badge, .state-panel) rather than inventing a parallel visual language. */
.order-page {
    max-width: 40rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-page__intro {
    color: var(--color-text-muted);
    max-width: 36rem;
}

.order-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Stage 8H-2 fix: any author-stylesheet rule setting `display` on a plain
   class (.order-panel, .btn, .badge, ...) sits at the same specificity as
   the browser's own default `[hidden] { display: none }` UA rule - and for
   equal specificity, author origin always wins over UA origin regardless of
   source order, so `hidden` was silently never actually hiding anything
   under such a class (pre-existing since Stage 8B; jsdom-based tests never
   caught it, since they assert the `hidden` property/attribute, not real
   computed style - discovered here via genuine browser rendering). A single
   `!important` rule is the standard, minimal fix, rather than hunting down
   and compound-selector-overriding every individual class this could ever
   apply to (.order-panel[hidden], .btn[hidden], .badge[hidden], and any
   future one) one at a time. */
[hidden] {
    display: none !important;
}

.order-panel h2 {
    margin: 0;
    font-size: 1.1rem;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.75rem 1.5rem;
    margin: 0;
}

.order-meta div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.order-meta dt {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.order-meta dd {
    margin: 0;
    color: var(--color-text-primary);
}

/* Stage 10W: "My Orders" listing (public/orders.html + public/orders.js) -
   reuses .order-panel/.order-meta/.badge/.btn/.state-panel exactly, same
   restraint as the Buyer Protection panel's own comment immediately below -
   one extra list/row wrapper is the only new visual vocabulary needed. */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

.order-row {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-row__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.order-row__title {
    font-weight: 800;
    font-size: 1.05rem;
}

.order-row__price {
    color: var(--color-accent-yellow);
    font-weight: 800;
}

/* Stage 8H-2: buyer-facing KonamiHub Buyer Protection panel (public/order.html
   + public/order.js) - reuses .order-panel/.badge/.field/.field-error/.btn/
   .listing-detail-backdrop (the existing catalogue detail-dialog pattern,
   reused here for the Confirm Delivery confirmation step) rather than adding
   a parallel visual language. Restrained color set: green for a settled/good
   state, yellow for active progress, orange for an action awaiting the
   buyer, red for an issue/review, purple for a refund in motion, muted for
   pending/inactive/expired - not every state is styled as an alert. */
.badge--bp-active { color: var(--color-accent-green); border-color: var(--color-accent-green); }
.badge--bp-progress { color: var(--color-accent-yellow); border-color: var(--color-accent-yellow); }
.badge--bp-awaiting { color: var(--color-accent-orange); border-color: var(--color-accent-orange); }
.badge--bp-issue { color: var(--color-danger); border-color: var(--color-danger); }
.badge--bp-refund { color: var(--color-accent-purple); border-color: var(--color-accent-purple); }
.badge--bp-done { color: var(--color-accent-green); border-color: var(--color-accent-green); }
.badge--bp-pending { color: var(--color-text-muted); border-color: var(--color-border); }

.order-panel__issue {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Stage 9C: buyer-facing handoff progress panel - reuses the existing
   .badge--bp-* palette above rather than a parallel color language (same
   restrained rule: green=done, yellow=in progress, orange=awaiting the
   buyer, red=failed). */
.order-handoff-progress {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.order-handoff-progress li {
    color: var(--color-text-muted);
    padding-left: 1.25rem;
    position: relative;
}

.order-handoff-progress li::before {
    content: '\2022';
    position: absolute;
    left: 0;
}

.order-handoff-progress li.is-complete {
    color: var(--color-text-primary);
}

.order-handoff-progress li.is-complete::before {
    content: '\2713';
    color: var(--color-accent-green);
}

.order-handoff-progress li.is-current {
    color: var(--color-text-primary);
    font-weight: 600;
}

.order-handoff-evidence-item {
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.order-handoff-evidence-item img {
    max-width: 100%;
    max-height: 20rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
}

.field textarea {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 6rem;
}

.field-hint {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-align: right;
}
