/* Kampus Kita+ — PayNet Digital Campus palette and Montserrat, as used in the PDC 5.0 briefing. */
@font-face { font-family: 'Montserrat'; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url(../fonts/montserrat-latin-800-normal.woff2) format('woff2'); }

:root {
  --ink: #0E1A2B;
  --ink-2: #435066;
  --ink-3: #7B879B;
  --line: #E3E9F1;
  --line-2: #CFD8E4;
  --paper: #F4F7FA;
  --card: #FFFFFF;
  --blue: #258DCE;
  --blue-deep: #1A6FA8;
  --blue-wash: #E8F3FB;
  --sky: #29B6F6;
  --green: #00A547;
  --mint: #00D669;
  --mint-wash: #E3F9EC;
  --orange: #F4A019;
  --orange-wash: #FEF3DE;
  --yellow: #FFCA28;
  --red: #D93A3F;
  --red-wash: #FCE9EA;
  --grad: linear-gradient(120deg, #00D669 0%, #29B6F6 100%);
  --r-sheet: 28px; --r-card: 18px; --r-ctl: 12px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 8px 24px -12px rgba(14, 26, 43, .18);
  --nav-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 500;
  font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(26px, 5vw, 34px); }
h2 { font-size: 21px; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blue); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--ink-3); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.go { background: var(--green); border-color: var(--green); color: #fff; }
.btn.warn { color: var(--red); border-color: #F2C3C5; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; }
.stack.lg { gap: 20px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.field small { font-weight: 500; color: var(--ink-3); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; min-height: 48px; border: 1.5px solid var(--line-2); border-radius: var(--r-ctl); padding: 10px 14px;
  background: #fff; font-weight: 500; font-size: 16px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; padding: 10px 0; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green); flex: none; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.card.pad-lg { padding: 24px; }
.card.flat { box-shadow: none; }
.card h3 + p, .card h2 + p { margin-top: 6px; }
.section { margin-top: 28px; }
.section > .head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section > .head h2 { font-size: 19px; }
.list { display: grid; }
.item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .grow { flex: 1; min-width: 0; }
.item h3 { font-size: 15px; }
.item p { font-size: 13px; color: var(--ink-2); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px;
  font-weight: 700; background: var(--blue-wash); color: var(--blue-deep); white-space: nowrap;
}
.badge.ok { background: var(--mint-wash); color: #00783A; }
.badge.warn { background: var(--orange-wash); color: #9A5E00; }
.badge.bad { background: var(--red-wash); color: var(--red); }
.badge.grey { background: #EEF1F5; color: var(--ink-2); }
.badge .ic { width: 14px; height: 14px; }
.tile-icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; flex: none;
  background: var(--blue-wash); color: var(--blue-deep);
}
.tile-icon.mint { background: var(--mint-wash); color: #00783A; }
.tile-icon.orange { background: var(--orange-wash); color: #A86400; }
.empty { text-align: center; padding: 28px 12px; color: var(--ink-2); }
.empty .ic { width: 34px; height: 34px; color: var(--ink-3); margin-bottom: 8px; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--blue-wash); color: var(--blue-deep); font-size: 13px; font-weight: 600; }
.notice.warn { background: var(--orange-wash); color: #8A5400; }
.notice.bad { background: var(--red-wash); color: var(--red); }
.notice .ic { margin-top: 1px; }
.progress { height: 8px; background: #EAF0F6; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data td.r, table.data th.r { text-align: right; }
table.data tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.skeleton { border-radius: 14px; background: linear-gradient(90deg, #EAEFF5 0%, #F5F8FB 50%, #EAEFF5 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- app shell (student and merchant) */
.shell { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  padding-top: max(12px, env(safe-area-inset-top)); background: rgba(244, 247, 250, .88); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 10px; }
.brand span b { color: var(--green); }
.topbar .spacer { flex: 1; }
.pts-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 99px; background: #fff;
  border: 1px solid var(--line); font-weight: 800; font-size: 14px; color: var(--ink); text-decoration: none;
}
.pts-chip .ic { color: var(--orange); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
}
main.view { max-width: 640px; margin: 0 auto; padding: 8px 18px 0; }
main.view.wide { max-width: 1100px; }
.page-title { margin: 12px 0 18px; }
.page-title p { margin-top: 6px; color: var(--ink-2); max-width: 60ch; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); margin: 8px 0 4px; font-size: 14px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: #fff; border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700;
  color: var(--ink-3); text-decoration: none;
}
.tabbar a .ic { width: 22px; height: 22px; }
.tabbar a.on { color: var(--ink); }
.tabbar a.on .ic { color: var(--blue); }
.tabbar a.center .bubble {
  width: 58px; height: 58px; margin-top: -26px; display: grid; place-items: center; color: #fff; background: var(--ink);
  clip-path: path('M14 0 H36 Q42 0 46 5 L56 22 Q60 29 56 36 L46 53 Q42 58 36 58 H14 Q0 58 0 44 V14 Q0 0 14 0 Z');
  box-shadow: none;
}
.tabbar a.center .bubble .ic { width: 26px; height: 26px; margin-left: -4px; }
.tabbar a.center.on .bubble { background: var(--blue); }
.tabbar a.center.on .ic { color: #fff; }

@media (min-width: 1024px) {
  .shell { padding-bottom: 40px; padding-left: 248px; }
  .tabbar {
    top: 0; bottom: 0; right: auto; width: 248px; height: auto; grid-template-columns: 1fr; grid-auto-rows: 52px; align-content: start;
    padding: 84px 14px 14px; border-top: 0; border-right: 1px solid var(--line); gap: 2px;
  }
  .tabbar a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
  .tabbar a.on { background: var(--paper); }
  .tabbar a.center .bubble { width: auto; height: auto; margin: 0; background: none; clip-path: none; color: inherit; }
  .tabbar a.center .bubble .ic { width: 22px; height: 22px; margin: 0; color: var(--ink-3); }
  .tabbar a.center.on .bubble { background: none; }
  .tabbar a.center.on .bubble .ic { color: var(--blue); }
  .topbar { position: fixed; left: 0; right: 0; padding-left: 24px; }
  main.view { padding-top: 76px; }
  .topbar .brand { width: 224px; }
}

/* ---------------------------------------------------------------- the pass: student points card, the signature element */
.pass {
  position: relative; color: #fff; border-radius: var(--r-sheet); padding: 22px 22px 20px; overflow: hidden; isolation: isolate;
  background: var(--ink);
}
.pass::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad); }
.pass .chev { position: absolute; right: -70px; top: -30px; width: 250px; height: 250px; z-index: -1; opacity: .5; }
.pass .who { font-weight: 700; font-size: 14px; opacity: .92; }
.pass .balance { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 2px; }
.pass .balance strong { font-size: clamp(48px, 13vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pass .balance span { font-weight: 700; font-size: 16px; opacity: .9; }
.pass .level { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-top: 8px; }
.pass .level .progress { flex: 1; max-width: 180px; background: rgba(255, 255, 255, .35); height: 6px; }
.pass .level .progress > i { background: #fff; }
.pass .actions { display: flex; gap: 8px; margin-top: 18px; }
.pass .actions .btn { padding: 0 14px; font-size: 13px; }
.pass .btn { border-color: rgba(255, 255, 255, .9); background: #fff; color: var(--ink); }
.pass .btn.clear { background: rgba(14, 26, 43, .18); border-color: transparent; color: #fff; }
.pass .streak { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 99px; background: rgba(14, 26, 43, .22); font-weight: 800; font-size: 13px; }
.pass .streak .ic { color: var(--yellow); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.quick a {
  display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--ink); text-decoration: none; text-align: center;
}
.quick a .ic { width: 22px; height: 22px; color: var(--blue); }
.quick a:hover { border-color: var(--line-2); text-decoration: none; }

/* merchant cards */
.mcard { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mcard:hover { border-color: var(--line-2); text-decoration: none; }
.mcard .logo { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; flex: none; }
.mcard h3 { font-size: 15px; }
.mcard p { font-size: 13px; color: var(--ink-2); }
.mcard .offer { margin-top: 6px; font-size: 12px; font-weight: 700; color: #00783A; display: flex; gap: 5px; align-items: center; }
.mgrid { display: grid; gap: 10px; }
@media (min-width: 760px) { .mgrid { grid-template-columns: 1fr 1fr; } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips button { flex: none; height: 36px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* QR display */
.qr-stage { display: grid; justify-items: center; gap: 14px; text-align: center; }
.qr-frame { padding: 16px; border-radius: 24px; background: #fff; border: 1px solid var(--line); position: relative; }
.qr-frame canvas, .qr-frame img { display: block; width: min(64vw, 260px) !important; height: auto !important; image-rendering: pixelated; }
.qr-frame.dead::after { content: ''; position: absolute; inset: 0; border-radius: 24px; background: rgba(255, 255, 255, .86); }
.amount-big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.timer { font-weight: 800; font-size: 14px; color: var(--ink-2); }
.state-pill { display: inline-flex; gap: 8px; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; font-weight: 800; font-size: 13px; background: var(--orange-wash); color: #8A5400; }
.state-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.code-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--paper); padding: 6px 10px; border-radius: 8px; user-select: all; word-break: break-all; }

/* amount keypad */
.amount-input { text-align: center; font-size: 44px !important; font-weight: 800; letter-spacing: -0.03em; border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 64px !important; }

/* scanner */
.scanner { position: relative; border-radius: 24px; overflow: hidden; background: #0B1420; aspect-ratio: 1; max-width: 420px; margin: 0 auto; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 22px; box-shadow: 0 0 0 999px rgba(11, 20, 32, .45); }
.scanner .idle { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #cfd8e4; padding: 24px; }
.scanner .idle .ic { width: 44px; height: 44px; color: #fff; margin-bottom: 8px; }

/* leaderboard */
.lb-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
.lb-row .rank { font-weight: 800; color: var(--ink-3); text-align: center; }
.lb-row .bar { height: 10px; border-radius: 99px; background: #E9EEF4; overflow: hidden; margin-top: 6px; }
.lb-row .bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.lb-row.me .bar i { background: var(--grad); }
.lb-row.me .name { color: var(--blue-deep); }
.lb-row .name { font-weight: 700; font-size: 14px; }

/* missions */
.mission { display: flex; gap: 14px; align-items: center; }
.ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--mint) calc(var(--p) * 1%), #E9EEF4 0); }
.ring > span { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }

/* badges (achievements) */
.awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.award { text-align: center; padding: 14px 6px; border-radius: 16px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 12px; font-weight: 700; }
.award .ic { width: 26px; height: 26px; display: block; margin: 0 auto 6px; }
.award.got { border-style: solid; border-color: var(--line); background: #fff; color: var(--ink); }
.award.got .ic { color: var(--orange); }

/* vouchers */
.ticket { display: flex; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.ticket .stub { width: 92px; flex: none; display: grid; place-items: center; background: var(--orange-wash); color: #A86400; border-right: 2px dashed var(--line-2); }
.ticket .stub .ic { width: 30px; height: 30px; }
.ticket .body { padding: 14px 16px; flex: 1; min-width: 0; }
.ticket.used { opacity: .55; }

/* simple charts */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-top: 8px; }
.bars .b { flex: 1; display: grid; grid-template-rows: 1fr auto auto; gap: 6px; height: 100%; text-align: center; }
.bars .b .col { align-self: end; background: var(--blue); border-radius: 8px 8px 3px 3px; min-height: 3px; }
.bars .b.hi .col { background: var(--green); }
.bars .b small { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.bars .b .v { font-size: 11px; font-weight: 800; color: var(--ink-2); }

/* stat tiles */
.stats { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; }
.stat .k { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.stat .s { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }

/* steps (real sequences only) */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 10px 0; position: relative; }
.step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #EEF1F5; color: var(--ink-3); }
.step.done .n { background: var(--green); color: #fff; }
.step.now .n { background: var(--blue); color: #fff; }
.step h3 { font-size: 15px; } .step p { font-size: 13px; color: var(--ink-2); }

/* dialog / sheet */
dialog.sheet {
  border: 0; padding: 0; width: min(560px, 100vw); max-height: 92dvh; border-radius: var(--r-sheet); background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(14, 26, 43, .45);
}
dialog.sheet::backdrop { background: rgba(14, 26, 43, .5); backdrop-filter: blur(3px); }
@media (max-width: 640px) {
  dialog.sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding-bottom: var(--safe-b); }
}
dialog.sheet .sheet-body { padding: 26px 22px 22px; overflow-y: auto; max-height: 92dvh; }
dialog.sheet .close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; display: grid; place-items: center; }
dialog.sheet h2 { padding-right: 40px; margin-bottom: 8px; }
dialog[open].sheet { animation: rise .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); transform: translateX(-50%) translateY(20px); z-index: 100;
  max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--red); }
@media (min-width: 1024px) { .toast { bottom: 24px; } }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

/* ---------------------------------------------------------------- auth screens */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr; background: #fff; }
.auth .art { display: none; }
.auth .form-side { padding: 28px 22px 40px; max-width: 460px; width: 100%; margin: 0 auto; display: grid; align-content: center; gap: 22px; }
.auth h1 { font-size: 32px; }
.auth .lede { color: var(--ink-2); margin-top: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14, 26, 43, .12); }
.role-pick { display: grid; gap: 10px; }
.role-pick label { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 16px; cursor: pointer; }
.role-pick label:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); }
.role-pick input { accent-color: var(--blue); width: 20px; height: 20px; }
.demo-box { border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.demo-box .row .btn { flex: 1; }
@media (min-width: 960px) {
  .auth { grid-template-columns: 1.05fr 1fr; }
  .auth .art { display: flex; flex-direction: column; justify-content: space-between; padding: 44px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
  .auth .art h2 { font-size: 44px; line-height: 1.05; max-width: 12ch; letter-spacing: -0.035em; }
  .auth .art p { color: #B9C6D8; max-width: 40ch; margin-top: 14px; }
  .auth .art svg.chev { position: absolute; right: -120px; bottom: -80px; width: 560px; height: 560px; }
}

/* ---------------------------------------------------------------- MPP dashboard */
.mpp { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
.mpp .rail { background: var(--ink); color: #C9D4E3; padding: 18px 14px; position: sticky; top: 0; z-index: 25; }
.mpp .rail .brand { color: #fff; margin: 4px 8px 18px; }
.mpp .rail nav { display: grid; gap: 2px; }
.mpp .rail nav a { display: flex; gap: 12px; align-items: center; height: 42px; padding: 0 12px; border-radius: 10px; color: #C9D4E3; font-weight: 600; font-size: 14px; text-decoration: none; }
.mpp .rail nav a:hover { background: rgba(255, 255, 255, .06); }
.mpp .rail nav a.on { background: #fff; color: var(--ink); }
.mpp .rail nav a .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--orange); color: var(--ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.mpp .rail .who { margin-top: 18px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.mpp .rail .menu-toggle { display: none; }
.mpp main { padding: 26px clamp(16px, 3vw, 36px) 60px; max-width: 1240px; width: 100%; }
.mpp .page-title { margin-top: 0; }
.cols { display: grid; gap: 16px; }
@media (min-width: 980px) { .cols.two { grid-template-columns: 1fr 1fr; } .cols.main-side { grid-template-columns: 1.6fr 1fr; } }
@media (min-width: 980px) {
  .mpp { grid-template-columns: 252px 1fr; }
  .mpp .rail { height: 100dvh; display: flex; flex-direction: column; }
  .mpp .rail nav { flex: 1; overflow-y: auto; align-content: start; }
}
@media (max-width: 979px) {
  .mpp .rail { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; }
  .mpp .rail .brand { margin: 0; }
  .mpp .rail .menu-toggle { display: inline-flex; color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
  .mpp .rail nav, .mpp .rail .who { display: none; }
  .mpp .rail.open { flex-wrap: wrap; }
  .mpp .rail.open nav { display: grid; width: 100%; margin-top: 10px; }
  .mpp .rail.open .who { display: block; width: 100%; }
}
.kpi-table td:first-child { font-weight: 700; }
.qr-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--paper); }
.qr-large { width: 100%; max-width: 320px; border-radius: 14px; border: 1px solid var(--line); }

/* demo ribbon */
.demo-ribbon { position: fixed; z-index: 40; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); height: 30px; padding: 0 12px; border-radius: 99px; background: var(--orange); color: var(--ink); font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px; border: 0; cursor: pointer; }
@media (min-width: 1024px) { .demo-ribbon { bottom: 16px; } }
.mpp ~ .demo-ribbon, body.mpp-mode .demo-ribbon { bottom: 16px; }

/* print: merchant poster */
.poster { background: #fff; border-radius: 24px; border: 1px solid var(--line); padding: 32px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.poster h1 { font-size: 34px; }
.poster .qr-frame { border-width: 2px; }
@media print {
  body { background: #fff; }
  .topbar, .tabbar, .demo-ribbon, .no-print, .toast { display: none !important; }
  .shell { padding: 0 !important; }
  main.view { padding: 0 !important; max-width: none; }
  .poster { border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
.boot { min-height: 100dvh; display: grid; place-items: center; text-align: center; gap: 12px; color: var(--ink-2); }
.boot img { width: 64px; height: 64px; border-radius: 18px; }

.demo-ribbon.in-bar { position: static; height: 26px; padding: 0 9px; font-size: 11px; }
.check b { white-space: nowrap; }
.brand span { white-space: nowrap; }
@media (max-width: 440px) { .demo-ribbon.in-bar { padding: 0 7px; font-size: 0; gap: 0; } .demo-ribbon.in-bar .ic { font-size: 14px; } }
@media (min-width: 960px) { .auth .art svg.chev { right: -200px; bottom: -260px; width: 520px; height: 520px; opacity: .8; } }

.google-btn { min-height: 52px; font-size: 15px; border-color: var(--line-2); gap: 12px; }
.google-btn:hover { background: var(--paper); }
#email-box summary { cursor: pointer; font-weight: 700; color: var(--ink-2); font-size: 14px; list-style: none; text-align: center; padding: 6px; }
#email-box summary::-webkit-details-marker { display: none; }
#email-box[open] summary { color: var(--ink); }
dialog.sheet .sheet-body { overflow-x: hidden; } dialog.sheet .btn { max-width: 100%; }

/* ----------------------------------------------------------------
   UM visual integration · presentation only · November 2026
   Reference: um.edu.my — navy #192f59, green #3db166, white surfaces.
   No routes, component markup, application state or reward rules changed.
   ---------------------------------------------------------------- */
:root {
  --ink:#192f59; --ink-2:#4e5e72; --ink-3:#67758a;
  --paper:#f4f6f9; --line:#e1e6ee; --line-2:#cdd5e1;
  --blue:#192f59; --blue-deep:#112344; --blue-wash:#edf1f8;
  --sky:#3db166; --green:#268747; --mint:#3db166; --mint-wash:#edf7ef;
  --orange:#b77d23; --orange-wash:#fcf3e3; --yellow:#ebbd65;
  --grad:linear-gradient(110deg,#268747,#66bb73);
  --r-sheet:24px; --r-card:18px; --r-ctl:10px;
  --shadow:0 4px 24px -10px rgba(25,47,89,.18);
}
body { background:var(--paper); font-family:'Helvetica World',Helvetica,Arial,sans-serif; font-weight:400; font-size:15px; line-height:1.6; }
h1,h2,h3,h4,.brand,.balance,.stat .v { font-family:'Montserrat','Helvetica World',Helvetica,Arial,sans-serif; }
h1 { letter-spacing:-.035em; font-weight:700; }
h2 { font-weight:700; letter-spacing:-.025em; }
h3 { letter-spacing:-.015em; }
a { color:#236b3a; }
.btn { border-radius:10px; font-size:13px; min-height:46px; font-weight:700; letter-spacing:.005em; }
.btn.primary { background:#192f59; border-color:#192f59; box-shadow:0 4px 10px -6px #192f59; }
.btn.primary:hover { background:#263f6a; border-color:#263f6a; }
.btn.go { background:#268747; border-color:#268747; }
.btn.ghost { box-shadow:none; }
.btn:focus-visible,a:focus-visible,summary:focus-visible { outline:3px solid #b77d23; outline-offset:3px; }
input:not([type=checkbox]):not([type=radio]),select,textarea { border-color:#ced7e4; background:#fcfdff; }
input:focus,select:focus,textarea:focus { border-color:#268747; box-shadow:0 0 0 3px #e2f0e6; }
.card,.mcard,.stat,.ticket { box-shadow:var(--shadow); }
.card { padding:22px; }
.section { margin-top:30px; }
.section>.head { padding-bottom:10px; border-bottom:1px solid var(--line); }
.section>.head h2 { font-size:19px; }
.section>.head>a { font-size:12px; font-weight:700; }
.page-title { margin:20px 0 24px; }
.page-title h1 { max-width:26ch; }
.page-title p { margin-top:10px; line-height:1.7; }
.topbar { background:#fff; border-top:4px solid #192f59; border-bottom:1px solid #e1e6ee; min-height:76px; padding-top:12px; }
.brand { color:#192f59; font-size:18px; gap:12px; }
.brand img { width:39px; height:39px; border-radius:10px; box-shadow:0 2px 8px #192f5912; }
.brand span { display:block; position:relative; padding-bottom:13px; }
.brand span::after { content:'UNIVERSITI MALAYA'; position:absolute; bottom:0; left:0; font-family:Arial,sans-serif; font-size:8px; letter-spacing:1.65px; font-weight:700; color:#67758a; }
.brand span b { color:#b77d23; }
.pts-chip { background:#fcf3e3; border-color:#efdcba; color:#745015; border-radius:10px; }
.pts-chip .ic { color:#a77525; }
.avatar { background:#192f59; border:2px solid #e9c27b; }
.tabbar { box-shadow:0 -4px 25px #192f5908; }
.tabbar a { color:#68768a; font-size:11px; }
.tabbar a.on { color:#192f59; }
.tabbar a.on>.ic { color:#268747; }
.tabbar a.center .bubble { background:#192f59; clip-path:none; border-radius:18px; border:4px solid #fff; box-shadow:0 5px 18px #192f5930; }
.tabbar a.center.on .bubble { background:#268747; }
main.view { max-width:760px; padding:12px 20px 0; }
main.view.wide { max-width:1160px; }
.pass { padding:30px; border:1px solid #213f70; border-radius:22px; background:#192f59; box-shadow:0 16px 30px -18px #192f5980; }
.pass::before { background:linear-gradient(120deg,#192f59 0%,#203d6d 75%,#2a4c7d 100%); }
.pass::after { content:''; position:absolute; width:220px; height:220px; right:-55px; top:-60px; border:1px solid #ffffff24; border-radius:50%; box-shadow:0 0 0 34px #ffffff06,0 0 0 69px #ffffff04; pointer-events:none; z-index:-1; }
.pass .chev { opacity:.09; width:230px; right:-50px; top:45px; transform:rotate(-8deg); }
.pass .who { color:#e4c790; font-size:14px; letter-spacing:.015em; }
.pass .balance { margin:17px 0 15px; }
.pass .balance strong { font-size:64px; color:#fff; }
.pass .balance span { color:#ced9e9; font-size:14px; }
.pass .level { color:#f1e0be; gap:12px; flex-wrap:wrap; font-size:12px; }
.pass .level .progress { background:#ffffff26; height:7px; }
.pass .level .progress>i { background:linear-gradient(90deg,#e2b660,#f5dda8); }
.pass .actions { margin-top:24px; gap:12px; flex-wrap:wrap; }
.pass .actions .btn { border-radius:10px; min-height:44px; }
.pass .actions .btn:first-child { background:#edc579; border-color:#edc579; color:#192f59; }
.pass .btn.clear { border:1px solid #ffffff55; background:transparent; color:#fff; }
.pass .streak { background:#ffffff12; border:1px solid #ffffff26; color:#fff; font-size:12px; }
.quick { gap:12px; margin-top:18px; }
.quick a { padding:18px 5px; border-radius:14px; box-shadow:0 3px 15px #192f5905; gap:10px; transition:transform .16s,border-color .16s; }
.quick a:hover { transform:translateY(-3px); border-color:#8ab994; }
.quick a .ic { color:#268747; width:24px; height:24px; }
.quick a:nth-child(2) .ic { color:#a57529; }
.quick a:nth-child(3) .ic { color:#69589b; }
.quick a:nth-child(4) .ic { color:#192f59; }
.mcard { border-radius:14px; padding:18px; transition:transform .16s,border-color .16s; }
.mcard:hover { transform:translateY(-2px); border-color:#aebed2; }
.mcard .logo { border-radius:14px; box-shadow:inset 0 0 0 1px #ffffff30; }
.mcard .offer { color:#267940; }
.chips button { border-radius:8px; }
.chips button.on { background:#192f59; border-color:#192f59; }
.mission { padding:12px 0; }
.mission+.mission { border-top:1px solid #edf0f5; }
.mission h3 { margin-bottom:4px; }
.ring { width:58px; height:58px; background:conic-gradient(#b98c3f calc(var(--p)*1%),#f1eadf 0); box-shadow:0 0 0 5px #fcf9f2; margin:4px; }
.ring>span { width:46px; height:46px; color:#192f59; font-size:12px; }
.awards { gap:14px; }
.award { padding:25px 10px 18px; border:1px dashed #cdd4e0; border-radius:16px; background:#edf0f5; color:#657287; position:relative; line-height:1.4; }
.award .ic { width:36px; height:36px; margin-bottom:12px; stroke-width:1.5; }
.award.got { border-color:#ead6af; background:linear-gradient(150deg,#fffdf8,#fcf1db); box-shadow:0 5px 18px -12px #9c722f55; }
.award.got .ic { color:#a57829; filter:drop-shadow(0 3px 3px #c6a66b30); }
.ticket { border-radius:14px; }
.ticket .stub { background:#fcf3e3; color:#92651f; width:82px; border-right-color:#e4d1ad; }
.badge { border-radius:7px; font-size:11px; letter-spacing:.01em; }
.badge.ok { background:#eaf4ed; color:#226e38; }
.tile-icon { border-radius:12px; }
.notice { border-radius:10px; font-weight:500; line-height:1.65; }
.stat { padding:22px; border-top:3px solid #192f59; border-radius:12px; }
.stat:nth-child(2) { border-top-color:#3db166; }
.stat:nth-child(3) { border-top-color:#b98c3f; }
.stat:nth-child(4) { border-top-color:#8273ad; }
.stat .v { font-size:30px; margin:9px 0 4px; }
.stat .k { font-size:12px; }
.table-wrap { margin:0 -22px; padding:0 22px; }
table.data th { background:#f3f5f9; color:#4e5e72; font-size:11px; padding:13px 12px; letter-spacing:.035em; }
table.data td { padding:15px 12px; }
.bars .b .col { background:#274770; border-radius:5px 5px 0 0; }
.bars .b.hi .col { background:#3db166; }
.auth { background:#f8f9fb; }
.auth .form-side { max-width:500px; gap:24px; padding:40px 32px; }
.auth h1 { font-size:32px; line-height:1.22; color:#192f59; }
.auth .brand { margin-bottom:12px; }
.auth .art { background:#192f59; }
.auth .art .brand { color:#fff!important; }
.auth .art .brand span::after { color:#cad6e8; }
.auth .art h2 { color:#fff; line-height:1.15; font-weight:700; }
.auth .art svg.chev { opacity:.10; }
.auth .art::after { content:''; position:absolute; bottom:0; left:0; right:0; height:7px; background:linear-gradient(90deg,#3db166 0 34%,#edc579 34% 46%,#ffffff20 46%); }
.auth .google-btn { background:#fff; }
.demo-box { background:#fff; border:1px solid #dce3ed; border-radius:12px; }
.seg { border-radius:10px; }
.seg button { border-radius:7px; }
.mpp .rail { background:#192f59; border-top:5px solid #3db166; }
.mpp .rail .brand span::after { color:#bacbe3; }
.mpp .rail nav a { border-radius:8px; min-height:44px; }
.mpp .rail nav a.on { background:#fff; color:#192f59; box-shadow:inset 3px 0 #3db166; }
.mpp main { padding-top:34px; }
.mpp .page-title { border-bottom:1px solid #dce3ed; padding-bottom:22px; margin-bottom:24px; }
.mpp .rail .who { color:#d3ddeb; }
.qr-frame { border:2px solid #d8e2ef; box-shadow:0 6px 24px #192f5910; border-radius:18px; }
.scanner { border:1px solid #314e77; }
dialog.sheet { border-top:4px solid #3db166; border-radius:20px; }
dialog.sheet .sheet-body { padding:30px 24px; }
.demo-ribbon { background:#f4e6ca; color:#745015; border:1px solid #e9d1a7; box-shadow:none; }
@media(min-width:960px) {
  .auth .art { padding:48px; background:radial-gradient(ellipse at 110% 95%,#2d4b75 0,transparent 60%),#192f59; }
  .auth .art h2 { font-size:clamp(36px,3.7vw,58px); max-width:13ch; }
  .auth .art p { font-size:16px; line-height:1.85; }
}
@media(min-width:1024px) {
  .shell { padding-left:240px; }
  .topbar { padding-top:12px; padding-bottom:12px; z-index:35; }
  .topbar .brand { width:216px; }
  .tabbar { width:240px; padding:106px 18px 24px; background:#192f59; border:0; box-shadow:none; gap:9px; }
  .tabbar a { color:#d4deec; height:48px; border-radius:9px; }
  .tabbar a:hover { background:#ffffff0b; }
  .tabbar a.on { background:#fff; color:#192f59; box-shadow:inset 3px 0 #3db166; }
  .tabbar a .ic,.tabbar a.center .bubble .ic { color:#bacbe3; }
  .tabbar a.on .ic,.tabbar a.center.on .bubble .ic { color:#268747; }
  .tabbar a.center .bubble,.tabbar a.center.on .bubble { border:0; background:transparent; box-shadow:none; border-radius:0; }
  main.view { max-width:1040px; padding:106px 34px 30px; }
  main.view:has(>.pass) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:26px; align-items:start; }
  main.view>.pass,main.view>.quick,main.view>a.card,main.view:has(>.pass)>.section:last-child { grid-column:1/-1; }
  main.view:has(>.pass) .mgrid { grid-template-columns:1fr; }
  .pass { padding:34px 38px; }
  .pass .balance strong { font-size:72px; }
  .quick a { padding:22px 8px; }
}
@media(max-width:520px) {
  .topbar { gap:8px; padding-left:16px; padding-right:16px; }
  .topbar .brand { font-size:16px; gap:8px; }
  .brand img { width:33px; height:33px; }
  .brand span::after { font-size:7px; letter-spacing:1.2px; }
  .pts-chip { padding:0 9px; font-size:12px; height:34px; }
  main.view { padding:8px 16px 0; }
  .pass { padding:25px 22px; border-radius:18px; }
  .pass .balance strong { font-size:58px; }
  .pass .level { font-size:11px; gap:8px; }
  .pass .streak { top:13px; right:13px; }
  .quick { gap:8px; }
  .quick a { padding:15px 3px; font-size:10px; }
  .card { padding:18px; }
  .awards { gap:9px; }
  .award { padding:20px 7px 15px; font-size:11px; }
  .auth .form-side { padding:30px 22px; }
  .table-wrap { margin:0 -18px; padding:0 18px; }
  .mpp .rail { border-top-width:3px; }
}
@media(prefers-reduced-motion:reduce) { .quick a,.mcard { transition:none; } .quick a:hover,.mcard:hover { transform:none; } }
@media(max-width:360px) {
  .topbar { gap:6px; }
  .topbar .brand { font-size:14px; gap:6px; }
  .topbar .brand img { width:29px; height:29px; }
  .brand span::after { font-size:6px; letter-spacing:1px; }
  .pts-chip { padding:0 7px; gap:4px; }
  .avatar { width:32px; height:32px; }
}
@media(min-width:1024px) {
  main.view:has(>.pass):not(:has(>.quick))>.stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.mpp .rail .brand { font-size:16px; gap:9px; }
.mpp .rail .brand img { width:34px; height:34px; }

/* Arcade-inspired student presentation. Existing data and interactions only. */
body:has(.pts-chip) {
  --paper:#f3f7ff; --line:#d6e0f2; --blue:#193b80; --blue-deep:#192f59;
  --mint:#35b85a; --orange-wash:#fff3bb; --mint-wash:#e5f8e9;
  background-color:#f3f7ff;
  background-image:radial-gradient(#c5d2eb .9px,transparent .9px);
  background-size:18px 18px;
}
body:has(.pts-chip) .topbar { border-top:5px solid #192f59; background:#fff; border-bottom:2px solid #d6e0f2; }
body:has(.pts-chip) .brand span b { color:#af790b; }
body:has(.pts-chip) .pts-chip { background:#ffe365; color:#192f59; border:2px solid #192f59; box-shadow:2px 2px 0 #192f59; border-radius:9px; }
body:has(.pts-chip) .pts-chip .ic { color:#192f59; }
body:has(.pts-chip) .avatar { background:#193b80; border-color:#ffe365; }
body:has(.pts-chip) .pass { border:3px solid #192f59; border-radius:22px; padding:30px; box-shadow:6px 7px 0 #bdd0f0; }
body:has(.pts-chip) .pass::before {
  background-color:#192f59;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='540' height='340' viewBox='0 0 540 340'%3E%3Cg fill='none' stroke='%234577dc' stroke-width='3' opacity='.65'%3E%3Cpath d='M540 28H325q-18 0-18 18v49h100v49h-64v63h132v-57h65M540 310H281q-20 0-20-20v-43h-66v-71h65V94h-73V28H110M540 265H399v-24h-86M446 0v91h94M485 340v-89M351 340v-54'/%3E%3C/g%3E%3Cg fill='%23ffe365' opacity='.85'%3E%3Ccircle cx='283' cy='121' r='3'/%3E%3Ccircle cx='283' cy='141' r='3'/%3E%3Ccircle cx='283' cy='161' r='3'/%3E%3Ccircle cx='283' cy='181' r='3'/%3E%3Ccircle cx='359' cy='175' r='3'/%3E%3Ccircle cx='379' cy='175' r='3'/%3E%3Ccircle cx='399' cy='175' r='3'/%3E%3Ccircle cx='419' cy='175' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-position:right center; background-repeat:no-repeat; background-size:auto 100%;
}
body:has(.pts-chip) .pass::after { width:64px; height:64px; right:43px; top:100px; border:0; border-radius:50%; background:conic-gradient(from 38deg,#ffe365 0deg 282deg,transparent 282deg 360deg); box-shadow:none; transform:rotate(90deg); filter:drop-shadow(0 5px 0 #0a1b3a); }
body:has(.pts-chip) .pass .chev { display:none; }
body:has(.pts-chip) .pass .who { color:#ffe98d; font-weight:700; }
body:has(.pts-chip) .pass .balance strong { color:#fff; text-shadow:3px 4px 0 #0b1e42; font-variant-numeric:tabular-nums; letter-spacing:-.045em; }
body:has(.pts-chip) .pass .level { color:#fff; }
body:has(.pts-chip) .pass .level .progress { background:#0e2146; height:11px; border:2px solid #7393ca; border-radius:5px; max-width:210px; }
body:has(.pts-chip) .pass .level .progress>i { background:#ffe365; border-radius:2px; }
body:has(.pts-chip) .pass .actions .btn:first-child { background:#ffe365; border:2px solid #ffe365; color:#192f59; box-shadow:0 4px 0 #9b741d; }
body:has(.pts-chip) .pass .btn.clear { background:#213e72; border:2px solid #7d9bc9; }
body:has(.pts-chip) .pass .streak { background:#fff3bb; border:2px solid #ffe365; color:#192f59; border-radius:8px; }
body:has(.pts-chip) .pass .streak .ic { color:#ad6509; }
body:has(.pts-chip) .quick { gap:12px; margin-top:24px; }
body:has(.pts-chip) .quick a { border:2px solid #192f59; border-radius:14px; box-shadow:3px 4px 0 #c4d1eb; padding:20px 6px; color:#192f59; }
body:has(.pts-chip) .quick a:nth-child(1) { background:#e3f7e8; }
body:has(.pts-chip) .quick a:nth-child(2) { background:#fff3bb; }
body:has(.pts-chip) .quick a:nth-child(3) { background:#ece6ff; }
body:has(.pts-chip) .quick a:nth-child(4) { background:#dff2ff; }
body:has(.pts-chip) .quick a .ic { width:28px; height:28px; stroke-width:2; }
body:has(.pts-chip) .quick a:hover { transform:translateY(-2px); box-shadow:3px 6px 0 #aebfdf; }
body:has(.pts-chip) .card,body:has(.pts-chip) .mcard { border:2px solid #d0dbed; border-radius:16px; box-shadow:3px 4px 0 #e0e7f4; }
body:has(.pts-chip) main>a.card { border:2px solid #c6a93d; background:#fffbee; }
body:has(.pts-chip) .section>.head { border-bottom:2px dotted #b6c6e3; padding-bottom:14px; }
body:has(.pts-chip) .section>.head h2 { display:flex; align-items:center; gap:10px; }
body:has(.pts-chip) .section>.head h2::before { content:''; width:10px; height:10px; border-radius:3px; background:#ffe365; border:2px solid #192f59; flex:none; box-shadow:2px 2px 0 #d1def0; }
body:has(.pts-chip) .ring { background:conic-gradient(#efc92f calc(var(--p)*1%),#e5eaf4 0); box-shadow:0 0 0 3px #192f59; margin:5px; }
body:has(.pts-chip) .ring>span { color:#192f59; background:#fff; }
body:has(.pts-chip) .mission { padding:15px 0; gap:18px; }
body:has(.pts-chip) .mcard .logo { border:2px solid #192f5920; border-radius:12px; box-shadow:2px 3px 0 #e1e7f2; }
body:has(.pts-chip) .award { background:#e9eef7; border:2px dashed #aebbd3; color:#5d6d86; border-radius:14px; padding-top:25px; }
body:has(.pts-chip) .award.got { color:#192f59; background:#fff3bb; border:2px solid #b88b16; box-shadow:3px 4px 0 #ebddb1; }
body:has(.pts-chip) .award.got .ic { color:#8f6608; width:39px; height:39px; filter:none; }
body:has(.pts-chip) .btn.primary { background:#193b80; border:2px solid #192f59; box-shadow:0 3px 0 #0e2146; }
body:has(.pts-chip) .btn.go { background:#248e49; border:2px solid #166333; box-shadow:0 3px 0 #12522b; }
body:has(.pts-chip) .btn:active { transform:translateY(2px); box-shadow:none; }
body:has(.pts-chip) .ticket { border:2px solid #c3cfea; box-shadow:3px 4px 0 #e0e7f4; }
body:has(.pts-chip) .ticket .stub { background:#ffe365; color:#192f59; border-right:3px dotted #b99530; }
body:has(.pts-chip) .chips button.on { background:#ffe365; color:#192f59; border:2px solid #192f59; }
body:has(.pts-chip) .badge.ok { background:#e4f6e9; color:#1b6e36; border:1px solid #8ac899; }
body:has(.pts-chip) .qr-frame { border:2px solid #192f59; background:#fff; box-shadow:none; }
body:has(.pts-chip) .tabbar { border-top:2px solid #192f59; }
body:has(.pts-chip) .tabbar a.on { color:#192f59; }
body:has(.pts-chip) .tabbar a.on>.ic { color:#1d783e; }
body:has(.pts-chip) .tabbar a.center .bubble { background:#ffe365; color:#192f59; border:3px solid #192f59; box-shadow:3px 4px 0 #c7d3e9; }
body:has(.pts-chip) .tabbar a.center.on .ic { color:#192f59; }
@media(min-width:1024px) {
  body:has(.pts-chip) .tabbar { border-top:0; border-right:3px solid #3f61a0; background:#192f59; }
  body:has(.pts-chip) .tabbar::after { content:''; display:block; height:2px; margin:25px 12px; background:repeating-linear-gradient(90deg,#ffe365 0 5px,transparent 5px 17px); }
  body:has(.pts-chip) .tabbar a { border:2px solid transparent; color:#dce5f5; }
  body:has(.pts-chip) .tabbar a.on { border:2px solid #ffe365; background:#fff3bb; color:#192f59; box-shadow:3px 4px 0 #0d1f40; }
  body:has(.pts-chip) .tabbar a.center .bubble { background:none; border:0; box-shadow:none; }
  body:has(.pts-chip) .pass { padding:34px 38px; }
  body:has(.pts-chip) .pass::after { right:100px; top:120px; width:76px; height:76px; }
}
@media(max-width:520px) {
  body:has(.pts-chip) .pass { padding:25px 20px; }
  body:has(.pts-chip) .pass::before { background-position:150px center; opacity:.75; }
  body:has(.pts-chip) .pass::after { width:40px; height:40px; top:95px; right:25px; opacity:.75; }
  body:has(.pts-chip) .pass .level { padding-right:0; }
  body:has(.pts-chip) .pass .actions .btn { font-size:11px; padding:0 10px; }
  body:has(.pts-chip) .quick { gap:8px; }
  body:has(.pts-chip) .quick a { padding:15px 3px; font-size:10px; box-shadow:2px 3px 0 #c4d1eb; }
  body:has(.pts-chip) .quick a .ic { width:24px; height:24px; }
  body:has(.pts-chip) .section>.head h2 { font-size:17px; gap:8px; }
}
@media(prefers-reduced-motion:reduce) { body:has(.pts-chip) .quick a:hover,body:has(.pts-chip) .btn:active { transform:none; } }

/* Original demo shield: preserve the source logo's proportions and sharp edges. */
.brand img[src$="um-connect-shield.svg"] { width:31px; height:40px; border-radius:0; object-fit:contain; box-shadow:none; }
@media(max-width:600px) {
  .topbar .brand img[src$="um-connect-shield.svg"] { width:27px; height:35px; }
}

/* language switch */
.lang-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--line, #E3E8EF); gap: 2px; flex: none; }
.lang-toggle button { border: 0; background: transparent; font: 700 12px/1 Montserrat, system-ui, sans-serif; letter-spacing: .04em; color: #5B6B82; padding: 7px 10px; border-radius: 999px; cursor: pointer; min-height: 30px; }
.lang-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink, #0E1A2B); box-shadow: 0 1px 3px rgba(14,26,43,.18); }
.topbar .lang-toggle { margin-right: 10px; }
.lang-toggle.auth-lang { justify-self: end; }
.lang-toggle.on-dark { background: rgba(255,255,255,.12); }
.lang-toggle.on-dark button { color: #B9C6D8; }
.lang-toggle.on-dark button[aria-pressed="true"] { background: #fff; color: var(--ink, #0E1A2B); }
@media (max-width: 480px) {
  /* phones: one compact button that switches to the other language */
  .topbar .lang-toggle { padding: 0; background: transparent; margin-right: 6px; }
  .topbar .lang-toggle button[aria-pressed="true"] { display: none; }
  .topbar .lang-toggle button { border: 1.5px solid var(--line-2); padding: 6px 9px; min-height: 32px; color: var(--ink); }
}
@media (max-width: 420px) {
  .topbar { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .topbar .lang-toggle { margin-right: 0; }
  .topbar .avatar, .topbar .pts-chip { flex: none; }
  .topbar .brand { gap: 7px; font-size: 15px; }
  .topbar:has(.demo-ribbon) .brand span { display: none; }
}
@media (max-width: 370px) { .topbar .brand span { display: none; } }

/* maps */
.map-card { padding: 0; overflow: hidden; margin-top: 12px; }
.mmap { height: 340px; width: 100%; background: #E8EEF4; z-index: 0; }
.mmap.small { height: 200px; }
.mmap .empty { display: grid; place-items: center; height: 100%; color: var(--muted, #5B6B82); padding: 20px; text-align: center; }
.map-bar { padding: 10px 12px; gap: 10px; border-top: 1px solid var(--line); }
.pin-field .pin-map { height: 260px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #E8EEF4; z-index: 0; }
.pin-field .pin-bar { margin-top: 8px; gap: 10px; flex-wrap: wrap; }
.pin-field .bad-text { color: #D93A3F; }
.umc-pin { background: none; border: 0; }
.umc-pin-body { position: absolute; left: 2px; top: 0; width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--c, #00A547); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(14,26,43,.35);
  display: grid; place-items: center; color: #fff; font: 800 12px/1 Montserrat, system-ui, sans-serif; }
.umc-pin-body i { transform: rotate(45deg); font-style: normal; }
.umc-pin-body.dot i { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.umc-me { background: none; border: 0; }
.umc-me span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #258DCE; border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(37,141,206,.25), 0 2px 6px rgba(14,26,43,.3); }
.leaflet-container { font-family: Montserrat, system-ui, sans-serif; }
.leaflet-popup-content { margin: 12px 14px; }
.mpop b { font-size: 15px; color: var(--ink); }
.mpop p { margin: 4px 0 0; color: #5B6B82; font-size: 13px; }
.mpop .dist { color: #00783A; font-weight: 700; }
.mpop .row { margin-top: 10px; gap: 8px; flex-wrap: nowrap; }
.mpop .btn.primary { color: #fff; }
.mcard-wrap { position: relative; }
.mcard-wrap .mcard { padding-right: 60px; height: 100%; }
.mnav { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green, #00A547); color: #fff; box-shadow: 0 4px 10px rgba(0,165,71,.3); }
.mnav:hover { text-decoration: none; filter: brightness(1.05); }
.mcard .dist { display: flex; align-items: center; gap: 4px; color: #00783A; font-weight: 700; font-size: 12px; margin-top: 2px; }
.mcard .dist .ic { width: 13px; height: 13px; }

/* ===== Kampus Kita+ ===== */
.avatar.has-art { background: #fff; padding: 0; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line-2); }
.avatar.has-art svg, .avatar.has-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.kk-avatar { display: block; }

/* hub hero */
.kk-hero { position: relative; color: #fff; border-radius: var(--r-sheet); padding: 20px; overflow: hidden; isolation: isolate; margin-top: 8px;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; background: var(--ink); }
.kk-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad); }
.kk-hero .chev { position: absolute; right: -70px; top: -30px; width: 250px; height: 250px; z-index: -1; opacity: .45; }
.kk-hero-avatar { position: relative; display: block; width: 108px; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 8px 20px rgba(14,26,43,.18); align-self: start; }
.kk-hero-avatar svg { width: 108px; height: auto; }
.kk-edit { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.kk-edit .ic { width: 14px; height: 14px; }
.kk-hero .who { font-weight: 800; font-size: 18px; }
.kk-tag { font-weight: 700; font-size: 13px; opacity: .92; margin-top: 2px; }
.kk-hero .balance { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.kk-hero .balance strong { font-size: clamp(36px, 10vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.kk-hero .balance span { font-weight: 700; opacity: .9; }
.kk-hero .level { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; margin-top: 6px; flex-wrap: wrap; }
.kk-hero .level .progress { flex: 1; min-width: 60px; max-width: 140px; background: rgba(255,255,255,.35); height: 6px; }
.kk-hero .level .progress > i { background: #fff; }
.kk-hero .streak { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; height: 26px; padding: 0 10px; border-radius: 99px; background: rgba(14,26,43,.22); font-weight: 800; font-size: 12px; }
.kk-hero .streak .ic { color: var(--yellow); }
.kk-hero .actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.kk-hero .actions .btn { padding: 0 14px; font-size: 13px; border-color: rgba(255,255,255,.9); background: #fff; color: var(--ink); }
.kk-hero .actions .btn.clear { background: rgba(14,26,43,.18); border-color: transparent; color: #fff; }

.kk-pillars-title { margin: 20px 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kk-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .kk-pillars { grid-template-columns: repeat(3, 1fr); } }
.kk-pillar { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 132px; }
.kk-pillar:hover { border-color: var(--line-2); text-decoration: none; transform: translateY(-1px); }
.kk-pillar h3 { font-size: 15px; }
.kk-pillar p { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.kk-pillar.green .tile-icon { background: var(--mint-wash); color: #00783A; }
.kk-pillar.blue .tile-icon { background: var(--blue-wash); color: var(--blue-deep); }
.kk-pillar.orange .tile-icon { background: var(--orange-wash); color: #A86400; }
.kk-pillar.sky .tile-icon { background: #E3F6FD; color: #0C7BAE; }
.kk-pillar.mint .tile-icon { background: #E6FBF1; color: #00894B; }
.kk-pillar.yellow .tile-icon { background: #FFF6D6; color: #8A6A00; }

/* logos */
img.logo { object-fit: cover; background: #fff; border: 1px solid var(--line); }
.mcard img.logo { width: 52px; height: 52px; border-radius: 16px; flex: none; }
.logo.big, img.logo.big { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px; flex: none; }
.card .logo:not(.big), .loc-list .logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; object-fit: cover; }
.mcard .offer.idea { color: #8A6A00; }
.logo-preview { width: 72px; height: 72px; border-radius: 20px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--ink-3); background: var(--paper); }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* map pins (shared by Google Maps and the fallback map) */
.kk-pin-wrap { background: none; border: 0; }
.kk-pin { position: relative; display: block; width: 40px; height: 48px; }
.kk-pin-head { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg);
  background: var(--c, #00A547); padding: 3px; box-shadow: 0 4px 10px rgba(14,26,43,.35); }
.kk-pin-head > * { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transform: rotate(45deg); overflow: hidden; background: #fff;
  color: #fff; font: 800 12px/1 Montserrat, system-ui, sans-serif; object-fit: cover; }
.kk-pin-head > i { background: #fff; width: 12px; height: 12px; margin: 11px; }
.kk-me { display: block; width: 22px; height: 22px; }
.kk-me span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #258DCE; border: 4px solid #fff; box-shadow: 0 0 0 7px rgba(37,141,206,.25), 0 2px 6px rgba(14,26,43,.3); animation: kkpulse 2s infinite; }
@keyframes kkpulse { 50% { box-shadow: 0 0 0 12px rgba(37,141,206,.12), 0 2px 6px rgba(14,26,43,.3); } }
@media (prefers-reduced-motion: reduce) { .kk-me span { animation: none; } }
.mpop-logo { width: 36px; height: 36px; border-radius: 10px; float: right; margin-left: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; object-fit: cover; }
.gm-style .mpop { font-family: Montserrat, system-ui, sans-serif; max-width: 240px; }
.gm-style .mpop .btn { min-height: 34px; }

/* check in */
.loc-card { display: flex; gap: 12px; align-items: center; }
.loc-card.ok { border-color: #9BE3BC; background: #F1FCF6; }
.loc-card.ok .tile-icon { background: var(--mint-wash); color: #00783A; }
.loc-card.warn { border-color: #F7D48E; background: #FFFBF1; }
.loc-card.bad { border-color: #F3B2B2; background: #FFF6F6; }
.demo-teleport { margin-top: 12px; padding: 12px 14px; }
.card.focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.card.here { border-color: #9BE3BC; }
#clist .card h3 { font-size: 15px; }
.kk-celebrate { width: 120px; margin: 0 auto 8px; border-radius: 28px; overflow: hidden; animation: kkpop .5s ease-out; }
@keyframes kkpop { from { transform: scale(.6) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* me */
.me-card { display: flex; gap: 16px; align-items: center; }
.me-avatar { width: 120px; border-radius: 26px; overflow: hidden; flex: none; border: 1px solid var(--line); }
.me-avatar svg { width: 120px; height: auto; }
@media (max-width: 400px) { .me-card { flex-direction: column; text-align: center; } .me-card .row { justify-content: center; } }

/* avatar editor */
.av-editor { display: grid; gap: 14px; }
@media (min-width: 760px) { main.view:has(.av-editor) { max-width: 980px; } .av-editor { grid-template-columns: 320px 1fr; align-items: start; } .av-stage { position: sticky; top: 76px; } }
.av-stage { text-align: center; background: repeating-linear-gradient(45deg, #FFF7EA 0 14px, #FFF1DA 14px 28px); border-color: #F3DDB6; }
#av-prev { width: 200px; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: 0 10px 24px rgba(14,26,43,.14); border: 4px solid #fff; }
#av-prev svg { width: 100%; height: auto; }
.av-panel { display: grid; gap: 16px; }
.av-label { display: grid; gap: 8px; font-weight: 800; font-size: 14px; }
.av-opts { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.av-opts button { position: relative; flex: none; width: 72px; display: grid; justify-items: center; gap: 4px; padding: 6px 4px; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer; font: inherit; }
.av-opts button[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 3px var(--mint-wash); }
.av-opts .av-thumb { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: block; }
.av-opts .av-thumb svg { width: 56px; height: 56px; }
.av-opts .av-name { font-size: 11px; font-weight: 700; color: var(--ink-2); line-height: 1.15; text-align: center; }
.av-opts button[data-locked] .av-thumb { filter: grayscale(1); opacity: .45; }
.av-lock { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.av-lock .ic { width: 14px; height: 14px; }
input[type=range].av-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; border-radius: 99px; background: var(--track); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line-2); padding: 0; min-height: 0; }
.av-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: grab; }
.av-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); cursor: grab; }
.av-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.av-swatches button { width: 36px; height: 36px; border-radius: 12px; background: var(--sw); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line-2); cursor: pointer; }
.av-swatches button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink); }
.av-toggles button .ic { width: 16px; height: 16px; }

button.link { background:none; border:0; padding:0; color:inherit; font:inherit; font-weight:800; text-decoration:underline; cursor:pointer; }

/* ------------------------------------------------------------------ readability
   Font-size floor so text is comfortable on a phone: body 16px, supporting text 14px,
   small labels (badges, tab names, chart labels) never below 12-13px. Inputs stay at
   16px so iPhone Safari doesn't zoom in when a field is tapped. */
body { font-size: 16px; line-height: 1.55; }
input, select, textarea { font-size: 16px; }
.faint, .item p, .mcard p, .step p, .mpop p, .notice, .stat .k, .kk-pillar p,
.mpp .rail .who, .code-text { font-size: 14px; line-height: 1.5; }
.btn, .btn.small, .chips button, .state-pill, .pass .actions .btn, .kk-hero .actions .btn { font-size: 14px; }
.badge, .mcard .offer, .mcard .dist, .stat .s, .section>.head>a, .award, .ring>span,
.pass .level, .pass .streak, .kk-hero .level, .kk-tag, .lang-toggle button, .pts-chip { font-size: 13px; }
table.data th { font-size: 12.5px; }
.bars .b small, .bars .b .v, .demo-ribbon.in-bar { font-size: 12px; }
.tabbar a { font-size: 12px; }
.av-opts .av-name { font-size: 12.5px; }
.kk-pillars-title { font-size: 13px; }
@media (min-width: 1024px) { .tabbar a { font-size: 15px; } }
@media (max-width: 520px) {
  .pass .level, body:has(.pts-chip) .pass .level { font-size: 13px; }
  .quick a, body:has(.pts-chip) .quick a { font-size: 12.5px; line-height: 1.25; }
  .award { font-size: 12.5px; }
  .pass .actions .btn, body:has(.pts-chip) .pass .actions .btn { font-size: 13px; }
  .brand span::after { font-size: 7.5px; letter-spacing: 1.1px; }
}
@media (max-width: 360px) { .brand span::after { font-size: 7px; letter-spacing: .9px; } }

/* on/off switch (Me > Sound and vibration) */
.switch { position: relative; flex: none; width: 52px; height: 30px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #c3cee0; border: 2px solid var(--ink, #192f59); transition: background .15s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 1px 1px 0 rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: #248e49; }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid #ffe365; outline-offset: 2px; }

.spinner { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #d0dbed; border-top-color: #192f59; animation: kk-spin .8s linear infinite; flex: none; }
@keyframes kk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ---------- Here now: who's at each shop (zone-level, opt-in) ---------- */
.hn-stack { display: inline-flex; align-items: center; flex: none; }
.hn-face { display: inline-block; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(25,47,89,.18); background: #fff; flex: none; }
.hn-face svg { display: block; width: 100%; height: 100%; }
.hn-stack .hn-face + .hn-face { margin-left: -10px; }
.hn-more { margin-left: 4px; font: 800 13px/1 Montserrat, system-ui, sans-serif; color: var(--ink, #192f59); }
button.hn-zone { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.hn-zone .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hn-zone.you { border-color: #248e49; box-shadow: 0 0 0 2px rgba(36,142,73,.25); }
.hn-person { gap: 12px; align-items: center; flex-wrap: nowrap; }
.hn-person .grow { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hn-rules { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 15px; }
.hn-rules li { display: flex; gap: 8px; align-items: flex-start; }
.hn-rules svg { flex: none; width: 18px; height: 18px; color: #248e49; margin-top: 2px; }
.hn-invite { flex-wrap: nowrap; align-items: center; gap: 12px; }
.hn-invite .grow { flex: 1; min-width: 0; }
@media (max-width: 420px) { .hn-invite { flex-wrap: wrap; } .hn-invite .btn { width: 100%; } }
/* the bubble next to a shop pin on the map */
.kk-crowd-wrap { background: none; border: 0; }
.kk-crowd-anchor { position: relative; width: 0; height: 0; }
.kk-crowd { position: absolute; left: 10px; bottom: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 4px; border-radius: 999px;
  background: #fff; border: 2px solid var(--ink, #192f59); box-shadow: 2px 2px 0 rgba(25,47,89,.35); white-space: nowrap; cursor: pointer; }
.kk-crowd b { font: 800 13px/1 Montserrat, system-ui, sans-serif; color: var(--ink, #192f59); }
.kk-crowd.you { border-color: #248e49; }
.kk-crowd .hn-face { border-width: 1.5px; }
.kk-crowd .hn-stack .hn-face + .hn-face { margin-left: -8px; }

/* ---------- Terms of Use and Privacy Notice ---------- */
.terms { font-size: 15px; line-height: 1.55; color: var(--ink, #192f59); }
.terms .lede { margin: 0 0 12px; }
.terms section { margin-top: 16px; }
.terms h3 { margin: 0 0 6px; font-size: 16px; }
.terms p { margin: 6px 0; }
.terms ul { margin: 6px 0; padding-left: 20px; display: grid; gap: 5px; }
.terms-scroll { max-height: 60vh; overflow-y: auto; padding: 4px 14px 4px 2px; margin-top: 10px; -webkit-overflow-scrolling: touch; }
.terms-page { max-height: 48vh; border: 2px solid #d0dbed; border-radius: 14px; padding: 12px 16px; background: #fff; }
.terms-box { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #f4f7fc; border: 2px solid #d0dbed; }
.terms-box p { margin: 0; }
.terms-box .btn { justify-self: start; }
.terms-lang { display: inline-flex; gap: 6px; margin-top: 8px; }
.terms-lang button { border: 2px solid #d0dbed; background: #fff; color: var(--ink, #192f59); border-radius: 999px; padding: 6px 12px; font: 700 13px/1 Montserrat, system-ui, sans-serif; cursor: pointer; min-height: 34px; }
.terms-lang button.on { background: var(--ink, #192f59); color: #fff; border-color: var(--ink, #192f59); }

/* Delete my account / closing request */
.btn.danger-link { color: var(--red); font-size: .95em; }
.close-account h1 { margin-bottom: 12px; }
.close-account .close-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.close-account .close-reasons { border: 0; margin: 0; }
.close-account .close-reasons legend { padding: 0; }
.close-account .close-reasons legend h2 { margin: 0; }
.closure-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.closure-reasons .badge { white-space: normal; height: auto; min-height: 26px; }
