/* ================= bayariuranku ================= */
:root {
  --bg: #0c0f1a;
  --bg-2: #10142a;
  --card: #161b31;
  --card-2: #1d2340;
  --card-3: #252c4e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef0f8;
  --text-2: #b4bad2;
  --muted: #7a82a3;
  --saffron: #ffb020;
  --saffron-d: #c97d10;
  --aqua: #2ee6c5;
  --peri: #8ea2ff;
  --rose: #ff6b8b;
  --sky: #4cc3ff;
  --good: #2ee6c5;
  --warn: #ffb020;
  --bad: #ff6b6b;
  --r: 20px;
  --sh: 0 20px 50px -24px rgba(0, 0, 0, .8);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --display: 'Syne', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --side: 250px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 400px at 85% -10%, rgba(142, 162, 255, .12), transparent 70%), radial-gradient(500px 360px at 10% 110%, rgba(46, 230, 197, .07), transparent 70%); }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
::selection { background: var(--saffron); color: #1a1200; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 10px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.t2 { color: var(--text-2); }

.tn-saffron { --tc: var(--saffron); --tb: rgba(255, 176, 32, .14); }
.tn-aqua { --tc: var(--aqua); --tb: rgba(46, 230, 197, .13); }
.tn-peri { --tc: var(--peri); --tb: rgba(142, 162, 255, .15); }
.tn-rose { --tc: var(--rose); --tb: rgba(255, 107, 139, .14); }
.tn-sky { --tc: var(--sky); --tb: rgba(76, 195, 255, .14); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: .94rem; white-space: nowrap; transition: transform .3s var(--spring), background .2s, box-shadow .2s, color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.96); }
.btn-pri { background: var(--saffron); color: #1a1200; }
.btn-pri:hover { background: #ffc24d; box-shadow: 0 10px 30px -10px rgba(255, 176, 32, .7); }
.btn-sec { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-sec:hover { background: var(--card-3); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--card-2); }
.btn-sm { height: 38px; padding: 0 14px; border-radius: 11px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 99px; background: var(--card-2); color: var(--text-2); font-weight: 600; font-size: .84rem; white-space: nowrap; transition: all .2s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.good { background: rgba(46, 230, 197, .14); color: var(--good); }
.pill.warn { background: rgba(255, 176, 32, .15); color: var(--warn); }
.pill.bad { background: rgba(255, 107, 107, .15); color: var(--bad); }
.pill.idle { background: var(--card-3); color: var(--text-2); }

/* ---------- Shell ---------- */
.side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); background: var(--bg-2); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; }
.brand-mk { width: 36px; height: 36px; border-radius: 11px; background: var(--saffron); display: grid; place-items: center; transition: transform .5s var(--spring); }
.brand:hover .brand-mk { transform: rotate(-10deg); }
.brand-mk svg { width: 20px; height: 20px; }
.brand span b { color: var(--saffron); }
.nav-l { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--text-2); font-weight: 600; font-size: .93rem; position: relative; transition: background .2s, color .2s; }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a.on { color: var(--text); background: var(--card-2); }
.nav a.on::before { content: ''; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--saffron); }
.nav a .cnt { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--saffron); color: #1a1200; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.nav a .cnt[hidden] { display: none; }
.cnt.pop { animation: pop .5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.4); } }
.side-card { margin-top: auto; background: var(--card); border-radius: 16px; padding: 16px; border: 1px solid var(--line); }
.side-card b { font-family: var(--display); display: block; margin-bottom: 4px; }
.side-card p { margin: 0 0 12px; font-size: .82rem; color: var(--text-2); }
.side-card code { font-family: var(--mono); color: var(--saffron); font-weight: 600; }

.main { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 14px; height: 72px; padding: 0 32px; background: rgba(12, 15, 26, .78); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-color: var(--line); }
.top .mbrand { display: none; }
.finder { flex: 1; max-width: 460px; position: relative; }
.finder input { width: 100%; height: 44px; border-radius: 13px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px 0 42px; outline: none; transition: box-shadow .2s; }
.finder input::placeholder { color: var(--muted); }
.finder input:focus { box-shadow: inset 0 0 0 1.5px var(--saffron); }
.finder > svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--muted); }
.finder-res { position: absolute; top: 52px; left: 0; right: 0; background: var(--card-2); border-radius: 16px; box-shadow: var(--sh), inset 0 0 0 1px var(--line-2); padding: 6px; display: none; max-height: 60vh; overflow-y: auto; }
.finder-res.open { display: block; animation: drop .3s var(--out); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.finder-res a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; font-weight: 600; font-size: .9rem; }
.finder-res a.act, .finder-res a:hover { background: var(--card-3); }
.finder-res a small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .76rem; }
.finder-res .none { padding: 14px; color: var(--muted); font-size: .88rem; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.basket-btn { position: relative; }
.basket-btn .cnt { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--saffron); color: #1a1200; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.basket-btn .cnt[hidden] { display: none; }
.user { display: flex; align-items: center; gap: 10px; font-size: .86rem; }
.user .av { width: 38px; height: 38px; border-radius: 12px; background: var(--card-3); display: grid; place-items: center; font-weight: 800; color: var(--peri); }
.user small { display: block; color: var(--muted); font-size: .74rem; }

#app { padding: 8px 32px 60px; flex: 1; }
.page { animation: pIn .5s var(--out); max-width: 1180px; }
@keyframes pIn { from { opacity: 0; transform: translateY(12px); } }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--out), transform .7s var(--out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.foot { margin-left: var(--side); padding: 22px 32px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }

/* ---------- Page heading ---------- */
.ph { padding: 18px 0 22px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.ph small { display: block; color: var(--muted); font-weight: 600; font-size: .84rem; margin-bottom: 6px; }
.ph h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.ph p { margin: 6px 0 0; color: var(--text-2); }
.crumb { font-size: .82rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.crumb a:hover { color: var(--text); }

.card { background: var(--card); border-radius: var(--r); padding: 22px; border: 1px solid var(--line); }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-h h3 { font-size: 1.05rem; }
.card-h a, .card-h button.lnk { font-size: .84rem; font-weight: 700; color: var(--saffron); }
.grid2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }

/* ---------- Dashboard ---------- */
.hero-due { background: var(--saffron); color: #1a1200; border-radius: 24px; padding: 26px; position: relative; overflow: hidden; isolation: isolate; }
.hero-due::after { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; border: 46px solid rgba(26, 18, 0, .08); right: -80px; top: -110px; z-index: -1; animation: drift 14s ease-in-out infinite; }
@keyframes drift { 50% { transform: translate(-20px, 16px) rotate(20deg); } }
.hero-due small { font-weight: 700; opacity: .7; font-size: .84rem; }
.hero-due .amt { font-family: var(--display); font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -.04em; line-height: 1; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.hero-due p { margin: 0 0 18px; font-weight: 600; opacity: .8; }
.hero-due .row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-due .btn-dk { background: #1a1200; color: var(--saffron); }
.hero-due .btn-dk:hover { background: #2c2000; }
.hero-due .btn-lt { background: rgba(26, 18, 0, .1); color: #1a1200; }
.hero-due .btn-lt:hover { background: rgba(26, 18, 0, .18); }
.meter { height: 8px; border-radius: 8px; background: rgba(26, 18, 0, .14); margin: 0 0 16px; overflow: hidden; }
.meter i { display: block; height: 100%; background: #1a1200; border-radius: 8px; width: 0; transition: width 1.2s var(--out); }

.svc-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.svc { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 6px 12px; border-radius: 16px; background: var(--card-2); text-align: center; font-size: .8rem; font-weight: 600; color: var(--text-2); transition: transform .35s var(--spring), background .2s, color .2s; }
.svc:hover { transform: translateY(-4px); background: var(--card-3); color: var(--text); }
.svc .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tb); color: var(--tc); transition: transform .45s var(--spring); }
.svc:hover .ic { transform: scale(1.12) rotate(-8deg); }
.svc .ic svg { width: 22px; height: 22px; }

.due-list { display: grid; gap: 8px; }
.due { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 15px; background: var(--card-2); transition: background .2s; }
.due:hover { background: var(--card-3); }
.due .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--tb); color: var(--tc); }
.due .ic svg { width: 20px; height: 20px; }
.due b { display: block; font-size: .93rem; }
.due small { color: var(--muted); font-size: .78rem; }
.due .r { text-align: right; display: grid; gap: 4px; justify-items: end; }
.due .r .btn { height: 32px; padding: 0 12px; font-size: .78rem; border-radius: 9px; }

/* Chart */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.chart .val { fill: var(--text); font-size: 11px; font-weight: 700; font-family: var(--mono); }
.chart .bar { fill: var(--saffron-d); transition: opacity .2s; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart.hovering .bar { opacity: .45; }
.chart.hovering .bar.on { opacity: 1; }
.tip { position: absolute; pointer-events: none; background: var(--card-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: .8rem; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; box-shadow: var(--sh); z-index: 3; }
.tip.on { opacity: 1; }
.tip b { font-family: var(--mono); display: block; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 64px; gap: 12px; align-items: center; font-size: .86rem; }
.hbar .track { height: 12px; background: var(--card-2); border-radius: 0 4px 4px 0; position: relative; }
.hbar .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--saffron-d); border-radius: 0 4px 4px 0; width: 0; transition: width 1s var(--out); max-width: 100%; }
.hbar b { font-family: var(--mono); font-size: .82rem; text-align: right; }
.tbl-toggle { font-size: .8rem; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 10px; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl td:last-child, .tbl th:last-child { text-align: right; font-family: var(--mono); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.stat small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.stat b { display: block; font-family: var(--display); font-size: 1.6rem; margin-top: 4px; letter-spacing: -.03em; }
.stat span { font-size: .78rem; color: var(--text-2); }

.txl { display: grid; gap: 2px; }
.txr { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; transition: background .2s; }
.txr:hover { background: var(--card-2); }
.txr .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tb); color: var(--tc); }
.txr .ic svg { width: 19px; height: 19px; }
.txr b { display: block; font-size: .9rem; }
.txr small { color: var(--muted); font-size: .76rem; }
.txr .amt { font-family: var(--mono); font-weight: 600; font-size: .88rem; text-align: right; }

.empty { text-align: center; padding: 34px 16px; color: var(--text-2); }
.empty .ill { width: 74px; height: 74px; border-radius: 22px; margin: 0 auto 14px; background: var(--card-2); display: grid; place-items: center; color: var(--saffron); animation: drift 8s ease-in-out infinite; }
.empty .ill svg { width: 34px; height: 34px; }
.empty h3 { font-size: 1.15rem; color: var(--text); margin-bottom: 6px; }
.empty p { margin: 0 auto 16px; max-width: 40ch; font-size: .9rem; }

/* ---------- Bayar page ---------- */
.catbar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 16px; }
.catbar::-webkit-scrollbar { display: none; }
.catbar a { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .85rem; color: var(--text-2); transition: all .2s; }
.catbar a span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--tb); color: var(--tc); }
.catbar a span svg { width: 15px; height: 15px; }
.catbar a:hover { color: var(--text); }
.catbar a.on { background: var(--card-3); color: var(--text); border-color: var(--line-2); }
.svc-head { display: flex; align-items: center; gap: 16px; }
.svc-head .ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--tb); color: var(--tc); flex: none; }
.svc-head .ic svg { width: 28px; height: 28px; }
.step-t { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1rem; margin-bottom: 14px; }
.step-t i { width: 26px; height: 26px; border-radius: 8px; background: var(--card-3); font-style: normal; font-family: var(--mono); font-size: .78rem; display: grid; place-items: center; color: var(--saffron); }
.provs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.prov { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 15px; background: var(--card-2); text-align: left; transition: background .2s, box-shadow .2s, transform .3s var(--spring); font-weight: 600; font-size: .86rem; line-height: 1.25; }
.prov:hover { background: var(--card-3); transform: translateY(-2px); }
.prov.on { box-shadow: inset 0 0 0 1.5px var(--saffron); background: var(--card-3); }
.mk { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .66rem; color: #fff; flex: none; letter-spacing: -.02em; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.fld label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-2); margin: 0 0 7px 2px; }
.fld .inp { position: relative; }
.fld input, .fld select { width: 100%; height: 52px; border-radius: 14px; border: 0; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 14px; outline: none; font-weight: 600; font-size: .98rem; transition: box-shadow .2s; }
.fld input.mono { font-family: var(--mono); letter-spacing: .03em; }
.fld input::placeholder { color: #565e7e; font-family: var(--body); letter-spacing: 0; font-weight: 500; }
.fld select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4bad2' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 15px; }
.fld select option { background: var(--card-2); }
.fld input:focus, .fld select:focus { box-shadow: inset 0 0 0 1.5px var(--saffron); }
.fld .err { display: none; color: var(--bad); font-size: .78rem; font-weight: 600; margin: 6px 2px 0; }
.fld.bad input, .fld.bad select { box-shadow: inset 0 0 0 1.5px var(--bad); animation: shake .35s; }
.fld.bad .err { display: block; }
@keyframes shake { 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.opb { position: absolute; right: 10px; top: 50%; translate: 0 -50%; height: 30px; padding: 0 10px; border-radius: 9px; display: flex; align-items: center; font-size: .74rem; font-weight: 800; transform: scale(.6); opacity: 0; transition: transform .45s var(--spring), opacity .2s; }
.opb.on { transform: none; opacity: 1; }
.saved { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.saved .chip { height: 30px; font-size: .78rem; }
.actrow { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.inq { margin-top: 18px; border-radius: 18px; background: var(--bg-2); border: 1px dashed var(--line-2); overflow: hidden; animation: pIn .45s var(--out); }
.inq-h { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px dashed var(--line-2); }
.inq-h .av { width: 42px; height: 42px; border-radius: 13px; background: rgba(46, 230, 197, .14); color: var(--aqua); display: grid; place-items: center; font-weight: 800; }
.inq-h small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }
.inq-h b { font-family: var(--mono); font-weight: 600; }
.inq-b { padding: 8px 16px 14px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: .9rem; }
.kv span:first-child { color: var(--muted); }
.kv b { text-align: right; font-weight: 600; word-break: break-word; }
.kv.minus b { color: var(--good); }
.kv.tot { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 12px; align-items: baseline; }
.kv.tot span:first-child { color: var(--text); font-weight: 700; }
.kv.tot b { font-family: var(--display); font-size: 1.45rem; letter-spacing: -.03em; }
.save-rutin { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); cursor: pointer; font-size: .88rem; }
.save-rutin input { margin-top: 3px; accent-color: var(--saffron); width: 17px; height: 17px; flex: none; }
.save-rutin small { display: block; color: var(--muted); }
.rutin-extra { display: none; margin-top: 10px; }
.rutin-extra.on { display: grid; animation: pIn .35s var(--out); }

.noms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nom { position: relative; text-align: left; padding: 14px; border-radius: 15px; background: var(--card-2); display: flex; flex-direction: column; gap: 2px; min-height: 96px; transition: background .2s, box-shadow .2s, transform .3s var(--spring); }
.nom:hover { background: var(--card-3); transform: translateY(-2px); }
.nom.on { box-shadow: inset 0 0 0 1.5px var(--saffron); background: var(--card-3); }
.nom .t { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.nom .s { font-size: .74rem; color: var(--muted); }
.nom .p { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-weight: 600; font-size: .86rem; color: var(--saffron); }
.nom .tag { position: absolute; top: 10px; right: 10px; font-size: .62rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(46, 230, 197, .15); color: var(--aqua); }
.nom .ck { position: absolute; bottom: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--saffron); color: #1a1200; display: grid; place-items: center; transform: scale(0); transition: transform .35s var(--spring); }
.nom .ck svg { width: 12px; height: 12px; }
.nom.on .ck { transform: none; }
.locked { padding: 26px; text-align: center; color: var(--muted); background: var(--bg-2); border-radius: 15px; font-size: .9rem; }
.locked svg { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--text-2); }
.amount-in { position: relative; margin-top: 12px; }
.amount-in span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; font-weight: 700; color: var(--muted); }
.amount-in input { padding-left: 42px !important; font-family: var(--mono); }

.side-sum { position: sticky; top: 90px; }
.tips { display: grid; gap: 10px; margin-top: 14px; font-size: .84rem; color: var(--text-2); }
.tips div { display: flex; gap: 10px; align-items: flex-start; }
.tips svg { width: 17px; height: 17px; color: var(--aqua); flex: none; margin-top: 2px; }

/* ---------- Keranjang ---------- */
.bk { display: grid; gap: 10px; }
.bki { display: grid; grid-template-columns: 24px 44px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--card-2); transition: opacity .3s, transform .4s var(--out); }
.bki.bye { opacity: 0; transform: translateX(30px); }
.bki input[type=checkbox] { width: 19px; height: 19px; accent-color: var(--saffron); margin: 0; }
.bki .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--tb); color: var(--tc); }
.bki .ic svg { width: 21px; height: 21px; }
.bki b { display: block; font-size: .94rem; }
.bki small { color: var(--muted); font-size: .78rem; }
.bki .r { text-align: right; display: grid; gap: 4px; justify-items: end; }
.bki .r b { font-family: var(--mono); font-weight: 600; }
.bki .rm { font-size: .76rem; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.bki .rm:hover { color: var(--bad); }
.bk-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .86rem; }
.bk-tools label { display: flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; }
.bk-tools input { width: 18px; height: 18px; accent-color: var(--saffron); }

/* ---------- Rutin ---------- */
.rutin { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.rutin .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tb); color: var(--tc); }
.rutin .ic svg { width: 22px; height: 22px; }
.rutin b { display: block; }
.rutin small { color: var(--muted); font-size: .8rem; }
.rutin .r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--card-3); transition: background .25s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-2); transition: transform .35s var(--spring), background .25s; }
.switch[aria-checked=true] { background: var(--saffron); }
.switch[aria-checked=true]::after { transform: translateX(18px); background: #1a1200; }
.sw-l { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-2); }
.iconbtn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); transition: background .2s, color .2s; }
.iconbtn:hover { background: var(--card-3); color: var(--bad); }
.iconbtn svg { width: 17px; height: 17px; }

/* ---------- Modal & PIN ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(5, 7, 14, .66); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility .3s; }
.scrim.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal { position: fixed; z-index: 81; top: 50%; left: 50%; width: min(500px, calc(100% - 24px)); max-height: calc(100vh - 40px); translate: -50% -50%; background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.94) translateY(16px); transition: opacity .3s, visibility .3s, transform .5s var(--spring); box-shadow: var(--sh); }
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.m-h { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 8px; gap: 10px; }
.m-h h3 { font-size: 1.2rem; }
.m-b { padding: 6px 22px 14px; overflow-y: auto; }
.m-f { padding: 14px 22px 22px; border-top: 1px solid var(--line); }
.xb { width: 38px; height: 38px; border-radius: 11px; background: var(--card-2); display: grid; place-items: center; transition: transform .3s var(--spring); }
.xb:hover { transform: rotate(90deg); }
.xb svg { width: 17px; height: 17px; }
.mstep { display: flex; gap: 6px; margin-bottom: 14px; }
.mstep i { height: 4px; flex: 1; border-radius: 4px; background: var(--card-3); }
.mstep i.on { background: var(--saffron); }
.pgrp { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.pays { display: grid; gap: 8px; }
.pay { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: var(--card-2); cursor: pointer; position: relative; transition: box-shadow .2s, background .2s; }
.pay:hover { background: var(--card-3); }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay .rd { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); flex: none; transition: box-shadow .25s var(--spring); }
.pay:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--saffron); background: var(--card-3); }
.pay:has(input:checked) .rd { box-shadow: inset 0 0 0 6px var(--saffron); }
.pay:has(input:focus-visible) { outline: 2px solid var(--saffron); }
.pay .pm { min-width: 46px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: .62rem; font-weight: 800; padding: 0 6px; }
.pay b { font-size: .88rem; display: block; }
.pay small { color: var(--muted); font-size: .74rem; }
.pay .fee { margin-left: auto; font-size: .78rem; color: var(--text-2); font-family: var(--mono); }
.promo-box { display: flex; gap: 8px; margin-top: 14px; padding: 5px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.promo-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 10px; outline: none; font-family: var(--mono); font-weight: 600; text-transform: uppercase; }
.promo-hint { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: .74rem; color: var(--muted); align-items: center; }
.promo-hint button { font-family: var(--mono); font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: rgba(255, 176, 32, .12); color: var(--saffron); }
.promo-on { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(46, 230, 197, .1); color: var(--aqua); font-weight: 700; font-size: .86rem; }
.promo-on button { color: var(--text-2); font-size: .78rem; text-decoration: underline; }

.pin-wrap { text-align: center; padding: 8px 0 4px; }
.pin-wrap p { color: var(--text-2); margin: 0 0 18px; font-size: .9rem; }
.dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 8px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); transition: background .2s, box-shadow .2s, transform .3s var(--spring); }
.dots i.on { background: var(--saffron); box-shadow: none; transform: scale(1.15); }
.dots.err { animation: shake .4s; }
.dots.err i { background: var(--bad); }
.pin-note { font-size: .78rem; color: var(--muted); min-height: 1.3em; margin-bottom: 14px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto; }
.keypad button { height: 58px; border-radius: 16px; background: var(--card-2); font-family: var(--display); font-size: 1.35rem; font-weight: 700; transition: background .15s, transform .2s var(--spring); }
.keypad button:hover { background: var(--card-3); }
.keypad button:active { transform: scale(.92); background: var(--saffron); color: #1a1200; }
.keypad button.fn { font-family: var(--body); font-size: .82rem; color: var(--text-2); background: transparent; }
.keypad button svg { width: 22px; height: 22px; margin: 0 auto; }

/* Processing */
.proc { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.proc.open { opacity: 1; visibility: visible; }
.proc-in { width: min(420px, 100%); text-align: center; }
.ring { width: 96px; height: 96px; margin: 0 auto 22px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: var(--card-3); }
.ring .fg { stroke: var(--saffron); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset .6s var(--out); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 1.05rem; }
.proc h3 { font-size: 1.5rem; margin-bottom: 6px; }
.proc p { color: var(--text-2); margin: 0 0 20px; }
.plist { display: grid; gap: 8px; text-align: left; }
.plist div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); font-size: .86rem; color: var(--muted); transition: color .3s; }
.plist div i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: .7rem; flex: none; }
.plist div span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist div.run { color: var(--text); }
.plist div.run i { border-color: var(--saffron); border-top-color: transparent; animation: spin .8s linear infinite; }
.plist div.ok { color: var(--text); }
.plist div.ok i { background: var(--aqua); border-color: var(--aqua); color: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Receipt ---------- */
.rc { max-width: 560px; margin: 10px auto 0; }
.rc-card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; animation: pIn .6s var(--out); }
.rc-top { padding: 26px; text-align: center; background: linear-gradient(var(--card-2), var(--card)); position: relative; }
.rc-ok { width: 66px; height: 66px; border-radius: 50%; background: var(--aqua); color: var(--bg); display: grid; place-items: center; margin: 0 auto 14px; position: relative; }
.rc-ok::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--aqua); opacity: 0; animation: ripple 1.6s .3s var(--out) 2; }
@keyframes ripple { from { opacity: .8; transform: scale(.8); } to { opacity: 0; transform: scale(1.5); } }
.rc-ok svg { width: 32px; height: 32px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .2s var(--out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rc-top h2 { font-size: 1.4rem; }
.rc-top .amt { font-family: var(--display); font-size: 2.3rem; letter-spacing: -.04em; margin-top: 8px; }
.rc-top p { margin: 4px 0 0; color: var(--text-2); font-size: .88rem; }
.rc-b { padding: 6px 22px 22px; }
.rc-item { border-radius: 16px; background: var(--bg-2); padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); }
.rc-item .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rc-item .hd .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--tb); color: var(--tc); flex: none; }
.rc-item .hd .ic svg { width: 18px; height: 18px; }
.rc-item .hd b { display: block; font-size: .92rem; }
.rc-item .hd small { color: var(--muted); font-size: .76rem; }
.rc-item .hd .amt { margin-left: auto; font-family: var(--mono); font-weight: 600; font-size: .88rem; }
.codeln { display: flex; align-items: center; gap: 10px; background: var(--card-2); border-radius: 12px; padding: 10px 12px; }
.codeln small { display: block; color: var(--muted); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.codeln code { font-family: var(--mono); font-weight: 600; color: var(--saffron); font-size: .95rem; letter-spacing: .05em; word-break: break-all; }
.codeln button { margin-left: auto; flex: none; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--card-3); font-size: .76rem; font-weight: 700; }
.rc-item details { margin-top: 8px; font-size: .84rem; }
.rc-item summary { cursor: pointer; color: var(--text-2); font-weight: 600; font-size: .8rem; }
.rc-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* Toast */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 150; display: grid; gap: 8px; justify-items: end; pointer-events: none; width: min(380px, calc(100% - 24px)); }
.toast { display: flex; gap: 10px; align-items: center; background: var(--card-3); border: 1px solid var(--line-2); padding: 12px 14px; border-radius: 14px; font-size: .88rem; font-weight: 600; box-shadow: var(--sh); animation: tIn .45s var(--spring) both; }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); flex: none; box-shadow: 0 0 0 4px rgba(46, 230, 197, .18); }
.toast.err i { background: var(--bad); box-shadow: 0 0 0 4px rgba(255, 107, 107, .18); }
.toast.out { animation: tOut .25s ease-in forwards; }
@keyframes tIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes tOut { to { opacity: 0; transform: translateX(20px); } }

.mnav { display: none; }
.mbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid2 { grid-template-columns: 1fr; }
  .side-sum { position: static; }
}
@media (max-width: 900px) {
  .side { display: none; }
  .main, .foot { margin-left: 0; }
  .top { padding: 0 16px; height: 64px; }
  .top .mbrand { display: flex; padding: 0; }
  .finder { display: none; }
  .user div { display: none; }
  #app { padding: 4px 16px 110px; }
  .foot { padding: 20px 16px 110px; }
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(16, 20, 42, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .mnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; font-size: .68rem; font-weight: 700; color: var(--muted); border-radius: 12px; position: relative; }
  .mnav a svg { width: 21px; height: 21px; }
  .mnav a.on { color: var(--saffron); }
  .mnav a .cnt { position: absolute; top: 2px; left: 55%; min-width: 18px; height: 18px; border-radius: 99px; background: var(--saffron); color: #1a1200; font-size: .64rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
  .mnav a .cnt[hidden] { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .fields, .noms { grid-template-columns: 1fr 1fr; }
  .fields .fld { grid-column: 1 / -1; }
  .card { padding: 18px; border-radius: 18px; }
  .hero-due { padding: 22px; }
  .hbar { grid-template-columns: 84px 1fr 56px; font-size: .8rem; }
  .bki { grid-template-columns: 22px 40px 1fr; }
  .bki .r { grid-column: 3; justify-items: start; grid-auto-flow: column; justify-content: space-between; }
  .rutin { grid-template-columns: 42px 1fr; }
  .rutin .r { grid-column: 1 / -1; justify-content: flex-start; }
  .due { grid-template-columns: 40px 1fr; }
  .due .r { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .modal { top: auto; bottom: 0; translate: -50% 0; width: 100%; border-radius: 24px 24px 0 0; max-height: 94vh; transform: translateY(100%); }
  .modal.open { transform: none; }
  .toasts { top: auto; bottom: 86px; right: 50%; translate: 50% 0; justify-items: center; }
  .provs { grid-template-columns: 1fr; }
  .user { display: none; }
  .svcs { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
  .svc { padding: 12px 4px 10px; font-size: .74rem; }
  .svc .ic { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
@media print {
  .side, .top, .foot, .mnav, .toasts, .rc-actions, .no-print { display: none !important; }
  .main { margin: 0; }
  body { background: #fff; color: #000; }
}
