@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/poppins/Poppins-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/poppins/Poppins-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/poppins/Poppins-SemiBold.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/poppins/Poppins-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/fonts/poppins/Poppins-ExtraBold.ttf") format("truetype");
}

:root {
    /* TapPay KGS */
    --blue: #006fff;
    --turquoise: #00d4b4;
    --navy: #0c2552;
    --navy-2: #091b3d;
    --navy-3: #143366;
    --slate: #64748b;
    --light: #e5e7eb;
    --paper: #f7f9fb;
    --white: #ffffff;
    --ink: #012655;
    --line-dark: rgba(255, 255, 255, .10);
    --line-light: rgba(1, 38, 85, .10);
    --amber: #d97706;
    --red: #dc2626;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-physical: cubic-bezier(.16, 1, .3, 1);
    --sidebar: 240px;
    --sidebar-collapsed: 72px;
    --radius-btn: 9px;
    --radius-panel: 10px;
    --content-max: 1480px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --shadow-panel: 0 1px 0 rgba(13, 27, 42, .04);
    --duration-fast: 150ms;
    --duration: 180ms;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-variant-numeric: tabular-nums;
}

::selection {
    background: var(--turquoise);
    color: var(--navy);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 4px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    font-size: 13px;
    font-weight: 650;
}
.skip-link:focus { left: 12px; }

.tp-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: 0 var(--space-5);
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -.01em;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}

.tp-btn:hover { transform: translateY(-1px); }
.tp-btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 12px 32px rgba(0, 111, 255, .22); }
.tp-btn--primary:hover { background: #1b75ff; }
.tp-btn--ghost { border: 1px solid var(--line-light); background: var(--white); color: var(--ink); }
.tp-btn--dark { background: var(--navy); color: var(--white); }
.tp-btn--block { width: 100%; }

.tp-input,
.tp-select {
    width: 100%;
    min-height: 48px;
    padding: 0 var(--space-4);
    border: 1px solid var(--line-light);
    border-radius: 10px;
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}

.tp-input:focus,
.tp-select:focus {
    outline: none;
    border-color: rgba(0, 111, 255, .45);
    box-shadow: 0 0 0 4px rgba(0, 111, 255, .12);
}

.tp-label {
    display: grid;
    gap: var(--space-2);
    font-size: 12px;
    font-weight: 600;
    color: var(--slate);
}

.tp-field-error { margin-top: var(--space-2); color: var(--red); font-size: 12px; }

.tp-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tp-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.tp-status--ok { color: #0f9f8a; }
.tp-status--warn { color: var(--amber); }
.tp-status--danger { color: var(--red); }
.tp-status--muted { color: var(--slate); }

.tp-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(0, 111, 255, .08);
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tp-badge--live {
    background: rgba(0, 212, 180, .14);
    color: #0a8f7c;
}

.tp-money {
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    letter-spacing: -.02em;
}

/* Auth */
.auth-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    background: var(--navy);
}

.auth-brand {
    position: relative;
    padding: var(--space-12);
    color: var(--white);
    overflow: hidden;
}

.auth-brand::before {
    position: absolute;
    top: -20%;
    right: auto;
    bottom: auto;
    left: -10%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 111, 255, .35), transparent 70%);
    content: "";
}

.auth-brand::after {
    position: absolute;
    right: -8%;
    bottom: -18%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 180, .22), transparent 70%);
    content: "";
}

.auth-brand__inner { position: relative; z-index: 1; max-width: 460px; }
.auth-brand__logo { font-size: 28px; font-weight: 700; letter-spacing: -.06em; }
.auth-brand__logo img { width: 180px; height: auto; }
.auth-brand__logo span { color: var(--turquoise); }
.auth-brand__tag {
    margin-top: 8px;
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
}
.auth-brand h1 {
    margin-top: var(--space-16);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 550;
    letter-spacing: -.055em;
    line-height: 1.05;
}
.auth-brand p {
    margin-top: var(--space-5);
    color: rgba(255, 255, 255, .68);
    font-size: 16px;
    line-height: 1.7;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    background: var(--paper);
}

.auth-card {
    width: min(100%, 420px);
    display: grid;
    gap: var(--space-6);
}

.auth-card h2 {
    font-size: 28px;
    font-weight: 550;
    letter-spacing: -.04em;
}

.auth-card > p { color: var(--slate); font-size: 14px; }
.auth-form { display: grid; gap: var(--space-4); }
.auth-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-size: 13px; color: var(--slate); }
.auth-meta label { display: inline-flex; align-items: center; gap: 8px; }

/* App shell */
.app-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.app-shell.is-collapsed { grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr); }

.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding: var(--space-4);
    background: var(--navy-2);
    color: var(--white);
    border-right: 1px solid var(--line-dark);
}

.sidebar__brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-3) var(--space-3) var(--space-5);
}

.sidebar__logo { font-size: 22px; font-weight: 700; letter-spacing: -.06em; display: inline-flex; align-items: center; }
.sidebar__logo img { width: 132px; height: auto; display: block; }
.sidebar__logo span { color: var(--turquoise); }
.sidebar__context {
    padding: var(--space-3);
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
}
.sidebar__context strong { display: block; font-size: 13px; font-weight: 650; letter-spacing: -.02em; }
.sidebar__context small { display: block; margin-top: 4px; color: rgba(255, 255, 255, .48); font-size: 11px; }

.sidebar__nav {
    display: grid;
    gap: 4px;
    margin-top: var(--space-6);
    flex: 1;
    align-content: start;
    min-height: 0;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    font-weight: 500;
    transition: background-color .2s, color .2s;
}

.sidebar__link:hover,
.sidebar__link.is-active {
    background: rgba(255, 255, 255, .06);
    color: var(--white);
}

.sidebar__foot {
    padding-top: var(--space-4);
    border-top: 1px solid var(--line-dark);
}

.sidebar__user {
    display: grid;
    gap: 2px;
    padding: var(--space-3);
    font-size: 12px;
}
.sidebar__user strong { font-size: 13px; }
.sidebar__user span { color: rgba(255, 255, 255, .48); }

.workspace { display: grid; grid-template-rows: auto 1fr; min-width: 0; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 64px;
    padding: 0 var(--space-6);
    border-bottom: 1px solid var(--line-light);
    background: rgba(244, 245, 243, .92);
    backdrop-filter: blur(12px);
}

.topbar__status { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.topbar__actions { display: flex; align-items: center; gap: var(--space-3); }

.content {
    padding: var(--space-6);
}

.page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.page-header h1 {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 550;
    letter-spacing: -.045em;
}

.page-header p { margin-top: 8px; color: var(--slate); font-size: 14px; }

.metric-row {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.metric {
    padding: var(--space-5);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-panel);
    background: var(--white);
}

.metric--hero {
    background: var(--navy);
    color: var(--white);
    border-color: transparent;
}

.metric__label {
    color: var(--slate);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.metric--hero .metric__label { color: rgba(255, 255, 255, .55); }

.metric__value {
    margin-top: 12px;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 550;
    letter-spacing: -.045em;
    font-variant-numeric: tabular-nums;
}

.panel {
    border: 1px solid var(--line-light);
    border-radius: var(--radius-panel);
    background: var(--white);
    overflow: hidden;
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--line-light);
}

.panel__head h2 { font-size: 14px; font-weight: 650; letter-spacing: -.02em; }

.tp-table { width: 100%; border-collapse: collapse; }
.tp-table th,
.tp-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-light);
    text-align: left;
    font-size: 13px;
    vertical-align: middle;
}
.tp-table th {
    color: var(--slate);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--paper);
}
.tp-table td.num,
.tp-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tp-table tr:last-child td { border-bottom: 0; }

.empty {
    padding: var(--space-10) var(--space-5);
    color: var(--slate);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { min-height: 280px; }
    .app-shell { grid-template-columns: 1fr; }
    .app-shell > .sidebar { display: none; }
    .metric-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .metric-row { grid-template-columns: 1fr; }
    .content { padding: var(--space-4); }
    .topbar { padding: 0 var(--space-4); }
}

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

/* Phase 2 */
.flash {
    margin-bottom: var(--space-4);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 550;
}
.flash--ok {
    background: rgba(0, 212, 180, .12);
    color: #0a8f7c;
    border: 1px solid rgba(0, 212, 180, .25);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-4);
}

.form-grid { display: grid; gap: var(--space-4); }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.tp-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink);
}

.wizard-steps {
    list-style: none;
    display: flex;
    gap: var(--space-3);
    margin: 0 0 var(--space-5);
    padding: 0;
    flex-wrap: wrap;
}
.wizard-steps li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line-light);
    background: var(--white);
    color: var(--slate);
    font-size: 12px;
    font-weight: 650;
}
.wizard-steps li span {
    font-variant-numeric: tabular-nums;
    letter-spacing: .06em;
}
.wizard-steps li.is-active {
    border-color: rgba(0, 111, 255, .35);
    background: rgba(0, 111, 255, .06);
    color: var(--blue);
}
.wizard-steps li.is-done {
    border-color: rgba(0, 212, 180, .3);
    color: #0a8f7c;
}
.wizard-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line-light);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}
.review-grid span {
    display: block;
    color: var(--slate);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.review-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.02em;
}

.tp-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--line-light);
}
.tp-tabs__item {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 9px 9px 0 0;
    color: var(--slate);
    font-size: 13px;
    font-weight: 550;
    white-space: nowrap;
}
.tp-tabs__item.is-active {
    color: var(--ink);
    background: var(--white);
    box-shadow: inset 0 -2px 0 var(--blue);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
    gap: var(--space-4);
    margin-top: var(--space-5);
    align-items: start;
}

.text-action {
    color: var(--blue);
    font-size: 12px;
    font-weight: 650;
}
.text-action--danger { color: var(--red); }

.table-scroll { overflow-x: auto; }

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pager {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pager__btn {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line-light);
    border-radius: 8px;
    background: var(--white);
    font-size: 12px;
    font-weight: 650;
}
.pager__btn.is-disabled { opacity: .4; }
.pager__meta { color: var(--slate); font-size: 12px; }

@media (max-width: 900px) {
    .filter-grid,
    .form-row,
    .review-grid,
    .split-layout { grid-template-columns: 1fr; }
}

/* ——— Phase 4: kiosk + command + drawers ——— */
.kiosk-body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(0, 111, 255, .18), transparent 55%),
                radial-gradient(900px 500px at 100% 0%, rgba(0, 212, 180, .12), transparent 50%),
                var(--navy);
    color: var(--white);
}

.kiosk {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 24px;
}

.kiosk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.kiosk-header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.kiosk-header__brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.kiosk-header__brand small { color: rgba(255,255,255,.55); font-size: 12px; }
.kiosk-header .sidebar__logo { color: #fff; font-size: 22px; }
.kiosk-header .sidebar__logo span { color: var(--turquoise); }
.kiosk-header__status { display: flex; align-items: center; gap: 12px; }
.kiosk-exit {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;
    color: rgba(255,255,255,.8);
    font-size: 12px;
    font-weight: 650;
}

.kiosk-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.kiosk-tabs button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.7);
    font-weight: 650;
    font-size: 14px;
}
.kiosk-tabs button.is-active {
    background: rgba(0, 111, 255, .25);
    border-color: rgba(0, 111, 255, .5);
    color: #fff;
}

.kiosk-main { flex: 1; display: flex; }
.kiosk-amount-panel {
    width: min(420px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.kiosk-amount {
    text-align: center;
    font-size: clamp(40px, 9vw, 64px);
    font-weight: 700;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    padding: 12px 0 4px;
}

.kiosk-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.kiosk-key {
    min-height: 72px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-size: 28px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    transition: background .15s var(--ease), transform .15s var(--ease);
}
.kiosk-key:active { transform: scale(.98); background: rgba(255,255,255,.12); }
.kiosk-key--muted { font-size: 18px; color: rgba(255,255,255,.7); }
.kiosk-key--wide { grid-column: 1 / -1; min-height: 56px; }

.kiosk-cta {
    min-height: 72px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em;
    box-shadow: 0 16px 40px rgba(0, 111, 255, .35);
}
.kiosk-cta { text-transform: uppercase; }
.kiosk-cta:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.kiosk-cta--ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: none;
}
.kiosk-slip-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(100%, 360px);
    margin: 4px 0 8px;
}
.kiosk-slip-actions .kiosk-cta {
    width: 100%;
}
.nfc-meta--slip {
    color: #fdba74;
    font-weight: 650;
    max-width: 28rem;
}
.kiosk-mock {
    min-height: 44px;
    color: rgba(255,255,255,.45);
    font-size: 12px;
    font-weight: 550;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kiosk-products {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr);
    gap: 16px;
}
.kiosk-category h2 {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}
.kiosk-product-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.kiosk-product {
    min-height: 88px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}
.kiosk-product strong { font-size: 15px; }
.kiosk-product span { color: var(--turquoise); font-weight: 650; font-variant-numeric: tabular-nums; }
.kiosk-cart {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(9, 21, 34, .65);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.kiosk-cart h2 { font-size: 14px; }
.kiosk-cart ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kiosk-cart li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.kiosk-cart__empty { color: rgba(255,255,255,.45); font-size: 13px; }
.kiosk-cart__total {
    margin-top: auto;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.nfc-overlay {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 24px;
    animation: nfcFade .2s var(--ease);
}
.nfc-overlay--success { background: radial-gradient(circle at 50% 40%, rgba(0,212,180,.2), transparent 55%); }
.nfc-overlay--error { background: radial-gradient(circle at 50% 40%, rgba(220,38,38,.18), transparent 55%); }
.nfc-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(0, 212, 180, .35);
    box-shadow: 0 0 0 18px rgba(0, 212, 180, .08);
    position: relative;
    margin-bottom: 8px;
}
.nfc-overlay--reading .nfc-ring,
.nfc-overlay--processing .nfc-ring {
    animation: nfcPulse 1.2s var(--ease) infinite;
}
.nfc-overlay--success .nfc-ring {
    border-color: var(--turquoise);
    box-shadow: 0 0 0 18px rgba(0, 212, 180, .16);
}
.nfc-overlay--error .nfc-ring {
    border-color: var(--red);
    box-shadow: 0 0 0 18px rgba(220, 38, 38, .12);
}
.nfc-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 750;
    letter-spacing: -.03em;
}
.nfc-amount {
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    color: var(--turquoise);
}
.nfc-meta { color: rgba(255,255,255,.55); font-size: 14px; }
.nfc-error { color: #fecaca; font-size: 16px; max-width: 28rem; }

.topup-panel {
    width: min(560px, 100%);
    margin: 24px auto;
    background: var(--white);
    color: var(--ink);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.topup-identity {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.topup-identity span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--slate);
}
.topup-identity strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}
.topup-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.topup-chip {
    min-height: 56px;
    border-radius: 10px;
    border: 1px solid var(--line-light);
    background: var(--paper);
    font-weight: 700;
    font-size: 15px;
}
.topup-chip.is-active {
    border-color: rgba(0,102,255,.4);
    background: rgba(0,102,255,.08);
    color: var(--blue);
}
.topup-custom__row { display: flex; gap: 8px; }
.topup-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topup-methods button {
    min-height: 52px;
    border-radius: 10px;
    border: 1px solid var(--line-light);
    font-weight: 650;
}
.topup-methods button.is-active {
    border-color: rgba(0,212,180,.45);
    background: rgba(0,212,180,.1);
}
.topup-note { font-size: 11px; color: var(--slate); margin: 0; }
.topup-panel .kiosk-cta { color: #fff; }
.topup-panel .kiosk-cta--ghost {
    color: var(--ink);
    border-color: var(--line-light);
}

@keyframes nfcPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: .75; }
}
@keyframes nfcFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.ops-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}
.ops-links a {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 9px;
    border: 1px solid var(--line-light);
    background: var(--white);
    font-size: 12px;
    font-weight: 650;
}
.command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
    gap: 16px;
}
.command-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric--command .metric__value {
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: -.04em;
}
.spark-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-height: 160px;
    padding: 20px 16px 12px;
}
.spark-bars__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.spark-bars__bar {
    width: 100%;
    max-width: 18px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--blue), var(--turquoise));
}
.spark-bars__col span { font-size: 10px; color: var(--slate); font-variant-numeric: tabular-nums; }
.alert-list { list-style: none; margin: 0; padding: 12px 16px; display: grid; gap: 8px; }
.alert-list__item {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line-light);
    font-size: 13px;
    font-weight: 550;
}
.alert-list__item--warn { border-color: rgba(217,119,6,.35); background: rgba(217,119,6,.08); }
.alert-list__item--muted { color: var(--slate); }

.drawer-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(9, 21, 34, .45);
    z-index: 40;
}
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100vh;
    background: var(--white);
    z-index: 50;
    box-shadow: -20px 0 60px rgba(13, 27, 42, .18);
    display: flex;
    flex-direction: column;
    animation: drawerIn .2s var(--ease);
}
@keyframes drawerIn {
    from { transform: translateX(16px); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line-light);
}
.drawer__head h2 { font-size: 16px; }
.drawer__body { padding: 18px 20px; overflow: auto; flex: 1; }
.detail-list { margin: 0; display: grid; gap: 12px; }
.detail-list > div { display: grid; gap: 4px; }
.detail-list dt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--slate);
}
.detail-list dd { margin: 0; font-size: 14px; font-weight: 550; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.drawer__refund {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line-light);
}
.drawer__refund h3 { margin: 0 0 6px; font-size: 14px; }
.drawer__refund p { margin: 0 0 12px; color: var(--slate); font-size: 13px; }
.field-error { color: var(--red); font-size: 12px; margin-top: 6px; }
.flash--err {
    background: rgba(220,38,38,.08);
    border: 1px solid rgba(220,38,38,.25);
    color: var(--red);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}
.is-clickable { cursor: pointer; }
.is-clickable:hover { background: rgba(0,102,255,.04); }
.is-debit { color: var(--red); }
.is-credit { color: #0a8f7c; }
.tp-table--sticky thead th {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}
.wallet-balance-hero {
    padding: 18px;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    margin-bottom: 16px;
}
.wallet-balance-hero span {
    display: block;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}
.wallet-balance-hero strong {
    display: block;
    margin-top: 8px;
    font-size: 32px;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}
.ledger-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.ledger-timeline li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-light);
    display: grid;
    gap: 6px;
}
.ledger-timeline li span { display: block; color: var(--slate); font-size: 12px; }

@media (max-width: 900px) {
    .kiosk-products,
    .command-grid,
    .command-grid--3,
    .topup-amounts,
    .topup-identity { grid-template-columns: 1fr; }
}

/* ——— Admin UX max polish ——— */

.app-shell.is-ready .content {
    animation: contentIn .28s var(--ease);
}
@keyframes contentIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.sidebar__tag {
    margin-top: 2px;
    color: rgba(255,255,255,.35);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}
.sidebar__context-status { margin-top: 10px; }
.sidebar__group {
    margin: 14px 8px 6px;
    color: rgba(255,255,255,.32);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.sidebar__group:first-child { margin-top: 0; }
.sidebar__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: .7;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.sidebar__icon svg {
    width: 18px;
    height: 18px;
    max-width: none;
}
.sidebar__link.is-active .sidebar__icon { opacity: 1; color: var(--turquoise); }
.sidebar__link.is-active {
    background: linear-gradient(90deg, rgba(0,102,255,.22), rgba(0,102,255,.06));
    box-shadow: inset 3px 0 0 var(--blue);
}
.sidebar__link.is-disabled {
    opacity: .35;
    cursor: default;
}
.sidebar__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}
.sidebar__avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--turquoise));
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: -.02em;
    flex: 0 0 36px;
}
.sidebar__user-meta { min-width: 0; }
.sidebar__user-meta strong,
.sidebar__user-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar__logout {
    width: 100%;
    min-height: 40px;
    margin-top: 8px;
    border-radius: 9px;
    border: 1px solid var(--line-dark);
    color: rgba(255,255,255,.7);
    font-size: 12px;
    font-weight: 650;
    transition: background .2s, color .2s;
}
.sidebar__logout:hover {
    background: rgba(220, 38, 38, .12);
    color: #fecaca;
    border-color: rgba(220, 38, 38, .25);
}
.sidebar__install {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px;
    color: rgba(255,255,255,.45);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.sidebar__install svg { width: 14px; height: 14px; flex: none; }
.sidebar__install:hover { color: rgba(255,255,255,.85); }

.topbar__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar__menu {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--line-light);
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.topbar__menu span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
}
.tp-btn--sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
}
.page-kicker {
    margin-bottom: 6px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.page-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.page-header__actions--wrap { justify-content: flex-end; }

.panel--lift {
    box-shadow: 0 1px 0 rgba(13,27,42,.04), 0 12px 32px rgba(13,27,42,.04);
}
.panel__sub {
    margin-top: 2px;
    color: var(--slate);
    font-size: 12px;
    font-weight: 500;
}
.panel__footer {
    padding: 12px 16px;
    border-top: 1px solid var(--line-light);
    background: var(--paper);
}

.filter-bar {
    padding: 16px 20px;
    margin-bottom: 16px;
    overflow: visible;
}
.filter-grid--2 { grid-template-columns: 1.4fr 1fr; }

.metric-row--dash { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); }
.metric--glow {
    position: relative;
    overflow: hidden;
}
.metric--glow::after {
    content: "";
    position: absolute;
    right: -20%;
    top: -30%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,180,.28), transparent 70%);
    pointer-events: none;
}
.metric__hint {
    margin-top: 8px;
    color: rgba(255,255,255,.5);
    font-size: 12px;
    font-weight: 550;
}
.metric__suffix {
    margin-left: 4px;
    font-size: .55em;
    color: var(--slate);
    font-weight: 550;
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr);
    gap: 16px;
    align-items: start;
}
.dash-side { display: grid; gap: 16px; }

.event-cards { display: grid; }
.event-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line-light);
}
.event-card:last-child { border-bottom: 0; }
.event-card__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.event-card__title-row h3 {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.02em;
}
.event-card__meta {
    margin-top: 6px;
    color: var(--slate);
    font-size: 13px;
}
.event-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
    color: var(--slate);
    font-size: 12px;
    font-weight: 550;
}
.event-card__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}
.activity-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line-light);
}
.activity-list li:last-child { border-bottom: 0; }
.activity-list strong { display: block; font-size: 13px; }
.activity-list span {
    display: block;
    margin-top: 3px;
    color: var(--slate);
    font-size: 11px;
}
.activity-list__right { text-align: right; }
.activity-list__right strong {
    font-variant-numeric: tabular-nums;
    font-size: 13px;
}

.alert-list__item span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--slate);
}
.alert-list__item strong { font-weight: 700; }

.empty--rich {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 48px 24px;
}
.empty--rich h3 {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -.02em;
    color: var(--ink);
}
.empty--rich p { max-width: 28rem; }
.empty__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(0,102,255,.08);
    color: var(--blue);
    font-size: 22px;
    margin-bottom: 4px;
}
.empty--compact { padding: 28px 18px; }
.empty--ok { color: #0a8f7c; }

.tp-table--hover tbody tr:hover td {
    background: rgba(0,102,255,.03);
}
.table-primary-link {
    font-weight: 650;
    letter-spacing: -.01em;
    color: var(--ink);
}
.table-primary-link:hover { color: var(--blue); }
.mono-soft {
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
    color: var(--slate);
}
.row-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    white-space: nowrap;
}

.tp-badge--pulse {
    position: relative;
}
.tp-badge--pulse::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 rgba(10, 143, 124, .45);
    animation: livePulse 1.8s var(--ease) infinite;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(10, 143, 124, .45); }
    70% { box-shadow: 0 0 0 8px rgba(10, 143, 124, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 143, 124, 0); }
}

.auth-brand__points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.auth-brand__points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 550;
}
.auth-brand__points li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--turquoise);
    box-shadow: 0 0 0 4px rgba(0,212,180,.15);
}

/* Mobile nav drawer */
.nav-drawer[hidden] { display: none !important; }
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
}
.nav-drawer__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(9, 21, 34, .55);
    backdrop-filter: blur(4px);
}
.nav-drawer__panel {
    position: absolute;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: min(300px, 88vw);
    background: var(--navy-2);
    box-shadow: 20px 0 60px rgba(0,0,0,.35);
    animation: drawerLeft .22s var(--ease);
    overflow: auto;
}
.nav-drawer__panel .sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    border-right: 0;
}
@keyframes drawerLeft {
    from { transform: translateX(-12px); opacity: .6; }
    to { transform: none; opacity: 1; }
}
body.nav-open { overflow: hidden; }

@media (max-width: 1024px) {
    .topbar__menu { display: inline-flex; }
    .dash-grid { grid-template-columns: 1fr; }
    .metric-row--dash { grid-template-columns: 1fr 1fr; }
    .event-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .topbar__hide-sm { display: none !important; }
}
@media (max-width: 640px) {
    .metric-row--dash { grid-template-columns: 1fr; }
    .filter-grid--2 { grid-template-columns: 1fr; }
    .page-header { align-items: start; flex-direction: column; }
}

/* ——— Redesign 2026-09: operational command UI ——— */
.tp-status--caps {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tp-status__dot--ok { background: #0f9f8a; color: #0f9f8a; }
.tp-status__dot--danger { background: #dc2626; color: #dc2626; }
.tp-money { font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: -.02em; }
.tp-money--spend { color: var(--ink); }
.tp-money--credit { color: #0a8f7c; }

/* Shell denser — width comes from app-shell grid track, not a fixed child width */
.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    width: auto;
    min-width: 0;
    background: var(--navy-2);
    padding: 12px 10px;
}
.sidebar__brand { padding: 8px 10px 14px; }
.sidebar__logo { font-size: 20px; }
.sidebar__tag {
    margin-top: 4px;
    font-size: 8px;
    letter-spacing: .18em;
    color: rgba(255,255,255,.32);
    font-weight: 750;
}
.sidebar__context {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line-dark);
    background: rgba(255,255,255,.03);
    margin: 0 4px;
}
.sidebar__context-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.sidebar__context strong {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: -.01em;
    line-height: 1.3;
}
.sidebar__context small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.42);
    font-size: 11px;
}
.sidebar__group {
    margin: 12px 10px 4px;
    font-size: 9px;
    letter-spacing: .14em;
    color: rgba(255,255,255,.28);
}
.sidebar__link {
    min-height: 38px;
    height: 38px;
    padding: 0 10px 0 12px;
    border-radius: 8px;
    font-size: 13px;
    position: relative;
    align-self: start;
    width: 100%;
    box-sizing: border-box;
}
.sidebar__link.is-active {
    background: rgba(0, 111, 255, .14);
    color: #fff;
    box-shadow: none;
}
.sidebar__link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: var(--blue);
}
.sidebar__link.is-active .sidebar__icon { color: var(--turquoise); opacity: 1; }
.sidebar__foot { padding-top: 10px; }
.sidebar__user { padding: 8px; gap: 10px; }
.sidebar__avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 11px;
}
.sidebar__user-meta span { font-size: 11px; }
.sidebar__logout {
    min-height: 34px;
    margin-top: 6px;
    font-size: 12px;
}

.topbar {
    min-height: 56px;
    padding: 0 20px;
    background: rgba(247, 249, 251, .92);
    border-bottom: 1px solid var(--line-light);
}
.topbar__health {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}
.health-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--line-light);
    background: var(--white);
    font-size: 11px;
}
.health-chip strong { font-weight: 650; letter-spacing: -.01em; }
.health-chip__label {
    color: var(--slate);
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 9px;
}
.health-chip--muted { opacity: .85; }
.health-chip .tp-status__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--slate);
}
.health-chip .tp-status__dot--ok { background: #0f9f8a; }
.health-chip .tp-status__dot--danger { background: #dc2626; }

.content {
    width: 100%;
    max-width: var(--content-max);
    padding: 20px 24px 32px;
}
.page-header--ops {
    align-items: flex-end;
    margin-bottom: 20px;
}
.page-header--ops h1 {
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 550;
    letter-spacing: -.045em;
}
.page-kicker {
    color: var(--blue);
    font-size: 10px;
    letter-spacing: .14em;
}
.cc-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panel--ops {
    border: 1px solid var(--line-light);
    border-radius: var(--radius-panel);
    background: var(--white);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}
.panel__actions { display: flex; gap: 8px; align-items: center; }
.panel-note {
    padding: 8px 16px 14px;
    margin: 0;
    color: var(--slate);
    font-size: 12px;
}

/* Ops dashboard */
.ops-metrics {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
.ops-hero {
    padding: 22px 24px 20px;
    border-radius: var(--radius-panel);
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ops-hero--compact { padding: 18px 20px; }
.ops-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ops-hero__label {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}
.ops-hero__value {
    margin-top: 10px;
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 550;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
}
.ops-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
    color: rgba(255,255,255,.55);
    font-size: 13px;
    font-weight: 550;
}
.ops-spark {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    margin-top: 16px;
    height: 36px;
}
.ops-spark__bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, rgba(0,212,180,.85), rgba(0,102,255,.55));
    min-width: 3px;
}

.ops-rail {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--line-light);
    border-radius: var(--radius-panel);
    background: var(--white);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}
.ops-rail--inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ops-rail__item {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-light);
}
.ops-rail__item:last-child { border-bottom: 0; }
.ops-rail--inline .ops-rail__item {
    border-bottom: 0;
    border-right: 1px solid var(--line-light);
}
.ops-rail--inline .ops-rail__item:last-child { border-right: 0; }
.ops-rail__label {
    display: block;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--slate);
}
.ops-rail__value {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    font-weight: 550;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.ops-rail__value--sm { font-size: 20px; }
.ops-rail__muted {
    color: var(--slate);
    font-size: .55em;
    font-weight: 550;
}
.ops-rail__hint {
    display: block;
    margin-top: 6px;
    color: var(--slate);
    font-size: 12px;
    font-weight: 550;
}

.ops-grid {
    display: grid;
    gap: 14px;
    align-items: start;
}
.ops-grid--2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.ops-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ops-grid--bottom { margin-top: 14px; }
.ops-side-stack { display: grid; gap: 14px; }

.ops-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    min-height: 160px;
    padding: 18px 16px 12px;
}
.ops-chart--tall { min-height: 200px; }
.ops-chart__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.ops-chart__bar {
    width: 100%;
    max-width: 16px;
    border-radius: 4px 4px 1px 1px;
    background: var(--blue);
}
.ops-chart__bar.is-now { background: var(--turquoise); }
.ops-chart__col span {
    font-size: 9px;
    color: var(--slate);
    font-variant-numeric: tabular-nums;
}

.live-event-list { display: grid; }
.live-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-light);
}
.live-event:last-child { border-bottom: 0; }
.live-event.is-live {
    background: linear-gradient(90deg, rgba(0, 212, 180, .06), transparent 55%);
}
.live-event__main { min-width: 0; flex: 1; }
.live-event__title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.live-event__title h3 {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.02em;
}
.live-event__meta {
    margin-top: 4px;
    color: var(--slate);
    font-size: 12px;
}
.live-event__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 550;
    color: var(--slate);
}
.live-event__fresh {
    margin-top: 8px;
    font-size: 11px;
    color: #0a8f7c;
    font-weight: 550;
}
.live-event__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.tx-feed { list-style: none; margin: 0; padding: 0; }
.tx-feed__row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1.4fr) auto minmax(110px, auto);
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-light);
}
.tx-feed__row:last-child { border-bottom: 0; }
.tx-feed__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(0,102,255,.08);
    color: var(--blue);
}
.tx-feed__icon svg { width: 16px; height: 16px; }
.tx-feed__body strong { display: block; font-size: 13px; }
.tx-feed__body span { display: block; margin-top: 2px; color: var(--slate); font-size: 11px; }
.tx-feed__time {
    font-size: 12px;
    color: var(--slate);
    font-variant-numeric: tabular-nums;
}
.tx-feed__amount { text-align: right; }
.tx-feed__amount .tp-money { display: block; font-size: 13px; }
.tx-feed__status {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--slate);
}

.attention-ok {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 18px;
}
.attention-ok__mark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0,212,180,.14);
    color: #0a8f7c;
    font-weight: 750;
    flex: 0 0 28px;
}
.attention-ok strong { display: block; font-size: 14px; }
.attention-ok p { margin-top: 4px; color: var(--slate); font-size: 12px; }
.attention-list { list-style: none; margin: 0; padding: 4px 0; }
.attention-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-light);
}
.attention-list li:last-child { border-bottom: 0; }
.attention-list strong { display: block; font-size: 13px; }
.attention-list span { display: block; margin-top: 3px; color: var(--slate); font-size: 11px; }

.sys-status { list-style: none; margin: 0; padding: 4px 0; }
.sys-status li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line-light);
    font-size: 13px;
}
.sys-status li:last-child { border-bottom: 0; }
.sys-status li > span:first-child { color: var(--slate); font-weight: 550; }

/* Command center */
.cc-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.cc-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line-light);
    background: var(--white);
    font-size: 12px;
}
.cc-strip__item > span:first-child {
    color: var(--slate);
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 9px;
}
.cc-metrics {
    display: grid;
    grid-template-columns: minmax(240px, .9fr) minmax(0, 1.4fr);
    gap: 14px;
    margin-bottom: 14px;
}
.infra-list { list-style: none; margin: 0; padding: 0; }
.infra-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-light);
}
.infra-list li:last-child { border-bottom: 0; }
.infra-list strong { display: block; font-size: 13px; }
.infra-list span { display: block; margin-top: 2px; color: var(--slate); font-size: 11px; }
.infra-list__right { text-align: right; display: grid; gap: 4px; justify-items: end; }
.table-sub { display: block; color: var(--slate); font-size: 11px; font-weight: 500; margin-top: 2px; }
.tp-table--dense th,
.tp-table--dense td { padding: 10px 14px; }

/* Remove decorative glow from old metric cards */
.metric--glow::after { display: none; }

@media (max-width: 1220px) {
    .ops-grid--3 { grid-template-columns: 1fr 1fr; }
    .cc-metrics { grid-template-columns: 1fr; }
    .ops-rail--inline { grid-template-columns: 1fr 1fr; }
    .ops-rail--inline .ops-rail__item:nth-child(2) { border-right: 0; }
    .ops-rail--inline .ops-rail__item:nth-child(1),
    .ops-rail--inline .ops-rail__item:nth-child(2) { border-bottom: 1px solid var(--line-light); }
}
@media (max-width: 1024px) {
    .app-shell { grid-template-columns: 1fr; }
    .app-shell > .sidebar { display: none; }
    .nav-drawer__panel .sidebar {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 100%;
    }
    .topbar__menu { display: inline-flex; }
    .ops-metrics,
    .ops-grid--2,
    .ops-grid--3 { grid-template-columns: 1fr; }
    .live-event { flex-direction: column; align-items: flex-start; }
    .live-event__actions { flex-direction: row; flex-wrap: wrap; }
    .tx-feed__row {
        grid-template-columns: 32px 1fr;
        grid-template-areas:
            "icon body"
            "icon amount"
            ". time";
    }
    .tx-feed__icon { grid-area: icon; }
    .tx-feed__body { grid-area: body; }
    .tx-feed__amount { grid-area: amount; text-align: left; }
    .tx-feed__time { grid-area: time; }
}
@media (max-width: 768px) {
    .content { padding: 16px; }
    .ops-rail--inline { grid-template-columns: 1fr; }
    .ops-rail--inline .ops-rail__item {
        border-right: 0;
        border-bottom: 1px solid var(--line-light);
    }
    .ops-hero__value { font-size: 34px; }
    .topbar { padding: 0 12px; }
}

/* ——— NBP-20 TapPay Terminal (portrait 720×1280, touch targets ≥ 56px) ——— */
.term-status { display: flex; gap: 8px; align-items: center; }
.term-status__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    font-size: 11px;
    letter-spacing: .06em;
    color: rgba(255,255,255,.8);
}
.term-status__item i { width: 8px; height: 8px; border-radius: 50%; background: var(--slate); }
.term-status__item b { font-weight: 750; }
.term-status__item em { font-style: normal; font-weight: 650; }
.term-status__item[data-state="online"] i { background: var(--turquoise); box-shadow: 0 0 0 3px rgba(0,212,180,.2); }
.term-status__item[data-state="offline"] i { background: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.2); }
.term-status__item[data-state="offline"] { border-color: rgba(220,38,38,.5); color: #fecaca; }
.term-status__item[data-state="not_configured"] i { background: var(--amber, #f59e0b); }
.term-notice {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 8px 16px;
    background: rgba(245,158,11,.92);
    color: #1f1300;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    z-index: 40;
}
.term-offline {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px;
    text-align: center;
    background: rgba(9,17,28,.94);
    color: #fff;
}
.term-offline[hidden], .term-notice[hidden] { display: none; }
.term-offline strong { font-size: 30px; letter-spacing: -.02em; color: #fecaca; }
.term-offline p { font-size: 18px; color: rgba(255,255,255,.75); margin: 0; }
.term-toast {
    position: fixed;
    left: 16px; right: 16px; bottom: 48px;
    z-index: 70;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff7ed;
    color: #7c2d12;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.term-toast[hidden] { display: none; }
.is-node-offline [data-requires-node] { opacity: .35; pointer-events: none; }

.term {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 24px;
}
.term-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.term-header__id { display: flex; align-items: center; gap: 12px; }
.term-header__id strong { display: block; font-size: 16px; }
.term-header__id small { color: rgba(255,255,255,.55); font-size: 12px; }
.term-header .sidebar__logo { color: #fff; font-size: 22px; }
.term-header .sidebar__logo span { color: var(--turquoise); }
.term-main {
    flex: 1;
    width: min(560px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.term-title { margin: 0; font-size: 30px; font-weight: 750; letter-spacing: -.03em; }
.term-sub { margin: 0; color: rgba(255,255,255,.6); font-size: 15px; }
.term-staff { display: grid; gap: 10px; }
.term-staff__btn {
    min-height: 72px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    color: #fff;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.term-staff__btn strong { font-size: 18px; }
.term-staff__btn span { color: rgba(255,255,255,.55); font-size: 13px; }
.term-pin { display: flex; justify-content: center; gap: 14px; margin: 8px 0; }
.term-pin span {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4);
}
.term-pin span.is-filled { background: var(--turquoise); border-color: var(--turquoise); }
.term-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.term-key {
    min-height: 76px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-size: 28px;
    font-weight: 650;
}
.term-key:active { background: rgba(255,255,255,.14); }
.term-key--muted { font-size: 20px; color: rgba(255,255,255,.7); }
.term-key--ok { background: var(--blue); border-color: var(--blue); font-size: 22px; }
.term-key:disabled { opacity: .4; }
.term-actions { display: grid; gap: 12px; }
.term-action {
    min-height: 96px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.term-action strong { font-size: 22px; letter-spacing: -.02em; }
.term-action span { color: rgba(255,255,255,.6); font-size: 14px; }
.term-action:active { background: rgba(0,102,255,.2); }
.term-link {
    min-height: 56px;
    color: rgba(255,255,255,.7);
    font-size: 15px;
    font-weight: 650;
    background: none;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.term-empty {
    padding: 18px;
    border-radius: 12px;
    border: 1px dashed rgba(255,255,255,.25);
    color: rgba(255,255,255,.75);
    list-style: none;
}
.term-empty strong { display: block; font-size: 16px; color: #fff; margin-bottom: 4px; }
.term-empty p { margin: 0; font-size: 14px; }
.term-error { margin: 0; color: var(--red); font-weight: 700; font-size: 15px; }
.term .term-error, .nfc-overlay .term-error { color: #fecaca; }

.kiosk-cancel {
    min-height: 56px;
    margin-top: 12px;
    padding: 0 22px;
    color: rgba(255,255,255,.8);
    font-size: 16px;
    font-weight: 650;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    background: transparent;
}
.kiosk-dev { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.kiosk-dev input {
    min-height: 44px;
    min-width: 260px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 12px;
}
.kiosk-main--column { flex-direction: column; gap: 14px; width: min(640px, 100%); margin: 0 auto; }
a.kiosk-cta { display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 24px; }
.nfc-overlay--inline { min-height: 60vh; }
.nfc-overlay .kiosk-cta { min-width: min(360px, 100%); }
.nfc-title--error { color: #fecaca; }
.nfc-title--dark { color: var(--navy); font-size: 24px; margin: 0; }
.nfc-meta--dark { color: var(--slate); margin: 0; }
.nfc-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    width: min(420px, 100%);
    margin: 4px 0 8px;
}
.nfc-figures div {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
}
.nfc-figures dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.nfc-figures dd { margin: 4px 0 0; font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.refund-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.refund-row {
    width: 100%;
    min-height: 72px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}
.refund-row strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.refund-row small { color: rgba(255,255,255,.55); font-size: 13px; }
.refund-row em { font-style: normal; font-weight: 750; font-size: 13px; letter-spacing: .08em; color: var(--turquoise); }
.refund-row.is-done { opacity: .45; }
.refund-row.is-done em { color: rgba(255,255,255,.6); }

/* Portrait handheld (NBP-20: 720×1280 @ ~2x → ~360×640 CSS px) */
@media (max-width: 600px) {
    .kiosk, .term { padding: 12px 12px 56px; }
    .kiosk-header { flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
    .kiosk-header__status { width: 100%; justify-content: space-between; }
    .kiosk-exit { min-height: 48px; display: inline-flex; align-items: center; font-size: 14px; }
    .kiosk-tabs button { flex: 1; min-height: 56px; }
    .kiosk-key { min-height: 64px; font-size: 26px; }
    .kiosk-cta { min-height: 64px; width: 100%; }
    .kiosk-products { grid-template-columns: 1fr; }
    .kiosk-product-tiles { grid-template-columns: repeat(2, 1fr); }
    .kiosk-product { min-height: 72px; }
    .topup-panel { margin: 8px auto; padding: 20px 16px; border-radius: 14px; }
    .topup-amounts { grid-template-columns: repeat(2, 1fr); }
    .topup-identity strong { font-size: 22px; }
    .nfc-ring { width: 96px; height: 96px; }
    .term-status__item { min-height: 28px; padding: 0 8px; font-size: 10px; }
}

/* Terminal pairing + PIN admin */
.pair-panel { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.pair-panel__hint { margin: 0; font-size: 13px; color: var(--slate); }
.pair-panel__qr { background: #fff; padding: 8px; border-radius: 10px; border: 1px solid var(--line-light); }
.pair-panel__qr svg { display: block; width: 220px; height: 220px; }
.pair-panel__code { font-size: 28px; font-weight: 750; letter-spacing: .18em; }
.pin-edit { display: flex; gap: 6px; align-items: center; }
.pin-edit .tp-input { width: 120px; min-height: 36px; }

/* Top-up: amount first, then tap (dark NFC overlay) */
.topup-amounts--inline,
.topup-methods--inline { width: 100%; max-width: 520px; margin: 14px auto 0; }
.topup-amounts--inline { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.topup-amounts--inline .topup-chip { min-height: 64px; font-size: 20px; background: #fff; color: var(--ink); border-color: transparent; }
.topup-methods--inline button { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.topup-methods--inline button.is-active { background: rgba(0,212,180,.22); border-color: #00d4b4; }

/* Payment success: "Preostalo: 88,00 KM" */
.nfc-balance { margin: 6px 0 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nfc-balance span { opacity: .75; font-weight: 600; }

/* Technician APK install page */
.install { padding: 24px 0; }
.install__facts { margin: 0; display: grid; gap: 8px; }
.install__facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.install__facts dt { color: rgba(255,255,255,.55); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.install__facts dd { margin: 0; font-weight: 650; }
.install__facts--mono dd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 500; word-break: break-all; }
.install__status { color: #ffc35c; }
.install__cta { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.install__warning { margin: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,195,92,.45); background: rgba(255,195,92,.1); color: #ffe2ad; font-size: 14px; line-height: 1.45; }
.install__steps { margin: 0; padding-left: 20px; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.5; }
.install__qr { align-self: center; background: #fff; padding: 10px; border-radius: 12px; line-height: 0; }
.install__qr svg { width: 180px; height: 180px; }
.pair-panel__more summary { cursor: pointer; font-size: 13px; color: var(--slate); }
.pair-panel__more .pair-panel__qr { margin-top: 10px; }
