@import "https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap";
:root {
  --navy: #0c1c36;
  --navy2: #13244f;
  --navy3: #1c3170;
  --navy4: #24408c;
  --gold: #ffd866;
  --gold2: #ffc83d;
  --gold3: #f2b21c;
  --gold4: #d9930a;
  --goldline: #e2b866;
  --bg: #eef2fa;
  --card: #fff;
  --ink: #0c1c36;
  --mut: #5d6b86;
  --line: #dde3ef;
  --play: #1e6fc2;
  --free: #1d8a5e;
  --pause: #c98a1e;
  --fix: #a32d2d;
  --r: 16px;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
  margin: 0;
}
body {
  font-family:
    Be Vietnam Pro,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
}
.mut {
  color: var(--mut);
}
.sm {
  font-size: 12px;
}
.b {
  font-weight: 700;
}
.r {
  text-align: right;
}
.gold-t {
  color: var(--gold4);
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sp {
  flex: 1;
}
.wrap {
  flex-wrap: wrap;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.08s,
    box-shadow 0.08s,
    filter 0.15s;
  white-space: nowrap;
  position: relative;
  top: 0;
}
.btn:active {
  transform: translateY(3px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold), var(--gold3));
  color: var(--navy);
  box-shadow:
    0 4px 0 var(--gold4),
    0 8px 18px #f2b21c4d;
}
.btn-gold:active {
  box-shadow: 0 1px 0 var(--gold4);
}
.btn-navy {
  background: linear-gradient(180deg, var(--navy4), var(--navy3));
  color: #fff;
  box-shadow:
    0 4px 0 var(--navy),
    0 8px 18px #0c1c3640;
}
.btn-navy:active {
  box-shadow: 0 1px 0 var(--navy);
}
.btn-white {
  background: #fff;
  color: var(--navy);
  box-shadow:
    0 4px #c9d2e3,
    0 6px 14px #0c1c3614;
}
.btn-white:active {
  box-shadow: 0 1px #c9d2e3;
}
.btn-red {
  background: #fff;
  color: var(--fix);
  box-shadow: 0 4px #efc4c4;
}
.btn-green {
  background: linear-gradient(180deg, #27a874, var(--free));
  color: #fff;
  box-shadow: 0 4px #126143;
}
.btn-ghost {
  background: transparent;
  color: var(--navy3);
  padding: 8px 12px;
}
.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}
.btn-lg {
  padding: 15px 26px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
.pill {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 7px 22px 7px 7px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  width: 100%;
}
.pill .sp {
  text-align: left;
}
.ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a4a4a, #000 65%);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: inset 0 -3px 6px #00000080;
}
.ball i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.c-green {
  background: #dff5ea;
  color: #11734b;
}
.c-gold {
  background: #fff1c7;
  color: #8a5d00;
}
.c-amber {
  background: #fdecd0;
  color: #94600a;
}
.c-red {
  background: #fbe1e1;
  color: #9b2323;
}
.c-navy {
  background: var(--navy3);
  color: #fff;
}
.c-soft {
  background: #eef1f7;
  color: var(--mut);
}
.c-blue {
  background: #e0ecfb;
  color: #1757a0;
}
.card {
  background: var(--card);
  border-radius: var(--r);
  padding: 18px;
  box-shadow:
    0 1px 2px #0c1c360d,
    0 8px 24px #0c1c360f;
}
.card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mut);
}
.inp {
  border: 1.5px solid var(--line);
  background: #f7f9fd;
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  width: 100%;
}
.inp:focus {
  border-color: var(--gold3);
  background: #fff;
  box-shadow: 0 0 0 3px #f2b21c2e;
}
.inp.big {
  font-size: 22px;
  font-weight: 800;
  text-align: right;
}
.err {
  background: #fbe1e1;
  color: #8f1f1f;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
}
.note {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
}
.n-gold {
  background: #fff6dc;
  border: 1px solid #f4dc95;
  color: #6d4b00;
}
.n-blue {
  background: #e8f1fd;
  color: #174f8f;
}
.app {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.top {
  background: linear-gradient(90deg, var(--navy), var(--navy2));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 3px solid var(--gold3);
  flex: none;
}
.top .logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.top .shop {
  font-weight: 800;
  font-size: 16px;
}
.tabs {
  display: flex;
  gap: 4px;
  margin-left: 12px;
  overflow-x: auto;
}
.tab {
  background: transparent;
  border: 0;
  color: #b9c6e4;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
}
.tab.on {
  background: var(--gold3);
  color: var(--navy);
}
.tab .dot {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e53e3e;
  color: #fff;
  font-size: 10px;
  border-radius: 999px;
  padding: 0 5px;
  min-width: 16px;
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold3);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.main {
  flex: 1;
  overflow: auto;
  padding: 18px;
}
.page-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.page-h h2 {
  font-size: 20px;
}
.floor-wrap {
  display: flex;
  gap: 16px;
  height: 100%;
}
.floor {
  flex: 1;
  background: #13244f url(/pattern.webp);
  background-size: 420px;
  border-radius: 20px;
  position: relative;
  overflow: auto;
  box-shadow: inset 0 0 0 1px #ffffff0f;
}
.floor-in {
  position: relative;
  transform-origin: 0 0;
}
.floor-fit {
  position: relative;
}
.tbl {
  position: absolute;
  width: 220px;
  height: 124px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.12s;
}
.tbl:hover {
  transform: translateY(-2px);
}
.tbl.sel .felt-svg {
  filter: drop-shadow(0 0 0 var(--gold)) drop-shadow(0 0 10px rgba(255, 216, 102, 0.9));
}
.tbl.rot {
  width: 124px;
  height: 220px;
}
.tbl .lab {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.tbl .code {
  font-size: 22px;
  letter-spacing: 0.5px;
  font-weight: 800;
  line-height: 1;
}
.tbl .time {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.tbl .amt {
  font-size: 11px;
  font-weight: 600;
  background: #0812248c;
  padding: 2px 9px;
  border-radius: 999px;
  margin-top: 5px;
}
.tbl .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold3);
  color: var(--navy);
  font-weight: 800;
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 8px;
  box-shadow: 0 2px 0 var(--gold4);
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--mut);
}
.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-right: 5px;
  vertical-align: -2px;
}
.side {
  width: 380px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}
.big-time {
  font-size: 34px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.kv {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.kv:last-child {
  border: 0;
}
.ord {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f7;
}
.ord:last-child {
  border: 0;
}
.waitbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.dim {
  position: fixed;
  inset: 0;
  background: #0810228c;
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 16px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.modal {
  background: #fff;
  border-radius: 22px;
  width: min(560px, 100%);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 30px 80px #00000059;
}
.modal.wide {
  width: min(1000px, 100%);
}
.modal-h {
  background: linear-gradient(90deg, var(--navy), var(--navy3));
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
}
.modal-h h3 {
  font-size: 17px;
}
.modal-h .x {
  margin-left: auto;
  background: #ffffff1f;
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}
.modal-b {
  padding: 20px;
}
.modal-f {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: #fff;
}
.menu-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  min-height: 520px;
}
.gtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.gtab {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 600;
}
.gtab.on {
  background: var(--navy3);
  color: #fff;
  border-color: var(--navy3);
}
.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.item {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  background: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 84px;
}
.item:hover {
  border-color: var(--gold3);
  box-shadow: 0 4px 12px #f2b21c2e;
}
.item .p {
  font-weight: 800;
  color: var(--gold4);
}
.cart {
  background: #f6f8fc;
  border-left: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 2px #c9d2e3;
  cursor: pointer;
  font-weight: 800;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff6dc;
  border: 1.5px solid #f4dc95;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold4);
  margin-top: 1px;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.seg button {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.seg button.on {
  border-color: var(--gold3);
  background: #fff8e2;
  box-shadow: 0 0 0 3px #f2b21c33;
}
.total-box {
  background: linear-gradient(135deg, var(--navy), var(--navy3));
  color: #fff;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.total-box .v {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
}
.qrbox {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #f6f8fc;
  border-radius: 16px;
  padding: 14px;
}
.qrbox canvas,
.qrbox img {
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}
.quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.quick button {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}
table.t {
  width: 100%;
  border-collapse: collapse;
}
table.t th {
  text-align: left;
  font-size: 12px;
  color: var(--mut);
  font-weight: 600;
  padding: 9px 10px;
  border-bottom: 1.5px solid var(--line);
}
table.t td {
  padding: 10px;
  border-bottom: 1px solid #f0f2f7;
}
table.t tr:hover td {
  background: #fafbfe;
}
.stat {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px #0c1c360d;
}
.stat .l {
  font-size: 12px;
  color: var(--mut);
  font-weight: 600;
}
.stat .v {
  font-size: 24px;
  font-weight: 800;
  margin-top: 4px;
}
.stat.navy {
  background: linear-gradient(135deg, var(--navy), var(--navy3));
  color: #fff;
}
.stat.navy .l {
  color: #b9c6e4;
}
.stat.navy .v {
  color: var(--gold);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding-top: 10px;
}
.bars div {
  flex: 1;
  background: linear-gradient(180deg, var(--gold2), var(--gold4));
  border-radius: 6px 6px 0 0;
  position: relative;
  min-height: 2px;
}
.bars span {
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: var(--mut);
}
.kgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.kcard {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  border-top: 5px solid var(--pause);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kcard.dang_lam {
  border-top-color: var(--play);
}
.kcard .tb {
  font-size: 22px;
  font-weight: 800;
}
.auth {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--navy);
}
.auth-l {
  background: var(--navy) url(/pattern.webp);
  background-size: 480px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 40px;
  text-align: center;
}
.auth-l:after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -40%;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(242, 178, 28, 0.35), transparent 65%);
}
.auth-l img {
  width: 120px;
  border-radius: 28px;
  box-shadow: 0 20px 40px #0006;
  position: relative;
  z-index: 1;
}
.auth-l h1 {
  font-size: 34px;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}
.auth-l p {
  color: #b9c6e4;
  position: relative;
  z-index: 1;
  max-width: 380px;
}
.auth-r {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow: auto;
}
.auth-card {
  width: min(440px, 100%);
}
.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.steps i {
  flex: 1;
  height: 5px;
  border-radius: 9px;
  background: var(--line);
}
.steps i.on {
  background: var(--gold3);
}
.pinpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pinpad button {
  padding: 14px;
  border-radius: 14px;
  border: 0;
  background: #f1f4fa;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px #d5dcea;
}
.pindots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 10px 0 16px;
}
.pindots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--line);
}
.pindots i.on {
  background: var(--gold3);
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 99;
  box-shadow: 0 10px 30px #0000004d;
  border: 1px solid var(--goldline);
}
.toast.bad {
  background: #8f1f1f;
}
.empty {
  text-align: center;
  color: var(--mut);
  padding: 40px;
}
.receipt {
  width: 300px;
  margin: 0 auto;
  font-family:
    Be Vietnam Pro,
    sans-serif;
  font-size: 12px;
  color: #000;
  background: #fff;
  padding: 14px;
}
.receipt .c {
  text-align: center;
}
.receipt hr {
  border: 0;
  border-top: 1px dashed #000;
  margin: 8px 0;
}
.receipt .tag {
  border: 2px solid #000;
  font-weight: 800;
  text-align: center;
  padding: 4px;
  margin: 8px 0;
  letter-spacing: 1px;
}
.receipt .l {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.receipt .tt {
  font-size: 16px;
  font-weight: 800;
}
#print-area {
  display: none;
}
@media print {
  body * {
    visibility: hidden;
  }
  #print-area,
  #print-area * {
    visibility: visible;
  }
  #print-area {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
  }
}
@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-l {
    display: none;
  }
  .floor-wrap {
    flex-direction: column;
    height: auto;
  }
  .floor {
    min-height: 60vh;
  }
  .side {
    width: 100%;
  }
  .menu-layout {
    grid-template-columns: 1fr;
  }
  .cart {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .grid3 {
    grid-template-columns: 1fr 1fr;
  }
  .top {
    flex-wrap: wrap;
  }
  .tabs {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .main {
    padding: 12px;
  }
}
.tbl .bell {
  position: absolute;
  top: -8px;
  left: -6px;
  font-size: 20px;
  animation: ring 1s infinite;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}
@keyframes ring {
  0%,
  to {
    transform: rotate(0);
  }
  20% {
    transform: rotate(18deg);
  }
  40% {
    transform: rotate(-14deg);
  }
  60% {
    transform: rotate(8deg);
  }
}
.lm {
  position: absolute;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  opacity: 0.9;
  box-shadow: inset 0 0 0 2px #ffffff26;
  -webkit-user-select: none;
  user-select: none;
}
.lm-x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--fix);
  cursor: pointer;
  font-weight: 800;
}
.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  background: #13244f url(/pattern.webp);
  background-size: 420px;
  border-radius: 20px;
  padding: 20px;
  flex: 1;
  align-content: start;
  overflow: auto;
}
.tgrid .tbl-g {
  position: relative;
  width: 220px;
  height: 124px;
  margin: 0 auto;
}
.item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}
.item.off {
  opacity: 0.45;
  cursor: not-allowed;
}
.kcard.late {
  border-top-color: var(--fix);
  background: #fff7f7;
}
details.card summary {
  list-style: none;
}
.qr-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}
.qr-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy3));
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 150px;
  justify-content: flex-end;
}
.qr-hero h1 {
  font-size: 30px;
}
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.qr-card {
  background: #fff;
  border: 2px dashed var(--navy3);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
@media print {
  body.print-qr * {
    visibility: hidden;
  }
  body.print-qr #qr-print,
  body.print-qr #qr-print * {
    visibility: visible;
  }
  body.print-qr #qr-print {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  body.print-qr .noprint {
    display: none;
  }
  body.print-qr .qr-card {
    break-inside: avoid;
  }
}
.body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.nav {
  width: 220px;
  flex: none;
  background: var(--navy);
  padding: 10px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: width 0.15s;
}
.nav.mini {
  width: 64px;
}
.ngh {
  color: #7d8db0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 10px 4px;
}
.nav.mini .ngh {
  font-size: 0;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 8px;
}
.ni {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #c8d3ec;
  padding: 9px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  position: relative;
}
.ni:hover {
  background: #ffffff0f;
}
.ni.on {
  background: linear-gradient(180deg, var(--gold), var(--gold3));
  color: var(--navy);
  box-shadow: 0 3px 0 var(--gold4);
}
.nic {
  width: 22px;
  text-align: center;
  font-size: 16px;
  flex: none;
}
.nav.mini .nlab {
  display: none;
}
.ni .dot {
  margin-left: auto;
  background: #e53e3e;
  color: #fff;
  font-size: 10px;
  border-radius: 999px;
  padding: 1px 6px;
}
.nav.mini .ni .dot {
  position: absolute;
  top: 2px;
  right: 2px;
}
.bracket {
  display: flex;
  gap: 18px;
  min-width: max-content;
}
.bcol {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 12px;
  min-width: 220px;
}
.bm {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 6px 8px;
  background: #fff;
  cursor: pointer;
}
.bm.live {
  border-color: var(--play);
  box-shadow: 0 0 0 3px #1e6fc226;
}
.bm.done {
  background: #fafbfe;
}
.bm.bye {
  opacity: 0.55;
  cursor: default;
}
.bp {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.bp.win b,
.bp.win .sp {
  color: var(--free);
  font-weight: 800;
}
.refside {
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.refside.brk {
  border-color: var(--gold3);
  background: #fffaea;
}
.tv {
  min-height: 100%;
  background: var(--navy) url(/pattern.webp);
  background-size: 480px;
  color: #fff;
  padding: 32px;
}
.tv h1 {
  font-size: 40px;
  letter-spacing: 1px;
}
.tv-m {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff12;
  border: 1px solid rgba(255, 216, 102, 0.35);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 24px;
  font-weight: 700;
}
.tv-m b {
  color: var(--gold);
  font-size: 34px;
  min-width: 110px;
  text-align: center;
}
.tv-card {
  background: #ffffff0f;
  border-radius: 18px;
  padding: 18px;
  font-size: 18px;
}
.tv-champ {
  margin-top: 18px;
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
}
@media (max-width: 900px) {
  .body {
    flex-direction: column;
  }
  .nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 6px;
  }
  .ngh {
    display: none;
  }
  .ng {
    display: flex;
    gap: 4px;
  }
  .ni {
    white-space: nowrap;
    width: auto;
  }
}
.stepbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.stepbar .st {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  background: #f1f4fa;
  color: var(--mut);
  font-weight: 700;
}
.stepbar .st.on {
  background: linear-gradient(180deg, var(--gold), var(--gold3));
  color: var(--navy);
}
.modal {
  color: var(--ink);
  text-align: left;
}
.pa {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100%;
  padding: 14px 14px 90px;
  background: var(--bg);
}
.pa-auth {
  padding-top: 28px;
}
.pa-hero {
  text-align: center;
  margin-bottom: 16px;
}
.pa-hero img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}
.pa-hero h1 {
  font-size: 30px;
  margin-top: 6px;
}
.pa-hero p {
  color: var(--mut);
  margin: 4px 0 0;
}
.pa-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pa-top {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(160deg, var(--navy3), var(--navy));
  color: #fff;
  border-radius: var(--r);
  padding: 14px;
  box-shadow: inset 0 0 0 1.5px var(--goldline);
}
.pa-card {
  background: var(--navy2);
  color: #fff;
  border-radius: var(--r);
  padding: 14px;
}
.prog {
  height: 10px;
  border-radius: 6px;
  background: #ffffff26;
  margin-top: 8px;
  overflow: hidden;
}
.prog i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
}
.pa-tab {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  background: var(--navy);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
  box-shadow: 0 -1px 0 var(--goldline);
}
.pa-tab button {
  flex: 1;
  max-width: 104px;
  background: none;
  border: 0;
  color: #9fb0d4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  padding: 4px;
  position: relative;
  cursor: pointer;
}
.pa-tab button span {
  font-size: 20px;
  line-height: 1;
}
.pa-tab button.on {
  color: var(--gold);
}
.pdot {
  position: absolute;
  top: 0;
  right: 22%;
  background: #e04848;
  color: #fff;
  border-radius: 9px;
  font-style: normal;
  font-size: 10px;
  padding: 0 5px;
}
.world {
  position: relative;
  height: 62vh;
  min-height: 380px;
  border-radius: var(--r);
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #2a4a3a, #16301f 70%);
  box-shadow: inset 0 0 0 1.5px var(--goldline);
}
.world .roads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.world .roads rect {
  fill: #ffffff14;
}
.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 4px;
  rotate: -45deg;
  border: 2px solid #fff;
  background: var(--fix);
  cursor: pointer;
  box-shadow: 0 4px 10px #0006;
}
.pin b {
  display: block;
  rotate: 45deg;
  color: #fff;
  font-size: 14px;
}
.pin.ok {
  background: var(--free);
}
.mepin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3d8bff;
  border: 3px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px #3d8bff40;
}
.pa-sheet {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 24px #00000059;
}
.pcard {
  border-radius: 20px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(150deg, var(--navy4), var(--navy) 70%);
  box-shadow:
    inset 0 0 0 2px var(--goldline),
    0 10px 24px #0c1c3640;
}
.bubble {
  max-width: 80%;
  align-self: flex-start;
  background: #eef2fa;
  border-radius: 14px 14px 14px 4px;
  padding: 8px 10px;
}
.bubble.mine {
  align-self: flex-end;
  background: #fff3cc;
  border-radius: 14px 14px 4px;
}
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 800px) {
  .grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pf {
  min-height: 100%;
  background: var(--bg);
}
.pf-top {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  box-shadow: 0 1px 0 var(--goldline);
}
.pf-top img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.pf-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
}
.pf .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf .stat span {
  color: var(--mut);
  font-size: 12px;
}
.pf .stat b {
  font-size: 20px;
}
.tbl.sel .felt-svg {
  filter: drop-shadow(0 0 2px var(--gold)) drop-shadow(0 0 12px rgba(255, 216, 102, 0.85));
}
.tbl .felt-svg {
  display: block;
  margin: 0 auto;
}
.tbl .plate {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  bottom: 0;
  min-width: 150px;
  max-width: 230px;
  background: #081228db;
  border: 1.5px solid;
  border-radius: 10px;
  padding: 4px 9px;
  color: #fff;
  text-align: center;
  box-shadow: 0 3px 8px #00000059;
  pointer-events: none;
  white-space: nowrap;
}
.tbl.rot .plate {
  min-width: 124px;
}
.tbl .plate .pl1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tbl .plate .code {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.tbl .plate .ty {
  font-size: 11px;
  font-weight: 700;
  background: #ffffff24;
  padding: 1px 7px;
  border-radius: 999px;
}
.tbl .plate .br {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tbl .plate .pl2 {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1px;
}
.tbl .plate .pl2 .time {
  font-variant-numeric: tabular-nums;
}
.tbl .plate .pl2 .amt {
  color: var(--gold);
  background: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
}
.tbl .plate .warn {
  color: #ffb4b4;
}
.tgrid .tbl-g {
  height: 184px !important;
}
.tbl .plate .pl2 .time {
  margin: 0;
  font-size: 12px;
}
.tbl .plate {
  bottom: auto;
  top: 130px;
}
.tbl.rot .plate {
  top: 226px;
}
.rot-btn {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translate(-50%);
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  box-shadow: 0 2px 0 var(--gold4);
  cursor: pointer;
  white-space: nowrap;
}
.tbl.rot .rot-btn {
  top: -12px;
}
.floor-wrap > .col {
  min-height: 0;
}
.floor {
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floor-fit {
  flex: none;
}
@media (max-width: 1000px) {
  .floor {
    min-height: 60vh;
  }
}
@media (max-width: 1200px) and (min-width: 901px) {
  .side {
    width: 300px;
  }
}
.tbl .felt-code {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 124px;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 800;
  color: #ffffffeb;
  letter-spacing: 1px;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 0 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.tbl.rot .felt-code {
  height: 220px;
  font-size: 36px;
}
.tbl .plate {
  min-width: 120px;
}
.lm-bad {
  box-shadow:
    0 0 0 3px #e04848,
    0 0 12px #e04848b3 !important;
}
.lm {
  z-index: 2;
}
.tbl-in {
  position: relative;
  width: 220px;
  height: 184px;
  transform-origin: 0 0;
}
.tbl.rot .tbl-in {
  width: 130px;
  height: 272px;
}
.lm-rot {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--navy3);
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  line-height: 20px;
  padding: 0;
  z-index: 3;
}
.lm-rs {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #fff;
  border: 2px solid var(--navy3);
  cursor: nwse-resize;
  z-index: 3;
}
.hbars {
  height: 170px;
  margin-bottom: 18px;
}
.hbars div span {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translate(-50%);
  font-size: 10px;
  color: var(--mut);
}
.hbar {
  display: grid;
  grid-template-columns: 170px 1fr 120px 70px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
}
.hbar .hl {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hbar .ht {
  height: 22px;
  background: #eef2fa;
  border-radius: 6px;
  overflow: hidden;
}
.hbar .ht i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--navy3), #4f9be8);
  border-radius: 6px;
}
.hbar b {
  text-align: right;
}
.combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.combo-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  border-left: 8px solid var(--cc);
}
.combo-card.on {
  border-color: var(--cc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc) 35%, transparent);
}
.combo-card .cp {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}
.combo-dot {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.floor-name {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 4;
  background: #081228b3;
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--goldline);
  pointer-events: none;
}
.floor-edge {
  position: absolute;
  border: 2px dashed rgba(255, 216, 102, 0.35);
  border-radius: 14px;
  pointer-events: none;
}
:root {
  --bg: #f3f5f9;
  --line: #e2e7ef;
  --mut: #5f6b7f;
  --r: 10px;
  --ink: #101a2c;
  --navyA: #16233f;
}
body {
  font-size: 14px;
  letter-spacing: 0;
}
h2,
.page-h h2 {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.2px;
}
.card h3 {
  font-weight: 700;
  font-size: 15px;
}
.btn {
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
  box-shadow: none !important;
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s;
}
.btn:active {
  transform: none;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}
.btn-lg {
  padding: 12px 20px;
  font-size: 15px;
}
.btn-gold {
  background: var(--gold3);
  color: var(--navy);
  border: 1px solid var(--gold4);
}
.btn-gold:hover:not(:disabled) {
  background: #e8a815;
}
.btn-navy {
  background: var(--navy3);
  color: #fff;
  border: 1px solid var(--navy3);
}
.btn-navy:hover {
  background: var(--navy4);
}
.btn-white {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-white:hover:not(:disabled) {
  background: #f6f8fb;
  border-color: #cfd6e2;
}
.btn-red {
  background: #fff;
  color: var(--fix);
  border: 1px solid #efcaca;
}
.btn-red:hover {
  background: #fdf3f3;
}
.btn-green {
  background: var(--free);
  color: #fff;
  border: 1px solid var(--free);
}
.btn-ghost {
  color: var(--navy3);
}
.btn-ghost:hover {
  background: #1c31700f;
}
.pill {
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none !important;
  border: 1px solid transparent;
}
.pill .ball {
  width: 30px;
  height: 30px;
}
.pill .ball i {
  width: 15px;
  height: 15px;
  font-size: 10px;
}
.card,
.stat {
  border-radius: var(--r);
  box-shadow: none;
  border: 1px solid var(--line);
}
.stat .v {
  font-weight: 700;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.stat.navy {
  background: var(--navyA);
  border-color: var(--navyA);
}
.stat.navy .v {
  color: #fff;
}
.inp {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 9px 12px;
}
.inp:focus {
  border-color: var(--navy3);
  box-shadow: 0 0 0 3px #1c31701f;
}
.inp.big {
  font-weight: 700;
}
.chip {
  border-radius: 6px;
  font-weight: 600;
  padding: 2px 8px;
}
.c-gold {
  background: #fdf3d6;
  color: #7a5200;
}
.c-navy {
  background: #e7ecf6;
  color: var(--navy3);
}
.note {
  border-radius: 8px;
}
.n-gold {
  background: #fdf8ea;
  border: 1px solid #f0e2b6;
  color: #5e4500;
}
.n-blue {
  background: #eef4fc;
  color: #1d4f8a;
  border: 1px solid #d9e6f7;
}
.err {
  border-radius: 8px;
}
.gtab {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 500;
  background: #fff;
}
.gtab:hover {
  border-color: #cfd6e2;
}
.gtab.on {
  background: var(--navyA);
  border-color: var(--navyA);
  color: #fff;
}
.seg button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  font-weight: 600;
}
.seg button.on {
  border-color: var(--navy3);
  background: #eef2fa;
  box-shadow: inset 0 0 0 1px var(--navy3);
  color: var(--navy3);
}
.quick button {
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid var(--line);
}
.quick button.on {
  border-color: var(--navy3);
  background: #eef2fa;
  color: var(--navy3);
}
.top {
  background: var(--navyA);
  border-bottom: 1px solid #22314f;
  padding: 8px 16px;
}
.top .shop {
  font-weight: 700;
  font-size: 15px;
}
.av {
  background: #2a3a5e;
  color: #fff;
  font-weight: 700;
}
.nav {
  background: var(--navyA);
  border-right: 1px solid #22314f;
  padding: 10px 8px;
}
.ngh {
  color: #6f7f9e;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.8px;
}
.ni {
  border-radius: 8px;
  color: #b7c2d8;
  font-weight: 500;
  padding: 8px 10px;
}
.ni:hover {
  background: #ffffff0d;
  color: #fff;
}
.ni.on {
  background: #ffffff14;
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gold3);
}
.ni.on .nic {
  color: var(--gold);
}
.nic {
  display: grid;
  place-items: center;
  color: #8b98b3;
}
.ni .dot {
  background: #d64545;
}
.modal {
  border-radius: 12px;
  box-shadow: 0 20px 60px #0a14284d;
}
.modal-h {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
}
.modal-h h3 {
  font-size: 16px;
  font-weight: 700;
}
.modal-h .x {
  background: #f1f3f7;
  color: var(--mut);
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.total-box {
  border-radius: 10px !important;
}
table.t th {
  font-weight: 600;
  color: var(--mut);
  font-size: 12px;
  background: #fafbfd;
}
.floor,
.tgrid {
  background: #15213a radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1.2px) 0 0/24px 24px !important;
  border-radius: var(--r);
  box-shadow: none;
}
.floor-name {
  background: #ffffff14;
  color: #dfe6f3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  border-radius: 6px;
}
.tbl .plate {
  background: #091020e0;
  border-width: 1px;
  border-radius: 6px;
  padding: 3px 8px;
}
.tbl .plate .code {
  font-weight: 700;
}
.tbl .felt-code {
  font-weight: 700;
  font-size: 34px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.tbl .badge {
  background: var(--gold3);
  box-shadow: none;
  border-radius: 6px;
  font-weight: 700;
}
.tbl.sel .felt-svg {
  filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
}
.rot-btn {
  border-radius: 6px;
  box-shadow: none;
  font-weight: 600;
  background: #fff;
}
.lm {
  border-radius: 6px;
  font-weight: 600;
  opacity: 0.85;
  box-shadow: inset 0 0 0 1px #fff3;
}
.legend i {
  border-radius: 3px;
}
.side .card {
  border-radius: var(--r);
}
.combo-card {
  border-radius: 10px;
  border-width: 1px;
  border-left-width: 6px;
}
.qr-hero,
.pa-top,
.pcard {
  border-radius: 12px;
}
.auth-l {
  background: var(--navyA) radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.2px) 0 0/24px 24px !important;
}
.auth-l h1 {
  font-weight: 700;
}
.tv {
  background: var(--navyA) !important;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.shop-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font: inherit;
}
.shop-item:hover {
  border-color: var(--navy3);
}
.shop-item.off {
  opacity: 0.45;
  cursor: not-allowed;
}
.shop-item img,
.shop-ph {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  background: #eef1f6;
  display: grid;
  place-items: center;
  color: var(--mut);
  font-size: 12px;
}
.shop-n {
  font-weight: 600;
  line-height: 1.3;
  min-height: 34px;
}
.shop-low {
  color: var(--fix);
  font-weight: 600;
}
.cart-l {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qty button {
  border-radius: 6px;
  box-shadow: none;
  border: 1px solid var(--line);
}
.set-wrap {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  min-height: 340px;
}
.set-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}
.set-nav button {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}
.set-nav button:hover {
  background: #7f8caa1a;
}
.set-nav button.on {
  background: var(--navyA);
  color: #fff;
}
@media (max-width: 700px) {
  .set-wrap {
    grid-template-columns: 1fr;
  }
  .set-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border: 0;
  }
}
@media print {
  #print-area .receipt {
    width: calc(var(--paper, 80mm) - 4mm) !important;
  }
}
[data-theme="dark"] {
  --bg: #0e1524;
  --card: #161f33;
  --ink: #e6ebf5;
  --mut: #93a0ba;
  --line: #27324a;
  color-scheme: dark;
}
[data-theme="dark"] body {
  background: var(--bg);
  color: var(--ink);
}
[data-theme="dark"] .card,
[data-theme="dark"] .stat,
[data-theme="dark"] .modal,
[data-theme="dark"] .modal-h,
[data-theme="dark"] .modal-f,
[data-theme="dark"] .gtab,
[data-theme="dark"] .seg button,
[data-theme="dark"] .quick button,
[data-theme="dark"] .shop-item,
[data-theme="dark"] .combo-card,
[data-theme="dark"] .bm,
[data-theme="dark"] .refside {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="dark"] .inp {
  background: #0f1729;
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="dark"] .btn-white {
  background: #1c2740;
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="dark"] .btn-white:hover:not(:disabled) {
  background: #243150;
}
[data-theme="dark"] .btn-red {
  background: #2a1a1f;
  border-color: #5a2a2f;
}
[data-theme="dark"] .btn-ghost {
  color: #9fb4e6;
}
[data-theme="dark"] .gtab.on {
  background: #2f4a8a;
  border-color: #2f4a8a;
}
[data-theme="dark"] .seg button.on,
[data-theme="dark"] .quick button.on {
  background: #1f2d4f;
  color: #cfdcff;
  box-shadow: inset 0 0 0 1px #4a6bc4;
}
[data-theme="dark"] table.t th {
  background: #131c2e;
  color: var(--mut);
}
[data-theme="dark"] table.t td,
[data-theme="dark"] .kv {
  border-color: var(--line);
}
[data-theme="dark"] .modal-h .x {
  background: #232f48;
  color: var(--ink);
}
[data-theme="dark"] .note.n-gold {
  background: #2a2414;
  border-color: #4a3e1c;
  color: #f1d98c;
}
[data-theme="dark"] .note.n-blue {
  background: #14213a;
  border-color: #22365c;
  color: #a9c4f2;
}
[data-theme="dark"] .c-soft {
  background: #222c42;
  color: var(--mut);
}
[data-theme="dark"] .c-navy {
  background: #22325a;
  color: #c9d6f5;
}
[data-theme="dark"] .c-gold {
  background: #3a2f12;
  color: #f1cf6b;
}
[data-theme="dark"] .c-green {
  background: #13352a;
  color: #7fd8ad;
}
[data-theme="dark"] .c-red {
  background: #3a1d20;
  color: #f19a9a;
}
[data-theme="dark"] .c-amber {
  background: #3a2c14;
  color: #f0c27a;
}
[data-theme="dark"] .c-blue {
  background: #16294a;
  color: #93bdf5;
}
[data-theme="dark"] .err {
  background: #3a1d20;
  color: #f3b0b0;
}
[data-theme="dark"] .shop-item img,
[data-theme="dark"] .shop-ph {
  background: #0f1729;
}
[data-theme="dark"] .qty button {
  background: #1c2740;
  color: var(--ink);
}
[data-theme="dark"] .hbar .ht {
  background: #0f1729;
}
[data-theme="dark"] .page-h h2,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
  color: var(--ink);
}
.sky-moon {
  display: none;
}
[data-theme="dark"] .top {
  position: relative;
  overflow: hidden;
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='60'><circle cx='407.1' cy='33.6' r='1.0' fill='%23fff' fill-opacity='0.45'/><circle cx='769.5' cy='11.4' r='1.2' fill='%23fff' fill-opacity='0.46'/><circle cx='552.6' cy='11.2' r='1.0' fill='%23fff' fill-opacity='0.39'/><circle cx='81.6' cy='48.6' r='1.3' fill='%23fff' fill-opacity='0.54'/><circle cx='535.9' cy='23.8' r='1.0' fill='%23fff' fill-opacity='0.54'/><circle cx='554.0' cy='9.4' r='0.6' fill='%23fff' fill-opacity='0.62'/><circle cx='56.8' cy='2.1' r='0.7' fill='%23fff' fill-opacity='0.52'/><circle cx='700.3' cy='19.6' r='1.2' fill='%23fff' fill-opacity='0.63'/><circle cx='467.2' cy='38.4' r='1.0' fill='%23fff' fill-opacity='0.25'/><circle cx='76.5' cy='39.3' r='1.0' fill='%23fff' fill-opacity='0.7'/><circle cx='896.1' cy='50.4' r='1.3' fill='%23fff' fill-opacity='0.36'/><circle cx='682.2' cy='30.8' r='0.6' fill='%23fff' fill-opacity='0.28'/><circle cx='689.7' cy='24.0' r='0.8' fill='%23fff' fill-opacity='0.42'/><circle cx='862.2' cy='50.8' r='0.6' fill='%23fff' fill-opacity='0.35'/><circle cx='834.3' cy='3.1' r='1.0' fill='%23fff' fill-opacity='0.69'/><circle cx='357.7' cy='4.4' r='1.3' fill='%23fff' fill-opacity='0.34'/><circle cx='607.4' cy='20.2' r='0.8' fill='%23fff' fill-opacity='0.4'/><circle cx='867.7' cy='45.5' r='0.6' fill='%23fff' fill-opacity='0.31'/><circle cx='636.3' cy='0.7' r='1.0' fill='%23fff' fill-opacity='0.61'/><circle cx='159.9' cy='33.6' r='1.0' fill='%23fff' fill-opacity='0.48'/><circle cx='886.8' cy='46.2' r='1.0' fill='%23fff' fill-opacity='0.54'/><circle cx='104.9' cy='25.2' r='0.7' fill='%23fff' fill-opacity='0.25'/><circle cx='777.9' cy='58.5' r='1.2' fill='%23fff' fill-opacity='0.39'/><circle cx='796.4' cy='12.6' r='1.0' fill='%23fff' fill-opacity='0.7'/><circle cx='541.8' cy='34.6' r='0.6' fill='%23fff' fill-opacity='0.7'/><circle cx='191.9' cy='15.5' r='1.2' fill='%23fff' fill-opacity='0.4'/><circle cx='266.7' cy='4.4' r='0.6' fill='%23fff' fill-opacity='0.34'/><circle cx='572.9' cy='0.9' r='0.8' fill='%23fff' fill-opacity='0.42'/><circle cx='407.9' cy='57.5' r='1.0' fill='%23fff' fill-opacity='0.62'/><circle cx='122.2' cy='23.2' r='1.3' fill='%23fff' fill-opacity='0.32'/><circle cx='817.6' cy='49.1' r='0.7' fill='%23fff' fill-opacity='0.58'/><circle cx='142.6' cy='37.7' r='1.2' fill='%23fff' fill-opacity='0.34'/><circle cx='855.1' cy='52.9' r='1.2' fill='%23fff' fill-opacity='0.29'/><circle cx='42.7' cy='6.5' r='1.2' fill='%23fff' fill-opacity='0.68'/><circle cx='214.6' cy='42.3' r='0.8' fill='%23fff' fill-opacity='0.44'/><circle cx='814.3' cy='29.5' r='1.2' fill='%23fff' fill-opacity='0.33'/><circle cx='648.3' cy='4.1' r='0.7' fill='%23fff' fill-opacity='0.47'/><circle cx='588.2' cy='37.0' r='0.6' fill='%23fff' fill-opacity='0.38'/><circle cx='825.6' cy='12.2' r='0.6' fill='%23fff' fill-opacity='0.28'/><circle cx='370.3' cy='14.9' r='0.6' fill='%23fff' fill-opacity='0.33'/></svg>")
      repeat-x,
    linear-gradient(90deg, #0b1222, #121c35 55%, #0b1222);
}
[data-theme="dark"] .top > * {
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .sky-moon {
  display: block;
  position: absolute !important;
  z-index: 0 !important;
  left: 52%;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 236, 180, 0.45));
}
[data-theme="dark"] .main {
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='520' height='380'><circle cx='168.4' cy='57.3' r='1.6' fill='%23fff' fill-opacity='0.52'/><circle cx='427.1' cy='35.8' r='1.2' fill='%23fff' fill-opacity='0.52'/><circle cx='263.9' cy='14.2' r='1.0' fill='%23fff' fill-opacity='0.65'/><circle cx='125.1' cy='209.4' r='0.6' fill='%23fff' fill-opacity='0.79'/><circle cx='64.4' cy='84.8' r='1.6' fill='%23fff' fill-opacity='0.7'/><circle cx='32.2' cy='222.5' r='0.6' fill='%23fff' fill-opacity='0.84'/><circle cx='24.2' cy='326.2' r='0.8' fill='%23fff' fill-opacity='0.65'/><circle cx='281.2' cy='216.9' r='1.2' fill='%23fff' fill-opacity='0.79'/><circle cx='94.0' cy='221.0' r='1.6' fill='%23fff' fill-opacity='0.57'/></svg>"),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='320'><circle cx='56.4' cy='271.2' r='0.6' fill='%23fff' fill-opacity='0.23'/><circle cx='208.1' cy='143.8' r='1.4' fill='%23fff' fill-opacity='0.26'/><circle cx='88.2' cy='156.1' r='1.0' fill='%23fff' fill-opacity='0.28'/><circle cx='320.2' cy='0.7' r='1.0' fill='%23fff' fill-opacity='0.23'/><circle cx='336.8' cy='189.2' r='0.6' fill='%23fff' fill-opacity='0.42'/><circle cx='12.8' cy='8.1' r='1.2' fill='%23fff' fill-opacity='0.15'/><circle cx='370.1' cy='219.7' r='1.0' fill='%23fff' fill-opacity='0.37'/><circle cx='221.6' cy='244.4' r='1.0' fill='%23fff' fill-opacity='0.32'/><circle cx='145.2' cy='216.6' r='1.0' fill='%23fff' fill-opacity='0.44'/><circle cx='389.1' cy='133.2' r='1.2' fill='%23fff' fill-opacity='0.43'/><circle cx='42.0' cy='201.4' r='1.4' fill='%23fff' fill-opacity='0.41'/><circle cx='50.8' cy='106.5' r='1.4' fill='%23fff' fill-opacity='0.44'/><circle cx='210.3' cy='309.5' r='1.2' fill='%23fff' fill-opacity='0.4'/><circle cx='281.5' cy='97.1' r='1.2' fill='%23fff' fill-opacity='0.44'/><circle cx='209.7' cy='301.1' r='1.0' fill='%23fff' fill-opacity='0.33'/><circle cx='14.5' cy='77.7' r='1.0' fill='%23fff' fill-opacity='0.27'/><circle cx='72.7' cy='175.6' r='1.4' fill='%23fff' fill-opacity='0.38'/><circle cx='310.1' cy='27.7' r='1.4' fill='%23fff' fill-opacity='0.3'/><circle cx='326.9' cy='166.7' r='1.0' fill='%23fff' fill-opacity='0.26'/><circle cx='307.8' cy='150.2' r='0.8' fill='%23fff' fill-opacity='0.36'/><circle cx='412.9' cy='189.8' r='1.0' fill='%23fff' fill-opacity='0.34'/><circle cx='70.8' cy='72.6' r='0.6' fill='%23fff' fill-opacity='0.38'/><circle cx='226.6' cy='275.3' r='0.7' fill='%23fff' fill-opacity='0.27'/><circle cx='144.4' cy='271.2' r='0.8' fill='%23fff' fill-opacity='0.29'/><circle cx='113.1' cy='175.4' r='1.4' fill='%23fff' fill-opacity='0.15'/><circle cx='329.1' cy='262.6' r='1.4' fill='%23fff' fill-opacity='0.3'/><circle cx='54.3' cy='248.8' r='0.7' fill='%23fff' fill-opacity='0.28'/><circle cx='23.6' cy='278.4' r='1.2' fill='%23fff' fill-opacity='0.32'/><circle cx='395.2' cy='132.3' r='0.8' fill='%23fff' fill-opacity='0.27'/><circle cx='0.7' cy='172.8' r='1.2' fill='%23fff' fill-opacity='0.25'/><circle cx='251.9' cy='257.5' r='1.4' fill='%23fff' fill-opacity='0.2'/><circle cx='245.5' cy='275.5' r='1.2' fill='%23fff' fill-opacity='0.39'/><circle cx='342.9' cy='81.7' r='1.4' fill='%23fff' fill-opacity='0.17'/><circle cx='364.6' cy='145.0' r='0.8' fill='%23fff' fill-opacity='0.22'/></svg>"),
    radial-gradient(1200px 500px at 80% -10%, rgba(70, 96, 170, 0.18), transparent 60%), var(--bg);
  background-attachment: local, local, fixed, fixed;
  position: relative;
}
[data-theme="dark"] .main:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='420'><path d='M153.3 223.1Q153.3 226.8 157.0 226.8Q153.3 226.8 153.3 230.5Q153.3 226.8 149.5 226.8Q153.3 226.8 153.3 223.1Z' fill='%23E9EEFF' fill-opacity='.55'/><path d='M358.2 254.6Q358.2 257.8 361.3 257.8Q358.2 257.8 358.2 260.9Q358.2 257.8 355.1 257.8Q358.2 257.8 358.2 254.6Z' fill='%23E9EEFF' fill-opacity='.55'/><path d='M27.4 334.7Q27.4 338.2 30.9 338.2Q27.4 338.2 27.4 341.8Q27.4 338.2 23.9 338.2Q27.4 338.2 27.4 334.7Z' fill='%23E9EEFF' fill-opacity='.55'/><path d='M151.2 394.4Q151.2 398.3 155.2 398.3Q151.2 398.3 151.2 402.3Q151.2 398.3 147.3 398.3Q151.2 398.3 151.2 394.4Z' fill='%23E9EEFF' fill-opacity='.55'/></svg>");
  animation: twk 5s ease-in-out infinite alternate;
}
[data-theme="dark"] .main > * {
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .nav {
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='320'><circle cx='56.4' cy='271.2' r='0.6' fill='%23fff' fill-opacity='0.23'/><circle cx='208.1' cy='143.8' r='1.4' fill='%23fff' fill-opacity='0.26'/><circle cx='88.2' cy='156.1' r='1.0' fill='%23fff' fill-opacity='0.28'/><circle cx='320.2' cy='0.7' r='1.0' fill='%23fff' fill-opacity='0.23'/><circle cx='336.8' cy='189.2' r='0.6' fill='%23fff' fill-opacity='0.42'/><circle cx='12.8' cy='8.1' r='1.2' fill='%23fff' fill-opacity='0.15'/><circle cx='370.1' cy='219.7' r='1.0' fill='%23fff' fill-opacity='0.37'/><circle cx='221.6' cy='244.4' r='1.0' fill='%23fff' fill-opacity='0.32'/><circle cx='145.2' cy='216.6' r='1.0' fill='%23fff' fill-opacity='0.44'/><circle cx='389.1' cy='133.2' r='1.2' fill='%23fff' fill-opacity='0.43'/><circle cx='42.0' cy='201.4' r='1.4' fill='%23fff' fill-opacity='0.41'/><circle cx='50.8' cy='106.5' r='1.4' fill='%23fff' fill-opacity='0.44'/><circle cx='210.3' cy='309.5' r='1.2' fill='%23fff' fill-opacity='0.4'/><circle cx='281.5' cy='97.1' r='1.2' fill='%23fff' fill-opacity='0.44'/><circle cx='209.7' cy='301.1' r='1.0' fill='%23fff' fill-opacity='0.33'/><circle cx='14.5' cy='77.7' r='1.0' fill='%23fff' fill-opacity='0.27'/><circle cx='72.7' cy='175.6' r='1.4' fill='%23fff' fill-opacity='0.38'/><circle cx='310.1' cy='27.7' r='1.4' fill='%23fff' fill-opacity='0.3'/><circle cx='326.9' cy='166.7' r='1.0' fill='%23fff' fill-opacity='0.26'/><circle cx='307.8' cy='150.2' r='0.8' fill='%23fff' fill-opacity='0.36'/><circle cx='412.9' cy='189.8' r='1.0' fill='%23fff' fill-opacity='0.34'/><circle cx='70.8' cy='72.6' r='0.6' fill='%23fff' fill-opacity='0.38'/><circle cx='226.6' cy='275.3' r='0.7' fill='%23fff' fill-opacity='0.27'/><circle cx='144.4' cy='271.2' r='0.8' fill='%23fff' fill-opacity='0.29'/><circle cx='113.1' cy='175.4' r='1.4' fill='%23fff' fill-opacity='0.15'/><circle cx='329.1' cy='262.6' r='1.4' fill='%23fff' fill-opacity='0.3'/><circle cx='54.3' cy='248.8' r='0.7' fill='%23fff' fill-opacity='0.28'/><circle cx='23.6' cy='278.4' r='1.2' fill='%23fff' fill-opacity='0.32'/><circle cx='395.2' cy='132.3' r='0.8' fill='%23fff' fill-opacity='0.27'/><circle cx='0.7' cy='172.8' r='1.2' fill='%23fff' fill-opacity='0.25'/><circle cx='251.9' cy='257.5' r='1.4' fill='%23fff' fill-opacity='0.2'/><circle cx='245.5' cy='275.5' r='1.2' fill='%23fff' fill-opacity='0.39'/><circle cx='342.9' cy='81.7' r='1.4' fill='%23fff' fill-opacity='0.17'/><circle cx='364.6' cy='145.0' r='0.8' fill='%23fff' fill-opacity='0.22'/></svg>"),
    #0c1424;
}
@keyframes twk {
  0% {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-theme="dark"] .main:before {
    animation: none;
    opacity: 0.6;
  }
}
[data-theme="dark"] .main {
  clip-path: inset(0);
}
.grid2 > .field,
.grid3 > .field,
.grid4 > .field {
  justify-content: flex-end;
}
.oldsrv {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fdecec;
  color: #8a2323;
  border-bottom: 1px solid #f3c2c2;
  padding: 8px 16px;
  font-size: 13px;
}
.oldsrv .btn {
  margin-left: auto;
}
[data-theme="dark"] .oldsrv {
  background: #3a1d20;
  color: #f3c0c0;
  border-color: #5a2a2f;
}
.sky {
  display: none;
}
.body {
  position: relative;
}
[data-theme="dark"] .body {
  background: radial-gradient(1100px 520px at 78% -8%, rgba(72, 98, 176, 0.2), transparent 62%),
    radial-gradient(700px 400px at 10% 110%, rgba(60, 50, 120, 0.14), transparent 60%), var(--bg);
}
[data-theme="dark"] .sky {
  display: block;
  position: absolute !important;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0 !important;
}
[data-theme="dark"] .body > .nav,
[data-theme="dark"] .body > .main {
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .main {
  background: transparent;
  clip-path: none;
}
[data-theme="dark"] .main:before {
  display: none;
}
[data-theme="dark"] .nav {
  background: #0a1120b8;
}
[data-theme="dark"] .top {
  background: linear-gradient(90deg, #0b1222, #121c35 55%, #0b1222);
}
.sky .st {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 5px #dce6ffb3;
  opacity: 0.2;
  animation-name: tw;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.sky .sp4 {
  border-radius: 0;
  background: #eef2ff;
  box-shadow: none;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  animation-name: tw4;
}
@keyframes tw {
  0% {
    opacity: 0.12;
    transform: scale(0.6);
  }
  60% {
    opacity: 0.55;
  }
  to {
    opacity: 1;
    transform: scale(1.2);
  }
}
@keyframes tw4 {
  0% {
    opacity: 0.1;
    transform: scale(0.4) rotate(0);
  }
  to {
    opacity: 0.95;
    transform: scale(1.15) rotate(45deg);
  }
}
.sky .shoot {
  position: absolute;
  top: 6%;
  left: 62%;
  width: 140px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff, rgba(190, 210, 255, 0.5) 30%, transparent);
  filter: drop-shadow(0 0 4px rgba(200, 220, 255, 0.9));
  opacity: 0;
  animation: shoot 13s linear infinite;
}
.sky .shoot.s2 {
  top: 22%;
  left: 90%;
  animation-duration: 19s;
  animation-delay: 6s;
}
.sky .shoot.s3 {
  top: 48%;
  left: 75%;
  width: 110px;
  animation-duration: 23s;
  animation-delay: 14s;
}
@keyframes shoot {
  0% {
    opacity: 0;
    transform: translate(0) rotate(-20deg);
  }
  1.5% {
    opacity: 1;
  }
  7% {
    opacity: 0;
    transform: translate(-360px, 131px) rotate(-20deg);
  }
  to {
    opacity: 0;
    transform: translate(-360px, 131px) rotate(-20deg);
  }
}
[data-theme="dark"] .sky-moon {
  animation: moon 8s ease-in-out infinite;
}
@keyframes moon {
  0%,
  to {
    transform: translateY(-50%) rotate(0);
    filter: drop-shadow(0 0 7px rgba(255, 236, 180, 0.35));
  }
  50% {
    transform: translateY(calc(-50% - 3px)) rotate(-6deg);
    filter: drop-shadow(0 0 16px rgba(255, 236, 180, 0.7));
  }
}
[data-sky="off"] .sky .st,
[data-sky="off"] .sky-moon {
  animation: none !important;
  opacity: 0.6;
}
[data-sky="off"] .sky .shoot,
.moon-halo {
  display: none;
}
[data-theme="dark"] .moon-halo {
  display: block;
  position: absolute !important;
  z-index: 0 !important;
  left: calc(52% + 20px);
  top: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(235, 242, 255, 0.3) 0, rgba(200, 215, 255, 0.14) 30%, transparent 68%);
  animation: halo 8s ease-in-out infinite;
}
@keyframes halo {
  0%,
  to {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}
[data-theme="dark"] .sky-moon {
  width: 40px;
  height: 40px;
}
@keyframes moon {
  0%,
  to {
    transform: translateY(-50%) rotate(0);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 16px rgba(205, 220, 255, 0.45));
  }
  50% {
    transform: translateY(calc(-50% - 3px)) rotate(-6deg);
    filter: drop-shadow(0 0 9px rgba(255, 255, 255, 1)) drop-shadow(0 0 28px rgba(205, 220, 255, 0.7));
  }
}
[data-theme="dark"] .sky-cloudtop {
  z-index: 0 !important;
}
.cloud {
  position: absolute;
  left: 0;
  animation-name: drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  filter: blur(7px);
  will-change: transform;
}
.cloud span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, rgba(196, 210, 240, 0.3), rgba(120, 140, 190, 0.16) 55%, transparent 72%);
}
.cloud span:nth-child(1) {
  left: 0;
  top: 30%;
  width: 45%;
  height: 70%;
}
.cloud span:nth-child(2) {
  left: 22%;
  top: 0;
  width: 40%;
  height: 95%;
}
.cloud span:nth-child(3) {
  left: 48%;
  top: 12%;
  width: 36%;
  height: 85%;
}
.cloud span:nth-child(4) {
  left: 66%;
  top: 38%;
  width: 34%;
  height: 62%;
}
.cloud.ct {
  filter: blur(4px);
}
.cloud.ct span {
  background: radial-gradient(ellipse at 50% 35%, rgba(220, 228, 248, 0.38), rgba(140, 158, 200, 0.18) 55%, transparent 72%);
}
@keyframes drift {
  0% {
    transform: translate(-110%);
  }
  to {
    transform: translate(calc(100vw + 10%));
  }
}
.sky .st {
  box-shadow: 0 0 6px #e1ebffd9;
}
@keyframes tw {
  0% {
    opacity: 0.18;
    transform: scale(0.6);
  }
  60% {
    opacity: 0.7;
  }
  to {
    opacity: 1;
    transform: scale(1.3);
  }
}
[data-sky="off"] .cloud,
[data-sky="off"] .moon-halo {
  animation: none !important;
}
:root {
  --soft2: #f4f6fb;
  --redsoft: #fbe1e1;
}
[data-theme="dark"] {
  --soft2: #1a2440;
  --redsoft: #3a1d20;
}
[data-theme="dark"] .check {
  background: #1c2740;
  border-color: #34446a;
  color: var(--ink);
}
[data-theme="dark"] .check:hover {
  border-color: #4a6bc4;
}
[data-theme="dark"] .check input {
  accent-color: #e3b341;
}
[data-theme="dark"] .item,
[data-theme="dark"] .kcard,
[data-theme="dark"] .qr-card,
[data-theme="dark"] .pa-sheet,
[data-theme="dark"] .rot-btn {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="dark"] .cart {
  background: #121a2d;
  border-color: var(--line);
}
[data-theme="dark"] .kcard.late {
  background: #2a1a1f;
}
[data-theme="dark"] .pinpad button {
  background: #1c2740;
  color: var(--ink);
  box-shadow: 0 3px #0b1222;
}
[data-theme="dark"] .refside.brk {
  background: #2a2414;
  border-color: #4a3e1c;
}
[data-theme="dark"] .bubble {
  background: #1f2b47;
  color: var(--ink);
}
[data-theme="dark"] .bubble.mine {
  background: #3a2f12;
  color: #f6e6b8;
}
[data-theme="dark"] table.t tr:hover td {
  background: #1a2440;
}
[data-theme="dark"] .lm-rs {
  background: #1c2740;
}
[data-theme="dark"] label,
[data-theme="dark"] .field label {
  color: #a9b6cf;
}
[data-theme="dark"] input[type="range"] {
  accent-color: #8fb0f0;
}
.dash {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash .page-h {
  margin-bottom: 0;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 118px;
  min-width: 0;
}
.kpi.click {
  cursor: pointer;
  transition: border-color 0.15s;
}
.kpi.click:hover {
  border-color: #8fa7d8;
}
.kpi .kl {
  font-size: 12px;
  font-weight: 700;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kpi .kv2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.kpi .kname {
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi .kof {
  font-size: 16px;
  color: var(--mut);
  font-weight: 700;
  margin-left: 2px;
}
.kpi .ks {
  font-size: 12px;
  color: var(--mut);
  margin-top: auto;
}
.kpi .ks .up {
  color: #2e8b62;
}
.kpi .ks .down {
  color: #c24545;
}
.kpi.k-main {
  background: var(--navyA, #16233f);
  border-color: var(--navyA, #16233f);
  color: #fff;
}
.kpi.k-main .kl,
.kpi.k-main .ks {
  color: #b9c6e4;
}
.kpi.k-main .ks .up {
  color: #7fd8ad;
}
.kpi.k-main .ks .down {
  color: #f19a9a;
}
.kbar {
  height: 6px;
  border-radius: 6px;
  background: var(--soft2, #eef2fa);
  overflow: hidden;
}
.kbar i {
  display: block;
  height: 100%;
  background: #2f6fc4;
  border-radius: 6px;
}
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}
.card-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.card-h h3 {
  margin: 0;
}
.dash-empty {
  color: var(--mut);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
}
.dash-t td,
.dash-t th {
  padding-top: 9px;
  padding-bottom: 9px;
}
.attn-sec {
  border-top: 1px solid var(--line);
  padding: 10px 0 4px;
}
.attn-sec:first-of-type {
  border-top: 0;
}
.attn-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}
.attn-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 5px 0;
}
.attn-row.warn {
  background: var(--soft2);
  border-left: 3px solid #c48a2c;
  border-radius: 6px;
  padding: 7px 10px;
  margin-bottom: 6px;
}
.attn-zero {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--mut);
}
.ok-line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
}
.ok-dot {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3f4ec;
  color: #2e8b62;
  font-weight: 800;
}
.shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.sc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.sc:hover {
  border-color: #8fa7d8;
  background: var(--soft2);
}
[data-theme="dark"] .kpi {
  background: var(--card);
  border-color: var(--line);
}
[data-theme="dark"] .kpi.k-main {
  background: #1f2d4f;
  border-color: #2c3e66;
}
[data-theme="dark"] .ok-dot {
  background: #13352a;
  color: #7fd8ad;
}
@media (max-width: 1100px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
}
.dash-t th.r,
.dash-t td.r {
  text-align: right;
}
.plan-badge {
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  letter-spacing: 0.02em;
}
.plan-badge span {
  font-weight: 600;
  opacity: 0.85;
  font-size: 11px;
}
.plan-badge.p-free {
  background: #2a3858;
  color: #cfdaf2;
}
.plan-badge.p-pro {
  background: linear-gradient(90deg, #2f6fc4, #4f9be8);
  color: #fff;
}
.plan-badge.p-promax {
  background: linear-gradient(90deg, #b8862b, #e9c25a);
  color: #1b1404;
}
.plan-badge.warn {
  box-shadow: 0 0 0 2px #e25555;
}
.nlock {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.7;
}
.nav.mini .nlock {
  display: none;
}
.pl-cur {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-radius: 14px;
  padding: 16px 18px;
  color: #fff;
  background: #2a3858;
}
.pl-cur.p-pro {
  background: linear-gradient(120deg, #1f4e8c, #2f6fc4);
}
.pl-cur.p-promax {
  background: linear-gradient(120deg, #5a4214, #b8862b);
}
.pl-cur .sm {
  opacity: 0.85;
}
.pl-name {
  font-size: 26px;
  font-weight: 800;
  margin: 2px 0;
}
.pl-iid {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.pl-iid b {
  font-family: ui-monospace, monospace;
  font-size: 16px;
  letter-spacing: 0.06em;
}
.pl-meter {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.plan-cmp {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.pc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.pc-row:first-child {
  border-top: 0;
}
.pc-row > * {
  padding: 8px 10px;
  text-align: center;
}
.pc-row > span {
  text-align: left;
}
.pc-row > div.on {
  background: var(--soft2);
}
.pc-row .ok {
  color: #2e8b62;
  font-weight: 800;
}
.pc-row .no {
  color: var(--mut);
}
.pc-head .pc-h {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pc-head .pc-h b {
  font-size: 15px;
}
.pc-head .pc-h.on b:after {
  content: " · đang dùng";
  font-size: 11px;
  font-weight: 600;
  color: var(--mut);
}
.up-ic {
  font-size: 34px;
  text-align: center;
}
.up-wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 40px 24px;
  max-width: 560px;
  margin: 30px auto;
}
.up-wall h2 {
  margin: 0;
}
.ni .nlab {
  flex: 1;
  min-width: 0;
}
.nlock {
  flex: none;
  margin-left: 0;
}
.winter {
  margin: auto -8px -10px;
  padding-top: 14px;
  flex: none;
  pointer-events: none;
  position: relative;
}
.winter svg {
  display: block;
  overflow: visible;
}
.winter * {
  transform-box: fill-box;
}
.wf {
  fill: #fff;
  opacity: 0.9;
  animation: wfall linear infinite;
}
@keyframes wfall {
  0% {
    transform: translate(0);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  50% {
    transform: translate(6px, 80px);
  }
  to {
    transform: translate(-4px, 165px);
    opacity: 0.2;
  }
}
.bulb {
  animation: bulb 1.8s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 2px currentColor);
}
@keyframes bulb {
  0% {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}
.wstar {
  transform-origin: center;
  animation: wstar 3.2s ease-in-out infinite;
}
@keyframes wstar {
  0%,
  to {
    transform: scale(1) rotate(0);
  }
  50% {
    transform: scale(1.15) rotate(10deg);
  }
}
.wstarglow {
  transform-origin: center;
  animation: wglow 3.2s ease-in-out infinite;
}
@keyframes wglow {
  0%,
  to {
    opacity: 0.5;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}
.wtree {
  transform-origin: 50% 100%;
  animation: wsway 6s ease-in-out infinite;
}
@keyframes wsway {
  0%,
  to {
    transform: rotate(0);
  }
  50% {
    transform: rotate(0.8deg);
  }
}
.wman {
  transform-origin: 50% 100%;
  animation: wbob 3.4s ease-in-out infinite;
}
@keyframes wbob {
  0%,
  to {
    transform: rotate(-1.5deg);
  }
  50% {
    transform: rotate(1.5deg) translateY(-1px);
  }
}
.warm {
  transform-origin: 0% 100%;
  animation: wwave 1.6s ease-in-out infinite;
}
@keyframes wwave {
  0%,
  to {
    transform: rotate(8deg);
  }
  50% {
    transform: rotate(-22deg);
  }
}
.wscarf {
  transform-origin: 50% 0%;
  animation: wscarf 2.2s ease-in-out infinite;
}
@keyframes wscarf {
  0%,
  to {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(10deg);
  }
}
.weyes {
  transform-origin: center;
  animation: wblink 4.5s infinite;
}
@keyframes wblink {
  0%,
  92%,
  to {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}
[data-sky="off"] .winter * {
  animation: none !important;
}
[data-sky="off"] .wf,
.daysky,
.sky-sun {
  display: none;
}
[data-theme="light"] .top {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #1d4f9a, #2f6fc4 45%, #5aa2ea);
}
[data-theme="light"] .top > * {
  position: relative;
  z-index: 1;
}
[data-theme="light"] .daysky {
  display: block;
  position: absolute !important;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0 !important;
}
[data-theme="light"] .body {
  background: linear-gradient(180deg, #e3effd, #eef4fc 35%, #f4f6fb);
}
[data-theme="light"] .body > .nav,
[data-theme="light"] .body > .main {
  position: relative;
  z-index: 1;
}
[data-theme="light"] .main {
  background: transparent;
}
[data-theme="light"] .sky-sun {
  display: block;
  position: absolute !important;
  z-index: 0 !important;
  left: 52%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 214, 80, 0.8));
}
.sky-sun .rays {
  transform-origin: 30px 30px;
  animation: sunspin 24s linear infinite;
}
@keyframes sunspin {
  to {
    transform: rotate(360deg);
  }
}
[data-theme="light"] .sky-sun circle {
  animation: sunpulse 4s ease-in-out infinite;
  transform-origin: 30px 30px;
}
@keyframes sunpulse {
  0%,
  to {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}
.sunglow {
  position: absolute;
  right: -140px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 140, 0.45), rgba(255, 226, 140, 0.12) 40%, transparent 68%);
  animation: halo 9s ease-in-out infinite;
}
.cloud.dc {
  filter: blur(5px);
}
.cloud.dc span {
  background: radial-gradient(
    ellipse at 50% 35%,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.7) 50%,
    rgba(200, 220, 245, 0.25) 68%,
    transparent 74%
  );
}
.cloud.dct {
  filter: blur(2.5px);
}
.cloud.dct span {
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.4) 55%, transparent 72%);
}
.flock {
  position: absolute;
  left: 0;
  width: 90px;
  height: 40px;
  animation: fly linear infinite;
}
@keyframes fly {
  0% {
    transform: translate(-120px);
  }
  50% {
    transform: translate(50vw, -30px);
  }
  to {
    transform: translate(calc(100vw + 120px), 10px);
  }
}
.bird {
  position: absolute;
  left: 0;
  overflow: visible;
}
.bird:nth-child(2) {
  left: 30px;
}
.bird:nth-child(3) {
  left: 52px;
}
.bird .wing {
  transform-box: fill-box;
  transform-origin: center;
  animation: flap ease-in-out infinite;
  animation-duration: inherit;
  animation-delay: inherit;
}
@keyframes flap {
  0%,
  to {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(-0.6);
  }
}
[data-sky="off"] .daysky *,
[data-sky="off"] .sky-sun * {
  animation: none !important;
}
[data-sky="off"] .flock {
  display: none;
}
[data-theme="light"] .top .who .sm {
  color: #ffe9a0 !important;
  text-shadow: 0 1px 2px rgba(10, 30, 70, 0.4);
}
[data-theme="light"] .top .sm {
  color: #e3edff !important;
}
[data-theme="light"] .top .b {
  text-shadow: 0 1px 2px rgba(10, 30, 70, 0.35);
}
.sun-halo {
  display: none;
}
[data-theme="light"] .sky-sun {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  filter: none;
  left: calc(52% + 8px);
  background: radial-gradient(circle at 50% 50%, #fff 0, #fffceb 38%, #ffefae 62%, #ffe07a 78%, #ffe07a00);
  box-shadow:
    0 0 12px 4px #fff8d7f2,
    0 0 34px 12px #ffe8968c,
    0 0 70px 26px #ffdc7840;
  animation: sunbreath 6s ease-in-out infinite;
}
[data-theme="light"] .sky-sun i {
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #fff0,
    #fffae138,
    #fff0 12%,
    #fffae12e 25%,
    #fff0 37%,
    #fffae133 50%,
    #fff0 62%,
    #fffae129 75%,
    #fff0 87%,
    #fffae133
  );
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%);
  mask: radial-gradient(circle, #000 20%, transparent 70%);
  animation: sunspin 40s linear infinite;
}
@keyframes sunbreath {
  0%,
  to {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.06);
  }
}
[data-theme="light"] .sun-halo {
  display: block;
  position: absolute !important;
  z-index: 0 !important;
  left: calc(52% + 23px);
  top: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 250, 225, 0.45) 0, rgba(255, 236, 170, 0.18) 30%, transparent 65%);
  animation: halo 7s ease-in-out infinite;
}
[data-sky="off"] .sky-sun,
[data-sky="off"] .sky-sun i,
[data-sky="off"] .sun-halo {
  animation: none !important;
}
[data-theme="light"] .sky-sun i {
  display: none;
}
[data-theme="light"] .sun-halo {
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 255, 240, 0.55) 0, rgba(220, 235, 255, 0.22) 32%, transparent 66%);
}
[data-theme="light"] .sky-sun {
  mix-blend-mode: screen;
  background: radial-gradient(circle, #fff 0, #fffff6 45%, #fff6cf 70%, #fff0b400);
  box-shadow:
    0 0 10px 4px #fffff5f2,
    0 0 30px 12px #fff8d280,
    0 0 64px 24px #d2e6ff59;
}
[data-theme="light"] .nav {
  background: #ffffffb8;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid #d6e3f5;
}
[data-theme="light"] .ngh {
  color: #7a8ba8;
}
[data-theme="light"] .nav.mini .ngh {
  border-top-color: #dce6f4;
}
[data-theme="light"] .ni {
  color: #2b3a55;
}
[data-theme="light"] .nic {
  color: #5a7099;
}
[data-theme="light"] .ni:hover {
  background: #eaf2fd;
  color: #14305e;
}
[data-theme="light"] .ni.on {
  background: linear-gradient(90deg, #dcebff, #eef5ff);
  color: #14305e;
  box-shadow: inset 3px 0 #2f6fc4;
  font-weight: 600;
}
[data-theme="light"] .ni.on .nic {
  color: #2f6fc4;
}
[data-theme="light"] .nlock {
  opacity: 0.55;
}
[data-theme="light"] .winter {
  background: linear-gradient(180deg, #cfe3fb00, #cfe3fb 30%, #b4d2f3);
}
[data-theme="light"] .wf {
  fill: #fff;
  filter: drop-shadow(0 0 1px rgba(90, 130, 190, 0.6));
}
[data-theme="light"] .sky-sun {
  left: calc(var(--sx, 52%) + 8px);
  top: var(--sy, 50%);
  transition:
    left 50s linear,
    top 50s linear;
}
[data-theme="light"] .sun-halo {
  left: calc(var(--sx, 52%) + 23px);
  top: var(--sy, 50%);
  transition:
    left 50s linear,
    top 50s linear;
}
[data-theme="dark"] .sky-moon {
  left: var(--mx, 52%);
  transition: left 50s linear;
}
[data-theme="dark"] .moon-halo {
  left: calc(var(--mx, 52%) + 20px);
  transition: left 50s linear;
}
[data-phase="dawn"] .top {
  background: linear-gradient(100deg, #6c7fc4, #e79a8c 45%, #f7c08a);
}
[data-phase="dawn"] .body {
  background: linear-gradient(180deg, #fce6d8, #f7eeea 35%, #f4f6fb);
}
[data-phase="dawn"] .sunglow {
  left: -140px;
  right: auto;
  background: radial-gradient(circle, rgba(255, 180, 120, 0.45), rgba(255, 190, 140, 0.14) 40%, transparent 68%);
}
[data-phase="dawn"] .sky-sun {
  background: radial-gradient(circle, #fff 0, #fff3d6 40%, #ffc98a 72%, #ffaa5a00);
  box-shadow:
    0 0 12px 4px #ffecc8f2,
    0 0 34px 12px #ffbe788c,
    0 0 70px 26px #ff966e4d;
}
[data-phase="dusk"] .top {
  background: linear-gradient(100deg, #2e2f6e, #8e4a86 40%, #e2706a 75%, #f3a25c);
}
[data-phase="dusk"] .body {
  background: linear-gradient(180deg, #f6dcd6, #f2e9f0 40%, #f3f3f8);
}
[data-phase="dusk"] .sunglow {
  background: radial-gradient(circle, rgba(255, 150, 100, 0.45), rgba(240, 120, 130, 0.14) 40%, transparent 68%);
}
[data-phase="dusk"] .sky-sun {
  background: radial-gradient(circle, #fff7e6 0, #ffd08a 40%, #ff9a4d 72%, #ff6e3c00);
  box-shadow:
    0 0 12px 5px #ffc88ce6,
    0 0 34px 14px #ff8c508c,
    0 0 70px 28px #e65a5a4d;
}
[data-phase="dusk"] .cloud.dc span,
[data-phase="dawn"] .cloud.dc span {
  background: radial-gradient(
    ellipse at 50% 35%,
    rgba(255, 250, 248, 0.95),
    rgba(255, 226, 214, 0.7) 50%,
    rgba(240, 190, 200, 0.25) 68%,
    transparent 74%
  );
}
[data-phase="dusk"] .cloud.dct span,
[data-phase="dawn"] .cloud.dct span {
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 236, 226, 0.8), rgba(255, 210, 200, 0.45) 55%, transparent 72%);
}
[data-phase="dusk"] .nav,
[data-phase="dawn"] .nav {
  border-right-color: #ead6da;
}
[data-phase="dusk"] .ni.on,
[data-phase="dawn"] .ni.on {
  background: linear-gradient(90deg, #fbe3da, #fdf1ec);
  box-shadow: inset 3px 0 #e2706a;
}
[data-phase="dusk"] .ni.on .nic,
[data-phase="dawn"] .ni.on .nic {
  color: #d0564f;
}
[data-phase="dusk"] .winter,
[data-phase="dawn"] .winter {
  background: linear-gradient(180deg, #fadcd200, #f6d5ce 30%, #c9b8e0);
}
.wx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #ffffff24;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px 4px 8px;
  cursor: pointer;
  font-size: 13px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.wx-chip:hover {
  background: #ffffff3d;
}
.wx-chip b {
  font-size: 15px;
}
.wx-chip .wx-city {
  opacity: 0.85;
  font-size: 12px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wx-ic {
  font-size: 18px;
  display: inline-block;
  animation: wxbob 3s ease-in-out infinite;
}
@keyframes wxbob {
  0%,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@media (max-width: 1100px) {
  .wx-chip .wx-city {
    display: none;
  }
}
.wx-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: 16px;
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(135deg, #2f6fc4, #5aa2ea);
}
.wx-hero.wx-rain,
.wx-hero.wx-storm {
  background: linear-gradient(135deg, #34465f, #5d7392);
}
.wx-hero.wx-cloud,
.wx-hero.wx-fog {
  background: linear-gradient(135deg, #5f7590, #8fa5bf);
}
.wx-hero.wx-night {
  background: linear-gradient(135deg, #0e1730, #26355e);
}
.wx-big {
  font-size: 64px;
  line-height: 1;
  animation: wxbob 4s ease-in-out infinite;
}
.wx-temp {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}
.wx-desc {
  font-size: 17px;
  font-weight: 600;
  margin-top: 4px;
}
.wx-sub {
  font-size: 12.5px;
  opacity: 0.85;
  margin-top: 6px;
}
.wx-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, auto));
  gap: 6px 18px;
  font-size: 12px;
}
.wx-facts span {
  display: block;
  opacity: 0.8;
}
.wx-facts b {
  font-size: 14px;
}
.wx-sec {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mut);
  margin: 16px 0 8px;
}
.wx-hours {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.wx-h {
  flex: none;
  width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 4px;
}
.wx-hi {
  font-size: 22px;
}
.wx-pr {
  font-size: 11px;
  color: #3b82f6;
  min-height: 14px;
  font-weight: 600;
}
.wx-days {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.wx-d {
  display: grid;
  grid-template-columns: 92px 34px 58px 34px 1fr 34px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.wx-d:first-child {
  border-top: 0;
}
.wx-dn {
  font-weight: 600;
}
.wx-bar {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: var(--soft2);
}
.wx-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #5aa2ea, #f2b544, #e8703a);
}
.wx-res {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.wx-res button {
  display: flex;
  gap: 10px;
  align-items: baseline;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.wx-res button:first-child {
  border-top: 0;
}
.wx-res button:hover {
  background: var(--soft2);
}
.wxfx {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
[data-wx="rain"] .wxfx,
[data-wx="storm"] .wxfx,
[data-wx="fog"] .wxfx {
  display: block;
}
.wxfx .rain {
  display: none;
  position: absolute;
  inset: -40px 0 0;
}
[data-wx="rain"] .wxfx .rain,
[data-wx="storm"] .wxfx .rain {
  display: block;
}
.wxfx .rain i {
  position: absolute;
  top: -60px;
  width: 1.5px;
  height: 46px;
  border-radius: 2px;
  background: linear-gradient(180deg, #7896c800, #6e8cbebf);
  transform: rotate(12deg);
  animation: rainfall linear infinite;
}
[data-theme="dark"] .wxfx .rain i {
  background: linear-gradient(180deg, #b4c8f000, #bed2fab3);
}
@keyframes rainfall {
  to {
    transform: translate(-160px, 110vh) rotate(12deg);
  }
}
.wxfx .flash {
  display: none;
  position: absolute;
  inset: 0;
  background: #ffffffbf;
  opacity: 0;
  animation: flash 9s infinite;
}
[data-wx="storm"] .wxfx .flash {
  display: block;
}
@keyframes flash {
  0%,
  88%,
  to {
    opacity: 0;
  }
  89% {
    opacity: 0.85;
  }
  90% {
    opacity: 0.1;
  }
  91.5% {
    opacity: 0.6;
  }
  93% {
    opacity: 0;
  }
}
.wxfx .haze {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ebf0f8a6, #e1e8f240);
  animation: haze 14s ease-in-out infinite alternate;
}
[data-theme="dark"] .wxfx .haze {
  background: linear-gradient(180deg, #505f7d59, #3c4b641f);
}
[data-wx="fog"] .wxfx .haze {
  display: block;
}
@keyframes haze {
  0% {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}
[data-wx="rain"] .daysky .flock,
[data-wx="storm"] .daysky .flock {
  display: none;
}
[data-wx="rain"] .sky-sun,
[data-wx="storm"] .sky-sun,
[data-wx="rain"] .sun-halo,
[data-wx="storm"] .sun-halo {
  opacity: 0.35;
}
[data-wx="rain"][data-theme="light"] .top,
[data-wx="storm"][data-theme="light"] .top {
  background: linear-gradient(100deg, #3d5373, #5e7896 60%, #7c93ae);
}
[data-wx="rain"][data-theme="light"] .body,
[data-wx="storm"][data-theme="light"] .body {
  background: linear-gradient(180deg, #dce3ec, #ebeff4 40%, #f2f4f7);
}
[data-sky="off"] .wxfx * {
  animation: none !important;
}
[data-sky="off"] .wxfx .rain,
[data-sky="off"] .wxfx .flash {
  display: none;
}
.greet {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: min(420px, calc(100vw - 44px));
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #c2272d, #e8553e 60%, #f2a23a);
  box-shadow: 0 18px 40px #14142859;
  animation: greetIn 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.g-valentine,
.g-women83,
.g-women2010 {
  background: linear-gradient(135deg, #c2185b, #ec5e8c 60%, #f7a1b8);
}
.g-teacher {
  background: linear-gradient(135deg, #2563a8, #3e8ad6 60%, #7fc0f0);
}
.g-halloween {
  background: linear-gradient(135deg, #2b1a3d, #5b2a6e 55%, #f07a1a);
}
.g-xmas {
  background: linear-gradient(135deg, #145c37, #1f8a50 55%, #c2272d);
}
.g-midautumn {
  background: linear-gradient(135deg, #7a3a12, #d9772b 60%, #f6c25a);
}
.g-kids {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6 55%, #ec4899);
}
.g-newyear {
  background: linear-gradient(135deg, #1e2a55, #4a3d9e 55%, #d4a72c);
}
@keyframes greetIn {
  0% {
    transform: translateY(40px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.greet-ic {
  font-size: 46px;
  line-height: 1;
  animation: greetBob 1.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}
@keyframes greetBob {
  0%,
  to {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-6px) rotate(6deg);
  }
}
.greet-t {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
}
.greet-m {
  font-size: 14px;
  line-height: 1.45;
}
.greet-more {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #ffffff29;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.greet-more:hover {
  background: #ffffff47;
}
.greet-x {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.8;
}
.greet-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 899;
  overflow: hidden;
}
.greet-fx span {
  position: absolute;
  top: -40px;
  animation: greetFall linear forwards;
  opacity: 0;
}
@keyframes greetFall {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  to {
    transform: translateY(110vh) rotate(540deg);
    opacity: 0.9;
  }
}
.auth2 {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr);
  background: #0d1526;
}
.au-l {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 40px 48px;
  color: #fff;
  background: radial-gradient(1200px 600px at 20% 0%, #1b2e57, #0f1a33 55%, #0b1324);
}
.au-l:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1.3px) 0 0/26px 26px;
  opacity: 0.7;
}
.au-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: auGlow 12s ease-in-out infinite alternate;
}
.au-glow.g1 {
  width: 420px;
  height: 420px;
  background: #2f6fc4;
  left: -120px;
  top: -120px;
}
.au-glow.g2 {
  width: 380px;
  height: 380px;
  background: #e2a21c;
  right: -140px;
  bottom: -140px;
  animation-delay: -6s;
  opacity: 0.35;
}
@keyframes auGlow {
  0% {
    transform: translate(0) scale(1);
  }
  to {
    transform: translate(40px, 30px) scale(1.15);
  }
}
.au-l > * {
  position: relative;
  z-index: 1;
}
.au-brand {
  position: absolute !important;
  top: 28px;
  left: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.au-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 6px 18px #0006;
}
.au-brand b {
  display: block;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.au-brand span {
  font-size: 13px;
  color: #b9c6e4;
}
.au-clock {
  text-align: center;
}
.au-time {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 30px rgba(80, 140, 255, 0.35);
}
.au-colon {
  animation: auBlink 1s steps(1) infinite;
}
@keyframes auBlink {
  50% {
    opacity: 0.25;
  }
}
.au-date {
  margin-top: 8px;
  color: #c9d6f2;
  font-size: 15px;
}
.au-table {
  width: min(560px, 92%);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
  border-radius: 16px;
}
.au-tag {
  max-width: 520px;
  text-align: center;
  color: #c9d6f2;
  font-size: 15px;
  line-height: 1.5;
}
.au-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.au-feats span {
  background: #ffffff14;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: #e3ebfa;
}
.au-cue {
  animation: auCue 7s ease-in-out infinite;
}
@keyframes auCue {
  0% {
    transform: translate(-30px);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  12% {
    transform: translate(-46px);
  }
  15% {
    transform: translate(4px);
  }
  20% {
    transform: translate(-8px);
    opacity: 1;
  }
  30%,
  to {
    transform: translate(-80px);
    opacity: 0;
  }
}
.au-cueball {
  animation: auCB 7s cubic-bezier(0.25, 0.8, 0.3, 1) infinite;
}
@keyframes auCB {
  0%,
  15% {
    transform: translate(0);
    opacity: 1;
  }
  21% {
    transform: translate(154px);
  }
  36% {
    transform: translate(96px, 8px);
  }
  86% {
    transform: translate(96px, 8px);
    opacity: 1;
  }
  92% {
    transform: translate(96px, 8px);
    opacity: 0;
  }
  94% {
    transform: translate(0);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
@keyframes rb0 {
  0%,
  21% {
    transform: translate(0);
    opacity: 1;
  }
  30% {
    transform: translate(-51px, -34px);
  }
  40% {
    transform: translate(-60px, -40px);
    opacity: 1;
  }
  86% {
    transform: translate(-60px, -40px);
    opacity: 1;
  }
  92% {
    transform: translate(-60px, -40px);
    opacity: 0;
  }
  94% {
    transform: translate(0);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
.rb0 {
  animation: rb0 7s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  transform-box: view-box;
}
@keyframes rb1 {
  0%,
  21% {
    transform: translate(0);
    opacity: 1;
  }
  30% {
    transform: translate(34px, -60px);
  }
  40% {
    transform: translate(40px, -70px);
    opacity: 1;
  }
  86% {
    transform: translate(40px, -70px);
    opacity: 1;
  }
  92% {
    transform: translate(40px, -70px);
    opacity: 0;
  }
  94% {
    transform: translate(0);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
.rb1 {
  animation: rb1 7s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  transform-box: view-box;
}
@keyframes rb2 {
  0%,
  21% {
    transform: translate(0);
    opacity: 1;
  }
  30% {
    transform: translate(-26px, 51px);
  }
  40% {
    transform: translate(-30px, 60px);
    opacity: 1;
  }
  86% {
    transform: translate(-30px, 60px);
    opacity: 1;
  }
  92% {
    transform: translate(-30px, 60px);
    opacity: 0;
  }
  94% {
    transform: translate(0);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
.rb2 {
  animation: rb2 7s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  transform-box: view-box;
}
@keyframes rb3 {
  0%,
  21% {
    transform: translate(0);
    opacity: 1;
  }
  30% {
    transform: translate(51px, -17px);
  }
  40% {
    transform: translate(60px, -20px);
    opacity: 1;
  }
  86% {
    transform: translate(60px, -20px);
    opacity: 1;
  }
  92% {
    transform: translate(60px, -20px);
    opacity: 0;
  }
  94% {
    transform: translate(0);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
.rb3 {
  animation: rb3 7s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  transform-box: view-box;
}
@keyframes rb4 {
  0%,
  21% {
    transform: translate(0);
    opacity: 1;
  }
  30% {
    transform: translate(-76px, 8px);
  }
  40% {
    transform: translate(-90px, 10px);
    opacity: 1;
  }
  86% {
    transform: translate(-90px, 10px);
    opacity: 1;
  }
  92% {
    transform: translate(-90px, 10px);
    opacity: 0;
  }
  94% {
    transform: translate(0);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
.rb4 {
  animation: rb4 7s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  transform-box: view-box;
}
@keyframes rb5 {
  0%,
  21% {
    transform: translate(0);
    opacity: 1;
  }
  30% {
    transform: translate(38px, 60px);
  }
  40% {
    transform: translate(45px, 70px);
    opacity: 1;
  }
  86% {
    transform: translate(45px, 70px);
    opacity: 1;
  }
  92% {
    transform: translate(45px, 70px);
    opacity: 0;
  }
  94% {
    transform: translate(0);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
.rb5 {
  animation: rb5 7s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  transform-box: view-box;
}
@keyframes rb6 {
  0%,
  21% {
    transform: translate(0);
    opacity: 1;
  }
  30% {
    transform: translate(60px, -64px);
  }
  40% {
    transform: translate(70px, -75px);
    opacity: 1;
  }
  86% {
    transform: translate(70px, -75px);
    opacity: 1;
  }
  92% {
    transform: translate(70px, -75px);
    opacity: 0;
  }
  94% {
    transform: translate(0);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
.rb6 {
  animation: rb6 7s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  transform-box: view-box;
}
@keyframes rb7 {
  0%,
  21% {
    transform: translate(0);
    opacity: 1;
  }
  30% {
    transform: translate(65px, -80px);
  }
  40% {
    transform: translate(72px, -89px);
    opacity: 0;
  }
  86% {
    transform: translate(72px, -89px);
    opacity: 0;
  }
  92% {
    transform: translate(72px, -89px);
    opacity: 0;
  }
  94% {
    transform: translate(0);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
.rb7 {
  animation: rb7 7s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  transform-box: view-box;
}
@keyframes rb8 {
  0%,
  21% {
    transform: translate(0);
    opacity: 1;
  }
  30% {
    transform: translate(-13px, -55px);
  }
  40% {
    transform: translate(-15px, -65px);
    opacity: 1;
  }
  86% {
    transform: translate(-15px, -65px);
    opacity: 1;
  }
  92% {
    transform: translate(-15px, -65px);
    opacity: 0;
  }
  94% {
    transform: translate(0);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
.rb8 {
  animation: rb8 7s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  transform-box: view-box;
}
@keyframes rb9 {
  0%,
  21% {
    transform: translate(0);
    opacity: 1;
  }
  30% {
    transform: translate(26px, 34px);
  }
  40% {
    transform: translate(30px, 40px);
    opacity: 1;
  }
  86% {
    transform: translate(30px, 40px);
    opacity: 1;
  }
  92% {
    transform: translate(30px, 40px);
    opacity: 0;
  }
  94% {
    transform: translate(0);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
.rb9 {
  animation: rb9 7s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  transform-box: view-box;
}
.au-r {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(180deg, #f4f7fc, #e9eff8);
  overflow: auto;
}
[data-theme="dark"] .au-r {
  background: linear-gradient(180deg, #121b2e, #0e1524);
}
.au-card {
  width: min(460px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 60px #0f1e3c1f;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: greetIn 0.5s ease both;
}
.au-head h2 {
  font-size: 24px;
  margin: 0;
}
.au-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--soft2);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.au-tabs button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 8px 6px;
  font-weight: 600;
  color: var(--mut);
  cursor: pointer;
  font-size: 13.5px;
}
.au-tabs button.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px #0000001f;
}
.au-people {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
}
.au-people > button {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.au-people > button:hover {
  border-color: #8fa7d8;
  background: var(--soft2);
}
.au-people > button > span:last-child {
  display: flex;
  flex-direction: column;
}
.au-go {
  background: linear-gradient(180deg, var(--gold), var(--gold3));
  color: var(--navy);
  margin-top: 4px;
}
.au-pw {
  position: relative;
}
.au-pw button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--mut);
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}
.au-sent {
  align-items: center;
  text-align: center;
  gap: 12px;
}
.au-sent h2 {
  margin: 0;
}
.au-ok {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3f4ec;
  color: #2e8b62;
  font-size: 32px;
  font-weight: 800;
  animation: greetIn 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@media (max-width: 900px) {
  .auth2 {
    grid-template-columns: 1fr;
  }
  .au-l {
    display: none;
  }
}
.au-l > .au-glow {
  position: absolute !important;
  z-index: 0;
}
.auth2 {
  height: 100vh;
  min-height: 620px;
}
.au-l,
.au-r {
  min-height: 0;
}
.au-logo {
  width: 132px;
  height: 132px;
  border-radius: 32px;
  box-shadow:
    0 24px 50px #00000073,
    0 0 60px #f2b21c40;
  animation: auFloat 6s ease-in-out infinite;
}
@keyframes auFloat {
  0%,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.au-l > .sky,
.au-l > .daysky,
.au-l > .wxfx,
.au-l > .au-snow,
.au-l > .au-winter,
.au-l > .au-sun,
.au-l > .au-sunhalo,
.au-l > .au-moon,
.au-l > .au-moonhalo {
  position: absolute !important;
}
.au-l > .sky,
.au-l > .daysky,
.au-l > .wxfx {
  z-index: 0 !important;
}
[data-theme="light"] .au-l {
  background: linear-gradient(180deg, #1d4f9a, #2f6fc4 40%, #6faeea);
}
[data-theme="light"] .au-l:before {
  opacity: 0.25;
}
[data-theme="light"] .au-l .au-glow {
  opacity: 0.18;
}
[data-phase="dawn"] .au-l {
  background: linear-gradient(180deg, #5b6db8, #c98aa0 45%, #f7c08a);
}
[data-phase="dusk"] .au-l {
  background: linear-gradient(180deg, #24255e, #7a3f80 40%, #e2706a 75%, #f3a25c);
}
[data-wx="rain"][data-theme="light"] .au-l,
[data-wx="storm"][data-theme="light"] .au-l {
  background: linear-gradient(180deg, #34465f, #5d7392 60%, #7c93ae);
}
.au-sun,
.au-sunhalo,
.au-moon,
.au-moonhalo {
  display: none;
  pointer-events: none;
}
[data-theme="light"] .au-sun {
  display: block;
  z-index: 0;
  left: calc(var(--sx, 72%) + 0px);
  top: calc(14% + (var(--sy, 50%) - 50%) * 1.4);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0, #fffff6 45%, #fff3c4 72%, #fff0b400);
  box-shadow:
    0 0 22px 8px #fffff5e6,
    0 0 70px 30px #fff0be73,
    0 0 140px 60px #d2e6ff4d;
  animation: auSun 7s ease-in-out infinite;
}
[data-theme="light"] .au-sunhalo {
  display: block;
  z-index: 0;
  left: calc(var(--sx, 72%) + 35px);
  top: calc(14% + 35px + (var(--sy, 50%) - 50%) * 1.4);
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 230, 0.45), rgba(220, 235, 255, 0.15) 35%, transparent 65%);
  animation: halo 8s ease-in-out infinite;
}
[data-phase="dusk"] .au-sun {
  background: radial-gradient(circle, #fff7e6 0, #ffd08a 40%, #ff9a4d 72%, #ff6e3c00);
  box-shadow:
    0 0 22px 8px #ffc88ce6,
    0 0 70px 30px #ff8c5080;
}
[data-phase="dawn"] .au-sun {
  background: radial-gradient(circle, #fff 0, #fff3d6 40%, #ffc98a 72%, #ffaa5a00);
  box-shadow:
    0 0 22px 8px #ffecc8e6,
    0 0 70px 30px #ffbe7880;
}
@keyframes auSun {
  0%,
  to {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
[data-theme="dark"] .au-moon {
  display: block;
  z-index: 0;
  left: var(--mx, 72%);
  top: 11%;
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 40px rgba(205, 220, 255, 0.5));
  animation: auFloat 9s ease-in-out infinite;
}
[data-theme="dark"] .au-moonhalo {
  display: block;
  z-index: 0;
  left: calc(var(--mx, 72%) + 42px);
  top: calc(11% + 42px);
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 242, 255, 0.28), rgba(200, 215, 255, 0.1) 35%, transparent 65%);
  animation: halo 9s ease-in-out infinite;
}
[data-wx="rain"] .au-sun,
[data-wx="storm"] .au-sun,
[data-wx="rain"] .au-sunhalo,
[data-wx="storm"] .au-sunhalo {
  opacity: 0.3;
}
.au-snow {
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.au-snow i {
  position: absolute;
  top: -10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px #fffc;
  animation: auSnow linear infinite;
}
@keyframes auSnow {
  0% {
    transform: translate(0);
  }
  50% {
    transform: translate(18px, 50vh);
  }
  to {
    transform: translate(-10px, 105vh);
  }
}
.au-winter {
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 1;
  pointer-events: none;
}
.au-winter .winter {
  margin: 0;
  padding: 0;
  background: none !important;
}
[data-sky="off"] .au-snow,
[data-sky="off"] .au-l .au-glow {
  animation: none !important;
}
[data-sky="off"] .au-snow {
  display: none;
}
.au-l > .au-ground {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 56px;
  z-index: 1;
}
.au-winter {
  bottom: 18px;
}
[data-theme="light"] .au-date,
[data-theme="light"] .au-tag {
  text-shadow:
    0 1px 3px rgba(10, 30, 70, 0.55),
    0 0 18px rgba(10, 30, 70, 0.35);
  color: #fff;
}
[data-theme="light"] .au-feats span {
  background: #10285a59;
  border-color: #ffffff59;
  color: #fff;
}
[data-theme="light"] .au-time {
  text-shadow: 0 4px 24px rgba(10, 30, 80, 0.45);
}
.au-l .cloud.dc {
  opacity: 0.5 !important;
}
[data-theme="light"] .au-tag,
[data-theme="light"] .au-date {
  text-shadow:
    0 1px 2px rgba(10, 30, 70, 0.8),
    0 0 14px rgba(10, 30, 70, 0.55);
}
[data-theme="light"] .au-feats span {
  background: #10285a8c;
}
.au-winter svg > path {
  display: none;
}
.au-winter {
  bottom: -4px !important;
  left: 10px;
}
.au-l > .au-house {
  position: absolute !important;
  right: 4%;
  bottom: 10px;
  width: min(400px, 46%);
  z-index: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}
.au-house * {
  transform-box: fill-box;
}
.h-win {
  animation: hwin 3.2s ease-in-out infinite;
}
@keyframes hwin {
  0%,
  to {
    opacity: 1;
  }
  40% {
    opacity: 0.86;
  }
  55% {
    opacity: 0.97;
  }
  70% {
    opacity: 0.82;
  }
}
.h-halo {
  transform-origin: center;
  animation: hhalo 3.2s ease-in-out infinite;
}
@keyframes hhalo {
  0%,
  to {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.92);
  }
}
.h-glowfloor {
  animation: hhalo 4s ease-in-out infinite;
  transform-origin: center;
}
.h-door {
  animation: hwin 2.6s ease-in-out infinite;
}
.h-smoke circle {
  fill: #e6ecf5;
  opacity: 0;
  transform-origin: center;
  animation: hsmoke 6s ease-out infinite;
}
.h-smoke circle:nth-child(2) {
  animation-delay: -2s;
}
.h-smoke circle:nth-child(3) {
  animation-delay: -4s;
}
@keyframes hsmoke {
  0% {
    transform: translate(0) scale(0.4);
    opacity: 0;
  }
  15% {
    opacity: 0.75;
  }
  to {
    transform: translate(26px, -70px) scale(1.8);
    opacity: 0;
  }
}
.h-cat {
  transform-origin: 50% 100%;
  animation: hcat 7s ease-in-out infinite;
}
@keyframes hcat {
  0%,
  80%,
  to {
    transform: rotate(0);
  }
  85% {
    transform: rotate(-8deg);
  }
  90% {
    transform: rotate(6deg);
  }
}
[data-theme="light"] .au-house .h-halo,
[data-theme="light"] .au-house .h-glowfloor {
  opacity: 0.45;
}
[data-sky="off"] .au-house * {
  animation: none !important;
}
[data-sky="off"] .h-smoke {
  display: none;
}
@media (max-height: 760px) {
  .au-l > .au-house {
    width: min(300px, 36%);
  }
}
.au-house > path:last-of-type {
  display: none;
}
.au-l > .au-house {
  bottom: 14px;
}
.h-smoke {
  filter: blur(2.5px);
}
.au-l > .au-house {
  filter: none !important;
  overflow: visible;
  bottom: 8px;
}
.au-house > path:last-of-type {
  display: block !important;
}
.h-night,
.h-rim {
  display: none;
}
[data-theme="dark"] .au-house .h-night {
  display: block;
  opacity: 0.32;
}
[data-theme="dark"] .au-house .h-rim {
  display: block;
  opacity: 0.55;
  filter: blur(0.6px);
}
[data-theme="dark"] .au-house [fill="#F7FAFF"],
[data-theme="dark"] .au-house [fill="#F3F7FF"],
[data-theme="dark"] .au-ground [fill="#F3F7FF"] {
  fill: #d3ddee;
}
[data-theme="dark"] .au-house [fill="#FFFFFF"] {
  fill: #e4ebf7;
}
[data-theme="dark"] .au-house [fill="#DCE7F7"],
[data-theme="dark"] .au-ground [fill="#DCE7F7"] {
  fill: #a9b8d2;
}
[data-theme="dark"] .au-house [fill="#E4ECF9"] {
  fill: #c2cee3;
}
[data-theme="dark"] .au-house .h-far {
  filter: brightness(0.75) saturate(0.7);
}
[data-theme="dark"] .au-house g:not(.h-far) > polygon[fill="#1E4A3A"] {
  fill: #183d31;
}
.au-house .h-far {
  filter: saturate(0.75) brightness(1.05);
}
.h-smoke {
  filter: blur(3px);
}
.au-l > .au-ground {
  height: 46px;
}
.au-l > .au-santa {
  position: absolute !important;
  z-index: 1;
  left: 0;
  top: 12%;
  width: 300px;
  pointer-events: none;
  opacity: 0;
  animation: santaFly 32s linear infinite;
  animation-delay: 2s;
}
.au-santa svg {
  width: 100%;
  overflow: visible;
  transform: scaleX(-1);
}
@keyframes santaFly {
  0% {
    left: 100%;
    top: 16%;
    opacity: 0;
  }
  3% {
    opacity: 0.92;
  }
  15% {
    left: 62%;
    top: 9%;
  }
  28% {
    left: 30%;
    top: 15%;
  }
  42% {
    left: -320px;
    top: 8%;
    opacity: 0.92;
  }
  43%,
  to {
    left: -320px;
    top: 8%;
    opacity: 0;
  }
}
.au-santa .rd {
  animation: rdBob 0.9s ease-in-out infinite;
}
.au-santa g:nth-of-type(3) > .rd {
  animation-delay: -0.2s;
}
.au-santa g:nth-of-type(4) > .rd {
  animation-delay: -0.4s;
}
.au-santa g:nth-of-type(5) > .rd {
  animation-delay: -0.6s;
}
@keyframes rdBob {
  0%,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
.au-santa .lg1,
.au-santa .lg2 {
  transform-box: fill-box;
  transform-origin: 50% 0;
}
.au-santa .lg1 {
  animation: leg 0.45s ease-in-out infinite alternate;
}
.au-santa .lg2 {
  animation: leg 0.45s ease-in-out infinite alternate-reverse;
}
@keyframes leg {
  0% {
    transform: rotate(-25deg);
  }
  to {
    transform: rotate(25deg);
  }
}
.au-santa .trail circle {
  animation: trail 1s ease-in-out infinite alternate;
}
@keyframes trail {
  0% {
    opacity: 0.15;
  }
  to {
    opacity: 1;
  }
}
[data-theme="light"] .au-santa svg {
  filter: none;
}
[data-theme="dark"] .au-santa svg {
  filter: drop-shadow(0 0 6px rgba(200, 220, 255, 0.35));
}
[data-sky="off"] .au-santa {
  display: none;
}
.au-l > .au-santa {
  width: 340px;
}
.au-l > .au-santa {
  left: 0 !important;
  top: 0 !important;
  width: 300px;
  opacity: 1;
  offset-path: path("M -420 230 C -180 60, 80 320, 330 185 S 620 20, 800 150 S 1080 280, 1450 70");
  offset-rotate: auto;
  offset-anchor: 60% 50%;
  animation: santaPath 30s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
  animation-delay: 1.5s !important;
}
.au-santa svg {
  transform: none !important;
}
@keyframes santaPath {
  0% {
    offset-distance: 0%;
    opacity: 0;
    scale: 0.65;
  }
  4% {
    opacity: 0.95;
  }
  22% {
    scale: 1;
  }
  34% {
    scale: 0.85;
  }
  48% {
    offset-distance: 100%;
    opacity: 0.95;
    scale: 0.7;
  }
  49%,
  to {
    offset-distance: 100%;
    opacity: 0;
  }
}
.au-santa .rd {
  animation: rdWave 1.6s ease-in-out infinite !important;
  transform-box: view-box;
  transform-origin: 0 0;
}
.au-santa g:nth-of-type(3) > .rd {
  animation-delay: -0.25s !important;
}
.au-santa g:nth-of-type(4) > .rd {
  animation-delay: -0.5s !important;
}
.au-santa g:nth-of-type(5) > .rd {
  animation-delay: -0.75s !important;
}
@keyframes rdWave {
  0%,
  to {
    transform: translateY(0) rotate(0);
  }
  25% {
    transform: translateY(-4px) rotate(-5deg);
  }
  75% {
    transform: translateY(3px) rotate(4deg);
  }
}
.au-santa svg > path,
.au-santa svg > circle {
  animation: sleighSway 1.6s ease-in-out infinite;
  transform-box: view-box;
  transform-origin: 0 0;
}
@keyframes sleighSway {
  0%,
  to {
    transform: rotate(0);
  }
  50% {
    transform: rotate(-3deg) translateY(1px);
  }
}
.au-l > .au-santa {
  width: 360px;
}
.au-santa .rd {
  animation: gallop 0.7s ease-in-out infinite !important;
  transform-box: fill-box !important;
  transform-origin: 50% 60% !important;
}
@keyframes gallop {
  0%,
  to {
    transform: translateY(0) rotate(0);
  }
  30% {
    transform: translateY(-4px) rotate(-6deg);
  }
  65% {
    transform: translateY(2px) rotate(5deg);
  }
}
.au-santa .sl {
  animation: sleighSway 1.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.au-santa svg > path,
.au-santa svg > circle {
  animation: none;
}
.shop-item {
  position: relative;
}
.shop-info {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffffeb;
  color: #2f6fc4;
  font:
    italic 700 13px Georgia,
    serif;
  box-shadow: 0 1px 4px #0000002e;
  cursor: pointer;
  z-index: 2;
}
.shop-info:hover {
  background: #2f6fc4;
  color: #fff;
}
.pd-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--mut);
}
.pd-link:hover {
  color: #2f6fc4;
  border-color: #2f6fc4;
}
.pd {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}
.pd-img img,
.pd-ph {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.pd-ph {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, var(--soft2), var(--soft2) 12px, transparent 12px, transparent 24px);
  color: var(--mut);
  font-weight: 600;
}
.pd-name {
  margin: 8px 0 2px;
  font-size: 24px;
}
.pd-price {
  font-size: 30px;
  font-weight: 800;
  color: #c88a12;
  margin: 8px 0 12px;
}
.pd-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pd-kv > div,
.pd-stats > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pd-kv span,
.pd-stats span,
.pd-spec span {
  font-size: 11.5px;
  color: var(--mut);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pd-kv b {
  font-size: 16px;
}
.pd-kv small,
.pd-stats small {
  color: var(--mut);
  font-size: 12px;
  min-height: 14px;
}
.pd-desc {
  margin-top: 12px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--soft2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}
.pd-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.pd-stats b {
  font-size: 18px;
}
.pd-spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.pd-spec > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.pd-spec > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.pd-spec b {
  font-size: 14.5px;
}
@media (max-width: 900px) {
  .pd {
    grid-template-columns: 1fr;
  }
  .pd-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.sp-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #0f1a33 0 220px, #f3f6fb 220px);
  color: #16233f;
  font-size: 15px;
}
.sp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.sp-shop {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}
.sp-shop img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.sp-shop b {
  display: block;
}
.sp-shop span {
  font-size: 12px;
  color: #b9c6e4;
}
.sp-call {
  color: #fff;
  text-decoration: none;
  background: #ffffff1f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.sp-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px 40px;
}
.sp-back {
  display: inline-block;
  color: #c9d6f2;
  text-decoration: none;
  margin: 4px 0 12px;
  font-size: 13px;
}
.sp-h1 {
  color: #fff;
  margin: 6px 0 14px;
}
.sp-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 22px;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px #0f1e3c1f;
}
.sp-img img,
.sp-ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: #eef3fa;
}
.sp-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 44px;
  color: #7a8ba8;
}
.sp-ph span {
  font-size: 13px;
  font-weight: 600;
}
.sp-ph.big {
  font-size: 90px;
}
.sp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sp-chips span {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2f8;
  color: #4a5b7a;
}
.sp-chips .b {
  background: #16233f;
  color: #fff;
}
.sp-chips .g {
  background: #e3f4ec;
  color: #2e8b62;
}
.sp-chips .w {
  background: #fbefd9;
  color: #b07415;
}
.sp-chips .r {
  background: #fbe3e3;
  color: #b33;
}
.sp-name {
  font-size: 28px;
  line-height: 1.2;
  margin: 10px 0 4px;
}
.sp-price {
  font-size: 32px;
  font-weight: 800;
  color: #c88a12;
  margin: 6px 0 14px;
}
.sp-perks {
  display: grid;
  gap: 8px;
}
.sp-perks > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  column-gap: 8px;
  background: #f5f8fd;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 20px;
}
.sp-perks b {
  font-size: 14px;
}
.sp-perks span {
  grid-column: 2;
  font-size: 12px;
  color: #6b7a95;
  margin-top: -2px;
}
.sp-desc {
  margin: 14px 0 0;
  line-height: 1.6;
  color: #2b3a55;
}
.sp-sec {
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  margin-top: 16px;
  box-shadow: 0 6px 20px #0f1e3c0f;
}
.sp-sec h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.sp-made {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.sp-made > div {
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f2f6fd, #e8effa);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sp-made span {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7a95;
  font-weight: 700;
}
.sp-made b {
  font-size: 15px;
}
.sp-spec {
  width: 100%;
  border-collapse: collapse;
}
.sp-spec th,
.sp-spec td {
  text-align: left;
  padding: 10px 12px;
  border-top: 1px solid #e6ecf5;
  font-size: 14px;
}
.sp-spec tr:first-child th,
.sp-spec tr:first-child td {
  border-top: 0;
}
.sp-spec th {
  width: 42%;
  color: #6b7a95;
  font-weight: 600;
}
.sp-spec tr:nth-child(2n) {
  background: #f8fafd;
}
.sp-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 200px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.sp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 14px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.sp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #0f1e3c1f;
}
.sp-card img,
.sp-card .sp-ph {
  aspect-ratio: 1;
  border-radius: 10px;
  font-size: 40px;
}
.sp-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
}
.t-k {
  background: #e2703a;
}
.t-l {
  background: #2f6fc4;
}
.t-h {
  background: #6b7a95;
}
.sp-cn {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.sp-cb {
  font-size: 12px;
  color: #6b7a95;
}
.sp-cp {
  font-weight: 800;
  color: #c88a12;
}
.sp-out {
  font-size: 11px;
  color: #b33;
  font-weight: 700;
}
.sp-search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  font-size: 15px;
  margin-bottom: 10px;
}
.sp-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 16px;
}
.sp-cats button {
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #ffffff1a;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.sp-cats button.on {
  background: #f2b21c;
  color: #16233f;
  border-color: #f2b21c;
}
.sp-foot {
  text-align: center;
  color: #7a8ba8;
  font-size: 12px;
  margin-top: 22px;
  line-height: 1.6;
}
.sp-empty {
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}
@media (max-width: 760px) {
  .sp-top {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .sp-name {
    font-size: 23px;
  }
  .sp-price {
    font-size: 26px;
  }
}
.sp-wrap {
  max-width: 1040px;
}
.sp-top {
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 22px;
}
.sp-img img,
.sp-img .sp-ph {
  aspect-ratio: 4/5;
  max-height: 440px;
}
.sp-ph.big {
  font-size: 72px;
}
.sp-name {
  font-size: 26px;
}
.sp-price {
  font-size: 30px;
}
.sp-perks {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.sp-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 16px;
  align-items: start;
}
.sp-two > .sp-sec {
  margin-top: 16px;
}
.sp-two .sp-made {
  grid-template-columns: 1fr;
}
.sp-two .sp-sec:only-child {
  grid-column: 1/-1;
}
.sp-spec th {
  width: 45%;
}
.sp-row {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
}
.sp-card img,
.sp-card .sp-ph {
  aspect-ratio: 4/3;
  font-size: 34px;
}
.sp-card .sp-ph span {
  font-size: 11px;
}
.sp-tag {
  top: 14px;
  left: 14px;
}
.sp-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
@media (max-width: 860px) {
  .sp-top {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }
  .sp-img img,
  .sp-img .sp-ph {
    aspect-ratio: 16/10;
    max-height: 260px;
  }
  .sp-two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sp-two .sp-made {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sp-row {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 42%;
    overflow-x: auto;
  }
  .sp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sp-sec {
    padding: 14px;
  }
  .sp-spec th,
  .sp-spec td {
    padding: 9px 8px;
    font-size: 13.5px;
  }
  .sp-perks {
    grid-template-columns: 1fr;
  }
}
.sp-img img,
.sp-img .sp-ph {
  aspect-ratio: 1/1;
  max-height: 380px;
}
.sp-top {
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
}
.sp-perks {
  grid-template-columns: 1fr;
}
.sp-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.sp-card img,
.sp-card .sp-ph {
  aspect-ratio: 16/11;
}
@media (max-width: 860px) {
  .sp-img img,
  .sp-img .sp-ph {
    aspect-ratio: 16/10;
    max-height: 240px;
  }
  .sp-row {
    grid-template-columns: none;
  }
}
.pa2 {
  max-width: 480px;
  padding: 0 0 104px;
  background: #f2f5fa;
  position: relative;
}
@media (min-width: 600px) {
  body:has(.pa2) {
    background: radial-gradient(900px 500px at 50% -10%, #24366a, #0b1324);
  }
  .pa2 {
    box-shadow: 0 30px 80px #00000073;
    min-height: 100vh;
  }
}
.pa2 .pa-main {
  gap: 14px;
  padding: 0 16px;
}
.pa2 .card {
  border-radius: 18px;
  border: 0;
  box-shadow: 0 2px 10px #1020400f;
}
.pa2 .seg {
  background: #e6ecf5;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.pa2 .seg button {
  border: 0 !important;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}
.pa2 .seg button.on {
  background: #fff;
  color: #16233f;
  box-shadow: 0 1px 4px #0000001a;
}
.pa2 .gtab {
  border-radius: 999px;
}
.pa-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  background: #f2f5faeb;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pa-bar h1 {
  font-size: 22px;
  margin: 0;
}
.pa-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #16233f;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px #1020401a;
  cursor: pointer;
}
.pa-bell.light {
  background: #ffffff24;
  color: #fff;
  box-shadow: none;
}
.pa-bell i {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #e53e3e;
  color: #fff;
  font: 700 10px/16px system-ui;
  font-style: normal;
  padding: 0 4px;
}
.pa-tab2 {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: #fffffff5;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e3e9f3;
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
  z-index: 40;
  box-shadow: 0 -6px 20px #1020400f;
}
.pa-tab2 button {
  position: relative;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #8a97ae;
  padding: 4px 0;
  cursor: pointer;
}
.pa-tab2 button.on {
  color: #1f4e9a;
}
.pa-tab2 button.on svg {
  stroke-width: 2.2;
}
.pa-tab2 .pdot {
  position: absolute;
  top: 0;
  right: calc(50% - 20px);
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #e53e3e;
  color: #fff;
  font: 700 10px/16px system-ui;
  font-style: normal;
}
.pa-fab span {
  width: 56px;
  height: 56px;
  margin-top: -26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #16233f;
  background: linear-gradient(180deg, #ffd25a, #f2b21c);
  box-shadow:
    0 8px 18px #f2b21c73,
    0 0 0 5px #f2f5fa;
}
.pa-fab.on {
  color: #c88a12 !important;
}
.ph {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 -16px;
}
.ph > *:not(.ph-head) {
  margin-left: 16px;
  margin-right: 16px;
}
.ph-head {
  background: linear-gradient(160deg, #1f4e9a, #16233f 70%);
  color: #fff;
  padding: 18px 16px 26px;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
}
.ph-head:after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 178, 28, 0.35), transparent 65%);
}
.ph-hi {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.ph-hi .av {
  width: 44px;
  height: 44px;
  font-size: 18px;
  background: #f2b21c;
  color: #16233f;
}
.ph-hi span {
  display: block;
  font-size: 13px;
  color: #b9c6e4;
}
.ph-hi b {
  font-size: 19px;
}
.ph-card {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff29, #ffffff0d);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ph-ring {
  --p: 0;
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#f2b21c calc(var(--p) * 1%), #ffffff26 0);
}
.ph-ring > div {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #1a2a52;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ph-ring b {
  font-size: 24px;
  line-height: 1;
  color: #ffd25a;
}
.ph-ring span {
  font-size: 10.5px;
  color: #b9c6e4;
}
.ph-lbl {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #ffd25a;
  font-weight: 700;
}
.ph-pts {
  margin-top: 4px;
  font-size: 13px;
  color: #dde6f7;
}
.ph-pts b {
  font-size: 22px;
  color: #fff;
  margin-right: 4px;
}
.ph-next {
  font-size: 12.5px;
  color: #b9c6e4;
  margin-top: 2px;
}
.ph-code {
  margin-top: 8px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #dde6f7;
  opacity: 0.85;
}
.ph-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #fff;
  border-radius: 20px;
  padding: 14px 8px;
  margin-top: -30px !important;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 24px #1020401a;
}
.ph-quick button {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #16233f;
  cursor: pointer;
}
.ph-quick button > span {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.q1 {
  background: #fff3d6;
  color: #c88a12;
}
.q2 {
  background: #e3eeff;
  color: #2f6fc4;
}
.q3 {
  background: #e3f4ec;
  color: #2e8b62;
}
.q4 {
  background: #f3e6fb;
  color: #8b4cc4;
}
.ph-sec {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ph-sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ph-sh h2 {
  font-size: 17px;
  margin: 0;
}
.ph-sh button {
  border: 0;
  background: none;
  color: #2f6fc4;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.ph-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 2px 16px 6px;
  scroll-snap-type: x mandatory;
}
.ph-scroll::-webkit-scrollbar {
  display: none;
}
.ph-tour {
  flex: none;
  width: 230px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 10px #1020400f;
  cursor: pointer;
}
.ph-tour .chip {
  align-self: flex-start;
}
.ph-tour > b {
  font-size: 15px;
  line-height: 1.3;
}
.ph-tm {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ph-tm span {
  font-size: 11.5px;
  background: #f2f5fa;
  border-radius: 8px;
  padding: 3px 8px;
  font-weight: 600;
  color: #4a5b7a;
}
.ph-wallet {
  flex: none;
  width: 210px;
  scroll-snap-align: start;
  border-radius: 18px;
  padding: 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(135deg, #2b1f0a, #7a5714 60%, #c89a2e);
}
.ph-wallet > span {
  font-size: 12.5px;
  opacity: 0.85;
}
.ph-wallet > b {
  font-size: 22px;
}
.ph-book {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 10px #1020400f;
}
.ph-date {
  width: 48px;
  height: 52px;
  border-radius: 12px;
  background: #16233f;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ph-date b {
  font-size: 20px;
  line-height: 1;
}
.ph-date span {
  font-size: 10.5px;
  color: #b9c6e4;
}
.ph-promo {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(120deg, #fff1d0, #ffe2a8);
  cursor: pointer;
}
.ph-promo b {
  display: block;
  color: #7a4a05;
}
.ph-promo span {
  font-size: 12.5px;
  color: #8a6420;
}
.ph-gift {
  font-size: 30px;
}
.ph-go {
  font-size: 24px !important;
  color: #c88a12 !important;
}
.ph-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: #8a97ae;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  font-size: 13px;
}
.pa-auth {
  max-width: 480px;
  padding: 0 !important;
  min-height: 100vh;
  background: linear-gradient(170deg, #1f4e9a, #16233f 55%, #0f1a33);
}
.pa-auth .pa-hero {
  padding: 56px 24px 34px;
  color: #fff;
  margin: 0;
}
.pa-auth .pa-hero p {
  color: #c9d6f2;
}
.pa-auth .pa-hero img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: 0 14px 30px #0006;
}
.pa-auth > .card {
  border-radius: 28px 28px 0 0;
  min-height: calc(100vh - 250px);
  padding: 24px 20px 40px !important;
  border: 0;
}

/* ===== Sửa lỗi hiển thị bảng: không xuống dòng bất thường, cột không lệch ===== */
.card:has(> table.t),
.card:has(> div > table.t) {
  overflow-x: auto;
}
table.t th {
  white-space: nowrap;
}
table.t td {
  vertical-align: middle;
}
table.t td.r,
table.t td.b,
table.t td .chip,
table.t td .btn,
table.t .nw {
  white-space: nowrap;
}
table.t td.r {
  font-variant-numeric: tabular-nums;
}
table.t .cell-ell {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Bản đồ thật (Leaflet) trong app cơ thủ ===== */
.world .pa-sheet { z-index: 1000; }
.world .leaflet-container { width: 100%; height: 100%; font: inherit; }
.bms-pin { width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); border: 2px solid #fff; background: var(--fix, #d64545); box-shadow: 0 4px 10px #0006; display: grid; place-items: center; }
.bms-pin.ok { background: var(--free, #1d8a5e); }
.bms-pin b { transform: rotate(45deg); color: #fff; font-size: 14px; }
/* ===== Tin nhắn dài tự xuống dòng, không tràn khung ===== */
.bubble { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; min-width: 0; box-sizing: border-box; }
.card.col:has(> .bubble) { overflow-x: hidden; }
.kv > span { overflow-wrap: anywhere; min-width: 0; }
/* ===== Căn đều các bảng: cột đầu (tên) căn trái, các cột còn lại căn giữa – kể cả cột tiền, trạng thái, nút ===== */
table.t th:not(:first-child),
table.t td:not(:first-child),
table.tbl th:not(:first-child),
table.tbl td:not(:first-child) {
  text-align: center;
}
table.t td:not(:first-child) > .row,
table.tbl td:not(:first-child) > .row,
table.t td.row:not(:first-child),
table.tbl td.row:not(:first-child) {
  justify-content: center;
}
table.t td:not(:first-child) .cell-ell { margin: 0 auto; }
table.t th, table.t td, table.tbl th, table.tbl td { vertical-align: middle; }
/* ===== Thanh mục Quản lý quán: chia nhóm, có icon ===== */
.adm-nav { display: flex; flex-direction: column; gap: 10px; }
.adm-title { white-space: nowrap; margin: 0; }
.adm-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.adm-group { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 10px; }
.adm-gl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .65; margin: 0 2px 6px; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.adm-tab .ic { font-size: 15px; line-height: 1; }
.adm-tab:hover { border-color: var(--gold3, #f2b21c); }
.adm-tab.on { background: var(--navy3, #2a4a8a); border-color: var(--navy3, #2a4a8a); color: #fff; }
[data-theme="dark"] .adm-group { background: #ffffff0a; border-color: #ffffff1f; }
[data-theme="dark"] .adm-tab { border-color: #ffffff26; }
[data-theme="dark"] .adm-tab.on { background: #3a6fd8; border-color: #3a6fd8; }
/* ===== Bảng dữ liệu dùng chung (mọi màn quản lý): không xuống dòng bất thường, cột đều, cuộn ngang khi màn hẹp ===== */
.card:has(> table.t), .card:has(> table.tbl), .card:has(> div > table.t) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t, table.tbl { width: 100%; border-collapse: collapse; }
table.t th, table.t td, table.tbl th, table.tbl td { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
table.t th, table.tbl th { font-weight: 600; }
/* Cột mô tả dài (ghi chú, thành phần combo, phục vụ…) được xuống dòng có kiểm soát */
table.t td.sm, table.t td.wrap, table.tbl td.wrap { white-space: normal; min-width: 140px; max-width: 320px; overflow-wrap: anywhere; }
table.t td .chip, table.tbl td .chip { white-space: nowrap; }
table.t td .btn + .btn, table.t td .btn + span + .btn { margin-left: 4px; }
table.t td:not(:first-child) > .row { flex-wrap: nowrap; }
@media (max-width: 800px) { table.t th, table.t td { padding-left: 8px; padding-right: 8px; } }
table.t .cell-ell { max-width: 190px; }

/* ===== Chặng 3 (20261119): sidebar navy + vàng theo file mẫu, giao diện sáng ===== */
[data-theme="light"] .nav {
  background: linear-gradient(180deg, #0c1c36, #13244f);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-right: 1px solid #0a1730;
}
[data-theme="light"] .ngh {
  color: var(--gold2);
}
[data-theme="light"] .nav.mini .ngh {
  border-top-color: rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .ni {
  color: #c9d4f2;
}
[data-theme="light"] .nic {
  color: #8fa0c8;
}
[data-theme="light"] .ni:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
[data-theme="light"] .ni.on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gold3);
  font-weight: 600;
}
[data-theme="light"] .ni.on .nic {
  color: var(--gold2);
}

/* ===== Chặng 3 phần 2 (20261119): màn đăng nhập theo mẫu B01 — cột trái navy, chọn nhân viên + bàn phím PIN tròn ===== */
/* Cột trái: navy như mẫu ở cả sáng/tối (thắng cả dawn/dusk/mưa). Hiệu ứng thời tiết/lễ vẫn nằm trên nền. */
:root[data-theme="light"] .auth2 .au-l {
  background: radial-gradient(120% 80% at 30% 20%, #28479c, #0c1c36);
}
:root[data-theme="light"] .auth2 .au-l:before {
  opacity: 0.6;
}
:root[data-theme="light"] .auth2 .au-l .au-glow {
  opacity: 0.35;
}
/* Danh sách nhân viên: thẻ bo 16px, avatar tròn navy, rê chuột viền vàng */
.au-people > button {
  border-radius: 16px;
  padding: 10px 12px;
}
.au-people > button .av,
.au-card .row > .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  background: #2c4592;
  color: #fff;
}
.au-people > button:hover {
  border-color: var(--gold3);
  background: rgba(242, 178, 28, 0.1);
  box-shadow: inset 0 0 0 1px var(--gold3);
}
.au-people > button:hover .av,
.au-card .row > .av {
  background: var(--gold3);
  color: #0c1c36;
}
/* Chấm PIN: viền navy, đã nhập thì vàng */
.au-card .pindots {
  gap: 14px;
}
.au-card .pindots i {
  width: 16px;
  height: 16px;
  background: transparent;
  border: 2px solid #1f3a7a;
}
.au-card .pindots i.on {
  background: var(--gold3);
  border-color: #d9930a;
}
/* Bàn phím PIN tròn */
.au-card .pinpad {
  grid-template-columns: repeat(3, 76px);
  gap: 14px;
  justify-content: center;
}
.au-card .pinpad button {
  height: 64px;
  padding: 0;
  border-radius: 32px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
  box-shadow:
    0 4px 0 #cfd7ec,
    0 8px 18px rgba(12, 28, 54, 0.1);
}
.au-card .pinpad button:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #cfd7ec,
    0 4px 10px rgba(12, 28, 54, 0.1);
}
[data-theme="dark"] .au-card .pindots i {
  border-color: #8fa0c8;
}
[data-theme="dark"] .au-card .pinpad button {
  background: #1b2742;
  color: #fff;
  box-shadow:
    0 4px 0 #0a1224,
    0 8px 18px rgba(0, 0, 0, 0.3);
}

/* ===== Chặng 3 phần 2b (20261119): bàn viền gỗ + lỗ vàng (mẫu B03), thẻ số liệu tổng quan (mẫu G01) ===== */
/* Bàn: SVG do JS vẽ (felt-svg); CSS ghi đè fill/stroke. Thứ tự rect: 1 = viền, 2 = mặt nỉ. */
.felt-svg > rect:first-of-type {
  fill: #6b3a12;
  stroke: #e2b866;
  stroke-opacity: 0.55;
  stroke-width: 1.5;
}
.felt-svg > rect:nth-of-type(2) {
  stroke: rgba(0, 0, 0, 0.28);
  stroke-width: 3;
}
.felt-svg > circle {
  fill: #0b0b0b;
  stroke: #e2b866;
  stroke-width: 1;
  r: 6px;
}
.tbl .felt-svg {
  filter: drop-shadow(0 2px 0 #2a1606);
}
.tbl.sel .felt-svg {
  filter: drop-shadow(0 2px 0 #2a1606) drop-shadow(0 0 0 #fff) drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
}
/* Thẻ số liệu tổng quan: card trắng bo 20px, bóng mềm, nhãn 12.5px, số 800 24px */
.kpis {
  gap: 12px;
}
.kpi {
  border: 0;
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 8px 22px rgba(12, 28, 54, 0.08);
  gap: 4px;
  min-height: 0;
}
.kpi.click {
  transition: box-shadow 0.15s, transform 0.15s;
}
.kpi.click:hover {
  box-shadow: 0 10px 26px rgba(12, 28, 54, 0.14), inset 0 0 0 1.5px var(--goldline);
}
.kpi .kl {
  font-size: 12.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.kpi .kv2 {
  font-size: 24px;
  font-weight: 800;
}
.kpi .kv2.kname {
  font-size: 20px;
}
.kpi .ks {
  margin-top: 0;
}
.kpi.k-main {
  background: var(--card);
  color: var(--ink);
}
.kpi.k-main .kv2 {
  color: var(--gold4);
}
.kpi.k-main .kl,
.kpi.k-main .ks {
  color: var(--mut);
}
.kpi.k-main .ks .up {
  color: #2e8b62;
}
.kpi.k-main .ks .down {
  color: #c24545;
}
.stat {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(12, 28, 54, 0.08);
}
[data-theme="dark"] .kpi,
[data-theme="dark"] .kpi.k-main,
[data-theme="dark"] .stat {
  background: var(--card);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 0 0 1px var(--line);
}
[data-theme="dark"] .kpi.k-main .kv2 {
  color: var(--gold2);
}
[data-theme="dark"] .kpi.k-main .ks .up {
  color: #7fd8ad;
}
[data-theme="dark"] .kpi.k-main .ks .down {
  color: #f19a9a;
}

/* ===== Chặng 4: web cơ thủ trên máy tính (/app, >=1024px) — chỉ CSS, dưới 1024px giữ nguyên bản điện thoại ===== */
@media (min-width: 1024px) {
  body:has(.pa2) { background: #f2f5fa; }
  .pa2 { max-width: none; margin: 0; min-height: 100vh; padding: 0 0 48px 248px; box-shadow: none; background: #f2f5fa; }

  /* Thanh tab -> sidebar trái navy + vàng */
  .pa-tab2 {
    top: 0; bottom: 0; left: 0; right: auto; transform: none; width: 232px;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px;
    padding: 92px 14px 24px; border-top: 0; border-right: 1px solid rgba(226, 184, 102, .28);
    background: linear-gradient(180deg, #16233f, #0f1a30); box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .pa-tab2::before {
    content: "BMS"; position: absolute; top: 26px; left: 28px;
    font: 800 26px/1 var(--font, system-ui); letter-spacing: .5px; color: #ffd25a;
  }
  .pa-tab2::after {
    content: "App cơ thủ"; position: absolute; top: 58px; left: 28px;
    font-size: 12.5px; color: #8fa1c6;
  }
  .pa-tab2 button {
    flex-direction: row; justify-content: flex-start; gap: 12px; width: 100%;
    padding: 11px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: #b9c6e4;
  }
  .pa-tab2 button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .pa-tab2 button.on { background: rgba(242, 178, 28, .14); color: #ffd25a; box-shadow: inset 3px 0 0 #f2b21c; }
  .pa-tab2 .pdot { top: 50%; right: 12px; transform: translateY(-50%); }
  /* Nút Đặt bàn nổi -> nút vàng trong sidebar */
  .pa-tab2 .pa-fab { margin: 10px 0; background: linear-gradient(180deg, #ffd25a, #f2b21c); color: #16233f !important; box-shadow: 0 6px 16px rgba(242, 178, 28, .3); }
  .pa-tab2 .pa-fab:hover { background: linear-gradient(180deg, #ffdc78, #f5bd36); color: #16233f; }
  .pa-tab2 .pa-fab.on { background: linear-gradient(180deg, #ffd25a, #f2b21c); box-shadow: 0 6px 16px rgba(242, 178, 28, .3), inset 0 0 0 2px #16233f; }
  .pa-fab span { width: auto; height: auto; margin: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; }

  /* Thanh tiêu đề và vùng nội dung */
  .pa-bar { max-width: 1040px; margin: 0 auto; padding: 26px 32px 14px; }
  .pa-bar h1 { font-size: 26px; }
  .pa2 .pa-main { max-width: 1040px; margin: 0 auto; padding: 0 32px; }

  /* Trang chủ: 2 cột */
  .ph { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin: 26px 0 0; }
  .ph > *:not(.ph-head) { margin-left: 0; margin-right: 0; }
  .ph-head { grid-column: 1 / -1; border-radius: 24px; padding: 24px 28px 28px; }
  .ph-quick { margin-top: 0 !important; }
  .ph-promo { align-self: stretch; }

  /* Tìm quán: bản đồ cao gần hết màn */
  .pa2 .world { height: calc(100vh - 230px); min-height: 480px; }
  .pa2 .pa-sheet { left: auto; right: 14px; bottom: 14px; width: 380px; }

  /* Cộng đồng (có ô viết bài): cột đọc ~760px */
  .pa-main > .col:has(> .card > textarea) { max-width: 760px; }

  /* Tôi: thẻ cơ thủ bên trái, các thẻ khác bên phải */
  .pa-main > .col:has(> .pcard) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .pa-main > .col:has(> .pcard) > * { grid-column: 1 / -1; }
  .pa-main > .col:has(> .pcard) > .pcard { grid-column: 1; grid-row: span 4; }
  .pa-main > .col:has(> .pcard) > .card { grid-column: 2; margin: 0; }
}

/* chặng 11c: bill chờ thu */
.tbl .wbill {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #3b2300;
  font-weight: 800;
  font-size: 11px;
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}
.wb-chip {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.wb-chip:hover {
  filter: brightness(0.96);
}

/* Chặng 11c (b): thanh nhóm tab Quản lý quán — nhóm rộng theo số nút, nút lưới 2 cột đều */
.adm-groups { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.adm-group { flex: 2 1 380px; min-width: 0; }
.adm-group:not(:has(.adm-tab:nth-child(3))) { flex: 1 1 190px; }
.adm-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.adm-group:not(:has(.adm-tab:nth-child(3))) .adm-tabs { grid-template-columns: minmax(0, 1fr); }
.adm-tab { justify-content: flex-start; min-width: 0; }
.adm-tab > span:not(.ic) { overflow: hidden; text-overflow: ellipsis; }

/* Chặng 11c (c): App cơ thủ → Cộng đồng: cột bảng tin 760px nằm lệch trái trong vùng 1040px, trống phải.
   Giữ độ rộng đọc 760px nhưng canh giữa cả thanh tiêu đề lẫn cột. */
@media (min-width: 1024px) {
  .pa2:has(.pa-main > .col > .card > textarea) .pa-bar { max-width: 824px; }
  .pa-main > .col:has(> .card > textarea) { width: 100%; margin-left: auto; margin-right: auto; }
}

/* Chặng 11c (c) phần 4: /quantri và /chuoi có 5 <table class="tbl"> bị dính luật ô bàn sơ đồ
   (.tbl{position:absolute;width:220px;height:124px}) → bảng thoát khỏi thẻ, rộng bằng khung nhìn, gây cuộn ngang. */
table.tbl { position: static; height: auto; cursor: auto; -webkit-user-select: auto; user-select: auto; transition: none; }
table.tbl:hover { transform: none; }
/* Chặng 12 việc 3: ô bàn ở trang quán (app cơ thủ) bấm được để đặt */
button.chip.bms-chonban{cursor:pointer;border:0;font:inherit}
button.chip.bms-chonban:hover:not(:disabled){filter:brightness(.95);box-shadow:0 0 0 2px rgba(201,162,39,.55)}
button.chip.bms-chonban:disabled{cursor:not-allowed;opacity:.75}
/* Chặng 12 việc 1: hàng tab trang Tôi (Thẻ cơ thủ … Tài khoản) trên màn hẹp rơi tab cuối xuống dòng 2 → một dòng, vuốt ngang */
@media (max-width: 1023px){
.pa2 .row.wrap:has(> .gtab):not(:has(> .sp)){flex-wrap:nowrap;overflow-x:auto;gap:8px;margin-inline:-16px;padding:2px 16px;scroll-padding-inline:16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.pa2 .row.wrap:has(> .gtab):not(:has(> .sp))::-webkit-scrollbar{display:none}
.pa2 .row.wrap:has(> .gtab):not(:has(> .sp))>.gtab{flex:0 0 auto;white-space:nowrap}
}
/* Chặng 12 việc 4: bàn đã đặt hiển thị to lên đầu thẻ lượt đặt (app cơ thủ) */
.bms-banto{display:block;font-size:22px;font-weight:800;line-height:1.15;letter-spacing:.2px;color:#16233f;margin-bottom:2px}
.bms-banto.bms-banto-cho{font-size:13px;font-weight:600;color:#8a94a8}

/* Chặng 12 phần 6: Bàn đang chơi + Mua bán cơ (bms-live) */
.ph-quick.bms-live-q6 { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
.bms-live-banner { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 14px 16px 0; padding: 12px 14px; border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  background: linear-gradient(120deg, #0f7a4a, #13985c); color: #fff; box-shadow: 0 8px 20px #0f7a4a33; position: relative; z-index: 2; }
.bms-live-banner b { display: block; font-size: 15px; }
.bms-live-banner span { font-size: 12.5px; opacity: .92; }
.bms-live-banner .bms-live-go { font-weight: 700; white-space: nowrap; opacity: 1; }
.ph .bms-live-banner + .ph-quick { margin-top: 12px !important; }
.bms-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #9dffcb; box-shadow: 0 0 0 4px #9dffcb40; flex: none; animation: bmsLivePulse 1.6s infinite; }
@keyframes bmsLivePulse { 50% { box-shadow: 0 0 0 8px #9dffcb10; } }
.bms-live .card { padding: 14px; }
.bms-live-tb { display: flex; flex-direction: column; gap: 10px; }
.bms-live-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bms-live-sum > div { background: #f3f6fb; border-radius: 12px; padding: 8px 10px; min-width: 0; }
.bms-live-sum span { display: block; font-size: 11.5px; color: #6b7a99; }
.bms-live-sum b { font-size: 15px; white-space: nowrap; }
.bms-live-sum .tot { background: #fff3d6; }
.bms-live-ord { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; border-top: 1px dashed #d8dfeb; padding-top: 8px; }
.bms-live-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bms-live-acts .btn { justify-content: center; min-height: 42px; }
.bms-live-reqs h3 { margin: 0 0 6px; font-size: 15px; }
.bms-live-req { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid #eef1f6; }
.bms-live-req:first-of-type { border-top: 0; }
.bms-live-req .chip { flex: none; white-space: nowrap; }
.bms-live-menu { display: flex; flex-direction: column; max-height: 52vh; overflow-y: auto; }
.bms-live-mi { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eef1f6; }
.bms-live-mi.off { opacity: .5; }
.bms-live-qty { display: flex; align-items: center; gap: 8px; flex: none; }
.bms-live-qty .btn { min-width: 34px; justify-content: center; }
.bms-mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.bms-mk-it { display: flex; flex-direction: column; gap: 8px; }
.bms-mk-price { color: #c88a12; font-size: 16px; }

/* Chặng 12 phần 6c: logo + thời tiết đầu trang chủ app cơ thủ (bms-phwx) */
.ph-head:before { content: ""; position: absolute; left: -50px; top: 40px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 152, 92, 0.4), transparent 65%); pointer-events: none; }
.bms-phwx-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; margin-bottom: 14px; min-width: 0; }
.bms-phwx-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 15px; letter-spacing: .3px; color: #dfe7f7; }
.bms-phwx-brand img { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 2px 8px #0005; background: #fff; }
.bms-phwx-brand b { color: #f2b21c; font-weight: 800; }
.bms-phwx-w { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 62%; padding: 5px 12px 5px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bms-phwx-w em { font-style: normal; font-size: 22px; line-height: 1; }
.bms-phwx-w > div { min-width: 0; line-height: 1.15; }
.bms-phwx-w b { display: block; font-size: 15px; color: #fff; }
.bms-phwx-w span { display: block; font-size: 11px; color: #b9c6e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bms-phwx-w.is-load span { font-size: 12px; }
/* bms-muc11: giải đấu */
[data-theme="light"] .body .flock { display: none; }
.bracket.bms-muc11 { gap: 32px; justify-content: center; width: 100%; min-width: max-content; }
.bms-muc11 .bcol { flex: 1 1 0; min-width: 240px; max-width: 340px; justify-content: flex-start; gap: 10px; }
.bms-muc11 .bhd { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.bms-muc11 .bcm { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.bms-muc11 .bm { cursor: default; padding: 8px 10px; }
.bms-muc11 .bm.ok { cursor: pointer; }
.bms-muc11 .bm.ok:hover { border-color: var(--gold); }
.bms-muc11 .bm.bye { opacity: .8; border-style: dashed; }
.bms-muc11 .bmh { display: flex; gap: 8px; font-size: 11px; color: var(--mut); margin-bottom: 2px; }
.bms-muc11 .bmh .sp { font-weight: 700; }
.bms-muc11 .bsc { min-width: 20px; text-align: right; }

/* bms-muc9: tô sáng dòng được mở từ chuông thông báo */
.bms-focus{outline:3px solid #f5b301!important;outline-offset:2px;border-radius:8px;animation:bmsFocusBlink .5s ease-in-out 0s 5 alternate}
@keyframes bmsFocusBlink{from{box-shadow:0 0 0 0 rgba(245,179,1,.0)}to{box-shadow:0 0 0 8px rgba(245,179,1,.45)}}

/* Chặng 19 mục 7: thẻ "Bạn đang chơi" to, nổi bật (bms-livecard) */
.bms-livecard { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 18px 14px; border-radius: 20px;
  background: radial-gradient(120% 90% at 100% 0%, #1fbf74 0%, #13985c 45%, #0b6b40 100%); box-shadow: 0 14px 30px #0f7a4a44; }
.bms-livecard:focus-visible { outline: 3px solid #f5b301; outline-offset: 2px; }
.bms-livecard .blc-top { display: flex; align-items: center; gap: 10px; }
.bms-livecard .blc-st { font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; opacity: 1; }
.bms-livecard .blc-shop { margin-left: auto; font-size: 13px; opacity: .9; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bms-livecard .blc-mid { display: flex; align-items: flex-end; gap: 18px; }
.bms-livecard small { display: block; font-size: 12px; opacity: .85; font-weight: 500; }
.bms-livecard .blc-ban b { display: block; font-size: 64px; line-height: .95; font-weight: 900; letter-spacing: -1px; }
.bms-livecard .blc-time { margin-left: auto; text-align: right; }
.bms-livecard .blc-time b { display: block; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bms-livecard .blc-time b.blc-paused { opacity: .6; }
.bms-livecard .blc-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bms-livecard .blc-sum > div { background: #ffffff1f; border-radius: 12px; padding: 8px 10px; min-width: 0; }
.bms-livecard .blc-sum b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bms-livecard .blc-sum .blc-tot { background: #fff; color: #0b6b40; }
.bms-livecard .blc-sum .blc-tot b { font-size: 17px; font-weight: 900; }
.bms-livecard .blc-acts { display: flex; gap: 10px; }
.bms-livecard .blc-acts button { border: 0; border-radius: 12px; padding: 12px 14px; font-size: 15px; font-weight: 800; cursor: pointer; }
.bms-livecard .blc-order { flex: 1; background: linear-gradient(180deg, #ffd25a, #f2b21c); color: #16233f; }
.bms-livecard .blc-order:disabled { opacity: .55; cursor: default; }
.bms-livecard .blc-more { background: #ffffff26; color: #fff; }
.bms-livecard .blc-note { font-size: 11.5px; opacity: .75; }
@media (min-width: 1024px) {
  .ph .bms-livecard { width: auto; margin: 0; align-self: stretch; grid-column: 1; justify-content: space-between; }
  .ph .bms-livecard .blc-ban b { font-size: 76px; }
}

/* bms-mk-detail: Chặng 19 mục 6 */
.bms-mk-it { cursor: pointer; }
.bms-mk-ph { height: 140px; border-radius: 8px; overflow: hidden; background: rgba(127,127,127,.12); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.bms-mk-ph img { width: 100%; height: 100%; object-fit: cover; }
.bms-mk-detail { gap: 8px; }
.bms-mk-big { width: 100%; max-height: 320px; object-fit: contain; border-radius: 8px; background: rgba(127,127,127,.12); }
.bms-mk-specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.bms-mk-specs td { padding: 4px 6px; border-bottom: 1px solid rgba(127,127,127,.2); vertical-align: top; }
.bms-mk-specs td:first-child { width: 40%; }

/* bms-clock: Chặng 20 mục 8 chấm công online */
.bms-clock { gap: 10px; }
.bms-clock-btn { min-width: 140px; }
.bms-clock-p { display: inline-block; margin-right: 12px; }
.bms-clock-tag { margin-left: 6px; font-size: 11px; padding: 1px 6px; }
@media (max-width: 480px) { .bms-clock-btn { width: 100%; } }

/* bms-c23a: trang chi tiết giải (app cơ thủ) */
.bms-td .kv{display:flex;justify-content:space-between;gap:10px;padding:3px 0}
.bms-td-me{border-left:4px solid var(--gold,#c9a227)}
.bms-td-score{font-size:20px;font-weight:700}
.bms-td-live{color:var(--play,#16a34a);font-weight:600}
.bms-td-you{margin-left:4px;font-size:10px;padding:1px 6px}
.bms-td-br{display:flex;gap:10px;overflow-x:auto;padding:0 14px 6px;-webkit-overflow-scrolling:touch}
.bms-td-col{flex:0 0 200px;display:flex;flex-direction:column}
.bms-td-hd{font-size:12px;font-weight:700;text-transform:uppercase;opacity:.7;text-align:center;margin-bottom:6px}
.bms-td-cm{flex:1;display:flex;flex-direction:column;justify-content:space-around;gap:8px}
.bms-td-m{border:1px solid rgba(127,127,127,.3);border-radius:8px;padding:4px 8px;font-size:13px}
.bms-td-m.live{border-color:var(--play,#16a34a)}
.bms-td-m.mine{box-shadow:0 0 0 2px var(--gold,#c9a227)}
.bms-td-m.bye{opacity:.75}
.bms-td-mh{display:flex;gap:6px;font-size:11px;opacity:.75;margin-bottom:2px}
.bms-td-p{display:flex;align-items:center;gap:6px;padding:2px 0}
.bms-td-p.win{font-weight:700}
.bms-td-li{padding:6px 0;border-top:1px solid rgba(127,127,127,.18)}
.bms-td-li.mine{background:rgba(201,162,39,.08)}

/* bms-c23b: nút Thanh toán ở chi tiết bàn */
.bms-pay{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:10px 16px 10px 10px;border:0;border-radius:14px;cursor:pointer;text-align:left;color:#0c1c36;background:linear-gradient(180deg,#ffd866,#f2b21c);box-shadow:0 3px 0 #b57a06,0 6px 16px rgba(217,147,10,.28);transition:transform .08s,box-shadow .08s,filter .15s}
.bms-pay:hover{filter:brightness(1.04)}
.bms-pay:active{transform:translateY(2px);box-shadow:0 1px 0 #b57a06,0 3px 8px rgba(217,147,10,.25)}
.bms-pay:focus-visible{outline:3px solid #24408c;outline-offset:2px}
.bms-pay-ic{flex:0 0 40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#0c1c36;color:#ffd866;font-size:20px;font-weight:800}
.bms-pay-tx{flex:1;display:flex;flex-direction:column;min-width:0;line-height:1.2}
.bms-pay-tx b{font-size:18px;font-weight:800;letter-spacing:.2px}
.bms-pay-tx small{font-size:13px;font-weight:600;opacity:.78;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bms-pay-ar{font-size:26px;font-weight:700;opacity:.7}

/* bms-c23c: modal rộng (Thanh toán · Bàn X) vừa màn 390px */
@media (max-width: 480px) {
  .modal.wide .modal-b > .grid2 { grid-template-columns: minmax(0, 1fr); }
  .modal.wide .modal-b .grid2 > * { min-width: 0; }
}

/* bms-c23d: thanh trên cùng + menu ngang không cao bất thường ở màn hẹp */
@media (max-width: 900px) {
  .body > .nav > .winter { display: none; }
}
@media (max-width: 480px) {
  .top { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .top .who { width: 100%; min-width: 0; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .top .who::-webkit-scrollbar { display: none; }
  .top .who > * { flex: none; }
}

/* bms-c23c1-combo: combo khi mở bàn — nhãn thẻ bàn + khối chọn trong modal */
.tbl .bms-cb {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}
.tbl .bms-cb.over { background: #dc2626; }
.bms-cbo { padding: 10px; }
.bms-cbo h3 { margin: 0 0 8px; font-size: 14px; }
.bms-cbo .combo-grid { margin-bottom: 6px; }
.bms-cbo-ch { margin: 6px 0; }
.bms-cbo-ok { display: flex; gap: 6px; align-items: flex-start; font-weight: 600; margin-top: 6px; }
.bms-cbo-ok input { margin-top: 3px; }

/*bms-c24-ds*/
table.t th.bms-stt, table.t td.bms-stt, table.tbl th.bms-stt, table.tbl td.bms-stt { width: 1%; text-align: center; color: var(--mut); font-variant-numeric: tabular-nums; padding-left: 10px; padding-right: 6px; }
.bms-tf, .bms-pg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; }
.bms-tf { border-bottom: 1px solid var(--line); }
.bms-pg { border-top: 1px solid var(--line); }
.bms-tf .inp, .bms-pg .inp { width: auto; max-width: 220px; padding: 4px 8px; }
.bms-tf .sp, .bms-pg .sp { flex: 1; }
@media print { .bms-tf, .bms-pg { display: none !important; } }

/*bms-c24c-hep*/
@media (max-width: 700px) {
  .bms-tf, .bms-pg { position: sticky; left: 0; box-sizing: border-box; max-width: min(100%, calc(100vw - 24px)); }
  .bms-tf .inp, .bms-pg .inp { max-width: 160px; }
  .grid2:has(> .col) { grid-template-columns: minmax(0, 1fr) !important; }
  .grid2 > .col { min-width: 0; }
}

/* bms-c25-pie */
.bars > div[role="button"] { cursor: pointer; transition: filter .15s, outline-color .15s; outline: 2px solid transparent; outline-offset: 1px; }
.bars > div[role="button"]:hover, .bars > div[role="button"]:focus-visible { filter: brightness(1.12); outline-color: var(--navy4); }
.bms-goiy { margin-top: 4px; }
.bms-pie { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.bms-pie-svg { width: 168px; height: 168px; flex: 0 0 auto; }
.bms-pie-nen { fill: none; stroke: var(--line); stroke-width: 22; }
.bms-pie-lat { fill: none; stroke-width: 22; cursor: pointer; transition: stroke-width .15s, opacity .15s; outline: none; }
.bms-pie-lat:hover, .bms-pie-lat:focus-visible { stroke-width: 26; }
.bms-pie-t1 { font-size: 8px; fill: var(--mut); }
.bms-pie-t2 { font-size: 10px; font-weight: 700; fill: var(--ink); }
.bms-pie-ct { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bms-pie-dong { display: grid; grid-template-columns: 12px 1fr auto 48px; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.bms-pie-dong:hover, .bms-pie-dong:focus-visible { background: var(--bg); outline: none; }
.bms-pie-dong i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.bms-pie-dong span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bms-pie-dong em { font-style: normal; color: var(--mut); text-align: right; font-size: 12px; }
[data-theme="dark"] .bms-pie-t2 { fill: #e8eefc; }
.bms-ct { min-width: 0; }
.bms-ct-cuon { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bms-ct-cuon table.t { width: 100%; }
.bms-ct-cuon table.t td, .bms-ct-cuon table.t th { white-space: nowrap; }
@media (max-width: 560px) { .bms-ct-an { display: none; } .bms-ct-cuon table.t td, .bms-ct-cuon table.t th { padding-left: 4px; padding-right: 4px; font-size: 12px; white-space: normal; } .bms-ct-cuon table.t td.r, .bms-ct-cuon table.t th.r { white-space: nowrap; } }
@media (max-width: 560px) { .bms-pie { justify-content: center; } .bms-pie-svg { width: 150px; height: 150px; } .bms-pie-ct { flex-basis: 100%; } }

/* bms-c26-xoa-excel */
.bms-tf .bms-xl { white-space: nowrap; }
.bms-tf-x { padding: 4px 12px; }

/* bms-c30-hien-mk */
.bms-c30-pw .inp {
  padding-right: 52px;
}
.bms-c30-pw button {
  min-height: 32px;
  padding: 0 6px;
}

/* bms-c31-so-do-ban: sơ đồ bàn cho khách ở trang quán (app cơ thủ) */
.bms-c31-bar{gap:8px;align-items:center;justify-content:space-between}
.bms-c31-tang{gap:6px}
.bms-c31-cth{gap:12px;color:var(--mut)}
.bms-c31-cth span{display:inline-flex;align-items:center;gap:5px}
.bms-c31-cth i{display:inline-block;width:12px;height:12px;border-radius:3px;border:1px solid rgba(0,0,0,.15)}
.bms-c31-ds{margin-left:auto}
.bms-c31-cuon{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:10px;background:var(--bg,#f3f5fa);padding:6px}
.bms-c31-map{position:relative;width:100%;margin:0 auto;container-type:inline-size;background:repeating-linear-gradient(0deg,transparent 0 23px,rgba(120,130,160,.08) 23px 24px),repeating-linear-gradient(90deg,transparent 0 23px,rgba(120,130,160,.08) 23px 24px)}
.bms-c31-t{position:absolute;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:2px;border:2px solid currentColor;border-radius:12%/14%;font:inherit;line-height:1.1;cursor:pointer;overflow:hidden;text-align:center}
.bms-c31-t b{font-size:1.25em;font-weight:800}
.bms-c31-t span{font-size:.8em;font-weight:600;white-space:nowrap}
.bms-c31-t:hover:not(:disabled),.bms-c31-t:focus-visible{box-shadow:0 0 0 3px rgba(201,162,39,.7);outline:none;z-index:1}
.bms-c31-t:disabled{cursor:not-allowed;opacity:.7}

/* bms-c36r5-so-do */
.bms-c31-t.bms-c36-ban{background:transparent;border:0;border-radius:6px;color:#fff;padding:0;text-shadow:0 1px 2px rgba(0,0,0,.85),0 0 4px rgba(0,0,0,.6)}
.bms-c31-t.bms-c36-ban .felt-svg{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.bms-c31-t.bms-c36-ban b,.bms-c31-t.bms-c36-ban span{position:relative;z-index:1}
.bms-c31-t.bms-c36-ban span{background:rgba(0,0,0,.35);border-radius:4px;padding:0 4px}
.bms-c36-lm{position:absolute;box-sizing:border-box;border-radius:8px;color:#fff;display:grid;place-items:center;overflow:hidden;opacity:.9;box-shadow:inset 0 0 0 2px #ffffff26;font-size:clamp(8px,1.6cqw,12px);font-weight:700;text-align:center;line-height:1.1;pointer-events:none}
.bms-c36-lm.wall{border-radius:3px}
.bms-c36-lm span{padding:0 3px}

/* bms-c36r1r2 — R1 donut mảnh hơn, chữ co, % trên lát, rê sáng; R2 cột bấm cả chiều cao + nhãn số */
.bms-pie-nen { stroke-width: 16; }
.bms-pie-lat { stroke-width: 16; }
.bms-pie-lat:hover, .bms-pie-lat:focus-visible, .bms-pie-lat.on { stroke-width: 19; }
.bms-pie-lat.mo { opacity: .38; }
.bms-pie-t1 { font-size: 7.5px; }
.bms-pie-t2 { font-size: 12px; }
.bms-pie-t3 { font-size: 6.5px; fill: var(--mut); }
.bms-pie-pt { font-size: 6.5px; font-weight: 700; fill: #fff; stroke: rgba(10, 20, 45, .45); stroke-width: 1.4px; paint-order: stroke; pointer-events: none; transition: opacity .15s; }
.bms-pie-pt.mo { opacity: .35; }
.bms-pie-dong.on { background: var(--bg); }
.bms-pie-tong { cursor: default; border-top: 1px solid var(--line); border-radius: 0; margin-top: 2px; padding-top: 7px; }
.bms-pie-tong:hover { background: none; }
.bms-pie-tong span, .bms-pie-tong b { font-weight: 700; }
.bars { --bms-bh: 130px; }
.hbars { --bms-bh: 160px; }
.bars:has(> div[data-v]) { padding-top: 22px; --bms-bh: 118px; }
.hbars:has(> div[data-v]) { --bms-bh: 148px; }
.bars > div[role="button"]::before { content: ""; position: absolute; left: -3px; right: -3px; bottom: 0; height: var(--bms-bh); border-radius: 6px 6px 0 0; background: transparent; transition: background .15s; }
.bars > div[role="button"]:hover::before, .bars > div[role="button"]:focus-visible::before { background: rgba(36, 64, 140, .08); }
.bars > div[data-v]::after { content: attr(data-v); position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; line-height: 1.3; white-space: nowrap; color: var(--ink); background: var(--card, #fff); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; pointer-events: none; opacity: 0; z-index: 4; transition: opacity .12s; }
.bars > div[data-v]:hover::after, .bars > div[data-v]:focus-visible::after, .bars > div[data-top]::after { opacity: 1; }
.bars:has(> div[data-v]:hover) > div[data-top]:not(:hover)::after { opacity: 0; }
[data-theme="dark"] .bars > div[role="button"]:hover::before { background: rgba(232, 238, 252, .08); }
@media (max-width: 560px) { .bars:has(> div:nth-child(13)) > div:nth-child(even) > span { visibility: hidden; } .bars > div[data-v]::after { font-size: 9px; } }

/* bms-c36r3-tinh */
.bms-tinh{position:relative;min-width:0}
.bms-tinh>.inp{width:100%}
.bms-tinh-ds{position:fixed;z-index:2000;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:4px;list-style:none;background:var(--card,#fff);color:var(--ink,#1b2333);text-align:left;border:1px solid var(--line,#d5dbe7);border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.18)}
.bms-tinh-ds li{padding:9px 10px;border-radius:7px;cursor:pointer;font-size:14px;line-height:1.25}
.bms-tinh-ds li small{opacity:.65;font-size:12px}
.bms-tinh-ds li.on{background:rgba(37,99,235,.12)}
.bms-tinh-ds li.cur{font-weight:700}

/* bms-c36r7: sidebar /app có đồng hồ + lối nhanh + trang trí; Đặt bàn chỉ vàng khi chọn; 1440; nhãn đảo; L3 quầy 390 */
.pa-side { display: none; }
.bms-dao { pointer-events: none; }
.bms-dao span { display: block; transform: translate(-50%, -50%); white-space: nowrap; text-align: center; font: 600 11px/1.25 var(--font, system-ui); color: #1f4e9a; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
@media (min-width: 1024px) {
  .pa-tab2 { overflow-y: auto; scrollbar-width: none; }
  .pa-tab2::-webkit-scrollbar { display: none; }
  .pa-side { display: flex; flex-direction: column; flex: 1 0 auto; gap: 14px; margin-top: 16px; }
  .pa-clock { padding: 14px 14px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(226, 184, 102, .28); }
  .pa-clock-t { display: flex; align-items: baseline; font-variant-numeric: tabular-nums; line-height: 1; }
  .pa-clock-t b { font-size: 34px; font-weight: 800; color: #ffd25a; letter-spacing: .5px; }
  .pa-clock-t small { font-size: 15px; font-weight: 700; color: #c9a352; margin-left: 2px; }
  .pa-clock-d { margin-top: 8px; font-size: 13px; color: #dbe3f4; font-weight: 600; }
  .pa-clock-c { margin-top: 3px; font-size: 12.5px; color: #8fa1c6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pa-quick { display: flex; flex-direction: column; gap: 2px; }
  .pa-quick-h { padding: 0 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #6f82aa; }
  .pa-tab2 .pa-side .pa-quick-b { padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: #b9c6e4; border-radius: 10px; gap: 10px; }
  .pa-tab2 .pa-side .pa-quick-b span { width: 20px; text-align: center; }
  .pa-deco { margin-top: auto; padding: 0 4px; opacity: .55; }
  .pa-deco svg { display: block; width: 100%; height: auto; }
  .pa-foot { font-size: 11px; color: #6f82aa; padding: 0 6px; }
  .pa-tab2 .pa-fab:not(.on) { background: transparent; color: #ffd25a !important; box-shadow: inset 0 0 0 1.5px rgba(242, 178, 28, .7); }
  .pa-tab2 .pa-fab:not(.on):hover { background: rgba(242, 178, 28, .12); color: #ffe08a !important; }
}
@media (min-width: 1024px) and (max-height: 780px) { .pa-deco { display: none; } .pa-foot { margin-top: auto; } }
@media (min-width: 1024px) and (max-height: 700px) { .pa-quick { display: none; } }
@media (min-width: 1440px) {
  .pa-bar, .pa2 .pa-main { max-width: 1180px; }
}
@media (max-width: 480px) {
  .top .who { flex-wrap: wrap; overflow: visible; justify-content: flex-end; row-gap: 6px; }
  .top .who > .r { margin-right: auto; }
  .top .who .wx-chip > span:not(.wx-ic), .top .who .wx-chip .wx-city { display: none; }
}

/* bms-c36r8-mua: trang trí theo mùa (Tết máy quầy, /app cột trái + trang quán, /quantri) */
.winter.bms-tet svg { filter: drop-shadow(0 2px 3px #0003); }
.au-l > .bms-tet-den { position: absolute; top: 0; right: 6%; width: 150px; z-index: 3; pointer-events: none; }
.au-l > .au-snow.bms-tet-roi { position: absolute; }
.au-snow.bms-tet-roi i { background: #FFC928; border-radius: 60% 0 60% 0; box-shadow: 0 0 3px #e07b0080; }
.au-snow.bms-tet-roi i:nth-child(3n) { background: #F7A1B5; }
.pa-deco { position: relative; overflow: hidden; }
.pa-deco[data-season="xmas"], .pa-deco[data-season="tet"] { opacity: 1; }
.pa-deco-s { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.pa-deco-s span { width: 56px; height: 10px; flex: none; background: radial-gradient(circle, var(--c1) 3px, transparent 3.5px) 0 50% / 14px 10px repeat-x; }
[data-season="xmas"] .pa-deco-s { color: #e8f2ff; --c1: #ff5a5a; }
[data-season="xmas"] .pa-deco-s span { background-image: radial-gradient(circle, #ff5a5a 3px, transparent 3.5px), radial-gradient(circle, #ffd84a 3px, transparent 3.5px); background-position: 0 50%, 7px 50%; }
[data-season="tet"] .pa-deco-s { color: #ffd34d; --c1: #ffc928; }
[data-season="tet"] .pa-deco-s span { background-image: radial-gradient(circle, #e53935 3px, transparent 3.5px), radial-gradient(circle, #ffc928 3px, transparent 3.5px); background-position: 0 50%, 7px 50%; }
.bms-roi { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bms-roi i { position: absolute; top: -8px; width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: .85; animation: bmsRoi linear infinite; }
[data-season="tet"] .bms-roi i { width: 7px; height: 7px; background: #ffc928; border-radius: 60% 0 60% 0; }
[data-season="tet"] .bms-roi i:nth-child(3n) { background: #f7a1b5; }
@keyframes bmsRoi { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(8px, 70px) rotate(160deg); } to { transform: translate(-4px, 150px) rotate(320deg); opacity: 0; } }
.bms-sband { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; font-size: 14px; pointer-events: none; }
.bms-sband[data-season="xmas"] { background: linear-gradient(90deg, #0f5132, #1b7a4a 55%, #a61e2a); color: #fff; }
.bms-sband[data-season="tet"] { background: linear-gradient(90deg, #b3121b, #d62b2b 55%, #e8a417); color: #fff7d6; }
.bms-sband-den { width: 70px; height: 12px; flex: none; background: radial-gradient(circle, #ffd84a 3px, transparent 3.5px) 0 50% / 12px 12px repeat-x; }
.bms-sband[data-season="xmas"] .bms-sband-den { background-image: radial-gradient(circle, #ff6b6b 3px, transparent 3.5px), radial-gradient(circle, #ffe066 3px, transparent 3.5px); background-size: 14px 12px; background-position: 0 50%, 7px 50%; }
.bms-sband b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .bms-roi, .au-snow.bms-tet-roi { display: none; } }

/* bms-c36r8-gio: đồng hồ trong khung xanh Trang chủ /app */
.bms-phgio { flex: none; text-align: right; margin-right: 4px; line-height: 1; font-variant-numeric: tabular-nums; }
.bms-phgio-t { display: flex; align-items: baseline; justify-content: flex-end; }
.bms-phgio-t b { font-size: 34px; font-weight: 800; color: #ffd25a; letter-spacing: .5px; }
.bms-phgio-t small { font-size: 15px; font-weight: 700; color: #c9a352; margin-left: 2px; }
.bms-phgio-d { margin-top: 6px; font-size: 13px; font-weight: 600; color: #dbe3f4; white-space: nowrap; }
@media (max-width: 560px) { .bms-phgio-t b { font-size: 22px; } .bms-phgio-t small { font-size: 12px; } .bms-phgio-d { font-size: 11px; margin-top: 4px; } }
@media (max-width: 360px) { .bms-phgio-d { display: none; } }
