/* ── Page transitions (View Transitions API — graceful no-op on unsupported browsers) ── */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 180ms ease-in both vt-fade-out;
}
::view-transition-new(root) {
    animation: 220ms ease-out both vt-fade-in;
}

@keyframes vt-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes vt-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

:root {
    --coffee-brown-900: #2a1c12;
    --coffee-brown-800: #3a2619;
    --coffee-brown-700: #5b3a24;
    --coffee-cream-100: #f8f2ea;
    --coffee-cream-200: #ece1d4;
    --coffee-gold: #d1a15b;
    --white: #ffffff;
    --shadow: rgba(19, 12, 7, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at 88% 5%, rgba(209, 161, 91, 0.16), transparent 38%),
        radial-gradient(circle at 10% 90%, rgba(209, 161, 91, 0.13), transparent 35%),
        linear-gradient(140deg, #1a120c 0%, #2a1c12 42%, #120d09 100%);
    color: var(--coffee-cream-200);
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.brand {
    font-family: "Fraunces", serif;
    letter-spacing: 0.02em;
}

.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.bg-shape-top {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -150px;
    background: #bb8a45;
}

.bg-shape-bottom {
    width: 340px;
    height: 340px;
    left: -120px;
    bottom: -120px;
    background: #704726;
}

.app-nav {
    background: linear-gradient(90deg, #20150f 0%, #2f2016 62%, #49301f 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    color: var(--coffee-cream-100);
    font-weight: 700;
    font-size: 1.45rem;
}

.nav-subtitle {
    font-size: 0.84rem;
    color: #d7c8b8;
}

.nav-pill {
    color: #2a1b12 !important;
    background: linear-gradient(120deg, #f5e4ce, #e8ccaa) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

main {
    position: relative;
}

.metric-card,
.app-card {
    background: linear-gradient(165deg, rgba(74, 49, 31, 0.92), rgba(34, 23, 15, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    box-shadow: 0 14px 30px var(--shadow);
}

.metric-card {
    padding: 1rem 1.2rem;
    animation: rise 0.35s ease-out;
}

.metric-card h2 {
    margin: 0;
    color: var(--white);
    font-size: 2rem;
}

.metric-card small {
    display: block;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    font-size: 0.73rem;
    color: #dbc7b0;
    letter-spacing: 0.08em;
}

.app-card {
    padding: 1.25rem;
    animation: rise 0.42s ease-out;
}

.app-card h3 {
    color: var(--coffee-cream-100);
    margin-bottom: 0.35rem;
}

.caption {
    color: #d6c2ab;
    font-size: 0.9rem;
}

.mini {
    color: #d6c2ab;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.form-control,
.form-select,
textarea {
    background-color: #1b120c;
    border-color: #7d5c40;
    color: var(--coffee-cream-200);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    background-color: #20150f;
    color: var(--white);
    border-color: rgba(209, 161, 91, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(209, 161, 91, 0.25);
}

.form-label,
.form-check-label {
    color: #f0e2d2;
}

.btn-brand {
    background: linear-gradient(120deg, #c58d4c, var(--coffee-gold));
    color: #1f130a;
    border: none;
    font-weight: 700;
}

.btn-brand:hover {
    background: linear-gradient(120deg, #d39b59, #dfb271);
    color: #130b06;
}

.btn-outline-light {
    border-color: rgba(245, 230, 212, 0.75);
    color: #f5e6d4;
}

.btn-outline-light:hover {
    background-color: rgba(245, 230, 212, 0.14);
    color: #fff9f1;
}

.status-panel {
    background: rgba(17, 11, 7, 0.4);
    border: 1px solid rgba(245, 230, 212, 0.12);
    border-radius: 12px;
    padding: 0.85rem;
}

.status-panel-highlight {
    background: linear-gradient(160deg, rgba(38, 25, 16, 0.85), rgba(20, 13, 8, 0.75));
}

.status-phone {
    margin: 0;
    color: #f7ecde;
    font-family: "Fraunces", serif;
    font-size: clamp(1.1rem, 2.1vw, 1.45rem);
    letter-spacing: 0.03em;
}

.status-value {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 5.2vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    color: #fff7eb;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.voucher-panel {
    border-color: rgba(209, 161, 91, 0.55);
    box-shadow: inset 0 0 0 1px rgba(209, 161, 91, 0.18);
}

.voucher-value {
    color: #ffd9a5;
}

.voucher-modal-content {
    background: linear-gradient(170deg, rgba(52, 34, 22, 0.98), rgba(29, 19, 13, 0.98));
    border: 1px solid rgba(235, 194, 130, 0.5);
    color: #f5e6d4;
}

.voucher-modal-content .btn-close {
    filter: invert(1) grayscale(1);
}

.voucher-pop-count {
    font-family: "Fraunces", serif;
    font-size: clamp(2.6rem, 8vw, 4.25rem);
    color: #ffd9a5;
    line-height: 1;
}

.voucher-pop-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f0d7b7;
    font-weight: 600;
}

.voucher-popup {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(12, 8, 5, 0.72);
}

.voucher-popup-card {
    width: min(460px, 94vw);
    background: linear-gradient(170deg, rgba(52, 34, 22, 0.98), rgba(29, 19, 13, 0.98));
    border: 1px solid rgba(235, 194, 130, 0.5);
    border-radius: 16px;
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.45);
    color: #f5e6d4;
    padding: 1rem 1rem 1.15rem;
}

.voucher-popup-x {
    border: 0;
    background: transparent;
    color: #f7ead9;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
}

.placeholder-panel {
    border: 1px dashed rgba(233, 217, 199, 0.4);
    border-radius: 12px;
    padding: 0.95rem;
    color: #d9c7b1;
    background: rgba(20, 13, 8, 0.36);
}

.table {
    color: #f2e7da;
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: #7b5b41;
}

.table thead th {
    color: #e6d7c6;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.promo-item {
    border-radius: 12px;
    padding: 0.8rem;
    background: rgba(19, 12, 7, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-item small {
    color: #d8c4ab;
}

.queue-action-form {
    flex-wrap: nowrap;
}

body.kiosk-mode {
    min-height: 100dvh;
}

.kiosk-wrap {
    min-height: calc(100dvh - 2rem);
}

.kiosk-card {
    width: min(720px, 96vw);
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(74, 49, 31, 0.95), rgba(30, 20, 13, 0.97));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}

.kiosk-status-card {
    width: min(920px, 97vw);
}

.kiosk-overline {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #e5ccae;
}

.kiosk-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--coffee-cream-100);
    margin-bottom: 0.35rem;
}

.kiosk-help {
    color: #d6c2ab;
    font-size: 0.88rem;
}

.kiosk-trigger {
    border: none;
    background: transparent;
    color: rgba(216, 196, 171, 0.45);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kiosk-unlock-panel {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(16, 10, 6, 0.5);
}

.kiosk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .metric-card h2 {
        font-size: 1.6rem;
    }

    .brand {
        font-size: 1.2rem;
    }

    .kiosk-card {
        padding: 1.2rem;
        border-radius: 18px;
    }

    .kiosk-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        padding: 1rem;
    }

    .table thead th {
        font-size: 0.72rem;
    }

    .table td,
    .table th {
        white-space: nowrap;
    }

    .app-nav .container-xxl {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }
}

@media (max-width: 768px) {
    .caption {
        font-size: 0.84rem;
    }

    .queue-action-form {
        flex-wrap: wrap;
        gap: 0.45rem !important;
    }

    .queue-action-form .form-select {
        max-width: 100% !important;
        width: 100%;
    }

    .queue-action-form .btn {
        width: 100%;
    }

    .status-panel {
        padding: 0.75rem;
    }

    .kiosk-wrap {
        min-height: auto;
    }

    .kiosk-card {
        width: 100%;
        padding: 1rem;
        border-radius: 16px;
    }
}

@media (max-width: 576px) {
    .metric-card {
        padding: 0.85rem 0.95rem;
    }

    .metric-card h2 {
        font-size: 1.35rem;
    }

    .brand {
        font-size: 1.05rem;
    }

    .nav-subtitle {
        font-size: 0.74rem;
    }

    .promo-item {
        padding: 0.7rem;
    }
}

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    z-index: 200;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(209, 161, 91, 0.3) transparent;
    background: linear-gradient(180deg, #100b07 0%, #1c1009 55%, #140e08 100%);
    border-right: 1px solid rgba(209, 161, 91, 0.18);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.28s ease;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Brand area */
.sidebar-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1.25rem 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-logo {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.sidebar-brand-text {
    min-width: 0;
}

.sidebar-shop-name {
    font-family: "Fraunces", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--coffee-cream-100);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-tagline {
    font-size: 0.64rem;
    color: rgba(209, 161, 91, 0.72);
    line-height: 1.35;
    margin-top: 0.2rem;
}

/* User block */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
}

.sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c58d4c, #7a4e28);
    color: #fff7eb;
    font-family: "Fraunces", serif;
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    border: 1.5px solid rgba(209, 161, 91, 0.4);
}

.sidebar-user-info {
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--coffee-cream-100);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.67rem;
    color: var(--coffee-gold);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-top: 0.1rem;
}

/* Navigation links */
.sidebar-nav {
    flex: 1;
    padding: 0.6rem 0;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1rem;
    color: rgba(236, 222, 207, 0.76);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.sidebar-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.14s ease;
}

.sidebar-link:hover {
    background: rgba(209, 161, 91, 0.1);
    color: var(--coffee-cream-100);
    border-left-color: rgba(209, 161, 91, 0.38);
}

.sidebar-link:hover i {
    opacity: 1;
}

.sidebar-link.active {
    background: rgba(209, 161, 91, 0.16);
    color: var(--coffee-cream-100);
    border-left-color: var(--coffee-gold);
    font-weight: 600;
}

.sidebar-link.active i {
    opacity: 1;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--coffee-gold);
    color: #1a0f0a;
    font-size: 0.67rem;
    font-weight: 700;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 0.4rem 0.8rem;
}

/* Footer / sign-out area */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    margin-top: auto;
}

.sidebar-env-badge {
    display: inline-block;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(120deg, #f5e4ce, #e8ccaa);
    color: #2a1b12;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sidebar-signout {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: rgba(209, 161, 91, 0.08);
    border: 1px solid rgba(209, 161, 91, 0.22);
    border-radius: 10px;
    color: rgba(236, 222, 207, 0.8);
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.14s ease, color 0.14s ease;
}

.sidebar-signout:hover {
    background: rgba(209, 161, 91, 0.18);
    color: var(--coffee-cream-100);
}

/* Overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(5, 3, 2, 0.62);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

/* Keep Yoco checkout layers above app chrome and overlays. */
:is(
    iframe[src*="yoco" i],
    [id*="yoco" i],
    [class*="yoco" i]
) {
    z-index: 5000 !important;
}

/* Mobile top bar */
.mobile-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #100b07 0%, #1c1009 60%, #140e08 100%);
    border-bottom: 1px solid rgba(209, 161, 91, 0.18);
    padding: 0.6rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--coffee-cream-200);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.14s ease;
}

.sidebar-toggle:hover {
    background: rgba(209, 161, 91, 0.15);
}

.mobile-brand {
    font-family: "Fraunces", serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--coffee-cream-100);
    flex: 1;
    text-align: center;
}

.mobile-cart-btn {
    position: relative;
    color: var(--coffee-cream-200);
    font-size: 1.2rem;
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.14s ease;
}

.mobile-cart-btn:hover {
    color: var(--coffee-gold);
}

.mobile-cart-count {
    position: absolute;
    top: 1px;
    right: 1px;
    background: var(--coffee-gold);
    color: #1a0f0a;
    font-size: 0.58rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
}

/* Page wrapper */
.page-wrapper {
    min-height: 100vh;
}

.page-wrapper.has-sidebar {
    margin-left: 240px;
}

/* Responsive: collapse sidebar to off-canvas on smaller screens */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6);
    }

    .page-wrapper.has-sidebar {
        margin-left: 0;
    }

    .mobile-topbar {
        display: flex;
    }
}

/* ============================================================
   METRIC CARDS — ICON + ACCENT BAR
   ============================================================ */

.metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid rgba(255, 255, 255, 0.07);
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--coffee-cream-200);
}

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

.metric-label {
    margin: 0 0 0.2rem;
    text-transform: uppercase;
    font-size: 0.67rem;
    color: #dbc7b0;
    letter-spacing: 0.09em;
}

.metric-card--customers { border-left-color: #6ba3d6; }
.metric-card--customers .metric-icon { color: #6ba3d6; background: rgba(107, 163, 214, 0.12); }

.metric-card--coffees { border-left-color: var(--coffee-gold); }
.metric-card--coffees .metric-icon { color: var(--coffee-gold); background: rgba(209, 161, 91, 0.12); }

.metric-card--redeemed { border-left-color: #6dbb8e; }
.metric-card--redeemed .metric-icon { color: #6dbb8e; background: rgba(109, 187, 142, 0.12); }

.metric-card--vouchers { border-left-color: #e8a44a; }
.metric-card--vouchers .metric-icon { color: #e8a44a; background: rgba(232, 164, 74, 0.12); }

/* ============================================================
   LIVE QUEUE ROWS
   ============================================================ */

.queue-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6dbb8e;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.3; transform: scale(0.72); }
}

.queue-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: rgba(10, 6, 3, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    flex-wrap: wrap;
}

.queue-row__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c58d4c, #7a4e28);
    color: #fff7eb;
    font-family: "Fraunces", serif;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(209, 161, 91, 0.4);
}

.queue-row__info {
    flex: 1;
    min-width: 90px;
}

.queue-row__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--coffee-cream-100);
}

.queue-row__phone {
    font-size: 0.73rem;
    color: #c4a988;
}

.queue-row__stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.28rem;
    flex-shrink: 0;
}

.queue-row__time { flex-shrink: 0; }

.queue-row__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.queue-drink-select {
    max-width: 130px;
    min-width: 100px;
}

@media (max-width: 768px) {
    .queue-row__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .queue-drink-select {
        width: 100%;
        max-width: 100%;
    }

    .queue-row__actions .btn {
        flex: 1;
    }
}

/* ============================================================
   LOYALTY BAR + STAT CHIPS (shared: dashboard & kiosk)
   ============================================================ */

.loyalty-bar-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.loyalty-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #a8713c, var(--coffee-gold));
    transition: width 0.55s ease;
}

.stat-chip {
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    background: rgba(10, 6, 3, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.stat-chip--gold {
    border-color: rgba(209, 161, 91, 0.35);
    background: rgba(209, 161, 91, 0.07);
}

.stat-chip__value {
    margin: 0 0 0.18rem;
    font-family: "Fraunces", serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--coffee-cream-100);
    line-height: 1;
}

.stat-chip--gold .stat-chip__value { color: var(--coffee-gold); }

.stat-chip__label {
    margin: 0;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #c4a988;
}

/* Input group phone icon */
.lookup-icon {
    background: rgba(14, 9, 5, 0.55);
    border-color: #7d5c40;
    color: var(--coffee-gold);
}

/* Small avatar variant for lists */
.sidebar-avatar--sm {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
}

/* ============================================================
   KIOSK STATUS — STATS GRID
   ============================================================ */

.kiosk-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.kiosk-stat-card {
    padding: 1.4rem 1rem;
    border-radius: 18px;
    background: rgba(10, 6, 3, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.kiosk-stat-card--gold {
    border-color: rgba(209, 161, 91, 0.45);
    background: rgba(209, 161, 91, 0.07);
}

.kiosk-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #e5ccae;
    margin: 0 0 0.55rem;
}

.kiosk-stat-value {
    font-family: "Fraunces", serif;
    font-size: clamp(2.4rem, 9vw, 4rem);
    font-weight: 700;
    color: #fff7eb;
    margin: 0;
    line-height: 1;
}

/* ============================================================
   CUSTOMER SHOP — PRODUCT CARDS
   ============================================================ */

.product-card {
    padding: 0;
    overflow: hidden;
}

.product-card-header {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(58, 38, 23, 0.88), rgba(22, 14, 8, 0.94));
    border-bottom: 1px solid rgba(209, 161, 91, 0.14);
}

.product-icon {
    font-size: 2.4rem;
    color: var(--coffee-gold);
    opacity: 0.78;
}

.product-card-body {
    padding: 1.1rem;
}

.product-price {
    font-family: "Fraunces", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--coffee-gold);
    white-space: nowrap;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-card {
    width: min(420px, 100%);
    background: linear-gradient(165deg, rgba(74, 49, 31, 0.94), rgba(28, 18, 11, 0.97));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 22px 52px var(--shadow);
    padding: 2rem 1.75rem;
}

.login-logo {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.login-brand {
    font-family: "Fraunces", serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--coffee-cream-100);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.login-toggle-btn {
    color: #c4a988;
    text-decoration: none;
    font-size: 0.84rem;
}

.login-toggle-btn:hover {
    color: var(--coffee-gold);
    text-decoration: none;
}

@media (max-width: 576px) {
    .login-card {
        padding: 1.5rem 1.2rem;
        border-radius: 18px;
    }

    .kiosk-stats-row {
        gap: 0.65rem;
    }

    .metric-card {
        gap: 0.65rem;
    }

    .metric-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* ── Cart / Checkout ───────────────────────────────────────────────────────── */

.cart-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(209, 161, 91, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--coffee-gold);
    flex-shrink: 0;
}

.cart-total {
    font-family: "Fraunces", serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--coffee-gold);
}

.fulfilment-option {
    display: block;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.fulfilment-option--active {
    border-color: var(--coffee-gold);
    background: rgba(209, 161, 91, 0.07);
}

.fulfilment-option--disabled {
    opacity: 0.42;
    cursor: not-allowed;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

.fulfilment-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(209, 161, 91, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--coffee-gold);
    flex-shrink: 0;
}

/* Yoco popup layer fix is handled entirely in JavaScript (customer_cart.html)
   so that inline setProperty('important') beats any cached stylesheet rule.  */
