/* ==========================================================================
   FBE Lost & Found - Public Institutional Navy & White Stylesheet
   ========================================================================== */

:root {
    --navy:        #133C68;
    --navy-deep:   #0D2B4E;
    --hero:        #0E2954;
    --blue:        #1E88E5;
    --blue-soft:   #E8F3FC;
    --bg:          #F5F8FC;
    --surface:     #FFFFFF;
    --border:      #DCE6F2;
    --ink:         #0F172A;
    --muted:       #475569;
    --on-dark:     #C5D8EE;
    --green:       #15803D;
    --green-soft:  #ECFDF5;
    --amber:       #B45309;
    --amber-soft:  #FFFBEB;
    --danger:      #DC2626;
    --danger-soft: #FEF2F2;
    --shadow:      0 2px 8px rgba(15, 23, 42, 0.05);
    --radius:      8px;
    --nav-h:       64px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

/* ── STICKY NAVBAR ── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--hero);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav .container {
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: #fff;
    padding: 3px;
    display: inline-flex;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    min-width: 0;
    line-height: 1.2;
}

.brand-name {
    display: block;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
}

.brand-sub {
    display: block;
    color: var(--on-dark);
    font-size: 0.76rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-back:hover {
    background: var(--navy-deep);
    border-color: #fff;
    color: #fff;
}

/* ── HERO WRAPPER ── */
.hero-wrap {
    position: relative;
    overflow: hidden;
    background: var(--hero);
    color: #fff;
}

.hero-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero-wrap::after {
    content: '';
    position: absolute;
    top: 24px;
    right: 6%;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 32px rgba(255, 255, 255, 0.015), inset 0 0 0 33px rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.hero-wrap > * {
    position: relative;
    z-index: 1;
}

.hero {
    padding: 40px 0 84px;
}

.hero-wrap--compact .hero {
    padding: 28px 0 64px;
}

.hero-wrap--compact::after {
    top: 14px;
    width: 180px;
    height: 180px;
    box-shadow: inset 0 0 0 24px rgba(255, 255, 255, 0.015), inset 0 0 0 25px rgba(255, 255, 255, 0.06);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.86rem;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 18px;
}

.status-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5FB4FF;
    flex-shrink: 0;
}

.status-pill strong {
    font-weight: 700;
}

.status-pill .sep {
    opacity: 0.5;
}

.hero-title {
    font-weight: 800;
    font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.8rem);
    line-height: 1.18;
    color: #fff;
    max-width: 17em;
    margin-bottom: 12px;
}

.hero-wrap--compact .hero-title {
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem);
    max-width: none;
    margin-bottom: 8px;
}

.hero-lead {
    color: var(--on-dark);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 38em;
    margin: 0;
}

/* ── BENTO & CARDS ── */
.bento {
    position: relative;
    z-index: 2;
    margin-top: -48px;
    padding-bottom: 48px;
}

.bento--compact {
    margin-top: -32px;
    padding-bottom: 40px;
}

.card-fbe {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: border-color 0.15s ease;
}

.card-fbe:hover,
.card-fbe:focus-within {
    border-color: var(--blue);
}

.icon-box {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-soft);
    color: var(--navy);
    border-radius: var(--radius);
    font-size: 1.2rem;
}

.card-title-fbe {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.card-text-fbe {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Primary Bento card (start.php) */
.primary-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    border-left: 4px solid var(--blue);
}

.primary-card::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 75%;
    background-image:
        linear-gradient(90deg, rgba(19, 60, 104, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, rgba(19, 60, 104, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000);
    mask-image: linear-gradient(135deg, transparent 30%, #000);
    pointer-events: none;
}

.primary-card > * {
    position: relative;
    z-index: 1;
}

.primary-badge {
    align-self: flex-start;
    background: var(--blue-soft);
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.primary-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.primary-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.primary-card .icon-box {
    width: 52px;
    height: 52px;
    font-size: 1.45rem;
}

.primary-card .card-title-fbe {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.primary-card .card-text-fbe {
    font-size: 0.96rem;
    max-width: 38em;
}

.primary-card .btn-fbe {
    flex-shrink: 0;
    min-width: 190px;
}

.support-card {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.support-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.support-top .body {
    flex: 1;
    min-width: 0;
}

.claim-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.claim-form .field-input {
    flex: 1;
    min-width: 0;
}

.link-card {
    text-decoration: none;
    color: inherit;
}

.link-card-footer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy);
}

.link-card:hover .link-card-footer {
    color: var(--blue);
}

/* ── FORM CONTROLS & BUTTONS ── */
.field-input,
.field-select {
    min-height: 46px;
    padding: 9px 12px;
    font-size: 1rem; /* 16px prevents iOS auto-zoom */
    color: var(--ink);
    background: #fff;
    border: 1px solid #B7C6DA;
    border-radius: var(--radius);
    width: 100%;
}

.field-input::placeholder {
    color: #64748B;
}

.field-input:focus,
.field-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
    outline: none;
}

.field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.field-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 5px;
}

.btn-fbe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 9px 18px;
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-fbe:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: #fff;
}

.btn-fbe-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 9px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn-fbe-outline:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: var(--navy);
}

.btn-fbe-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 9px 18px;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.btn-fbe-success:hover {
    filter: brightness(0.92);
    color: #fff;
}

/* ── CATALOG CONTROL BAR & GRID ── */
.control-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px 170px;
    grid-template-areas: "search cat sort";
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 20px;
}

.search-group {
    grid-area: search;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #B7C6DA;
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-group:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

.search-icon {
    padding: 0 6px 0 12px;
    color: var(--muted);
}

#liveSearchInput {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 9px 12px 9px 6px;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
}

#liveSearchInput:focus-visible {
    outline: 0;
}

#liveSearchInput::placeholder {
    color: #64748B;
}

#categorySelect {
    grid-area: cat;
    font-size: 0.95rem;
}

#sortSelect {
    grid-area: sort;
    font-size: 0.95rem;
}

.cat-pills {
    grid-area: pills;
    display: none;
}

.cat-pill {
    flex: 0 0 auto;
    padding: 6px 14px;
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.cat-pill[aria-pressed="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

#resultCount {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

.nav-arrows {
    display: flex;
    gap: 8px;
}

.btn-arrow {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--navy);
    border: 1px solid #B7C6DA;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-arrow:hover:not(:disabled) {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.item-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease;
    -webkit-user-drag: none;
    user-select: none;
}

.item-card:hover {
    border-color: var(--blue);
    color: inherit;
}

.item-card.is-hidden {
    display: none !important;
}

.item-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--blue-soft);
    overflow: hidden;
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
}

.no-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    font-size: 0.72rem;
}

.category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    background: var(--blue-soft);
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body-content {
    flex: 1;
    padding: 10px 12px;
}

.card-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

.card-date {
    margin-top: 5px;
    font-size: 0.74rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--blue-soft);
    color: var(--navy);
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 700;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.item-card:hover .card-cta {
    background: var(--navy);
    border-top-color: var(--navy);
    color: #fff;
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    color: var(--muted);
}

.empty-state .bi {
    font-size: 2rem;
    color: var(--blue);
    display: block;
    margin-bottom: 8px;
}

.empty-state h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

/* ── CLAIM, VERIFICATION & SELF-CLAIM WORKFLOWS ── */
.flow-shell {
    padding: 28px 0 48px;
    flex: 1;
}

.flow-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--navy);
    padding: 28px;
    max-width: 780px;
    margin: 0 auto;
}

.form-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.form-section-num {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--navy);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--navy);
    margin: 0;
}

.step-indicator {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 24px;
}

.step-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.step-dot.active {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 0 0 4px var(--blue-soft);
}

.step-dot.done {
    background: var(--blue);
    color: #fff;
}

.step-dot.inactive {
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--border);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px 18px;
}

.step-line.done {
    background: var(--blue);
}

.step-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-label.active {
    color: var(--navy);
}

.item-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--blue-soft);
    border: 1px solid var(--border);
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-top: 10px;
}

.verification-preview {
    width: 100%;
    max-width: 340px;
    height: 320px;
    margin: 16px auto;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0F172A;
    border: 1px solid var(--border);
    position: relative;
}

.verification-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.verification-preview::after {
    content: 'Preview Verifikasi';
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(14, 41, 84, 0.88);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.quiz-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quiz-label i {
    color: var(--blue);
}

.radio-option {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.radio-option:hover:not(:has(input:checked)) {
    border-color: var(--blue);
    background: #FAFBFD;
}

.radio-option:has(input:checked) {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.radio-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    width: 100%;
    margin: 0;
}

.radio-option input[type="radio"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--navy);
}

.radio-option input[type="radio"]:checked + .radio-text {
    font-weight: 700;
    color: var(--navy);
}

/* Upload Dropzone */
.upload-zone {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 82px;
    padding: 12px 14px;
    border: 1.5px dashed #9DB4D0;
    border-radius: var(--radius);
    background: var(--bg);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.upload-zone:hover,
.upload-zone:focus-within,
.upload-zone.has-file {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.upload-zone .media-file-input {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 10px;
}

.upload-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--navy);
    font-size: 1.25rem;
}

.upload-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

.upload-meta {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
}

.upload-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.upload-action:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
}

.upload-action.secondary {
    background: var(--surface);
    color: var(--navy);
    border-color: #B7C6DA;
}

.upload-action.secondary:hover {
    background: var(--blue-soft);
    border-color: var(--blue);
}

.upload-preview {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.upload-zone.has-file .upload-preview {
    display: flex;
}

.upload-zone.has-file .upload-actions {
    display: none;
}

.upload-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.upload-preview-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
}

.upload-retake-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #B7C6DA;
    background: var(--surface);
    color: var(--navy);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.upload-retake-btn:hover {
    background: var(--blue-soft);
    border-color: var(--blue);
}

.upload-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #DCE6F2;
    background: #fff;
    display: block;
}

.upload-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.upload-preview-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
    word-break: break-all;
}

.upload-preview-size {
    display: block;
    font-size: 0.74rem;
    color: var(--muted);
    white-space: nowrap;
}

/* Brand Autocomplete Dropdown */
.brand-ac-wrap {
    position: relative;
}

.brand-ac-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1055;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(14, 41, 84, 0.14);
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
}

.brand-ac-header {
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--bg);
    border-radius: 6px;
    margin-bottom: 4px;
}

.brand-ac-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.brand-ac-item:hover,
.brand-ac-item.is-active {
    background: var(--blue-soft);
    color: var(--navy);
}

.brand-ac-name {
    font-weight: 600;
}

.brand-ac-cat {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--blue-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* Alerts & Nota */
.alert-fbe-danger {
    background: var(--danger-soft);
    border: 1px solid #FECACA;
    border-radius: var(--radius);
    padding: 12px 16px;
    color: #991B1B;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.alert-fbe-warning {
    background: var(--amber-soft);
    border: 1px solid #FDE68A;
    border-radius: var(--radius);
    padding: 12px 16px;
    color: #92400E;
    font-size: 0.86rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.dont-close-banner {
    background: var(--danger-soft);
    border: 1px solid #FCA5A5;
    border-left: 4px solid var(--danger);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-align: center;
    margin-bottom: 20px;
}

.dont-close-banner .title {
    font-size: 1rem;
    font-weight: 800;
    color: #991B1B;
    margin-bottom: 4px;
}

.dont-close-banner .sub {
    font-size: 0.86rem;
    color: #7F1D1D;
}

.nota-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.nota-header {
    background: var(--navy);
    color: #fff;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nota-body {
    padding: 18px;
}

.nota-img {
    max-height: 180px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
}

.nota-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 6px 12px;
    font-size: 0.88rem;
    padding: 5px 0;
}

.nota-key {
    color: var(--muted);
    font-weight: 500;
}

.nota-val {
    font-weight: 700;
    color: var(--ink);
}

.success-icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--green-soft);
    border: 1px solid #BBF7D0;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 16px;
}

/* ── CLAIM RECEIPT (/success) ── */
.receipt-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 760px;
    margin: 0 auto;
}

.receipt-banner {
    background: linear-gradient(135deg, var(--navy) 0%, #133C68 100%);
    color: #fff;
    padding: 22px 24px;
}

.receipt-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.receipt-badge .bi {
    color: #86EFAC;
}

.receipt-item-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 8px;
    color: #fff;
    word-break: break-word;
}

.receipt-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.88);
}

.receipt-id-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
    color: #fff;
}

.receipt-body {
    padding: 22px 24px 24px;
}

.receipt-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.receipt-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
}

.receipt-summary-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 4px 12px;
    padding: 6px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid #E5EDF6;
}

.receipt-summary-row:last-child {
    border-bottom: 0;
}

.receipt-summary-key {
    color: var(--muted);
    font-weight: 500;
}

.receipt-summary-val {
    color: var(--navy);
    font-weight: 700;
    word-break: break-word;
}

.receipt-evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.receipt-evidence-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.receipt-evidence-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.receipt-zoom-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    text-align: left;
}

.receipt-evidence-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #DCE6F2;
    background: #fff;
    display: block;
}

.receipt-zoom-chip {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(14, 41, 84, 0.84);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    pointer-events: none;
}

.receipt-evidence-missing {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    border: 1px dashed #B7C6DA;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    padding: 8px;
}

.receipt-item-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 18px;
}

.receipt-item-thumb-btn {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 1px solid #DCE6F2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
}

.receipt-item-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.receipt-staff-callout {
    background: var(--blue-soft);
    border: 1px solid #BFDBFE;
    border-left: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--navy);
    font-size: 0.86rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.receipt-staff-callout .bi {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 1px;
    color: #133C68;
}

/* ── FOOTER ── */
.site-footer {
    margin-top: auto;
    background: var(--navy-deep);
    color: var(--on-dark);
    font-size: 0.85rem;
    padding: 16px 0;
}

/* ── DESKTOP / TABLET CATALOG TRACK (>= 768px) ── */
@media (min-width: 768px) {
    .catalog-track {
        display: flex;
        flex-direction: row;
        gap: 14px;
        overflow-x: auto;
        scroll-behavior: auto;
        padding: 0 0 14px;
        scrollbar-width: none;
        cursor: grab;
    }

    .catalog-track::-webkit-scrollbar {
        display: none;
    }

    .catalog-track.is-dragging {
        cursor: grabbing;
    }

    .catalog-track .item-card {
        flex: 0 0 240px;
        width: 240px;
    }

    .catalog-track .empty-state {
        flex: 1 1 100%;
    }

    .catalog-track.is-grid {
        display: grid;
        grid-template-rows: repeat(3, auto);
        grid-auto-flow: column;
        grid-auto-columns: 176px;
        gap: 12px;
        align-content: start;
    }

    .catalog-track.is-grid .item-card {
        width: auto;
    }

    .catalog-track.is-grid .card-body-content {
        padding: 8px 10px;
    }

    .catalog-track.is-grid .card-item-name {
        font-size: 0.84rem;
    }

    .catalog-track.is-grid .card-cta {
        padding: 6px 10px;
        font-size: 0.76rem;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
    .primary-main {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .primary-card .btn-fbe {
        width: 100%;
    }

    @media (min-width: 768px) {
        .control-bar {
            grid-template-columns: minmax(0, 1fr) 200px 150px;
        }
    }
}

@media (max-width: 767.98px) {
    :root {
        --nav-h: 56px;
    }

    .hero {
        padding: 28px 0 68px;
    }

    .hero-wrap--compact .hero {
        padding: 14px 0 46px;
    }

    .hero-wrap::after {
        display: none;
    }

    .hero-wrap--compact .status-pill {
        margin-bottom: 0;
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .hero-wrap--compact .hero-lead {
        display: none;
    }

    .hero-wrap--compact .hero-title {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .bento {
        margin-top: -40px;
        padding-bottom: 32px;
    }

    .bento--compact {
        margin-top: -28px;
    }

    .primary-card {
        padding: 20px 18px;
    }

    .primary-info {
        flex-direction: column;
        gap: 12px;
    }

    .primary-card .card-title-fbe {
        font-size: 1.3rem;
    }

    .primary-badge {
        margin-bottom: 12px;
    }

    .support-card {
        padding: 16px;
    }

    .support-top {
        align-items: center;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    .control-bar {
        position: sticky;
        top: var(--nav-h);
        z-index: 1020;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "search search" "pills sort";
        gap: 8px;
        padding: 10px;
        margin-bottom: 10px;
    }

    #liveSearchInput {
        min-height: 42px;
    }

    #categorySelect {
        display: none;
    }

    #sortSelect {
        min-height: 36px;
        font-size: 0.85rem;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .cat-pills {
        display: flex;
        gap: 8px;
        min-width: 0;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .cat-pills::-webkit-scrollbar {
        display: none;
    }

    .stage-header {
        border-bottom: 0;
        padding-bottom: 0;
        margin-bottom: 8px;
    }

    #resultCount {
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--muted);
    }

    .nav-arrows {
        display: none;
    }

    .catalog-track {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .catalog-track .empty-state {
        grid-column: 1 / -1;
    }

    .item-img-container {
        aspect-ratio: 1 / 1;
    }

    .card-body-content {
        padding: 8px 10px 6px;
    }

    .card-item-name {
        font-size: 0.88rem;
    }

    .card-cta {
        padding: 5px 10px;
        font-size: 0.76rem;
    }

    .flow-card {
        padding: 20px 16px;
    }

    .nota-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .receipt-banner {
        padding: 18px 16px;
    }

    .receipt-item-title {
        font-size: 1.15rem;
    }

    .receipt-body {
        padding: 16px;
    }

    .receipt-summary {
        padding: 10px 12px;
    }

    .receipt-summary-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .receipt-evidence-grid {
        gap: 8px;
    }

    .receipt-evidence-card {
        padding: 8px;
    }

    .receipt-evidence-label {
        font-size: 0.72rem;
    }

    .receipt-zoom-chip {
        font-size: 0.64rem;
        padding: 2px 6px;
    }

    .upload-zone {
        grid-template-columns: 44px 1fr;
    }

    .upload-actions {
        grid-template-columns: 1fr;
    }

    .upload-action {
        width: 100%;
    }

    .site-footer {
        padding: 14px 0;
    }
}

@media (max-width: 575.98px) {
    .brand-sub {
        display: none;
    }

    .status-pill {
        font-size: 0.82rem;
        align-items: flex-start;
        border-radius: 12px;
    }

    .status-pill .dot {
        margin-top: 6px;
    }

    .claim-form .btn-fbe {
        padding: 9px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
