html, body {
    font-family: "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(255, 183, 3, 0.18), transparent 30%),
        linear-gradient(180deg, #fff8ef 0%, #f4f7fb 58%, #eef2f7 100%);
    color: #14213d;
}

body {
    min-height: 100vh;
}

:root {
    --brand-accent: #004e38;
    --brand-accent-dark: #003427;
    --brand-highlight: #a6ce39;
    --brand-soft: #eef7e7;
    --brand-panel: rgba(255, 255, 255, 0.84);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--brand-accent-dark);
}

.btn-primary {
    color: #fff;
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(0, 78, 56, 0.22);
}

.content {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.top-row__user {
    display: grid;
    justify-items: end;
    gap: 0.1rem;
    text-align: right;
}

.hero-panel {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(20, 33, 61, 0.96), rgba(17, 24, 39, 0.88)),
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.35), transparent 35%);
    border-radius: 1.5rem;
    padding: 1.75rem;
    color: white;
    box-shadow: 0 1.5rem 3rem rgba(20, 33, 61, 0.15);
}

.hero-label,
.block-label,
.metric-label,
.detail-label,
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-copy,
.metric-note {
    color: rgba(255, 255, 255, 0.78);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.94);
    padding: 0.32rem;
    box-shadow: 0 0.55rem 1.2rem rgba(0, 0, 0, 0.24);
}

.hero-action {
    white-space: nowrap;
}

.dashboard-actions {
    display: flex;
    justify-content: flex-start;
}

.restock-toggle {
    border-radius: 999px;
    padding-inline: 1rem;
    font-weight: 700;
}

.dashboard-card,
.search-card,
.result-card {
    border: 0;
    border-radius: 1.25rem;
    background: var(--brand-panel);
    backdrop-filter: blur(10px);
}

.dashboard-card {
    box-shadow: 0 1rem 2rem rgba(20, 33, 61, 0.08);
}

.metric-value {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin: 0.35rem 0;
}

.scanner-frame {
    position: relative;
    border-radius: 1rem;
    min-height: 255px;
    max-height: 310px;
    background:
        linear-gradient(135deg, rgba(19, 34, 56, 0.08), rgba(249, 115, 22, 0.16));
    border: 1px dashed rgba(20, 33, 61, 0.18);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.scanner-frame::before {
    content: "Camera preview will appear here";
    color: #5b6475;
}

.scanner-frame.scanner-live::before {
    content: "";
}

.scanner-frame video {
    width: 100%;
    height: 100%;
    min-height: 255px;
    object-fit: cover;
}

.latest-scan-panel {
    background: rgba(16, 24, 40, 0.92);
    color: #fff;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.24);
}

.latest-scan-panel--miss {
    background: rgba(127, 29, 29, 0.9);
}

.latest-scan-panel__eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fdba74;
    font-weight: 700;
}

.latest-scan-panel__title {
    font-size: 1.02rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

.latest-scan-panel__meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

.latest-scan-panel__stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.55rem;
}

.latest-scan-panel__actions {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.scanner-result-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.6rem 0.95rem;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1;
}

.latest-scan-close {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 1.2rem;
    line-height: 1;
    flex: 0 0 auto;
}

.scanner-result-chip--price {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    box-shadow: 0 0.35rem 0.9rem rgba(249, 115, 22, 0.35);
}

.scanner-result-chip--qty {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    box-shadow: 0 0.35rem 0.9rem rgba(20, 184, 166, 0.28);
}

.scanner-result-chip--rack {
    background: linear-gradient(135deg, #1d4ed8, #60a5fa);
    color: #eff6ff;
    box-shadow: 0 0.35rem 0.9rem rgba(59, 130, 246, 0.24);
}

.scan-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: #475467;
}

.scan-status__dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #cbd5e1;
    flex: 0 0 auto;
}

.scan-status__dot--live {
    background: var(--brand-highlight);
    box-shadow: 0 0 0 0.25rem rgba(166, 206, 57, 0.22);
}

.search-match-list {
    display: grid;
    gap: 0.65rem;
}

.search-match-item {
    border: 1px solid rgba(19, 34, 56, 0.08);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 0.95rem;
    padding: 0.8rem 0.9rem;
    display: grid;
    gap: 0.7rem;
}

.search-match-item__name {
    font-weight: 700;
    color: #14213d;
}

.search-match-item__meta {
    font-size: 0.82rem;
    color: #667085;
}

.search-match-item__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.restock-action-button {
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 0.45rem 0.75rem;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.restock-action-button--add {
    background: linear-gradient(135deg, #0b5c48, #16806b);
    color: #effcf7;
    box-shadow: 0 0.35rem 0.9rem rgba(0, 78, 56, 0.22);
}

.restock-action-button--remove {
    background: linear-gradient(135deg, #b45309, #f97316);
    color: #fff7ed;
    box-shadow: 0 0.35rem 0.9rem rgba(249, 115, 22, 0.22);
}

.secondary-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 33, 61, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #334155;
    padding: 0.38rem 0.68rem;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.secondary-action-button--active {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(37, 99, 235, 0.28);
    color: #1d4ed8;
}

.secondary-action-button__icon {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
}

.secondary-action-button__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.scan-window {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: grid;
    place-items: center;
}

.scan-window__frame {
    position: relative;
    width: min(88%, 360px);
    height: 42%;
    min-height: 110px;
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    box-shadow:
        0 0 0 999px rgba(16, 24, 40, 0.34),
        0 0 0 1px rgba(249, 115, 22, 0.55);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.scan-window__line {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fb923c 18%, #fff7ed 50%, #fb923c 82%, transparent);
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.95);
    transform: translateY(-50%);
}

.scan-window__hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 24, 40, 0.82);
    color: #fff7ed;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.stock-pill {
    background: var(--brand-soft);
    color: var(--brand-accent-dark);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-weight: 700;
}

.detail-tile {
    background: rgba(19, 34, 56, 0.04);
    border-radius: 1rem;
    padding: 1rem;
}

.detail-value {
    font-size: 1.05rem;
    font-weight: 600;
}

.latest-product-card {
    background: linear-gradient(145deg, rgba(19, 34, 56, 0.04), rgba(249, 115, 22, 0.12));
    border-radius: 1.1rem;
    padding: 1rem;
}

.latest-product-card__stats {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.recent-product-list {
    display: grid;
    gap: 0.8rem;
}

.recent-product-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(19, 34, 56, 0.04);
    border: 1px solid rgba(19, 34, 56, 0.06);
}

.recent-product-item--active {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.24);
}

.recent-product-item__name {
    font-weight: 700;
}

.recent-product-item__meta {
    color: #667085;
    font-size: 0.88rem;
}

.recent-product-item__stats {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.recent-product-item__stats span {
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-weight: 800;
    font-size: 1rem;
}

.result-stat--price {
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
}

.result-stat--qty {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
}

.result-stat--rack {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.recent-product-item__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.recent-product-item--restock {
    background: rgba(255, 248, 235, 0.92);
    border-color: rgba(249, 115, 22, 0.18);
}

.recent-product-item--restock .restock-action-button {
    background: linear-gradient(135deg, #b45309, #f97316);
    color: #fff7ed;
}

.reorder-list {
    display: grid;
    gap: 0.85rem;
}

.reorder-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(19, 34, 56, 0.04);
    border: 1px solid rgba(19, 34, 56, 0.06);
}

.reorder-list__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reorder-list__qty {
    border-radius: 999px;
    padding: 0.6rem 0.95rem;
    font-size: 1rem;
    font-weight: 800;
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
}

.compact-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.freshcircle-hero {
    background:
        linear-gradient(135deg, rgba(6, 78, 59, 0.96), rgba(15, 118, 110, 0.92)),
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.34), transparent 38%);
}

.freshcircle-input-block {
    background: rgba(19, 34, 56, 0.04);
    border: 1px solid rgba(19, 34, 56, 0.06);
    border-radius: 1rem;
    padding: 0.95rem;
}

.freshcircle-scanner {
    min-height: 280px;
    max-height: 340px;
}

.freshcircle-scanner-modal {
    min-height: min(68vh, 430px);
    max-height: min(68vh, 430px);
}

.freshcircle-scan-window {
    width: min(90%, 370px);
    height: 48%;
    min-height: 126px;
}

.freshcircle-scan-window--qr {
    width: min(72vw, 280px);
    height: min(72vw, 280px);
    min-height: 220px;
    max-height: 280px;
    aspect-ratio: 1;
}

.freshcircle-scan-window--barcode {
    width: min(92%, 380px);
    height: 46%;
    min-height: 126px;
}

.freshcircle-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.freshcircle-stat-tile {
    border-radius: 1rem;
    background: rgba(19, 34, 56, 0.05);
    border: 1px solid rgba(19, 34, 56, 0.06);
    padding: 1rem;
}

.freshcircle-stat-tile__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #667085;
}

.freshcircle-stat-tile__value {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0.4rem;
}

.freshcircle-stat-tile__meta {
    margin-top: 0.35rem;
    color: #667085;
    font-size: 0.85rem;
}

.freshcircle-trend-list {
    display: grid;
    gap: 0.55rem;
}

.freshcircle-trend-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.72);
}

.freshcircle-customer-panel {
    border-radius: 1.1rem;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.04), rgba(20, 184, 166, 0.12));
    border: 1px solid rgba(15, 118, 110, 0.15);
}

.freshcircle-card-badge {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(0, 78, 56, 0.12);
    color: #004e38;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.45rem 0.8rem;
    margin-bottom: 0.65rem;
}

.freshcircle-eligible-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #8fbb2e, #a6ce39);
    color: #163126;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 800;
}

.freshcircle-progress {
    position: relative;
    height: 0.95rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    overflow: hidden;
}

.freshcircle-progress__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b5c48, #1c8c57, #a6ce39);
    transition: width 180ms ease;
}

.freshcircle-progress__caption {
    margin-top: 0.65rem;
    color: #556070;
    font-size: 0.9rem;
}

.freshcircle-receipt-list {
    display: grid;
    gap: 0.85rem;
}

.freshcircle-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(19, 34, 56, 0.04);
    border: 1px solid rgba(19, 34, 56, 0.06);
}

.freshcircle-receipt-row__main {
    flex: 1 1 auto;
    min-width: 0;
}

.freshcircle-receipt-row__meta {
    margin-bottom: 0.45rem;
    color: #667085;
    font-size: 0.82rem;
}

.freshcircle-receipt-row__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.freshcircle-star-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.5rem 0.78rem;
    font-size: 0.86rem;
    font-weight: 800;
    background: rgba(250, 204, 21, 0.16);
    color: #92400e;
}

.freshcircle-star-chip--inactive {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.freshcircle-star-chip--amount {
    background: rgba(29, 78, 216, 0.14);
    color: #1d4ed8;
}

.freshcircle-pass-display {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    border-radius: 1.25rem;
    padding: 1.35rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.95)),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 32%);
    border: 1px solid rgba(15, 118, 110, 0.14);
}

.freshcircle-pass-display__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
    color: #0f766e;
}

.freshcircle-pass-display__qr {
    width: min(100%, 320px);
    max-width: 320px;
    aspect-ratio: 1;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.freshcircle-pass-display__barcode {
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0f172a;
}

.freshcircle-pass-display__hint {
    max-width: 28rem;
    text-align: center;
    color: #556070;
    font-size: 0.95rem;
}

.freshcircle-pass-summary {
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(19, 34, 56, 0.04);
}

.login-shell {
    min-height: calc(100vh - 5rem);
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.login-card {
    width: min(100%, 30rem);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1.4rem;
    padding: 1.5rem;
    border: 1px solid rgba(19, 34, 56, 0.08);
}

.login-card__brand {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.scanner-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.scanner-modal-card {
    width: min(100%, 34rem);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.4rem;
    padding: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(19, 34, 56, 0.08);
}

.scanner-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.scanner-modal-copy {
    color: #556070;
    font-size: 0.92rem;
}

.scanner-modal-close {
    border: 0;
    background: rgba(19, 34, 56, 0.08);
    color: #14213d;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    font-size: 1.35rem;
    line-height: 1;
    flex: 0 0 auto;
}

.public-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-topbar {
    padding: 1rem 1.1rem 0;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #14213d;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 33, 61, 0.08);
    padding: 0.7rem 0.95rem;
    border-radius: 1rem;
    box-shadow: 0 0.9rem 1.8rem rgba(20, 33, 61, 0.08);
}

.public-main {
    flex: 1;
    display: grid;
    align-items: center;
}

.status-shell {
    width: min(100%, 54rem);
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

.status-brand-stage {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    text-align: center;
}

.status-brand-stage__logo {
    width: min(100%, 20rem);
    max-width: 20rem;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1rem 1.8rem rgba(0, 78, 56, 0.12));
}

.status-panel {
    border-radius: 1.5rem;
    padding: 1.2rem;
}

.status-panel__title {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.02;
    margin: 0.35rem 0 0.55rem;
    color: #0f172a;
}

.status-panel__copy {
    color: var(--text-muted);
    max-width: 38rem;
    margin: 0;
    text-align: center;
}

.status-panel .hero-label {
    text-align: center;
}

.status-promo-banner {
    border-radius: 1.35rem;
    padding: 1.3rem 1.2rem;
    background:
        radial-gradient(circle at top right, rgba(166, 206, 57, 0.3), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(145deg, rgba(0, 78, 56, 0.98), rgba(8, 55, 43, 0.96));
    color: #f8fff6;
    box-shadow: 0 1.2rem 2.4rem rgba(0, 78, 56, 0.18);
    position: relative;
    overflow: hidden;
}

.status-promo-banner::after {
    content: "";
    position: absolute;
    inset: auto -2rem -2rem auto;
    width: 10rem;
    height: 10rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(166, 206, 57, 0.2), transparent 70%);
}

.status-promo-banner__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.72);
    position: relative;
    z-index: 1;
}

.status-promo-banner__title {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    margin: 0.35rem 0 0.45rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.status-promo-banner__copy {
    color: rgba(255, 255, 255, 0.84);
    max-width: 36rem;
    position: relative;
    z-index: 1;
}

.log-list {
    display: grid;
    gap: 0.85rem;
}

.log-list__item {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(19, 34, 56, 0.04);
    border: 1px solid rgba(19, 34, 56, 0.06);
}

.json-panel {
    margin-bottom: 0;
    padding: 1rem;
    border-radius: 1rem;
    background: #101828;
    color: #d7e0ea;
    max-height: 320px;
    overflow: auto;
    font-size: 0.9rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #b42318;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (max-width: 767.98px) {
    .hero-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-logo {
        width: 2.6rem;
        height: 2.6rem;
    }

    .latest-scan-panel {
        padding: 0.7rem 0.8rem;
    }

    .scanner-frame {
        min-height: 235px;
        max-height: 275px;
    }

    .scanner-frame video {
        min-height: 235px;
    }

    .scan-window__frame {
        width: min(90%, 340px);
        height: 46%;
        min-height: 120px;
    }

    .scan-window__hint {
        bottom: 0.5rem;
        font-size: 0.68rem;
        padding: 0.35rem 0.6rem;
    }

    .latest-product-card__stats {
        width: 100%;
    }

    .recent-product-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-match-item__actions {
        align-items: flex-start;
    }

    .recent-product-item__stats {
        text-align: left;
    }

    .recent-product-item__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .reorder-list__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .reorder-list__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .compact-status-grid {
        grid-template-columns: 1fr;
    }

    .freshcircle-stat-grid {
        grid-template-columns: 1fr;
    }

    .freshcircle-scanner {
        min-height: 260px;
        max-height: 310px;
    }

    .freshcircle-scanner-modal {
        min-height: min(62vh, 390px);
        max-height: min(62vh, 390px);
    }

    .freshcircle-scan-window {
        width: min(92%, 350px);
        height: 50%;
        min-height: 132px;
    }

    .freshcircle-scan-window--qr {
        width: min(76vw, 250px);
        height: min(76vw, 250px);
        min-height: 210px;
    }

    .freshcircle-receipt-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .freshcircle-receipt-row__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .scanner-modal-card {
        padding: 0.85rem;
        border-radius: 1.15rem;
    }

    .scanner-modal-header {
        margin-bottom: 0.75rem;
    }

    .public-topbar {
        padding: 0.85rem 0.85rem 0;
    }

    .status-shell {
        padding: 0.9rem 0.85rem 1.5rem;
    }

    .status-brand-stage {
        gap: 0.55rem;
        margin-bottom: 0.85rem;
    }

    .status-brand-stage__logo {
        width: min(100%, 16.5rem);
    }

    .status-panel {
        border-radius: 1.2rem;
        padding: 1rem;
    }

    .status-panel__title {
        font-size: 1.55rem;
    }

    .status-promo-banner {
        border-radius: 1.15rem;
        padding: 1rem 0.95rem;
    }
}

/* Design refresh */

:root {
    --surface-strong: rgba(255, 255, 255, 0.9);
    --surface-soft: rgba(255, 255, 255, 0.72);
    --surface-border: rgba(15, 23, 42, 0.08);
    --text-muted: #5b6475;
    --shadow-soft: 0 1.1rem 2.4rem rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 1.6rem 3rem rgba(15, 23, 42, 0.12);
}

html, body {
    background:
        radial-gradient(circle at top left, rgba(166, 206, 57, 0.12), transparent 26%),
        radial-gradient(circle at top right, rgba(0, 78, 56, 0.12), transparent 24%),
        linear-gradient(180deg, #f6fbf8 0%, #f1f6f4 54%, #ebf2ef 100%);
    color: #13213d;
}

body {
    letter-spacing: -0.01em;
}

.brand-logo {
    box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.18);
}

.dashboard-card,
.search-card,
.result-card,
.surface-card {
    border: 1px solid var(--surface-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8));
    box-shadow: var(--shadow-soft);
}

.surface-card--scanner {
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
}

.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.2rem 0;
}

.page-toolbar__title {
    display: grid;
    gap: 0.18rem;
}

.page-toolbar__heading {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.05;
    margin: 0;
    color: #0f172a;
}

.page-toolbar__actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-toolbar .btn-outline-light,
.page-toolbar .btn-light,
.page-toolbar .btn-outline-secondary,
.page-toolbar .btn-outline-dark,
.page-toolbar .btn-outline-primary {
    color: var(--brand-accent-dark);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 78, 56, 0.14);
    box-shadow: 0 0.85rem 1.6rem rgba(15, 23, 42, 0.08);
}

.page-toolbar .btn-outline-light:hover,
.page-toolbar .btn-outline-light:focus,
.page-toolbar .btn-light:hover,
.page-toolbar .btn-light:focus,
.page-toolbar .btn-outline-secondary:hover,
.page-toolbar .btn-outline-secondary:focus,
.page-toolbar .btn-outline-dark:hover,
.page-toolbar .btn-outline-dark:focus,
.page-toolbar .btn-outline-primary:hover,
.page-toolbar .btn-outline-primary:focus {
    color: var(--brand-accent-dark);
    background: #f5faef;
    border-color: rgba(0, 78, 56, 0.22);
}

.page-toolbar--freshcircle .page-toolbar__heading {
    color: #004e38;
}

.page-toolbar--reorder .page-toolbar__heading {
    color: #0b5c48;
}

.restock-toggle {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0.85rem 1.8rem rgba(15, 23, 42, 0.12);
}

.hero-action {
    border-radius: 999px;
    padding-inline: 1rem;
    font-weight: 700;
}

.scanner-frame {
    border-radius: 1.35rem;
    border: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.scan-window__frame {
    border-radius: 1.2rem;
}

.scanner-frame.scanner-success .scan-window__frame {
    border-color: rgba(34, 197, 94, 0.98);
    box-shadow:
        0 0 0 999px rgba(11, 24, 18, 0.22),
        0 0 0 2px rgba(34, 197, 94, 0.82),
        0 0 24px rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.08);
    animation: scanner-success-pulse 0.9s ease;
}

.scanner-frame.scanner-success .scan-window__line {
    background: linear-gradient(90deg, transparent, #4ade80 18%, #f0fdf4 50%, #4ade80 82%, transparent);
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.92);
}

.scanner-frame.scanner-success .scan-window__hint {
    background: rgba(21, 128, 61, 0.92);
    color: #f0fdf4;
}

@keyframes scanner-success-pulse {
    0% {
        transform: scale(0.985);
    }

    35% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.recent-product-item,
.search-match-item,
.reorder-list__item,
.freshcircle-receipt-row,
.freshcircle-trend-row {
    border-radius: 1.15rem;
    box-shadow: 0 0.8rem 1.6rem rgba(15, 23, 42, 0.04);
}

.recent-product-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
}

.recent-product-item--active {
    background:
        linear-gradient(180deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.88));
}

.result-stat--price,
.result-stat--qty,
.result-stat--rack,
.scanner-result-chip,
.freshcircle-star-chip {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.secondary-action-button,
.restock-action-button,
.btn {
    border-radius: 0.95rem;
}

.login-shell {
    min-height: 100vh;
    padding: 2rem 1rem;
}

.login-stage {
    width: min(100%, 68rem);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 1.4rem;
    align-items: stretch;
}

.login-hero-panel {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(145deg, #0a614b 0%, #0c6b51 38%, #0f172a 100%);
    border-radius: 2rem;
    color: white;
    padding: 2rem;
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.login-hero-panel__logo-stage {
    width: min(24rem, 82%);
    padding: 1rem 1.35rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: 2rem;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(247, 252, 241, 0.84) 58%, rgba(218, 239, 192, 0.56) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 1.25rem 2.6rem rgba(5, 27, 20, 0.22);
}

.login-hero-panel__logo {
    width: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 1.4rem;
}

.login-hero-panel__title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.98;
    margin-bottom: 0.75rem;
}

.login-hero-panel__copy {
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.35rem;
}

.login-hero-panel__features {
    display: grid;
    gap: 0.7rem;
    width: 100%;
    max-width: 30rem;
}

.login-hero-panel__feature {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.login-hero-panel__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: var(--brand-highlight);
    box-shadow: 0 0 0 0.28rem rgba(166, 206, 57, 0.18);
    flex: 0 0 auto;
}

.login-card {
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.84));
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card__header {
    text-align: left;
}

.login-card .form-control {
    min-height: 3.7rem;
    border-radius: 1rem;
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(248, 250, 252, 0.88);
}

.login-card .btn-primary {
    min-height: 3.6rem;
    font-weight: 800;
    box-shadow: 0 1rem 1.8rem rgba(0, 78, 56, 0.2);
}

.public-shell {
    background: transparent;
}

.public-main {
    padding: 0;
}

@media (max-width: 991.98px) {
    .login-stage {
        grid-template-columns: 1fr;
    }

    .login-hero-panel,
    .login-card {
        border-radius: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    .page-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-toolbar__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .login-shell {
        padding: 1rem 0.85rem 1.5rem;
    }

    .login-hero-panel {
        padding: 1.4rem 1.15rem;
    }

    .login-hero-panel__logo {
        margin-bottom: 1rem;
    }

    .login-hero-panel__logo-stage {
        width: min(19rem, 86%);
        padding: 0.85rem 1rem 0.75rem;
        border-radius: 1.6rem;
    }

    .login-card {
        padding: 1.35rem;
    }

    .login-hero-panel__feature {
        justify-content: flex-start;
        border-radius: 1rem;
    }
}
