:root {
  --paper: #eef3fb;
  --card: #ffffff;
  --card2: #e8eef8;
  --ink: #0b1628;
  --ink2: #3d4f66;
  --ink3: #6b7c93;
  --line: #d5e0ef;
  --line2: #c0cde0;
  --red: #0B6EF6;
  --red-h: #0958d9;
  --on-red: #ffffff;
  --green: #0f9f6e;
  --green-bg: #d8f5ea;
  --amber: #b86e00;
  --amber-bg: #fdecc8;
  --err: #d92d20;
  --alert: #e5251b;
  --err-bg: #fde8e6;
  --info-bg: #e0ecfb;
  --side: #07111f;
  --side-ink: #e8f1ff;
  --shadow: 0 1px 0 rgba(11, 22, 40, .04), 0 10px 28px -12px rgba(11, 110, 246, .18);
  --r: 14px;
  --r-s: 9px;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #070d16;
  --card: #0d1522;
  --card2: #131d2c;
  --ink: #e8f1ff;
  --ink2: #9aadc4;
  --ink3: #6b8099;
  --line: #1c2a3d;
  --line2: #27374d;
  --red: #3d8bfd;
  --red-h: #5a9dff;
  --green: #3dd68c;
  --green-bg: #0f2a1c;
  --amber: #e2b052;
  --amber-bg: #2a220e;
  --err: #f19088;
  --alert: #ff4d4d;
  --err-bg: #3a1a17;
  --info-bg: #132238;
  --side: #050a12;
  --shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 12px 32px -14px rgba(11, 110, 246, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  font: 400 16px/1.55 var(--font); min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(11, 110, 246, .12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(56, 189, 248, .10), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(11, 110, 246, .06), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--paper));
  background-attachment: fixed;
}
:root[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(11, 110, 246, .18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(56, 189, 248, .12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(11, 110, 246, .08), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--paper));
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0; font-weight: 650; }
h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink2); }
.faint { color: var(--ink3); }
.small { font-size: .875rem; }
.xs { font-size: .8rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1.1rem; border-radius: var(--r-s); border: 1px solid var(--line2);
  background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--card2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--red); color: var(--on-red); border-color: var(--red); }
.btn-primary:hover { background: var(--red-h); }
.btn-ok { background: var(--green); color: #fff; border-color: var(--green); }
:root[data-theme="dark"] .btn-ok { color: #0a1a10; }
.btn-ok:hover { filter: brightness(1.08); background: var(--green); }
.btn-danger { color: var(--err); border-color: var(--err); background: transparent; }
.btn-danger:hover { background: var(--err-bg); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { min-height: 36px; padding: 0 .8rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: .35rem; margin-bottom: .95rem; }
.field > label, .lbl { font-size: .875rem; font-weight: 600; color: var(--ink2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: .6rem .8rem; border-radius: var(--r-s);
  border: 1px solid var(--line2); background: var(--card); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent); }
.field.has-err .input { border-color: var(--err); }
.err-t { color: var(--err); font-size: .82rem; min-height: 0; }
.hint { color: var(--ink3); font-size: .82rem; }
.pw { position: relative; }
.pw .input { padding-right: 4.2rem; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ink2); font-weight: 600; font-size: .82rem; padding: .4rem .55rem; cursor: pointer; border-radius: 6px; }
.grid2 { display: grid; gap: 0 .9rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

.alert { padding: .75rem .9rem; border-radius: var(--r-s); font-size: .92rem; border: 1px solid transparent; margin-bottom: 1rem; }
.alert.err { background: var(--err-bg); color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.alert.warn { background: var(--amber-bg); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.alert.ok { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.alert.info { background: var(--info-bg); color: var(--ink2); }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-hero {
  background: var(--side); color: var(--side-ink); padding: clamp(1.5rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; position: relative; overflow: hidden;
}
.auth-hero h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 14ch; font-weight: 700; }
.auth-hero p { color: #a9b8ad; max-width: 34ch; margin-top: 1rem; }
.qrart { width: min(360px, 74%); aspect-ratio: 1; align-self: flex-start; }
.qrart rect { fill: #e7eee8; }
.qrart .fx { fill: var(--red); }
.qrart rect.m { opacity: 0; animation: modin .5s ease forwards; }
@keyframes modin { from { opacity: 0; } to { opacity: .92; } }
.scanline { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); box-shadow: 0 0 18px var(--red); opacity: 0; animation: scan 2.4s .5s ease-in-out 1 both; pointer-events: none; }
@keyframes scan { 0% { opacity: 1; top: 12%; } 100% { opacity: 0; top: 78%; } }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.brand svg, .brand .brand-logo-img { width: 36px; height: 36px; flex: none; object-fit: contain; border-radius: 8px; }
.brand .brand-logo-img { display: block; }
.auth-main { display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); }
.auth-card { width: min(460px, 100%); }
.auth-card h2 { font-size: 1.6rem; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--card2); border: 1px solid var(--line); border-radius: 11px; margin: 1.1rem 0 1.4rem; }
.seg a, .seg button { text-align: center; padding: .55rem .5rem; border-radius: 8px; font-weight: 600; text-decoration: none; color: var(--ink2); border: 0; background: transparent; cursor: pointer; font-size: .95rem; white-space: nowrap; }
.seg .on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 1.1rem 1.25rem 1.4rem; gap: 1rem; }
  .auth-hero .qrart, .auth-hero p, .auth-hero h1, .auth-hero .tag, .scanline { display: none; }
}
.auth-hero .tag { font-size: .9rem; color: #a9b8ad; }

.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .6rem; height: 58px; padding: 0 .8rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.burger { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.burger:hover { background: var(--card2); }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; position: relative; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.top .brand { font-size: 1.1rem; }
.top .brand svg, .top .brand .brand-logo-img { width: 32px; height: 32px; }
.top .sp { flex: 1; }

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(8, 14, 10, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); background: var(--side); color: var(--side-ink);
  transform: translateX(-102%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; padding: 1rem .8rem;
  visibility: hidden;
}
.drawer.on { transform: none; visibility: visible; }
.drawer .brand { padding: .3rem .6rem 1rem; }
.drawer nav { display: grid; gap: 2px; overflow-y: auto; flex: 1; }
.drawer nav a { display: flex; align-items: center; gap: .75rem; padding: .7rem .75rem; border-radius: 10px; text-decoration: none; color: #b9c7bd; font-weight: 550; }
.drawer nav a svg { width: 20px; height: 20px; flex: none; opacity: .9; }
.drawer nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.drawer nav a.on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.drawer .sec { margin: .9rem .75rem .3rem; font-size: .78rem; color: #7f9086; }
.drawer .me { border-top: 1px solid rgba(255, 255, 255, .1); padding: .8rem .6rem 0; margin-top: .6rem; display: flex; gap: .7rem; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.drawer .me div { min-width: 0; }
.drawer .me b, .drawer .me span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer .me span { font-size: .8rem; color: #8aa0bc; }

.page { min-width: 0; max-width: 980px; margin: 0 auto; padding: 1.2rem 1rem 4rem; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: .4rem 0 1.2rem; flex-wrap: wrap; }
.page-h p { color: var(--ink2); margin-top: .25rem; }
.banner { padding: .65rem 1rem; text-align: center; font-size: .9rem; background: var(--amber-bg); color: var(--amber); border-bottom: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); }
.banner.info { background: var(--info-bg); color: var(--ink2); }

.card { background: linear-gradient(165deg, #ffffff 0%, #f5f9ff 100%); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; box-shadow: var(--shadow); }
:root[data-theme="dark"] .card { background: linear-gradient(165deg, var(--card), var(--card2)); }
.card { min-width: 0; }
.card + .card { margin-top: 1rem; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .8rem; flex-wrap: wrap; }
.cols { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.cols > .card + .card { margin-top: 0; }
.card + .cols, .stats + .cols, .cols + .card { margin-top: 1rem; }
@media (max-width: 760px) { .cols { grid-template-columns: minmax(0, 1fr); } .cols > .card + .card { margin-top: 0; } }

.receipt-wrap { filter: drop-shadow(0 10px 14px rgba(21, 32, 26, .16)); }
.receipt {
  background: var(--card); border: 0; padding: 1.3rem 1.3rem 2rem; position: relative;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
}
.receipt .tag { display: flex; justify-content: space-between; align-items: center; color: var(--ink2); font-size: .9rem; gap: .5rem; flex-wrap: wrap; }
.receipt .big { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 7vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; margin: .35rem 0 .2rem; }
.receipt .big small { font-size: .45em; font-weight: 600; color: var(--ink3); margin-right: .25rem; letter-spacing: 0; }
.receipt .dash { border-top: 2px dashed var(--line2); margin: 1rem 0 .9rem; }
.receipt .acts { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.kv div b { display: block; font-size: 1.05rem; font-weight: 650; }
.kv div span { font-size: .82rem; color: var(--ink2); }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr 1fr; } .kv div:last-child { grid-column: 1 / -1; } }

.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--ink3); font: 500 11px var(--font); }
.chart .b-in { fill: var(--green); }
.chart .b-out { fill: var(--alert); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 1rem; font-size: .85rem; color: var(--ink2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }

.list { display: grid; grid-template-columns: minmax(0, 1fr); }
.row { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--card2); }
.row .ic svg { width: 19px; height: 19px; }
.row .ic.in { background: var(--green-bg); color: var(--green); }
.row .ic.out { background: var(--err-bg); color: var(--err); }
.row .mid { flex: 1; min-width: 0; }
.row .mid b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .mid span { font-size: .82rem; color: var(--ink3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .end { text-align: right; flex: none; }
.row .end b { display: block; font-weight: 650; }
a.row { text-decoration: none; color: inherit; }
a.row:hover { background: var(--card2); }
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 99px; font-size: .75rem; font-weight: 650; background: var(--info-bg); color: var(--ink2); }
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.warn { background: var(--amber-bg); color: var(--amber); }
.badge.err { background: var(--err-bg); color: var(--err); }
.empty { text-align: center; padding: 2rem 1rem; color: var(--ink2); }
.empty b { display: block; color: var(--ink); margin-bottom: .2rem; font-family: var(--display); font-size: 1.05rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { padding: .55rem .9rem; border: 1px solid var(--line2); background: var(--card); border-radius: 99px; cursor: pointer; font-weight: 600; min-height: 42px; }
.chip:hover { background: var(--card2); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.methods { display: grid; gap: .6rem; }
.method { display: flex; gap: .8rem; align-items: center; padding: .8rem; border: 1px solid var(--line2); border-radius: var(--r-s); background: var(--card); cursor: pointer; text-align: left; width: 100%; }
.method.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.method .mid b { display: block; }
.method .mid span { font-size: .85rem; color: var(--ink3); }
.sum { display: grid; gap: .4rem; padding: .9rem 1rem; border-radius: var(--r-s); background: var(--card2); border: 1px dashed var(--line2); margin-bottom: 1rem; }
.sum div { display: flex; justify-content: space-between; gap: 1rem; }
.sum div:last-child { font-weight: 700; border-top: 1px solid var(--line2); padding-top: .45rem; margin-top: .1rem; }

.pay { max-width: 440px; margin: 0 auto; }
.pay .receipt { padding-bottom: 2.2rem; }
.qrbox { background: #fff; border-radius: 12px; padding: 10px; width: min(300px, 100%); margin: .9rem auto 0; border: 1px solid var(--line); }
.qrbox img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.pay .total { text-align: center; font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; }
.pay .meta { text-align: center; color: var(--ink2); font-size: .9rem; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.done { text-align: center; padding: 1rem 0; }
.done .ring { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto .8rem; display: grid; place-items: center; background: var(--green-bg); color: var(--green); }
.done .ring svg { width: 38px; height: 38px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done.bad .ring { background: var(--err-bg); color: var(--err); }

.tabs { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .3rem; margin-bottom: 1rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: .5rem .9rem; border-radius: 99px; border: 1px solid var(--line2); background: var(--card); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; cursor: pointer; color: var(--ink2); }
.tabs .on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: .8rem .9rem; }
.stat span { font-size: .82rem; color: var(--ink2); display: block; }
.stat b { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; display: block; margin-top: .15rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink3); font-size: .82rem; padding: .5rem .6rem; border-bottom: 1px solid var(--line2); }
.tbl td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; margin: 0 -.2rem; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: .8rem; margin-top: 1rem; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: var(--card2); padding: .15rem .4rem; border-radius: 5px; word-break: break-all; }
.copyline { display: flex; gap: .5rem; align-items: center; }
.copyline .code { flex: 1; padding: .7rem .8rem; }
.steps { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--ink2); font-size: .92rem; }
.steps li { margin: .3rem 0; }

dialog.dlg { border: 1px solid var(--line2); background: var(--card); color: var(--ink); border-radius: var(--r); padding: 1.2rem; width: min(440px, calc(100vw - 2rem)); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); }
dialog.dlg::backdrop { background: rgba(8, 14, 10, .55); }
dialog.dlg h3 { margin-bottom: .4rem; }
dialog.dlg .acts { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1rem; }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0)); transform: translateX(-50%); display: grid; gap: .5rem; width: min(420px, calc(100vw - 2rem)); pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: 10px; box-shadow: var(--shadow); font-size: .92rem; animation: tin .2s ease; pointer-events: auto; }
.toast.err { background: var(--err); color: #fff; }
:root[data-theme="dark"] .toast.err { color: #1a0a08; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

.skel { background: linear-gradient(90deg, var(--card2), var(--line), var(--card2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 8px; height: 1rem; }
@keyframes sk { to { background-position: -200% 0; } }
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.boot svg, .boot .boot-logo, .boot img {
  width: 64px; height: 64px; display: block; object-fit: contain; border-radius: 14px;
  animation: bootPulse 1.15s ease-in-out infinite;
  box-shadow: 0 10px 28px -14px rgba(11, 110, 246, .45);
}
@keyframes bootPulse { 0%, 100% { opacity: .7; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
@keyframes pulse { 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .qrart rect.m { opacity: .92; }
  .scanline { display: none; }
}

* { -webkit-tap-highlight-color: transparent; }
a, button, .btn, .drawer nav a, summary, [role="button"] { outline: none; -webkit-tap-highlight-color: transparent; }
a:focus, button:focus, .drawer nav a:focus { outline: none; box-shadow: none; }
a:focus-visible, button:focus-visible { outline: none; }
.drawer nav a:active { background: rgba(255, 255, 255, .06); color: #fff; }
.drawer nav a.on { background: rgba(255, 255, 255, .08); box-shadow: none; }
::selection { background: rgba(120, 140, 128, .35); }

.auth2 { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth2 .top { position: static; justify-content: flex-start; padding: 0 1rem; }
.auth2-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: clamp(1rem, 5vh, 3rem) 1rem 1.5rem; }
.auth2 .auth-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.5rem 1.35rem 1.4rem; }
.auth2 .auth-head h2 { font-size: 1.45rem; }
.auth2 .auth-head p { margin-top: .25rem; }
.auth2 .seg { margin: 1.1rem 0 1.2rem; }
.auth2-foot { margin-top: auto; padding-top: 1.4rem; text-align: center; }
@media (max-width: 480px) {
  .auth2-main { padding: 1rem .85rem 1.2rem; }
  .auth2 .auth-card { padding: 1.25rem 1.05rem 1.2rem; border-radius: 16px; }
}

.lg-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.lg-page .top { position: sticky; }
.lg-wrap { flex: 1; width: min(1080px, 100%); margin: 0 auto; padding: clamp(1rem, 4vw, 2.5rem) 1rem 2rem; }
.lg-in { max-width: 1080px; }
.lg-hero { max-width: 760px; margin: 0 auto 1.4rem; text-align: center; padding-top: .4rem; }
.lg-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); background: var(--card); border: 1px solid var(--line); padding: .3rem .75rem; border-radius: 99px; }
.lg-eyebrow svg { width: 15px; height: 15px; color: var(--red); }
.lg-hero h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); margin: .8rem 0 .5rem; letter-spacing: -.025em; }
.lg-lead { color: var(--ink2); font-size: 1.04rem; line-height: 1.65; }
.lg-meta { margin-top: .7rem; font-size: .86rem; color: var(--ink3); }
.lg-hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0 auto 1.6rem; max-width: 900px; }
.lg-hl > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .95rem 1rem; display: grid; gap: .25rem; box-shadow: var(--shadow); }
.lg-hl b { font-family: var(--display); font-size: 1rem; }
.lg-hl span { color: var(--ink2); font-size: .88rem; line-height: 1.5; }
.lg-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
.lg-toc { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.lg-det { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .5rem; }
.lg-det summary { cursor: pointer; font-weight: 650; padding: .2rem .6rem .5rem; list-style: none; }
.lg-det summary::-webkit-details-marker { display: none; }
.lg-tl { display: grid; gap: 1px; }
.lg-tl a { display: flex; gap: .6rem; align-items: baseline; padding: .38rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink2); font-size: .88rem; line-height: 1.35; }
.lg-tl a i { font-style: normal; font-size: .75rem; color: var(--ink3); min-width: 1.3em; font-variant-numeric: tabular-nums; }
.lg-tl a:hover { background: var(--card2); color: var(--ink); }
.lg-tl a.on { background: var(--card2); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--red); }
.lg-body { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.1rem, 3vw, 2.2rem); box-shadow: var(--shadow); min-width: 0; }
.lg-sec { scroll-margin-top: 76px; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.lg-sec:first-child { border-top: 0; padding-top: 0; }
.lg-sec h2 { display: flex; gap: .7rem; align-items: baseline; font-size: 1.2rem; margin-bottom: .6rem; line-height: 1.3; }
.lg-n { flex: none; min-width: 1.9rem; height: 1.9rem; display: inline-grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--card); font-size: .85rem; font-family: var(--font); font-weight: 650; transform: translateY(-1px); }
.lg-sec p, .lg-sec li { line-height: 1.7; color: var(--ink2); }
.lg-sec p { margin: .55rem 0; }
.lg-sec ul, .lg-sec ol { margin: .5rem 0 .6rem; padding-left: 1.3rem; display: grid; gap: .35rem; }
.lg-sec b { color: var(--ink); }
.lg-sec a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.lg-note { margin: .8rem 0; padding: .8rem 1rem; border-radius: var(--r-s); background: var(--amber-bg); color: var(--ink); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); line-height: 1.6; font-size: .94rem; }
.lg-tw { overflow-x: auto; margin: .8rem 0; border: 1px solid var(--line); border-radius: var(--r-s); }
.lg-tw table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; }
.lg-tw th, .lg-tw td { text-align: left; padding: .6rem .75rem; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; }
.lg-tw th { background: var(--card2); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.lg-tw tr:last-child td { border-bottom: 0; }
.lg-tw td[data-first] { font-weight: 600; color: var(--ink); white-space: nowrap; }
.lg-more { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lg-more span { color: var(--ink3); font-size: .9rem; }
.lg-more a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; border: 1px solid var(--line2); padding: .55rem .9rem; border-radius: 10px; background: var(--card); }
.lg-more a:hover { background: var(--card2); }
.lg-more svg { width: 16px; height: 16px; }
.lg-foot { border-top: 1px solid var(--line); padding: 1.4rem 1rem 1.8rem; display: grid; gap: .9rem; justify-items: center; text-align: center; color: var(--ink2); font-size: .9rem; }
.lg-foot > div { display: grid; gap: .15rem; }
.lg-foot > div b { color: var(--ink); font-family: var(--display); font-size: 1.05rem; }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; }
.lg-foot nav a { color: var(--ink2); text-underline-offset: 3px; }
.lg-foot nav a:hover { color: var(--ink); }
.lg-foot small { color: var(--ink3); }
@media (max-width: 899px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .lg-toc { position: static; max-height: none; }
  .lg-hl { grid-template-columns: minmax(0, 1fr); }
  .lg-hero { text-align: left; }
}
@media (max-width: 480px) {
  .lg-wrap { padding: .8rem .75rem 1.5rem; }
  .lg-body { border-radius: 16px; padding: 1rem .95rem; }
  .lg-sec h2 { font-size: 1.08rem; }
}
@media print { .top, .lg-toc, .lg-foot, .lg-more, .scrim, .drawer { display: none !important; } .lg-grid { display: block; } .lg-body { border: 0; box-shadow: none; padding: 0; } }

.agree { display: flex; gap: .6rem; align-items: flex-start; margin: .2rem 0 1rem; font-size: .88rem; color: var(--ink2); line-height: 1.45; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: .1rem 0 0; flex: none; accent-color: var(--red); cursor: pointer; }
.agree a { color: var(--ink); font-weight: 600; }
.auth2-links { display: inline-flex; gap: .4rem .9rem; flex-wrap: wrap; justify-content: center; margin-top: .35rem; }
.auth2-links a { color: var(--ink2); text-underline-offset: 3px; }
.auth2-links a:hover { color: var(--ink); }
.hint a { color: var(--ink2); }

.receipt.rc { --st: var(--green); --st-bg: var(--green-bg); padding: 0 1.3rem 2.4rem; }
.rc[data-st="bad"] { --st: var(--err); --st-bg: var(--err-bg); }
.rc[data-st="exp"] { --st: var(--amber); --st-bg: var(--amber-bg); }
.rc::before { content: ""; display: block; height: 6px; background: var(--st); margin: 0 -1.3rem 1.1rem; }
.rc-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.rc-brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: 1.05rem; }
.rc-brand svg, .rc-brand .brand-logo-img { width: 28px; height: 28px; color: var(--ink); --logo-hole: var(--card); object-fit: contain; border-radius: 6px; }
.rc-doc { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); text-align: right; }
.rc-hero { text-align: center; padding: 1.1rem 0 .3rem; }
.rc-ring { position: relative; width: 72px; height: 72px; border-radius: 50%; margin: 0 auto .8rem; display: grid; place-items: center; background: var(--st-bg); color: var(--st); }
.rc-ring svg { width: 36px; height: 36px; stroke-width: 2.2; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .15s ease forwards; }
.rc-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--st); opacity: 0; animation: rcpulse .9s .2s ease-out 1; }
@keyframes rcpulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
.rc-hero h2 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.01em; }
.rc-hero p { color: var(--ink2); font-size: .9rem; margin: .25rem auto 0; max-width: 32ch; }
.rc-amt { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 9vw, 2.6rem); letter-spacing: -.03em; margin-top: .8rem; line-height: 1.1; color: var(--st); }
.rc[data-strike="1"] .rc-amt { color: var(--ink3); text-decoration: line-through; text-decoration-thickness: 2px; }
.rc-note { color: var(--ink2); font-size: .85rem; font-weight: 600; margin-top: .25rem; }
.rc-date { color: var(--ink3); font-size: .85rem; margin-top: .3rem; }
.rc-stamp { position: absolute; top: 3.6rem; right: .8rem; transform: rotate(-12deg); border: 3px double var(--st); color: var(--st); border-radius: 6px; padding: .12rem .5rem; font-weight: 800; font-size: .74rem; letter-spacing: .14em; opacity: .9; pointer-events: none; animation: rcstamp .5s .35s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes rcstamp { from { transform: rotate(-20deg) scale(2.4); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: .9; } }
.rc-h { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); margin-bottom: .4rem; font-family: var(--font); }
.rc-rows { display: grid; margin: 0 0 .4rem; }
.rc-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .3rem 0; }
.rc-rows dt { color: var(--ink2); font-size: .9rem; flex: none; }
.rc-rows dd { margin: 0; text-align: right; font-weight: 600; font-size: .92rem; min-width: 0; overflow-wrap: anywhere; display: inline-flex; align-items: center; justify-content: flex-end; gap: .3rem; }
.rc-rows dd.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; font-weight: 550; }
.rc-rows dd.ok { color: var(--green); }
.rc-rows .st { border-top: 1px dashed var(--line2); margin-top: .25rem; padding-top: .5rem; }
.rc-rows .st dt, .rc-rows .st dd { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.rc-rows .st dd.ok { color: var(--green); }
.rc-cp { all: unset; box-sizing: border-box; cursor: pointer; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: var(--ink3); flex: none; }
.rc-cp:hover { background: var(--card2); color: var(--ink); }
.rc-cp:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.rc-cp svg { width: 14px; height: 14px; }
.rc-tl { list-style: none; margin: .2rem 0 .3rem; padding: 0; }
.rc-tl li { position: relative; display: flex; gap: .8rem; padding-bottom: 1rem; }
.rc-tl li:last-child { padding-bottom: 0; }
.rc-tl li::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: -3px; width: 2px; background: var(--line2); }
.rc-tl li:last-child::before { display: none; }
.rc-tl li i { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: .2rem; position: relative; background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.rc-tl li.bad i { background: var(--st); box-shadow: 0 0 0 3px var(--st-bg); }
.rc-tl li.neutral i { background: var(--ink3); box-shadow: 0 0 0 3px var(--info-bg); }
.rc-tl li.wait i { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }
.rc-tl li.ghost i { background: var(--line2); box-shadow: none; }
.rc-tl li.ghost b { color: var(--ink3); font-weight: 550; }
.rc-tl b { display: block; font-size: .92rem; }
.rc-tl time { display: block; font-size: .82rem; color: var(--ink2); }
.rc-tl span { display: block; font-size: .8rem; color: var(--ink3); }
.rc-bar { color: var(--ink); text-align: center; }
.rc-bar svg { width: 100%; height: 42px; display: block; fill: currentColor; opacity: .85; }
.rc-bar code { display: block; margin-top: .45rem; font-size: .72rem; letter-spacing: .1em; color: var(--ink3); overflow-wrap: anywhere; }
.rc-foot { text-align: center; font-size: .72rem; line-height: 1.5; color: var(--ink3); margin: .8rem .4rem 0; }
.rc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.rc-acts .btn { width: 100%; white-space: nowrap; padding: 0 .6rem; }
.rc-acts .rc-back { grid-column: 1 / -1; }
@media (max-width: 440px) { .rc-stamp { font-size: .62rem; letter-spacing: .1em; border-width: 2px; right: .4rem; } }
@media (prefers-reduced-motion: reduce) {
  .rc-stamp, .rc-ring svg, .rc-ring::after { animation: none !important; }
  .rc-ring svg { stroke-dashoffset: 0; }
  .rc-stamp { transform: rotate(-12deg); }
}
@media print { .rc-acts { display: none !important; } }

.drawer { width: min(236px, 78vw); padding: .85rem .6rem; font-size: .9rem; }
.drawer .brand { padding: .2rem .55rem .8rem; font-size: .95rem; }
.drawer .brand svg, .drawer .brand .brand-logo-img { width: 30px; height: 30px; }
.drawer nav { gap: 1px; align-content: start; }
.drawer nav a { gap: .6rem; padding: .5rem .65rem; border-radius: 8px; font-size: .88rem; font-weight: 500; line-height: 1.3; }
.drawer nav a svg { width: 17px; height: 17px; }
.drawer .sec { margin: .75rem .65rem .25rem; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.drawer .me { padding: .65rem .5rem 0; margin-top: .45rem; gap: .55rem; }
.drawer .me b { font-size: .85rem; }
.drawer .me span { font-size: .74rem; }
.drawer .me .avatar { width: 32px; height: 32px; font-size: .82rem; }

.drawer { width: min(260px, 80vw); font-size: .94rem; }
.drawer nav a { padding: .6rem .75rem; font-size: .93rem; gap: .65rem; }
.drawer nav a svg { width: 18px; height: 18px; }
.drawer .sec { font-size: .68rem; margin-top: .95rem; }
.drawer .sec + a { margin-top: 1px; }

.receipt .acts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.receipt .acts .btn { width: 100%; justify-content: center; white-space: nowrap; }

.is-leaving #view, .is-leaving .top { transition: opacity .6s ease, transform .6s ease, filter .6s ease; opacity: .25; transform: translateY(6px) scale(.992); filter: blur(2px); }
.bye { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: rgba(8, 14, 10, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: byeIn .35s ease both; }
.bye.out { opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.bye-card { width: min(320px, 100%); text-align: center; background: var(--card); color: var(--ink); border: 1px solid var(--line2); border-radius: 18px; padding: 1.7rem 1.4rem 1.5rem; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .6); animation: byeCard .5s cubic-bezier(.2, .9, .25, 1.1) both; }
.bye-ring { width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 35%, transparent); animation: byePulse 1.6s ease-out infinite; }
.bye-ring svg { width: 28px; height: 28px; }
.bye-ring path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: byeDraw .8s .25s ease forwards; }
.bye-card h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
.bye-card p { margin: 0; color: var(--ink2); font-size: .88rem; }
.bye-bar { height: 4px; border-radius: 99px; background: var(--line); margin-top: 1.2rem; overflow: hidden; }
.bye-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--red); transform-origin: left; animation: byeBar 1.5s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes byeIn { from { opacity: 0; } }
@keyframes byeCard { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes byeDraw { to { stroke-dashoffset: 0; } }
@keyframes byeBar { from { transform: scaleX(0); } }
@keyframes byePulse { 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .bye, .bye-card, .bye-ring, .bye-ring path, .bye-bar i { animation-duration: .01s !important; animation-delay: 0s !important; } .is-leaving #view, .is-leaving .top { transition: none; } }

#kp-bar { position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
#kp-bar.on { opacity: 1; }
#kp-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 55%, #7ec8ff)); transform-origin: left; transform: scaleX(0); transition: transform .3s ease-out; box-shadow: 0 0 10px color-mix(in srgb, var(--red) 60%, transparent); border-radius: 0 3px 3px 0; }
#view > .page:not(.is-loading) { animation: pageIn .42s cubic-bezier(.2, .8, .2, 1) both; }
#view > .page:not(.is-loading) > * { animation: itemIn .45s cubic-bezier(.2, .8, .2, 1) both; }
#view > .page:not(.is-loading) > *:nth-child(2) { animation-delay: .04s; }
#view > .page:not(.is-loading) > *:nth-child(3) { animation-delay: .08s; }
#view > .page:not(.is-loading) > *:nth-child(4) { animation-delay: .12s; }
#view > .page:not(.is-loading) > *:nth-child(n+5) { animation-delay: .16s; }
.page.is-loading { animation: none; }
@keyframes pageIn { from { opacity: 0; } }
@keyframes itemIn { from { opacity: 0; transform: translateY(10px); } }

.fx { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 1rem; background: rgba(8, 14, 10, .6); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); animation: byeIn .25s ease both; cursor: pointer; --c: var(--green); --cb: var(--green-bg); }
.fx.out { opacity: 0; transition: opacity .24s ease; pointer-events: none; }
.fx-bad { --c: var(--err); --cb: var(--err-bg); }
.fx-wait { --c: var(--amber); --cb: var(--amber-bg); }
.fx-card { width: min(310px, 100%); text-align: center; background: var(--card); color: var(--ink); border: 1px solid var(--line2); border-radius: 20px; padding: 1.8rem 1.4rem 1.5rem; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .65); animation: byeCard .5s cubic-bezier(.2, .9, .25, 1.15) both; }
.fx-ring { position: relative; width: 78px; height: 78px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: var(--cb); }
.fx-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: rcpulse .9s .25s ease-out 1; }
.fx-ring svg { width: 40px; height: 40px; }
.fx-ring path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: byeDraw .6s .2s ease forwards; }
.fx-bad .fx-ring { animation: fxShake .5s .55s ease; }
.fx-wait .fx-ring svg { animation: spin 2.4s linear infinite; }
.fx-wait .fx-ring path { stroke-dashoffset: 0; animation: none; }
.fx-p { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--c); opacity: 0; transform: rotate(var(--a)) translateY(0); animation: fxBurst .8s .35s ease-out forwards; }
.fx-p:nth-child(3n) { background: var(--red); width: 5px; height: 5px; }
.fx-p:nth-child(3n+1) { background: var(--amber); }
@keyframes fxBurst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.4); } }
@keyframes fxShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.fx-card h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.fx-card p { color: var(--ink2); font-size: .9rem; }

.ibtn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; flex: none; color: var(--ink2); border: 1px solid var(--line2); background: var(--card); transition: background .15s, color .15s, border-color .15s; }
.ibtn:hover { background: var(--card2); color: var(--ink); }
.ibtn svg { width: 18px; height: 18px; }
.ibtn.copied { color: var(--green); border-color: var(--green); background: var(--green-bg); }

.dev { max-width: 720px; }
.dev-key { position: relative; overflow: hidden; }
.dev-key.on::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--green) 20%, transparent), transparent); pointer-events: none; }
.dev-key-h { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.dev-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 650; padding: .25rem .7rem; border-radius: 99px; }
.dev-pill b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dev-pill.on { color: var(--green); background: var(--green-bg); }
.dev-pill.on b { animation: pulse 1.8s infinite; }
.dev-pill.off { color: var(--amber); background: var(--amber-bg); }
.dev-keybox { display: flex; align-items: flex-start; gap: .65rem; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: .35rem .35rem .35rem .75rem; min-width: 0; }
.dev-keybox code { flex: 1; min-width: 0; align-self: center; font: 500 .84rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .01em; overflow-wrap: anywhere; padding: .45rem 0; user-select: all; }
.dev-ic { color: var(--green); background: var(--green-bg); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; margin: .05rem 0; }
.dev-ic svg { width: 19px; height: 19px; }
.dev-keybox .ibtn { flex: none; }
.dev-eps { display: grid; gap: .5rem; }
.dev-ep { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15rem .7rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 11px; background: var(--card2); }
.dev-ep code { font: 600 .84rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.dev-ep small { grid-column: 2; color: var(--ink3); font-size: .8rem; }
.mth { font: 700 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: .3rem .42rem; border-radius: 6px; letter-spacing: .04em; }
.mth.post { background: var(--green-bg); color: var(--green); }
.mth.get { background: #dde9f5; color: #1d5fa8; }
:root[data-theme="dark"] .mth.get { background: #16283b; color: #8cb8ee; }
.dev-code { background: #101a14; border-radius: 12px; overflow: hidden; border: 1px solid #ffffff14; }
.dev-code-h { display: flex; align-items: center; gap: .25rem; padding: .35rem .4rem .35rem .5rem; border-bottom: 1px solid #ffffff14; overflow-x: auto; scrollbar-width: none; }
.dev-code-h::-webkit-scrollbar { display: none; }
.dev-code-h .sp { flex: 1; }
.dev-code .ibtn { background: #ffffff0d; border-color: transparent; color: #dfe9e1; width: 32px; height: 32px; }
.dev-code .ibtn:hover { background: #ffffff1c; }
.dev-code .ibtn.copied { color: #8fd3a9; background: #ffffff14; }
.dtab { all: unset; cursor: pointer; padding: .32rem .65rem; border-radius: 7px; font-size: .8rem; color: #7f9385; white-space: nowrap; }
.dtab.on { background: #ffffff1c; color: #fff; }
pre.hl { margin: 0; padding: .9rem 1rem; overflow-x: auto; color: #dfe9e1; font: 400 .8rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
.t-k { color: #c4a7ff; } .t-s { color: #f3c97a; } .t-n { color: #9ec5f5; } .t-c { color: #7f9385; font-style: italic; }
.t-f { color: #8fd3a9; } .t-p { color: #7fd1e8; } .t-v { color: #ffa27a; } .t-o { color: #ff8fa3; } .t-u { color: #8cb8ee; }

.vf-line { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; }
.vf-line span { overflow-wrap: anywhere; }
.vf { width: 19px; height: 19px; flex: none; filter: drop-shadow(0 1px 2px rgba(29, 155, 240, .35)); animation: vfPop .5s .15s cubic-bezier(.2, .9, .3, 1.4) both; }
@keyframes vfPop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }

.lockf { position: relative; }
.lockf .input { padding-right: 2.6rem; }
.input:disabled { background: var(--card2); color: var(--ink2); -webkit-text-fill-color: var(--ink2); opacity: 1; cursor: not-allowed; border-style: dashed; }
.lockf svg { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink3); pointer-events: none; }

.sup-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--c); display: grid; place-items: center; flex: none; font-style: normal; }
.sup-ic svg { width: 17px !important; height: 17px !important; fill: #fff; stroke: none; opacity: 1 !important; }
.drawer nav a.sup-link { padding: .5rem .75rem; gap: .7rem; }
.sup-link span b, .sup-link span small { display: block; line-height: 1.25; }
.sup-link span b { font-weight: 600; font-size: .94rem; }
.sup-link span small { font-size: .78rem; color: #8ea096; font-weight: 450; }
.sup-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.sup-h { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
@media (max-width: 640px) { .sup-grid { grid-template-columns: 1fr; } }

.closed-card { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: var(--r); background: var(--err-bg); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); }
.closed-card b { display: block; font-size: 1.02rem; }
.closed-card p { margin: .15rem 0 0; font-size: .92rem; color: var(--ink2); }
.closed-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--err) 14%, transparent); flex: none; }
.closed-ic svg { width: 22px; height: 22px; }

dialog.status-dlg { text-align: center; padding: 1.6rem 1.4rem 1.2rem; width: min(340px, calc(100vw - 2rem)); }
dialog.status-dlg[open] { animation: sdPop .3s cubic-bezier(.2, .9, .25, 1.15); }
.sd-ring { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto .9rem; display: grid; place-items: center; background: var(--amber-bg); color: var(--amber); }
.sd-ring svg { width: 32px; height: 32px; }
.status-dlg[data-tone="ok"] .sd-ring { background: var(--green-bg); color: var(--green); }
.status-dlg[data-tone="bad"] .sd-ring { background: var(--err-bg); color: var(--err); }
.status-dlg p { margin: 0; color: var(--ink2); font-size: .92rem; }
.sd-meta { margin-top: .8rem; font-size: .8rem; color: var(--ink3); }
.status-dlg .acts { margin-top: 1.1rem; }
@keyframes sdPop { from { transform: translateY(10px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.quick { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.quick > div { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card2); }
.quick > div > span:first-child { font-weight: 600; min-width: 4.8rem; }
.quick > div > a, .quick > div > button { margin-left: auto; font-size: .85rem; font-weight: 600; }
.fee-rows { display: grid; gap: .6rem; }
.fee-row { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
.fee-row .input[readonly] { background: var(--card2); color: var(--ink3); }
@media (max-width: 560px) { .fee-row { grid-template-columns: 1fr 1fr; } .fee-row .btn { grid-column: 1 / -1; } }
.check { display: flex; gap: .65rem; align-items: flex-start; padding: .45rem 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--red); flex: none; }
.check span b { display: block; font-weight: 600; font-size: .93rem; }
.check span small { display: block; color: var(--ink3); font-size: .8rem; }
.bk { border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: .3rem; }
.bk:last-child { border-bottom: 0; }
.bk .row { border-bottom: 0; padding-bottom: .4rem; }
.bk .mid b { overflow-wrap: anywhere; white-space: normal; }
.bk-act { padding-left: calc(38px + .8rem); }
.bk-files { margin: .6rem 0 0 calc(38px + .8rem); padding: .6rem .8rem; background: var(--card2); border: 1px solid var(--line); border-radius: var(--r-s); font-size: .85rem; max-height: 260px; overflow: auto; }
.bk-sum { color: var(--ink2); margin-bottom: .4rem; font-weight: 600; }
.bk-file { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.bk-file .code { overflow-wrap: anywhere; }
@media (max-width: 560px) { .bk-act, .bk-files { padding-left: 0; margin-left: 0; } .bk-files { padding: .6rem .8rem; } }

#view.still > .page, #view.still > .page > * { animation: none !important; }

.receipt .acts.pay-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 1.1rem; }
.receipt .acts.pay-acts .btn { width: 100%; min-width: 0; white-space: nowrap; padding: 0 .6rem; }
.receipt .acts.pay-acts .btn-wide { grid-column: 1 / -1; }

html { max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y; }
body { max-width: 100%; touch-action: pan-y; }
@supports (overflow: clip) { body { overflow-x: clip; } }
#app, #view, .page { max-width: 100%; }
img, svg, video, canvas { max-width: 100%; }
input, select, textarea { font-size: max(16px, 1em); }
.tabs, .tbl-wrap, .lg-tw, pre.hl, .dev-code-h { touch-action: pan-x pan-y; overscroll-behavior-x: contain; }

.wallet {
  --mx: 88%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 22px; padding: 1.3rem 1.3rem 1.15rem; color: #e8f1ff;
  background:
    radial-gradient(ellipse 80% 70% at 100% -10%, rgba(56, 189, 248, .35), transparent 50%),
    radial-gradient(ellipse 60% 50% at -10% 110%, rgba(11, 110, 246, .4), transparent 55%),
    linear-gradient(145deg, #07111f 0%, #0c2347 48%, #0B6EF6 120%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 28px 48px -24px rgba(11, 110, 246, .45), inset 0 1px 0 rgba(255, 255, 255, .1);
  animation: wlIn .55s cubic-bezier(.2, .8, .2, 1) both;
}
.wallet::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .13), transparent 60%); }
.wl-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(42px); pointer-events: none; }
.wl-orb.a { width: 230px; height: 230px; right: -80px; top: -100px; background: rgba(11, 110, 246, .45); }
.wl-orb.b { width: 210px; height: 210px; left: -90px; bottom: -120px; background: rgba(56, 189, 248, .28); }
.wl-shine { position: absolute; z-index: -1; top: 0; bottom: 0; width: 38%; left: -60%; transform: skewX(-18deg); background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .13), transparent); animation: wlShine 1.7s .45s ease-out 1 both; pointer-events: none; }
.wl-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.wl-brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 650; letter-spacing: -.01em; min-width: 0; }
.wl-brand svg, .wl-brand .brand-logo-img { width: 32px; height: 32px; flex: none; color: #fff; --logo-hole: #12241b; object-fit: contain; border-radius: 6px; }
.wl-badge { font-size: .74rem; font-weight: 650; letter-spacing: .04em; padding: .22rem .7rem; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; }
.wl-label { display: flex; align-items: center; gap: .45rem; margin-top: 1.15rem; color: rgba(238, 245, 239, .72); font-size: .88rem; }
.wl-eye { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .2s; }
.wl-eye svg { width: 17px; height: 17px; }
.wl-eye:hover { background: rgba(255, 255, 255, .22); }
.wl-bal { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 9vw, 3.4rem); letter-spacing: -.03em; line-height: 1.08; margin: .15rem 0 0; overflow-wrap: anywhere; }
.wl-bal small { font-size: .42em; font-weight: 600; color: rgba(238, 245, 239, .65); margin-right: .3rem; letter-spacing: 0; }
.wl-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: 1.4rem; }
.wl-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 70px; border-radius: 16px; text-decoration: none; color: #fff; font-weight: 600; font-size: .88rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); transition: transform .15s, background .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.wl-btn i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.wl-btn svg { width: 19px; height: 19px; }
.wl-btn:hover { background: rgba(255, 255, 255, .19); transform: translateY(-2px); }
.wl-btn:active { transform: translateY(0) scale(.97); }
.wl-btn.primary { background: linear-gradient(180deg, #2f8bff, #0B6EF6); border-color: rgba(255, 255, 255, .22); box-shadow: 0 12px 22px -12px rgba(11, 110, 246, .95); }
.wl-btn.primary i { background: rgba(255, 255, 255, .2); }
.wl-btn.primary:hover { background: linear-gradient(180deg, #4a9bff, #0B6EF6); }
.wl-btn:focus-visible, .wl-eye:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 420px) { .wallet { padding: 1.1rem 1rem 1rem; border-radius: 20px; } }
@keyframes wlIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes wlShine { from { left: -60%; opacity: 1; } to { left: 130%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wallet, .wl-shine { animation: none; } .wl-btn { transition: none; } .wl-shine { display: none; } }

.limit-card { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: var(--r); background: var(--amber-bg); color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 32%, transparent); }
.limit-card b { display: block; font-size: 1.02rem; }
.limit-card p { margin: .15rem 0 0; font-size: .92rem; color: var(--ink2); }
.closed-ic.lim { background: color-mix(in srgb, var(--amber) 20%, transparent); }
dialog.limit-dlg { width: min(360px, calc(100vw - 2rem)); }
.ld-hero { position: relative; width: 80px; height: 80px; margin: 0 auto .8rem; display: grid; place-items: center; }
.ld-hero .sd-ring { margin: 0; position: relative; z-index: 1; }
.limit-dlg[data-tone="limit"] .sd-ring { background: var(--amber-bg); color: var(--amber); }
.ld-pulse { position: absolute; inset: 7px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; animation: ldPulse 2.2s ease-out infinite; }
.ld-pulse.b { animation-delay: 1.1s; }
.limit-dlg .sd-ring svg { animation: ldTurn 3.4s ease-in-out infinite; }
.ld-slots { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin: 1.1rem 0 .55rem; }
.ld-slots i { width: 26px; height: 10px; border-radius: 99px; background: var(--line2); opacity: .75; }
.ld-slots i.on { background: var(--amber); opacity: 1; animation: ldFill .45s calc(var(--i) * .09s + .25s) cubic-bezier(.2, .9, .3, 1.3) both; }
.ld-count { color: var(--ink2); font-size: .86rem; }
.ld-count b { color: var(--ink); font-size: 1.05rem; }
dialog.limit-dlg .acts { display: grid; gap: .5rem; justify-content: stretch; margin-top: 1.1rem; }
dialog.limit-dlg .acts .btn { width: 100%; }
@keyframes ldPulse { 0% { transform: scale(.85); opacity: .55; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes ldTurn { 0%, 35% { transform: rotate(0); } 60%, 100% { transform: rotate(180deg); } }
@keyframes ldFill { from { transform: scaleX(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ld-pulse, .limit-dlg .sd-ring svg, .ld-slots i.on { animation: none; } }

.qno { display: inline-block; min-width: 2.2rem; text-align: center; padding: .1rem .55rem; border-radius: 99px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .85rem; margin-right: .35rem; vertical-align: middle; }
.card.q-first { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green), var(--shadow); }
.card.q-first .qno { background: var(--green); color: #fff; }
:root[data-theme="dark"] .card.q-first .qno { color: #0a1a10; }
.check.check-full { padding: .7rem .8rem; margin-bottom: .6rem; border: 1px solid var(--line2); border-radius: var(--r-s); background: var(--card2); }
.bk-opts.is-full .check { opacity: .55; cursor: not-allowed; }
.bk-opts.is-full .check input { cursor: not-allowed; }

.wl-bal { letter-spacing: -.02em; }
.wallet.is-hidden .wl-bal span { letter-spacing: .08em; }

.dana { overflow: hidden; }
.dana-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.dana-t { position: relative; display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding: .8rem .8rem .75rem; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.dana-t i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; margin-bottom: .35rem; }
.dana-t i svg { width: 18px; height: 18px; }
.dana-t.in i { background: var(--green-bg); color: var(--green); }
.dana-t.out i { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.dana-t.wait i { background: var(--amber-bg); color: var(--amber); }
.dana-t span { font-size: .78rem; color: var(--ink2); font-weight: 600; }
.dana-t b { font-family: var(--display); font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; line-height: 1.2; }
.dana-t small { font-size: .72rem; color: var(--ink3); line-height: 1.3; }
.dana-bar { height: 8px; border-radius: 99px; background: var(--line); margin-top: 1rem; overflow: hidden; }
.dana-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--red)); animation: danaFill .8s .15s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.dana-leg { display: flex; justify-content: space-between; gap: .6rem; margin-top: .5rem; font-size: .82rem; color: var(--ink2); }
@keyframes danaFill { from { transform: scaleX(0); } to { transform: none; } }
@media (max-width: 520px) { .dana-grid { grid-template-columns: 1fr; } .dana-t { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: .7rem; } .dana-t i { margin: 0; } .dana-t span { flex: 1; } .dana-t b { order: 3; margin-left: auto; } .dana-t small { order: 4; flex-basis: 100%; padding-left: calc(32px + .7rem); margin-top: -.2rem; } }
@media (prefers-reduced-motion: reduce) { .dana-bar i { animation: none; } }

.drop { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: 1.4rem 1rem; border: 2px dashed var(--line2); border-radius: var(--r); background: var(--card2); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.drop b { font-size: 1rem; }
.drop span { font-size: .85rem; color: var(--ink2); max-width: 36ch; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--green); background: var(--green-bg); outline: none; }
.drop.over { transform: scale(1.01); }
.wallet {
  --wl-v: 3;
  --wl-bg: linear-gradient(155deg, #ffffff 0%, #eef5ff 55%, #e4effc 100%);
  --wl-hole: #f0f6ff;
  --wl-line: rgba(11, 110, 246, .12);
  --wl-ring: rgba(11, 110, 246, .16);
  --wl-glow: rgba(11, 110, 246, .10);
  --wl-chip: #e8f0fc;
  color: var(--ink);
  background: var(--wl-bg);
  border: 1px solid var(--wl-line);
  box-shadow: 0 26px 44px -26px rgba(11, 110, 246, .28), inset 0 1px 0 #ffffff;
}
:root[data-theme="dark"] .wallet {
  --wl-bg: linear-gradient(155deg, #0a1422 0%, #0f1c30 55%, #122440 100%);
  --wl-hole: #0d1828;
  --wl-line: rgba(255, 255, 255, .1);
  --wl-ring: rgba(61, 139, 253, .2);
  --wl-glow: rgba(11, 110, 246, .18);
  --wl-chip: rgba(255, 255, 255, .08);
  box-shadow: 0 28px 44px -26px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.wallet::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 100% 0%, transparent 0 24px, var(--wl-ring) 24px 25px);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 100% 0%, #000 0%, transparent 62%);
}
.wallet::before { background: radial-gradient(420px circle at var(--mx) var(--my), var(--wl-glow), transparent 62%); }
.wl-orb.a { background: var(--wl-glow); }
.wl-orb.b { background: transparent; }
.wl-shine { background: linear-gradient(100deg, transparent, var(--wl-glow), transparent); }
.wl-brand { color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.wl-title { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; color: var(--ink); }
.wallet:not([data-theme]) .wl-title { /* keep */ }
.wl-brand svg { color: var(--ink); --logo-hole: var(--wl-hole); }
.wl-badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--wl-chip); border: 1px solid var(--wl-line); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.wl-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 26%, transparent); }
.wl-label, .wl-bal small { color: var(--ink3); }
.wl-eye { background: var(--wl-chip); border: 1px solid var(--wl-line); color: var(--ink); }
.wl-eye:hover { background: color-mix(in srgb, var(--wl-chip) 70%, var(--ink) 12%); }
.wl-bal span { color: var(--ink); }
.wl-btn { color: var(--ink); background: var(--wl-chip); border: 1px solid var(--wl-line); }
.wl-btn i { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.wl-btn:hover { background: color-mix(in srgb, var(--wl-chip) 65%, var(--ink) 12%); }
.wl-btn.primary {
  background: linear-gradient(180deg, #3d8bfd, #0B6EF6);
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 20px -10px rgba(11, 110, 246, .7);
}
.wl-btn.primary i { background: rgba(255, 255, 255, .22); color: #fff; }
.wl-btn.primary:hover { background: linear-gradient(180deg, #5a9dff, #0B6EF6); color: #fff; }
.wl-btn:focus-visible, .wl-eye:focus-visible { outline: 2px solid var(--red); }
.wl-badge::before { animation: wlDot 1.8s ease-out infinite; }
@keyframes wlDot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--green) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .wl-badge::before { animation: none; } }
.badge.st { display: inline-flex; align-items: center; gap: .3rem; padding-left: .45rem; }
.badge.st svg { width: 15px; height: 15px; flex: none; stroke-width: 2; }
.badge.st.warn svg { animation: stPulse 1.6s ease-in-out infinite; }
@keyframes stPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .badge.st.warn svg { animation: none; } }
.tpx-card { padding: 1.15rem; }
.tpx-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.tpx-top .lbl { margin: 0; }
.tpx-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 650; padding: .2rem .65rem; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); color: var(--ink2); }
.tpx-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: tpxPulse 1.8s infinite; }
.tpx-range { display: flex; align-items: stretch; gap: .6rem; margin-top: .7rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card2); }
.tpx-range span { flex: 1; display: grid; gap: .05rem; min-width: 0; }
.tpx-range small { font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); font-weight: 650; }
.tpx-range b { font-variant-numeric: tabular-nums; font-size: .92rem; color: var(--ink); overflow-wrap: anywhere; }
.tpx-range span:last-child { text-align: right; }
.tpx-range i { flex: none; width: 1px; background: var(--line2); }
.tpx-range.bad { border-color: var(--alert); background: color-mix(in srgb, var(--alert) 7%, var(--card)); }
.tpx-range.bad b { color: var(--alert); }
.tpx-live.off { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 35%, var(--line)); background: color-mix(in srgb, var(--alert) 8%, var(--card)); }
.tpx-live.off::before { background: var(--alert); animation: none; }
@keyframes tpxPulse { 0% { box-shadow: 0 0 0 0 rgba(28, 116, 72, .55); } 70% { box-shadow: 0 0 0 7px rgba(28, 116, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(28, 116, 72, 0); } }
.tpx-field { margin: 0 0 1rem; gap: 0; }
.tpx-field.has-err .input { border-color: #0B6EF6; }
.tpx-field .err-t { margin-top: .45rem; }
.tpx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-bottom: 1rem; }
.tpx-pre { position: relative; padding: 1.05rem .25rem; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); cursor: pointer; text-align: center; font-family: var(--display); font-weight: 800; font-size: clamp(.74rem, 3.9vw, .98rem); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; transition: border-color .18s, background .18s, color .18s; }
.tpx-pre:hover { border-color: var(--ink); }
.tpx-pre.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tpx-sumwrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.tpx-sumwrap.open { grid-template-rows: 1fr; }
.tpx-sumin { overflow: hidden; min-height: 0; }
.tpx-sumin .sum { margin-bottom: 1rem; }
@media (prefers-reduced-motion: reduce) { .tpx-live::before { animation: none; } .tpx-sumwrap, .tpx-pre { transition: none; } }
.tpx-field .input { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.tpx-field .input::placeholder { font-weight: 500; letter-spacing: 0; }
.tpx-box { margin-top: 1rem; }
.tpx-how { display: grid; gap: .95rem; margin: 0; padding: 0; list-style: none; }
.tpx-how li { display: flex; align-items: flex-start; gap: .8rem; }
.tpx-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--display); font-style: normal; font-weight: 700; font-size: .85rem; }
.tpx-how b { display: block; font-weight: 650; }
.tpx-how span { display: block; margin-top: .1rem; font-size: .85rem; line-height: 1.45; color: var(--ink3); }
.tpx-faq details { border-bottom: 1px solid var(--line); }
.tpx-faq details:last-child { border-bottom: 0; }
.tpx-faq summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 0; font-weight: 600; cursor: pointer; list-style: none; }
.tpx-faq summary::-webkit-details-marker { display: none; }
.tpx-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: .2rem; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: rotate(45deg); transition: transform .2s; }
.tpx-faq details[open] summary::after { transform: rotate(-135deg); }
.tpx-faq p { margin: 0 0 .9rem; font-size: .88rem; line-height: 1.55; color: var(--ink2); }
.dsh-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.dsh-t { display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding: .85rem; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.dsh-i { width: 34px; height: 34px; margin-bottom: .4rem; border-radius: 10px; display: grid; place-items: center; }
.dsh-i svg { width: 18px; height: 18px; }
.dsh-i.in { background: var(--green-bg); color: var(--green); }
.dsh-i.out { background: var(--err-bg); color: var(--err); }
.dsh-i.wait { background: var(--amber-bg); color: var(--amber); }
.dsh-i.neu { background: var(--line); color: var(--ink); }
.dsh-t span { font-size: .78rem; font-weight: 600; color: var(--ink3); }
.dsh-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-size: 1.15rem; letter-spacing: -.02em; }
.dsh-t small { font-size: .74rem; color: var(--ink3); }

/* ---- Notifikasi ---- */
.bell { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); text-decoration: none; }
.bell:hover { background: var(--card2); }
.bell svg { width: 24px; height: 24px; transform-origin: 50% 3px; }
.bell.has svg { animation: bellRing 2.6s ease-in-out .4s 1; }
@keyframes bellRing { 0%, 50%, 100% { transform: rotate(0); } 6% { transform: rotate(16deg); } 14% { transform: rotate(-14deg); } 22% { transform: rotate(10deg); } 30% { transform: rotate(-6deg); } 38% { transform: rotate(3deg); } }
.bell-n, .nav-n { font-style: normal; font-weight: 700; text-align: center; background: var(--alert); color: #fff; border-radius: 99px; font-variant-numeric: tabular-nums; }
.bell-n { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; font-size: .7rem; line-height: 20px; box-shadow: 0 0 0 2px var(--paper); }
.nav-n { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; font-size: .74rem; line-height: 22px; color: #fff; }
.bell-n[hidden], .nav-n[hidden] { display: none; }
.drawer nav a#logout { color: var(--alert); }
.drawer nav a#logout svg { color: var(--alert); }
.drawer nav a#logout:hover { background: color-mix(in srgb, var(--alert) 14%, transparent); }

.nt-list { display: grid; gap: .7rem; }
.nt { --nc: var(--ink3); --nbg: var(--info-bg); position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.nt.k-update { --nc: var(--green); --nbg: var(--green-bg); }
.nt.k-promo { --nc: var(--amber); --nbg: var(--amber-bg); }
.nt.k-penting { --nc: var(--err); --nbg: var(--err-bg); }
.nt-h { display: flex; align-items: flex-start; gap: .8rem; width: 100%; padding: .95rem 1rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nt-h:hover { background: color-mix(in srgb, var(--card2) 60%, transparent); }
.nt-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--nbg); color: var(--nc); }
.nt-ic svg { width: 19px; height: 19px; }
.nt-t { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.nt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .55rem; font-size: .76rem; color: var(--ink3); }
.nt-meta em { font-style: normal; font-weight: 700; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--nc); }
.nt-s { font-family: var(--display); font-size: 1.03rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 750; overflow-wrap: anywhere; }
.nt.read .nt-s { font-weight: 600; color: var(--ink2); }
.nt-p { color: var(--ink2); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt.open .nt-p { display: none; }
.nt-dot { flex: none; width: 10px; height: 10px; margin-top: .4rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.nt.read .nt-dot { display: none; }
.nt-chev { flex: none; width: 8px; height: 8px; margin: .5rem .1rem 0 0; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: rotate(45deg); transition: transform .2s; }
.nt.open .nt-chev { transform: rotate(-135deg); margin-top: .7rem; }
.nt-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s cubic-bezier(.2, .8, .2, 1); }
.nt.open .nt-b { grid-template-rows: 1fr; }
.nt-bi { overflow: hidden; min-height: 0; padding: 0 1.2rem; visibility: hidden; transition: visibility 0s .26s; }
.nt.open .nt-bi { visibility: visible; transition-delay: 0s; padding: .1rem 1.2rem 1.05rem; border-top: 1px solid var(--line); }
.nt.open .nt-bi .md { margin-top: .75rem; }
.nt-f { display: flex; align-items: center; gap: .4rem; margin-top: .9rem; padding-top: .7rem; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--ink3); }
.nt-f svg { width: 14px; height: 14px; flex: none; }
.empty > svg { width: 34px; height: 34px; margin-bottom: .5rem; color: var(--ink3); }
@media (prefers-reduced-motion: reduce) { .bell.has svg { animation: none; } .nt-b, .nt-chev { transition: none; } }

.md { --nc: var(--red); font-size: .94rem; line-height: 1.65; overflow-wrap: anywhere; }
.nt .md { --nc: inherit; }
.nt.k-update .md { --nc: var(--green); } .nt.k-promo .md { --nc: var(--amber); } .nt.k-penting .md { --nc: var(--err); } .nt.k-info .md { --nc: var(--ink3); }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md p { margin: .55rem 0; }
.md h4 { margin: .95rem 0 .3rem; font-family: var(--display); font-size: 1.04rem; letter-spacing: -.01em; }
.md strong { font-weight: 700; }
.md u { text-underline-offset: 3px; }
.md mark { background: color-mix(in srgb, var(--amber) 28%, transparent); color: inherit; padding: 0 .2em; border-radius: 4px; }
.md code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; padding: .05em .38em; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); }
.md a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.md blockquote { margin: .75rem 0; padding: .6rem .9rem .6rem 1rem; border-left: 3px solid var(--nc); border-radius: 0 var(--r-s) var(--r-s) 0; background: var(--card2); color: var(--ink2); font-style: italic; }
.md ul, .md ol { margin: .55rem 0; padding-left: 1.4rem; }
.md li { margin: .2rem 0; }
.md li::marker { color: var(--nc); font-weight: 700; }
.md hr { border: 0; border-top: 1px dashed var(--line2); margin: .95rem 0; }

/* ---- Admin: editor notifikasi ---- */
.md-tools { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .45rem; }
.md-tools button { min-width: 38px; height: 36px; padding: 0 .6rem; border: 1px solid var(--line2); border-radius: 9px; background: var(--card); color: var(--ink); font: 600 .9rem var(--font); cursor: pointer; }
.md-tools button:hover { background: var(--card2); }
.md-tools .sep { width: 1px; margin: 0 .15rem; background: var(--line); }
textarea.md-in { min-height: 11rem; resize: vertical; line-height: 1.55; }
.md-count { text-align: right; }
.nl { display: grid; gap: .45rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.nl:last-child { border-bottom: 0; padding-bottom: 0; }
.nl:first-child { padding-top: 0; }
.nl-h { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.nl-h b { font-weight: 650; overflow-wrap: anywhere; }
.nl-m { font-size: .8rem; color: var(--ink3); }
.nl-p { font-size: .88rem; color: var(--ink2); overflow-wrap: anywhere; }

/* ===== Support: tautan + live chat ===== */
.sup-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.sup-tile { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .75rem .9rem; border: 1px solid var(--line); background: var(--card); border-radius: var(--r); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .05s; }
.sup-tile:hover { border-color: var(--line2); }
.sup-tile:active { transform: translateY(1px); }
.sup-tile span { min-width: 0; }
.sup-tile b, .sup-tile small { display: block; line-height: 1.25; }
.sup-tile b { font-weight: 650; font-size: .95rem; }
.sup-tile small { font-size: .8rem; color: var(--ink2); }
@media (max-width: 400px) { .sup-tiles { grid-template-columns: 1fr; } }

.tab-n { display: inline-block; margin-left: .4rem; min-width: 18px; padding: 0 .4rem; border-radius: 99px; background: var(--red); color: var(--on-red); font-style: normal; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }

.chat-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: 70vh; height: clamp(300px, calc(100dvh - 240px), 700px); }
.chat-hd { display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border-bottom: 1px solid var(--line); background: var(--card); flex: none; }
.chat-hd .sp { flex: 1; }
.chat-hd b { display: block; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-hd small { display: block; color: var(--ink3); font-size: .78rem; line-height: 1.25; }
.chat-hd > div { min-width: 0; }
.chat-hd .btn { min-height: 38px; }
.chat-av { width: 34px; height: 34px; border-radius: 50%; background: var(--side); color: #fff; --logo-hole: var(--side); display: grid; place-items: center; flex: none; }
.chat-av svg { width: 17px; height: 17px; }
.chat-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.chat-off { display: flex; align-items: center; gap: .5rem; padding: .4rem .85rem; font-size: .8rem; background: var(--amber-bg); color: var(--amber); flex: none; }
.chat-off svg { width: 16px; height: 16px; flex: none; }

.chat-msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .8rem .75rem; display: flex; flex-direction: column; gap: 3px; background: var(--card2); }
.cday { align-self: center; margin: .6rem 0 .35rem; }
.cday span { font-size: .72rem; font-weight: 600; color: var(--ink2); background: var(--card); border: 1px solid var(--line); padding: .15rem .65rem; border-radius: 99px; }
.cmsg { max-width: min(82%, 460px); padding: .4rem .65rem .3rem; border-radius: 12px; min-width: 64px; }
.cmsg.first { margin-top: .45rem; }
.cmsg.me { align-self: flex-end; background: var(--green-bg); border-bottom-right-radius: 4px; }
.cmsg.them { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cmsg.failed { box-shadow: 0 0 0 1px var(--err); }
.cmsg .ct { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font-size: .95rem; line-height: 1.4; }
.cmsg .ct a { color: inherit; text-decoration: underline; }
.cmeta { display: flex; justify-content: flex-end; align-items: center; gap: .2rem; margin-top: 2px; font-size: .68rem; line-height: 1; color: var(--ink3); font-variant-numeric: tabular-nums; }
.ctick { display: inline-grid; place-items: center; color: var(--ink3); font-style: normal; }
.ctick svg { width: 17px; height: 17px; stroke-width: 2.2; }
.ctick.pending svg { width: 12px; height: 12px; stroke-width: 2.2; }
.ctick.read { color: #2f9be0; }
.ctick.failed { color: var(--err); }
.ctick.failed svg { width: 14px; height: 14px; }
.ctick.mini svg { width: 15px; height: 15px; }
.cfail { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .7rem; margin-top: .3rem; font-size: .76rem; color: var(--err); }
.cfail button { border: 0; background: none; padding: 0; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

.chat-empty { margin: auto; display: grid; justify-items: center; gap: .3rem; padding: 1.5rem; text-align: center; color: var(--ink2); font-size: .9rem; }
.chat-empty svg { width: 28px; height: 28px; color: var(--ink3); margin-bottom: .2rem; }
.chat-empty b { color: var(--ink); font-family: var(--display); font-size: 1.05rem; }

.chat-in { display: flex; align-items: flex-end; gap: .45rem; padding: .5rem .6rem; border-top: 1px solid var(--line); background: var(--card); flex: none; }
.chat-in textarea.input { min-height: 40px; max-height: 110px; height: 40px; resize: none; border-radius: 20px; padding: .55rem .95rem; line-height: 1.3; overflow-y: auto; }
.chat-send { width: 40px; min-height: 40px; height: 40px; padding: 0; border-radius: 50%; flex: none; }
.chat-send svg { width: 16px; height: 16px; }

/* Admin: daftar percakapan + panel chat */
.lc-card .card-h { margin-bottom: .4rem; }
.lc { display: grid; grid-template-columns: 310px minmax(0, 1fr); height: 640px; height: min(640px, calc(100dvh - 200px)); min-height: 470px; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--card); }
.lc-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.lc-search { position: relative; padding: .55rem .6rem; border-bottom: 1px solid var(--line); flex: none; }
.lc-search svg { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink3); pointer-events: none; }
.lc-search .input { min-height: 40px; padding-left: 2.2rem; border-radius: 99px; }
.lc-rows { flex: 1; min-height: 0; overflow-y: auto; }
.lc-row { display: flex; gap: .7rem; align-items: center; width: 100%; padding: .7rem .8rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.lc-row:hover { background: var(--card2); }
.lc-row.on { background: var(--card2); box-shadow: inset 3px 0 0 var(--red); }
.lc-row .avatar { width: 42px; height: 42px; }
.lc-mid { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.lc-top, .lc-bot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; }
.lc-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.lc-top time { flex: none; font-size: .72rem; color: var(--ink3); }
.lc-row.unread .lc-top time { color: var(--green); font-weight: 700; }
.lc-prev { flex: 1; min-width: 0; display: flex; align-items: center; gap: .15rem; color: var(--ink2); font-size: .85rem; }
.lc-prev > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-row.unread .lc-prev { color: var(--ink); font-weight: 600; }
.lc-n { flex: none; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; background: var(--green); color: var(--card); font-style: normal; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lc-empty { padding: 1.6rem 1rem; text-align: center; color: var(--ink2); font-size: .9rem; }
.lc-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lc-none { margin: auto; display: grid; justify-items: center; gap: .3rem; padding: 1.5rem; text-align: center; color: var(--ink2); }
.lc-none svg { width: 42px; height: 42px; color: var(--ink3); margin-bottom: .2rem; }
.lc-none b { color: var(--ink); font-family: var(--display); font-size: 1.1rem; }
.lc-back { display: none; }
@media (max-width: 720px) {
  .lc { grid-template-columns: minmax(0, 1fr); }
  .lc .lc-pane { display: none; }
  .lc.open .lc-list { display: none; }
  .lc.open .lc-pane { display: flex; }
  .lc-back { display: inline-flex; padding: 0 .5rem; }
}


/* ===== Support: tombol live chat, FAQ, chat layar penuh ===== */
.sup-tile.sup-chat { grid-column: 1 / -1; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.sup-tile.sup-chat .tab-n { margin-left: auto; flex: none; }
.sup-ic.stroke svg { fill: none !important; stroke: #fff; stroke-width: 1.9; }
.sup-h { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.05rem; }
.sup-h svg { width: 20px; height: 20px; color: var(--ink2); flex: none; }
.sup-faq, .sup-tips { margin-top: 1rem; }
.faq-i { border-bottom: 1px solid var(--line); }
.faq-i:last-child { border-bottom: 0; }
.faq-i summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem .1rem; cursor: pointer; list-style: none; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary svg { width: 18px; height: 18px; flex: none; color: var(--ink3); transition: transform .2s; }
.faq-i[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 .1rem .95rem; color: var(--ink2); font-size: .92rem; line-height: 1.55; }
.faq-a a { color: var(--green); font-weight: 600; text-decoration: underline; }
.sup-tips ul { margin: .7rem 0 0; padding-left: 1.2rem; color: var(--ink2); font-size: .92rem; line-height: 1.55; display: grid; gap: .3rem; }

.chat-lock, .chat-lock body { overflow: hidden !important; }
.chat-lock .toasts { z-index: 130; }
.chat-full { position: fixed; top: 0; left: 0; right: 0; bottom: 0; max-height: 100%; z-index: 110; display: flex; flex-direction: column; background: var(--card); padding-top: env(safe-area-inset-top, 0); animation: chatIn .22s ease both; }
.chat-full .chat-hd { padding: .6rem .8rem; box-shadow: 0 1px 0 var(--line); }
.chat-full .chat-body { flex: 1; min-height: 0; width: 100%; max-width: 860px; margin: 0 auto; background: var(--card2); }
@media (min-width: 900px) { .chat-full { background: var(--card2); } .chat-full .chat-body { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.chat-full .chat-in { padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0)); }
@media (max-height: 560px) { .chat-hd { padding: .4rem .7rem; } .chat-empty { padding: .8rem; } .chat-empty svg { display: none; } .chat-msgs { padding: .5rem; } }
.chat-back { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; margin-left: -.2rem; }
.chat-back:hover { background: var(--card2); }
.chat-back svg { width: 19px; height: 19px; }
.chat-av.pro { width: 36px; height: 36px; background: linear-gradient(145deg, var(--green), var(--side)); box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line); }
.chat-av.pro svg { width: 18px; height: 18px; stroke-width: 1.9; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat-full { animation: none; } }

/*bubble-flat*/
.cmsg.them{border:0;box-shadow:0 1px 1px rgba(0,0,0,.08)}

/*chat-img*/
.chat-field { position: relative; flex: 1; min-width: 0; }
.chat-field textarea.input { width: 100%; padding-right: 42px; }
.chat-attach { position: absolute; right: 3px; bottom: 3px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink2); display: grid; place-items: center; cursor: pointer; }
.chat-attach:hover { background: var(--card2); color: var(--ink); }
.chat-attach svg { width: 19px; height: 19px; }
.cmsg.has-img { width: min(78%, 280px); padding: 3px 3px 5px; position: relative; }
.cmsg.has-img .ct { padding: .3rem .4rem 0; }
.cmsg.has-img .cmeta { padding: 0 .35rem; }
.cimg { display: block; width: 100%; aspect-ratio: var(--ar, 1); border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--line); cursor: zoom-in; position: relative; }
.cimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmsg.nocap .cmeta { position: absolute; right: 9px; bottom: 9px; margin: 0; padding: 3px 7px; border-radius: 99px; background: rgba(0, 0, 0, .5); color: #fff; }
.cmsg.nocap .ctick { color: #fff; }
.cmsg.nocap .ctick.read { color: #6fc3ff; }
.img-pv, .img-vw { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 120; display: flex; flex-direction: column; background: #0b0f0c; color: #fff; }
.img-pv header { display: flex; align-items: center; gap: .7rem; padding: calc(.6rem + env(safe-area-inset-top, 0)) .8rem .6rem; flex: none; }
.pv-x, .vw-x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.pv-x svg, .vw-x svg { width: 22px; height: 22px; }
.pv-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: .4rem; }
.pv-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.img-pv footer { display: flex; align-items: flex-end; gap: .5rem; padding: .6rem .6rem calc(.6rem + env(safe-area-inset-bottom, 0)); flex: none; }
.img-pv footer textarea.input { flex: 1; min-height: 44px; max-height: 120px; height: 44px; resize: none; border-radius: 22px; padding: .65rem 1rem; line-height: 1.3; background: #1b231e; color: #fff; border-color: #2c372f; }
.img-vw { align-items: center; justify-content: center; background: rgba(0, 0, 0, .95); cursor: zoom-out; z-index: 125; }
.vw-x { position: absolute; top: calc(.6rem + env(safe-area-inset-top, 0)); left: .7rem; }
.img-vw img { max-width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; display: block; }
.vw-cap { margin: .8rem 1rem 0; max-width: min(92vw, 700px); text-align: center; font-size: .92rem; color: #e8ece9; white-space: pre-wrap; overflow-wrap: anywhere; }
.vw-lock, .vw-lock body { overflow: hidden !important; }

/*tick-day*/
.ctick.sent { color: var(--ink); }
.ctick.read { color: #2f9be0; }
.cday span { border: 0; background: var(--card); box-shadow: 0 1px 1px rgba(0, 0, 0, .08); padding: .22rem .75rem; }

/*tick-gray*/
.ctick.sent { color: var(--ink3); }
.cmsg.nocap .ctick.sent { color: #fff; }

/*send-anim*/
@keyframes msgMe { from { opacity: 0; transform: translateY(10px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes msgThem { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes tkPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); } }
.cmsg.pop.me { transform-origin: 100% 100%; animation: msgMe .26s cubic-bezier(.2, .9, .3, 1.2) both; }
.cmsg.pop.them { transform-origin: 0 100%; animation: msgThem .24s cubic-bezier(.2, .9, .3, 1) both; }
.ctick.tk { animation: tkPop .3s ease-out both; }
.chat-send { transition: transform .12s ease; }
.chat-send:active { transform: scale(.88); }
.chat-send svg { transition: transform .15s ease; }
.chat-send:active svg { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) { .cmsg.pop, .ctick.tk { animation: none; } }

/*ban-page*/
.ban-wrap { position: fixed; inset: 0; z-index: 60; overflow-y: auto; overflow-x: hidden; background: #07090a; color: #eef2ef; -webkit-overflow-scrolling: touch; --logo-hole: #07090a; }
.ban-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.ban-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: banFloat 14s ease-in-out infinite alternate; }
.ban-orb.o1 { width: 420px; height: 420px; left: -120px; top: -100px; background: radial-gradient(circle, #c8222b, transparent 70%); }
.ban-orb.o2 { width: 480px; height: 480px; right: -160px; bottom: -140px; background: radial-gradient(circle, #1c7448, transparent 70%); animation-delay: -6s; }
.ban-grid { position: absolute; inset: -44px; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 72%); animation: banGrid 18s linear infinite; }
.ban-bg i { position: absolute; bottom: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255, 120, 125, .75); box-shadow: 0 0 10px rgba(255, 90, 95, .8); opacity: 0; animation: banUp var(--d) linear var(--t) infinite; }
.ban-in { position: relative; max-width: 560px; margin: 0 auto; padding: calc(1.4rem + env(safe-area-inset-top, 0)) 1.1rem calc(2rem + env(safe-area-inset-bottom, 0)); display: flex; flex-direction: column; gap: .9rem; }
.ban-in > * { animation: banIn .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * .07s); }
.ban-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; }
.ban-brand .lg { display: grid; padding: 5px; border-radius: 10px; background: #eef2ef; color: #07090a; }
.ban-brand .lg svg, .ban-brand .lg .brand-logo-img { width: 24px; height: 24px; display: block; object-fit: contain; border-radius: 4px; }
.ban-hero { text-align: center; padding: .6rem 0 .2rem; }
.ban-shield { position: relative; width: 132px; height: 132px; margin: 0 auto 1rem; display: grid; place-items: center; animation: banBob 4.5s ease-in-out infinite; }
.ban-svg { width: 96px; height: 96px; overflow: visible; filter: drop-shadow(0 0 18px rgba(255, 70, 80, .55)); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.bs-body { stroke-dasharray: 100; stroke-dashoffset: 100; animation: banDraw 1.4s .2s ease forwards; }
.bs-lock { transform-box: fill-box; transform-origin: 50% 30%; animation: banShake 6s 2s ease-in-out infinite; }
.ban-ring { position: absolute; inset: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 80, 90, .55); animation: banRing 3.2s ease-out infinite; }
.ban-ring.r2 { animation-delay: 1.05s; }
.ban-ring.r3 { animation-delay: 2.1s; }
.ban-title { margin: .2rem 0 .5rem; font-size: clamp(1.9rem, 8vw, 2.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(100deg, #fff 20%, #9fb0a6 50%, #fff 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: banShine 6s linear infinite; }
.ban-title em { font-style: normal; background: linear-gradient(100deg, #ff6a70, #ff2f3a, #ff6a70); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: banShine 3.5s linear infinite; }
.ban-sub { margin: 0 auto .9rem; max-width: 36ch; color: #a8b5ad; font-size: .95rem; line-height: 1.5; }
.ban-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: rgba(255, 77, 85, .12); color: #ff7a80; }
.ban-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: banBlink 1.4s infinite; }
.ban-pill.perm { background: rgba(255, 77, 85, .2); color: #ff9094; }
.ban-card { position: relative; overflow: hidden; border-radius: 18px; padding: 1.05rem 1.1rem; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 14px 40px rgba(0, 0, 0, .35); }
.ban-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .09), transparent 60%); }
.ban-card:hover::before { opacity: 1; }
.ban-lb { display: flex; align-items: center; gap: .45rem; margin-bottom: .55rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #8fa097; }
.ban-lb svg { width: 15px; height: 15px; }
.ban-rs { box-shadow: inset 3px 0 0 #ff4d55, inset 0 0 0 1px rgba(255, 255, 255, .07), 0 14px 40px rgba(0, 0, 0, .35); }
.ban-rs::after { content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 60px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255, 80, 90, .14), transparent); animation: banScan 4.5s linear infinite; }
.ban-reason { margin: 0; font-size: 1.05rem; line-height: 1.5; font-weight: 600; color: #ffd9db; overflow-wrap: anywhere; }
.ban-digits { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.ban-digits > div { flex: 1; max-width: 96px; text-align: center; padding: .7rem .2rem .5rem; border-radius: 14px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ban-digits b { display: block; font-size: clamp(1.6rem, 8vw, 2.1rem); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.ban-digits b.tk { animation: banTick .35s ease; }
.ban-digits small { display: block; margin-top: .35rem; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: #8fa097; }
.ban-digits > span { font-weight: 800; color: #ff5a60; animation: banBlink 1s steps(2) infinite; }
.ban-count.done .ban-digits b { color: #5be39a; }
.ban-bar { height: 6px; margin-top: .9rem; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ban-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ff4d55, #ff9a8a, #ff4d55); background-size: 200% 100%; animation: banShine 2.4s linear infinite; transition: width 1s linear; }
.ban-when { margin: .8rem 0 0; text-align: center; font-size: .85rem; color: #a8b5ad; }
.ban-when b { color: #eef2ef; }
.ban-inf { text-align: center; font-size: 3.2rem; line-height: 1; font-weight: 800; color: #ff6a70; text-shadow: 0 0 24px rgba(255, 70, 80, .6); animation: banBob 3s ease-in-out infinite; }
.ban-inf span { display: block; margin-top: .3rem; font-size: .9rem; font-weight: 700; letter-spacing: .04em; color: #eef2ef; text-shadow: none; }
.ban-id { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.ban-id .ban-lb { margin-bottom: .3rem; }
.ban-id code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .98rem; font-weight: 700; letter-spacing: .02em; color: #fff; overflow-wrap: anywhere; }
.ban-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.ban-chips span { position: relative; padding: .38rem .8rem .38rem 1.45rem; border-radius: 99px; font-size: .82rem; font-weight: 600; color: #dbe3de; background: rgba(255, 255, 255, .07); }
.ban-chips span::before { content: ""; position: absolute; left: .6rem; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #ff5a60; }
.ban-h { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 800; }
.ban-h svg { width: 20px; height: 20px; color: #ff6a70; }
.ban-q { border-top: 1px solid rgba(255, 255, 255, .07); }
.ban-q summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem .1rem; cursor: pointer; list-style: none; font-weight: 600; font-size: .93rem; line-height: 1.35; }
.ban-q summary::-webkit-details-marker { display: none; }
.ban-q summary svg { width: 18px; height: 18px; flex: none; color: #8fa097; transition: transform .25s, color .25s; }
.ban-q[open] summary { color: #fff; }
.ban-q[open] summary svg { transform: rotate(180deg); color: #ff6a70; }
.ban-a { padding: 0 .1rem .95rem; color: #a8b5ad; font-size: .9rem; line-height: 1.6; animation: banOpen .3s ease; }
.ban-a code { padding: .05rem .4rem; border-radius: 6px; background: rgba(255, 255, 255, .09); color: #ffb3b6; font-size: .82rem; }
.ban-contact p { margin: 0 0 .8rem; color: #a8b5ad; font-size: .92rem; line-height: 1.5; }
.ban-links { display: grid; gap: .6rem; }
.ban-link { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border-radius: 14px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .06); transition: transform .15s, background .2s; }
.ban-link:hover { background: rgba(255, 255, 255, .11); transform: translateY(-2px); }
.ban-link i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--c); }
.ban-link i svg { width: 22px; height: 22px; fill: #fff; }
.ban-link b { display: block; font-size: .95rem; }
.ban-link small { font-size: .78rem; color: #9aa7a0; }
.ban-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 46px; padding: 0 1.2rem; border: 0; border-radius: 14px; font: inherit; font-size: .95rem; font-weight: 700; color: #fff; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.ban-btn svg { width: 18px; height: 18px; }
.ban-btn.pri { background: linear-gradient(135deg, #ff4d55, #c4141c); box-shadow: 0 8px 24px rgba(255, 60, 70, .35); }
.ban-btn.pri:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 60, 70, .5); }
.ban-btn.ghost { background: rgba(255, 255, 255, .08); }
.ban-btn.ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.ban-btn:active { transform: scale(.96); }
.ban-btn.ok { background: rgba(60, 200, 130, .25); color: #7bf0b2; }
.ban-btn.busy svg { animation: spin .8s linear infinite; }
.ban-actions { display: flex; gap: .7rem; }
.ban-actions .ban-btn { flex: 1; }
.ban-ft { text-align: center; padding-top: .4rem; font-size: .78rem; color: #6f7d75; }
@keyframes banIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes banFloat { to { transform: translate(40px, 30px) scale(1.12); } }
@keyframes banGrid { to { transform: translate(44px, 44px); } }
@keyframes banUp { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateY(-105vh); opacity: 0; } }
@keyframes banBob { 50% { transform: translateY(-7px); } }
@keyframes banDraw { to { stroke-dashoffset: 0; } }
@keyframes banShake { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-7deg); } 94% { transform: rotate(6deg); } 97% { transform: rotate(-3deg); } }
@keyframes banRing { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes banShine { to { background-position: -220% 0; } }
@keyframes banBlink { 50% { opacity: .25; } }
@keyframes banScan { to { transform: translateY(240px); } }
@keyframes banTick { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
@keyframes banOpen { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .ban-wrap *, .ban-wrap *::before, .ban-wrap *::after { animation: none !important; transition: none !important; }
  .bs-body { stroke-dashoffset: 0 !important; }
}

.rw-bar { display: grid; gap: .55rem; margin-bottom: 1rem; }
.rw-bar .input { min-width: 0; width: 100%; }
.rw-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.rw-act { display: flex; flex-wrap: wrap; gap: .5rem; }
.rw-act .btn { flex: 1 1 auto; }
.dsh-st { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.35rem 0 1rem; }
@media (hover: hover) { .dsh-t { transition: transform .18s ease, border-color .18s ease; } .dsh-t:hover { transform: translateY(-2px); border-color: var(--line2); } }
@media (prefers-reduced-motion: reduce) { .dsh-t { transition: none; } .dsh-t:hover { transform: none; } }

.sx-acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.sx-list .sx-row { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; }
.sx-list .sx-row + .sx-row { border-top: 1px solid var(--line); }
.sx-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--card2); display: grid; place-items: center; flex: none; font-style: normal; }
.sx-ic svg { width: 18px; height: 18px; }
.sx-main { min-width: 0; flex: 1; }
.sx-main b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-main small { display: block; color: var(--ink3); font-size: .78rem; line-height: 1.35; }
.sx-tag { flex: none; font-size: .72rem; font-weight: 650; padding: .2rem .6rem; border-radius: 99px; background: var(--green-bg); color: var(--green); }
.sx-tag.mute { background: var(--card2); color: var(--ink2); }
.sx-danger { border-color: color-mix(in srgb, var(--err) 35%, var(--line)); }

.ads { position: relative; margin: 0 0 1rem; }
.ads-track { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ads-track::after { content: ""; flex: 0 0 calc(14% - .7rem); }
.ads-track.one::after { display: none; }
.ads-track::-webkit-scrollbar { display: none; }
.ads-s { flex: 0 0 86%; scroll-snap-align: start; display: block; aspect-ratio: 41 / 20; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card2); box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .4); }
.ads-track.one .ads-s { flex-basis: 100%; }
.ads-s img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ads-dots { display: flex; justify-content: center; gap: .35rem; margin-top: .55rem; }
.ads-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: var(--line2); cursor: pointer; transition: width .2s ease, background .2s ease; }
.ads-dots button.on { width: 18px; background: var(--ink2); }
.adm-pick { display: grid; gap: .6rem; place-items: center; padding: 1rem; border: 1.5px dashed var(--line2); border-radius: 14px; background: var(--card2); color: var(--ink2); font-size: .88rem; cursor: pointer; text-align: center; }
.adm-pick img { width: 100%; aspect-ratio: 41 / 20; object-fit: cover; border-radius: 10px; }
.adm-list { display: grid; gap: .8rem; }
.adm-ad { display: grid; gap: .6rem; padding-top: .8rem; }
.adm-ad + .adm-ad { border-top: 1px solid var(--line); }
.adm-ad > img { width: 100%; aspect-ratio: 41 / 20; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.adm-ad.off > img { opacity: .45; filter: grayscale(.6); }
.adm-m { min-width: 0; display: grid; gap: .25rem; }
.adm-m small { color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-b { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
@media (prefers-reduced-motion: reduce) { .ads-dots button { transition: none; } }


.dev-seg { display: flex; gap: .25rem; padding: .25rem; margin-bottom: .8rem; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; }
.dev-seg button { flex: 1; border: 0; background: transparent; color: var(--ink2); font: inherit; font-weight: 600; font-size: .86rem; padding: .55rem .5rem; border-radius: 9px; }
.dev-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.dev-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.dev-sub { margin: 1.1rem 0 .5rem; font-size: .8rem; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; }
.dev-log { display: grid; gap: .4rem; }
.dev-lg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .6rem; align-items: center; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; font-size: .84rem; }
.dev-lg b { font-size: .68rem; padding: .18rem .45rem; border-radius: 6px; }
.dev-lg.ok b { background: var(--green-bg, #dcefe3); color: var(--green); }
.dev-lg.bad b { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.dev-lg small { grid-column: 2; color: var(--ink3); }
.dev-lg code { font-size: .8rem; }

/* ── Email: admin & profil ── */
.em-kv { display: grid; gap: .65rem; margin-bottom: 1rem; }
.em-kv div { display: grid; gap: .1rem; }
.em-kv span { font-size: .8rem; color: var(--ink3); }
.em-kv b { font-size: .92rem; font-weight: 600; word-break: break-word; }
.em-sw { display: grid; gap: .55rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.em-res { margin-top: .8rem; padding: .65rem .8rem; border-radius: var(--r-s); font-size: .9rem; border: 1px solid transparent; }
.em-res.ok { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.em-res.err { background: var(--err-bg); color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); word-break: break-word; }
.em-bar { height: 9px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.em-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); transition: width .4s; }
.em-bar.warn i { background: var(--amber); }
.em-bar.err i { background: var(--err); }
.em-acts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .4rem; }
.em-logo { display: flex; gap: 1rem; align-items: center; }
.em-logo .ph { width: 72px; height: 72px; flex: none; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card2); display: grid; place-items: center; font: 700 1.6rem var(--display); }
.em-logo .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-logo-m { min-width: 0; }
.em-logo-m b { display: block; }
.em-logo-m small { display: block; line-height: 1.45; margin: .15rem 0 .5rem; }
.em-color { display: flex; align-items: center; gap: .6rem; }
.em-color input { width: 56px; height: 44px; padding: 2px; border: 1px solid var(--line2); border-radius: var(--r-s); background: var(--card); cursor: pointer; }
.em-tpl { display: flex; gap: .8rem; align-items: center; padding: .85rem 0; }
.em-tpl + .em-tpl { border-top: 1px solid var(--line); }
.em-tpl .mid { flex: 1; min-width: 0; }
.em-tpl .mid b { display: block; }
.em-tpl .mid small { display: block; line-height: 1.4; margin: .1rem 0 .4rem; }
.em-badges { display: flex; gap: .35rem; flex-wrap: wrap; }
.em-tpl-a { display: flex; gap: .4rem; flex: none; }
@media (max-width: 560px) { .em-tpl { flex-wrap: wrap; } .em-tpl-a { width: 100%; } .em-tpl-a .btn { flex: 1; } }
.em-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 960px) { .em-grid { grid-template-columns: minmax(0, 1fr); } }
.em-grid > .card { margin: 0; }
.em-prevc { position: sticky; top: 1rem; }
@media (max-width: 960px) { .em-prevc { position: static; } }
.em-prev { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f2f4f1; }
.em-prev iframe { width: 100%; height: 680px; border: 0; display: block; background: #f2f4f1; }
.em-vars { display: flex; flex-wrap: wrap; gap: .35rem; margin: .1rem 0 .4rem; }
.em-vars button { font: .78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: .38rem .55rem; border-radius: 8px; border: 1px solid var(--line2); background: var(--card2); color: var(--ink2); cursor: pointer; }
.em-vars button:hover { border-color: var(--red); color: var(--red); }
.em-filter { display: flex; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.em-filter .input:first-child { flex: 1; min-width: 180px; }
.em-filter select.input { width: auto; min-width: 150px; }
.em-r { cursor: pointer; }
.em-r:hover td { background: var(--card2); }
.em-sub { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; color: var(--ink2); }
.em-dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem .9rem; margin: .8rem 0 0; font-size: .9rem; }
.em-dl dt { color: var(--ink3); }
.em-dl dd { margin: 0; word-break: break-word; }
.em-err { color: var(--err); }
.em-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .55rem; }
.em-row .hint { margin: 0; }

.burger { position: relative; }
.burger-n { position: absolute; top: 3px; right: 0; margin: 0; }
.burger-n[hidden] { display: none; }
.top .badge { margin-left: .5rem; }

/* ===== Verifikasi QRIS ===== */
.vfy { --vc: var(--red); --vbg: var(--info-bg); position: relative; margin: 0 0 1.1rem; padding: 1.1rem 1.15rem 1.05rem; border: 1px solid color-mix(in srgb, var(--vc) 32%, var(--line)); border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, var(--vbg) 80%, var(--card)), var(--card)); box-shadow: var(--shadow); overflow: hidden; }
.vfy.todo { --vc: var(--red); --vbg: var(--info-bg); }
.vfy.wait { --vc: var(--amber); --vbg: var(--amber-bg); }
.vfy.bad { --vc: var(--err); --vbg: var(--err-bg); }
.vfy.ok { --vc: var(--green); --vbg: var(--green-bg); }
.vfy-top { display: flex; gap: .85rem; align-items: flex-start; }
.vfy-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--vbg); color: var(--vc); }
.vfy-ic svg { width: 23px; height: 23px; }
.vfy-t { min-width: 0; }
.vfy-t b { display: block; font-family: var(--display); font-size: 1.08rem; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; }
.vfy-t p { margin: .25rem 0 0; color: var(--ink2); font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.vfy-steps { list-style: none; display: flex; gap: .4rem; margin: 1rem 0 0; padding: 0; }
.vfy-steps li { flex: 1; min-width: 0; display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--ink3); font-weight: 600; }
.vfy-steps li::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--line2); min-width: 8px; }
.vfy-steps li:last-child { flex: none; }
.vfy-steps li:last-child::after { display: none; }
.vfy-steps i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 800; background: var(--card2); color: var(--ink3); border: 1px solid var(--line2); }
.vfy-steps i svg { width: 12px; height: 12px; }
.vfy-steps span { white-space: nowrap; }
.vfy-steps li.done { color: var(--ink2); }
.vfy-steps li.done i { background: var(--green); border-color: var(--green); color: #fff; }
.vfy-steps li.done::after { background: var(--green); }
.vfy-steps li.now { color: var(--ink); }
.vfy-steps li.now i { background: var(--vc); border-color: var(--vc); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--vc) 20%, transparent); }
.vfy-steps li.bad { color: var(--err); }
.vfy-steps li.bad i { background: var(--err); border-color: var(--err); color: #fff; }
.vfy-acts { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.vfy-acts .btn svg { width: 17px; height: 17px; }
@media (max-width: 520px) { .vfy-steps span { white-space: normal; font-size: .72rem; line-height: 1.2; } .vfy-acts .btn { flex: 1 1 100%; justify-content: center; } }

.vf-wrap { display: grid; gap: 1rem; }
.vf-wrap .vfy { margin: 0; }
.vform { display: grid; gap: 1.05rem; }
.vform .card-h { margin-bottom: 0; }
.vf-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .55rem; }
.vf-type { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--ink2); font: inherit; font-size: .86rem; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .1s; }
.vf-type:hover { border-color: var(--red); color: var(--ink); }
.vf-type:active { transform: scale(.98); }
.vf-type i { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--card2); color: var(--ink3); transition: background .15s, color .15s; }
.vf-type i svg { width: 17px; height: 17px; }
.vf-type.on { border-color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--card)); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent); }
.vf-type.on i { background: var(--red); color: #fff; }
.vf-thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.vf-thumbs:empty { display: none; }
.vf-th { position: relative; width: 104px; height: 78px; padding: 0; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; background: var(--card2); }
.vf-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vf-thumbs.ro .vf-th { cursor: zoom-in; }
.vf-thumbs.ro .vf-th:hover { border-color: var(--red); }
.vf-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 14, 24, .78); color: #fff; cursor: pointer; padding: 0; }
.vf-x svg { width: 12px; height: 12px; }
.vf-add svg { width: 16px; height: 16px; }
.vf-count { text-align: right; }
.vf-foot { text-align: center; margin: 0; }
.vf-sum .card-h { margin-bottom: .6rem; }
.vf-kv { margin-bottom: .6rem; }
.vf-link { overflow-wrap: anywhere; word-break: break-all; }
.vf-desc { margin: .2rem 0 .7rem; color: var(--ink2); font-size: .9rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.vf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.vf-list li { display: flex; gap: .75rem; align-items: flex-start; }
.vf-list i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--info-bg); color: var(--red); }
.vf-list i svg { width: 17px; height: 17px; }
.vf-list b { display: block; font-size: .92rem; }
.vf-list span { display: block; color: var(--ink2); font-size: .84rem; line-height: 1.45; margin-top: .1rem; }
.vf-hist { list-style: none; margin: 0; padding: 0 0 0 .3rem; display: grid; gap: .8rem; }
.vf-hist li { position: relative; display: flex; gap: .75rem; padding-left: .2rem; }
.vf-hist li i { flex: none; width: 10px; height: 10px; margin-top: .4rem; border-radius: 50%; background: var(--ink3); }
.vf-hist li.approved i { background: var(--green); }
.vf-hist li.rejected i { background: var(--err); }
.vf-hist li.pending i { background: var(--amber); }
.vf-hist b { display: block; font-size: .9rem; }
.vf-hist span { display: block; color: var(--ink3); font-size: .8rem; overflow-wrap: anywhere; }


.nt.k-sukses { --nc: var(--green); --nbg: var(--green-bg); }
.nt.k-ditolak { --nc: var(--err); --nbg: var(--err-bg); }
@media (prefers-reduced-motion: reduce) { .vf-type, .vf-type i { transition: none; } }

/* ===== Admin: peninjauan verifikasi ===== */
.vr-list { display: grid; gap: 1rem; }
.vr { margin: 0; display: grid; gap: .9rem; }
.vr .card-h { margin-bottom: 0; align-items: flex-start; gap: .8rem; }
.vr .card-h h3 { overflow-wrap: anywhere; }
.vr-bd { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.vr-kv { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.vr-kv b { overflow-wrap: anywhere; }
.vr-sec { display: grid; gap: .6rem; padding-top: .9rem; border-top: 1px dashed var(--line2); }
.vr-sec .vf-desc { margin: 0; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); }
.vr-th { width: 150px; height: 112px; cursor: zoom-in; }
.vr-hist summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--ink2); }
.vr-hist .vf-hist { margin-top: .7rem; }
.vr .alert { margin: 0; }
