/* =====================================================================
   MOBIYUS Enterprise — Design System
   Bahasa visual: biru-indigo korporat + aksen teal, kartu kaca, input pill.
   ===================================================================== */
:root {
  --brand-050: #eef1ff;
  --brand-100: #dfe5ff;
  --brand-300: #a5b4ff;
  --brand-500: #5566f5;
  --brand-600: #3d53e8;
  --brand-700: #2f42c9;
  --brand-deep: #1e2a86;
  --teal-300: #7ee7e8;
  --teal-400: #35c9dd;
  --ink: #141a3c;
  --ink-soft: #2b3160;
  --muted: #6c7391;
  --muted-2: #9aa1b9;
  --line: #e4e7f2;
  --line-2: #eef0f8;
  --bg: #f5f7ff;
  --surface: #ffffff;
  --ok: #10b981;
  --ok-bg: #e8f9f1;
  --warn: #f59e0b;
  --warn-bg: #fff6e6;
  --err: #ef4444;
  --err-bg: #feecec;
  --info-bg: #eef1ff;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(28, 38, 96, .06);
  --shadow: 0 10px 30px rgba(28, 38, 96, .08);
  --shadow-lg: 0 22px 60px rgba(28, 38, 96, .16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.02em; }
img { max-width: 100%; }
::selection { background: var(--brand-100); }

/* ============================ LOGIN / AUTH ========================== */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #f2f3f9; }
.auth-card {
  width: 100%; max-width: 1180px; background: #fff; border-radius: 32px; overflow: hidden;
  display: grid; grid-template-columns: 1.02fr 1fr; box-shadow: 0 30px 80px rgba(24, 32, 84, .14);
  min-height: 660px;
}
.auth-visual {
  position: relative; overflow: hidden; color: #fff; padding: 44px 48px;
  background:
    radial-gradient(120% 90% at 8% 10%, #6f7ffb 0%, rgba(111,127,251,0) 60%),
    linear-gradient(160deg, #5a6cf7 0%, #4457ee 55%, #3b4ce0 100%);
  display: flex; flex-direction: column;
}
.auth-visual .brand-row { display: flex; align-items: center; gap: 12px; position: relative; z-index: 3; }
.auth-visual .brand-name { font-weight: 800; letter-spacing: .14em; font-size: 13px; text-transform: uppercase; }
.auth-visual .hero { margin-top: auto; position: relative; z-index: 3; }
.auth-badge {
  display: inline-block; padding: 7px 16px; border: 1.5px solid rgba(196, 172, 255, .75);
  border-radius: 8px; font-size: 13px; font-weight: 600; letter-spacing: .01em;
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px);
}
.auth-headline { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; font-weight: 800; margin: 26px 0 20px; color: #fff; }
.auth-headline span { display: block; }
.auth-rule { width: 240px; max-width: 60%; height: 1px; background: rgba(255,255,255,.55); border: 0; }
.auth-visual .foot { position: relative; z-index: 3; margin-top: 30px; font-size: 12.5px; color: rgba(255,255,255,.82); }

/* Dekorasi visual panel kiri */
.deco { position: absolute; pointer-events: none; }
.deco-bar { top: -30px; left: 250px; width: 44px; height: 130px; border-radius: 0 0 22px 22px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(190, 214, 255, .55)); }
.deco-bar.two { left: auto; right: 96px; top: -20px; width: 30px; height: 92px; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(187, 209, 255, .35)); }
.deco-dots { display: grid; grid-template-columns: repeat(5, 8px); gap: 9px; }
.deco-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.85); display: block; }
.deco-dots.d1 { top: 96px; left: 330px; }
.deco-dots.d2 { bottom: 76px; left: 66px; }
.deco-ring { width: 54px; height: 54px; border-radius: 50%; border: 2px solid #fff; top: 118px; left: 300px; }
.deco-blob {
  border-radius: 50%; background: radial-gradient(circle at 32% 30%, #e8fbff 0%, #7ee7e8 45%, #2fbfd8 100%);
  filter: saturate(115%);
}
.deco-blob.b1 { width: 46px; height: 46px; bottom: 64px; left: 52px; }
.deco-blob.b2 { width: 300px; height: 300px; bottom: -150px; left: 50%; transform: translateX(-40%); opacity: .95; }
.deco-blob.b3 { width: 40px; height: 40px; bottom: 150px; right: 120px; }
.deco-arc { width: 420px; height: 420px; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; bottom: -260px; right: -120px; }
.deco-cross { font-size: 26px; color: #fff; opacity: .9; bottom: 150px; left: 150px; font-weight: 300; }
.deco-pill {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(150deg, #a9dcff 0%, #cfe9ff 40%, #fff 100%);
  box-shadow: 0 14px 30px rgba(20, 40, 120, .25);
}

.auth-arrow {
  position: absolute; top: 46%; right: -34px; z-index: 5; width: 68px; height: 68px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(145deg, #cfe4ff 0%, #9fc6ff 45%, #7fb0f8 100%);
  box-shadow: 0 12px 28px rgba(28, 38, 96, .22), 0 0 0 6px rgba(255,255,255,.55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.auth-arrow:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 34px rgba(28,38,96,.28), 0 0 0 6px rgba(255,255,255,.75); }
.auth-arrow svg { width: 26px; height: 26px; }

.auth-form-pane { padding: 54px 60px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; color: #3e5fe0; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 9px; color: var(--ink); }
.input, .select, textarea.input {
  width: 100%; height: 50px; padding: 0 22px; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: 14.5px; font-family: var(--font); color: var(--ink);
  background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { height: auto; min-height: 96px; padding: 14px 20px; border-radius: 18px; resize: vertical; }
.input::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(85, 102, 245, .13); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c7391' stroke-width='2.4'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 20px center; padding-right: 46px; }
.input-group { position: relative; }
.input-group .toggle-eye { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; line-height: 0; }
.remember { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); margin: 4px 0 20px; cursor: pointer; }
.remember input { appearance: none; width: 18px; height: 18px; border: 2px solid #cfd4e6; border-radius: 50%; cursor: pointer; position: relative; margin: 0; }
.remember input:checked { border-color: var(--brand-600); }
.remember input:checked::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand-600); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 14.5px; font-weight: 650; transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(96deg, #5b7cfa 0%, #3d53e8 100%); color: #fff; box-shadow: 0 10px 22px rgba(61, 83, 232, .28); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-block { width: 100%; height: 50px; font-size: 15px; }
.btn-ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--brand-300); color: var(--brand-700); }
.btn-soft { background: var(--brand-050); color: var(--brand-700); }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger-soft { background: var(--err-bg); color: #b91c1c; }
.btn-warn { background: var(--warn); color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 26px 0 18px; }
.divider::before, .divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.social-row { display: flex; gap: 18px; justify-content: center; }
.social-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; transition: border-color .15s ease, transform .15s ease;
}
.social-btn:hover { border-color: var(--brand-300); transform: translateY(-2px); }
.auth-foot-links { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.auth-foot-links .signup { text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-foot-links .signup a { font-weight: 700; }
.display-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px;
  border-radius: 999px; border: 1.5px dashed var(--brand-300); background: var(--brand-050);
  color: var(--brand-700); font-weight: 650; font-size: 14px; cursor: pointer;
}
.display-cta:hover { background: #e6ebff; }
.auth-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }

/* ============================== APP SHELL =========================== */
.app-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #3f52e6 0%, #33429f 60%, #2a3585 100%);
  color: #fff; padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.sidebar .brand-name { font-weight: 800; letter-spacing: .12em; font-size: 12.5px; text-transform: uppercase; }
.sidebar .brand-sub { font-size: 11px; color: rgba(255,255,255,.7); }
.side-scope {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
  padding: 11px 13px; margin-bottom: 14px; font-size: 12px; color: rgba(255,255,255,.9);
}
.side-scope b { display: block; font-size: 12.5px; color: #fff; margin-bottom: 2px; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .13em; color: rgba(255,255,255,.55); padding: 16px 12px 7px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10.5px 13px; border-radius: 12px; cursor: pointer;
  color: rgba(255,255,255,.9); font-size: 14px; font-weight: 500; border: 0; background: none; width: 100%; text-align: left;
  font-family: var(--font);
}
.nav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.2); color: #fff; font-weight: 650; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .95; }
.nav-item .pill { margin-left: auto; background: #ffd166; color: #6b4708; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 2px 8px; }
.sidebar .spacer { flex: 1; }
.side-user { border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px; display: flex; align-items: center; gap: 11px; font-size: 13px; }
.side-user .avatar { width: 36px; height: 36px; font-size: 13px; }
.side-user small { display: block; color: rgba(255,255,255,.72); font-size: 11.5px; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 16px 28px; background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 19px; font-weight: 750; }
.topbar .sub { font-size: 12.5px; color: var(--muted); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar .select { min-width: 210px; }
.content { padding: 26px 28px 60px; display: flex; flex-direction: column; gap: 22px; }

/* ================================ CARDS ============================= */
.card {
  background: rgba(255,255,255,.78); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 22px; min-width: 0;
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h3 { font-size: 16px; font-weight: 700; }
.card-head .sub { font-size: 12.5px; color: var(--muted); }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.stat { border-radius: var(--radius-lg); padding: 20px; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); position: relative; overflow: hidden; min-width: 0; }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.stat .hint { font-size: 12px; color: var(--muted-2); }
.stat.brand { background: linear-gradient(140deg, #5566f5, #3d53e8); color: #fff; border: 0; }
.stat.brand .label, .stat.brand .hint { color: rgba(255,255,255,.85); }
.stat .ico { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-050); }
.stat.brand .ico { background: rgba(255,255,255,.18); }

.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, #5566f5, #35c9dd);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; overflow: hidden; flex: 0 0 auto;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 84px; height: 84px; font-size: 28px; }
.avatar.xl { width: 132px; height: 132px; font-size: 44px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 650; background: var(--info-bg); color: var(--brand-700); white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: #08795a; }
.badge.warn { background: var(--warn-bg); color: #a15c05; }
.badge.err { background: var(--err-bg); color: #b91c1c; }
.badge.muted { background: #f1f2f7; color: var(--muted); }
.badge.mandays { background: #fde9c9; color: #8a5300; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ================================ TABLE ============================= */
.table-wrap { overflow: auto; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; max-height: 620px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  position: sticky; top: 0; background: #f7f8fd; text-align: left; padding: 12px 14px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700;
  border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1;
}
table.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tbl tr:hover td { background: #fafbff; }
table.tbl tr.total td { font-weight: 750; background: #f6f7fe; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl .who { display: flex; align-items: center; gap: 10px; }
table.tbl .who b { display: block; font-weight: 650; }
table.tbl .who small { color: var(--muted); }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; opacity: .45; margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { margin-left: auto; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ============================== FILTER BAR ========================== */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; align-items: end; }
.filters .field { margin: 0; }
.filters label { font-size: 12px; color: var(--muted); font-weight: 650; margin-bottom: 6px; }
.filters .input, .filters .select { height: 42px; font-size: 13.5px; padding-left: 16px; }

/* ============================== CHART =============================== */
.chart { width: 100%; height: 240px; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-item .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bar-track { height: 9px; border-radius: 999px; background: #eef0f8; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5566f5, #35c9dd); }
.bar-fill.mandays { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* ============================== MODAL =============================== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20, 26, 60, .48); backdrop-filter: blur(4px);
  display: grid; place-items: center; z-index: 100; padding: 20px;
}
.modal {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); width: min(620px, 100%);
  max-height: 92vh; overflow: auto; padding: 26px;
}
.modal.wide { width: min(880px, 100%); }
.modal h3 { font-size: 18px; font-weight: 750; margin-bottom: 6px; }
.modal .modal-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* =============================== TOAST ============================== */
.toast-wrap { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 13px 16px; min-width: 260px;
  border-left: 4px solid var(--brand-600); font-size: 13.5px; animation: toastIn .22s ease;
  display: flex; gap: 10px; align-items: flex-start;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--err); }
.toast.warn { border-left-color: var(--warn); }
.toast b { display: block; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================== FEEDBACK ============================ */
.feedback {
  border-radius: 18px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid transparent;
}
.feedback.ok { background: var(--ok-bg); border-color: #b6ecd6; color: #08674d; }
.feedback.warn { background: var(--warn-bg); border-color: #f6ddb0; color: #92520a; }
.feedback.err { background: var(--err-bg); border-color: #f7c9c9; color: #a11a1a; }
.feedback .title { font-weight: 750; font-size: 14.5px; }
.feedback .msg { font-size: 13px; margin-top: 2px; }

.alert { border-radius: 14px; padding: 13px 16px; font-size: 13.5px; }
.alert.info { background: var(--info-bg); color: var(--brand-700); }
.alert.warn { background: var(--warn-bg); color: #92520a; }
.alert.err { background: var(--err-bg); color: #a11a1a; }
.alert.ok { background: var(--ok-bg); color: #08674d; }

.kv { display: grid; grid-template-columns: 132px 1fr; gap: 9px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }

.dropzone {
  border: 2px dashed var(--line); border-radius: 18px; padding: 16px; display: flex; gap: 16px; align-items: center; background: #fbfcff;
}
.dropzone .preview { width: 76px; height: 76px; border-radius: 14px; background: #eef1ff; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.dropzone .preview img { width: 100%; height: 100%; object-fit: cover; }

.seg { display: inline-flex; background: #eef0f8; border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; max-width: 100%; }
.seg button { border: 0; background: none; padding: 8px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: var(--font); }
.seg button.active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); }

/* ============================ KIOSK DISPLAY ========================= */
.kiosk {
  min-height: 100vh; color: #fff; display: flex; flex-direction: column; padding: 26px 34px 30px; gap: 20px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(53, 201, 221, .35) 0%, rgba(53,201,221,0) 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(120, 130, 255, .4) 0%, rgba(120,130,255,0) 60%),
    linear-gradient(150deg, #2f3aa8 0%, #3d53e8 48%, #5566f5 100%);
  cursor: default;
}
.kiosk-top { display: flex; align-items: center; gap: 20px; }
.kiosk-brand { display: flex; align-items: center; gap: 14px; }
.kiosk-site { font-size: clamp(20px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.kiosk-addr { font-size: 13px; color: rgba(255,255,255,.78); }
.kiosk-clock { margin-left: auto; text-align: right; }
.kiosk-clock .time { font-size: clamp(30px, 4vw, 56px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.kiosk-clock .date { font-size: 14px; color: rgba(255,255,255,.82); margin-top: 4px; }
.kiosk-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; flex: 1; min-height: 0; }
.glass {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24); border-radius: 26px;
  backdrop-filter: blur(18px) saturate(160%); padding: 24px; color: #fff;
}
.glass h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .15em; color: rgba(255,255,255,.72); font-weight: 700; }
.visitor { display: flex; gap: 22px; align-items: center; margin-top: 14px; }
.visitor .avatar { box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
.visitor .name { font-size: clamp(24px, 2.6vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.visitor .meta { font-size: 15px; color: rgba(255,255,255,.88); margin-top: 6px; }
.kiosk-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.kiosk-metric { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 16px 18px; }
.kiosk-metric .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.75); font-weight: 700; }
.kiosk-metric .value { font-size: clamp(24px, 3vw, 40px); font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 6px; }
.kiosk-metric .hint { font-size: 12px; color: rgba(255,255,255,.7); }
.session-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  border-radius: 14px; padding: 10px 15px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  min-width: 120px;
}
.chip.active { background: rgba(255,255,255,.26); border-color: #fff; }
.chip .l { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.82); font-weight: 700; }
.chip .v { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.feed-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; overflow: auto; }
.feed-row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.1); border-radius: 14px; padding: 10px 13px; }
.feed-row .who { flex: 1; min-width: 0; }
.feed-row .who b { display: block; font-size: 14.5px; font-weight: 650; }
.feed-row .who small { color: rgba(255,255,255,.75); font-size: 12px; }
.feed-row .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.kiosk-overlay {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; text-align: center;
  animation: overlayIn .18s ease;
}
.kiosk-overlay.success { background: linear-gradient(150deg, rgba(6, 120, 90, .96), rgba(16, 185, 129, .94)); }
.kiosk-overlay.warn { background: linear-gradient(150deg, rgba(150, 84, 6, .96), rgba(245, 158, 11, .94)); }
.kiosk-overlay.error { background: linear-gradient(150deg, rgba(140, 20, 20, .96), rgba(239, 68, 68, .94)); }
.kiosk-overlay .big { font-size: clamp(40px, 6vw, 92px); font-weight: 900; letter-spacing: -.03em; }
.kiosk-overlay .who { font-size: clamp(26px, 3.6vw, 54px); font-weight: 800; margin-top: 6px; }
.kiosk-overlay .info { font-size: clamp(16px, 2vw, 26px); margin-top: 14px; color: rgba(255,255,255,.94); }
.kiosk-overlay .price { display: inline-block; margin-top: 22px; padding: 12px 30px; border-radius: 999px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.45); font-size: clamp(20px, 2.4vw, 34px); font-weight: 800; }
@keyframes overlayIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.scan-bar { display: flex; align-items: center; gap: 14px; }
.scan-bar .scan-input {
  flex: 1; height: 46px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.14); color: #fff; padding: 0 20px; font-size: 15px; outline: none;
}
.scan-bar .scan-input::placeholder { color: rgba(255,255,255,.7); }
.scan-bar .scan-input:focus { border-color: #fff; background: rgba(255,255,255,.22); }
.pin-screen { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(150deg, #2f3aa8, #5566f5); padding: 24px; }
.pin-card { background: #fff; border-radius: 26px; padding: 32px; width: min(460px, 100%); box-shadow: var(--shadow-lg); }
.pin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.pin-key { height: 58px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font-size: 20px; font-weight: 700; cursor: pointer; font-family: var(--font); }
.pin-key:hover { border-color: var(--brand-300); background: var(--brand-050); }
.pin-display { font-size: 34px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; color: var(--brand-700); font-weight: 800; min-height: 46px; }

/* ============================== PRINT ============================== */
.label-sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.label-card {
  border: 1px dashed #b9c0d8; border-radius: 14px; padding: 14px; display: flex; gap: 14px; align-items: center;
  break-inside: avoid; background: #fff;
}
.label-card .info { min-width: 0; flex: 1; }
.label-card .info .nm { font-weight: 800; font-size: 15px; }
.label-card .info .po { font-size: 12.5px; color: #555; }
.label-card .info .co { font-size: 12px; color: #777; }
.label-card .barcode { max-width: 100%; height: auto; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .label-sheet { grid-template-columns: repeat(2, 1fr); }
  .card { box-shadow: none; border: 0; }
}

/* ============================ RESPONSIVE =========================== */
@media (max-width: 1080px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kiosk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .auth-card { grid-template-columns: 1fr; min-height: auto; }
  .auth-visual { min-height: 320px; padding: 32px; }
  .auth-headline { font-size: 32px; margin: 18px 0 14px; }
  .deco-arc, .deco-blob.b2 { display: none; }
  .auth-arrow { right: 24px; top: auto; bottom: -30px; }
  .auth-form-pane { padding: 40px 28px 32px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 60; transform: translateX(-100%); transition: transform .22s ease; height: 100vh; overflow: auto; }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex !important; }
  .content { padding: 18px 16px 60px; }
  .topbar { padding: 13px 16px; }
  .topbar .right { width: 100%; }
  .topbar .right .select { min-width: 0; flex: 1 1 150px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .kiosk { padding: 18px; }
  .kiosk-metrics { grid-template-columns: 1fr 1fr; }
  .label-sheet { grid-template-columns: 1fr; }
}
.menu-btn { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(20,26,60,.4); z-index: 55; }
