/* style.css v3 */
:root{
  --bg:#0b1020; --card:#121a33; --muted:#8aa0d6; --text:#eaf0ff;
  --ok:#2ee59d; --warn:#ffcf5a; --bad:#ff5c7a;
  --btn:#243159; --btn2:#1b2547; --shadow: 0 18px 60px rgba(0,0,0,.45);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background: radial-gradient(1200px 800px at 20% 10%, #1a2b6a 0%, var(--bg) 60%);
  color:var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.wrap{min-height:100%; display:flex; flex-direction:column}
.topbar{display:flex; justify-content:space-between; align-items:center; padding:18px 22px;}
.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:44px;height:44px;border-radius:14px;display:grid;place-items:center;
  background: linear-gradient(145deg,#3b66ff,#2ee59d); color:#071026; font-weight:900;
  box-shadow: 0 10px 25px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.title{font-weight:800; letter-spacing:.3px}
.sub{color:var(--muted); font-size:13px}
.status{display:flex; gap:10px; align-items:center}
.pill{
  padding:8px 12px; border-radius:999px;
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10);
  font-size:13px; color:var(--muted); text-decoration:none;
}
.main{flex:1; display:grid; place-items:center; padding: 10px 22px 22px}
.card{
  width:min(980px, 100%);
  background: rgba(18,26,51,.92);
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:22px;
  backdrop-filter: blur(8px);
}
h1{margin:0 0 8px; font-size:30px}
h2{margin:18px 0 10px; font-size:20px}
.hint{margin:0 0 14px; color:var(--muted)}
.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.row.bottom{margin-top:14px}
.uid{
  flex:1; min-width: 220px;
  padding:14px 14px; border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color:var(--text);
  font-size:16px;
}
.btn{
  padding:12px 14px; border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, var(--btn), var(--btn2));
  color:var(--text); font-weight:700; cursor:pointer;
  text-decoration:none; display:inline-flex; align-items:center; gap:8px;
  box-shadow: 0 10px 22px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.10);
}
.btn:active{transform: translateY(1px)}
.btn.primary{border-color: rgba(46,229,157,.35)}
.btn.danger{border-color: rgba(255,92,122,.35)}
.msg{margin-top:12px; min-height:22px; color:var(--muted)}
.hidden{display:none !important}
.accRow{display:flex; justify-content:space-between; gap:14px; align-items:flex-start; flex-wrap:wrap}
.accName{font-size:22px; font-weight:850}
.accUid{color:var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}
.balanceBox{
  padding:14px 16px; border-radius:18px;
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10);
  text-align:right; min-width: 160px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.balLabel{color:var(--muted); font-size:12px}
.bal{font-size:42px; font-weight:900; line-height:1}
.balUnit{color:var(--muted); font-size:12px}

.products{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:14px;
}

.prod{
  position:relative;
  padding:14px 14px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.16));
  cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
  box-shadow: 0 12px 26px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
  user-select:none;
  transition: transform .12s ease, border-color .12s ease, filter .12s ease;
  overflow:hidden;
}
.prod::before{
  content:"";
  position:absolute; inset:-40px -40px auto -40px;
  height:80px;
  background: radial-gradient(closest-side, rgba(255,255,255,.18), rgba(255,255,255,0));
  transform: rotate(-8deg);
  pointer-events:none;
}
.prod:hover{border-color: rgba(46,229,157,.25)}
.prod-left{display:flex; align-items:center; gap:14px; z-index:1}
.prod-icon{width:52px; height:52px; flex-shrink:0; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35));}
.prod .name{font-weight:900; letter-spacing:.2px}
.prod .price{color:var(--muted); font-weight:900; z-index:1}

.prod.is-anim{animation: dvpress .28s ease;}
@keyframes dvpress{0%{transform:scale(1)}40%{transform:scale(.98)}100%{transform:scale(1)}}
.prod .ripple{
  position:absolute;
  width:14px;height:14px;border-radius:999px;
  background: radial-gradient(circle, rgba(46,229,157,.35), rgba(46,229,157,0) 70%);
  transform: translate(-50%,-50%) scale(1);
  animation: dvripple .45s ease-out forwards;
  pointer-events:none;
}
@keyframes dvripple{to{transform: translate(-50%,-50%) scale(16); opacity:0;}}

.prod.is-disabled{opacity:.42; filter: grayscale(.9) saturate(.6); cursor:not-allowed;}
.prod.is-disabled:hover{border-color: rgba(255,255,255,.10)}
.prod.is-disabled .price{color: rgba(234,240,255,.55);}
.prod .badge{
  position:absolute; top:10px; right:10px;
  font-size:11px; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: rgba(234,240,255,.70); z-index:2;
}

.receipt{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.18);
  color:var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space:pre-wrap;
}
.footer{padding:14px 22px; color: rgba(234,240,255,.65); display:flex; gap:10px; align-items:center; justify-content:center;}
.dot{opacity:.5}
