/* LucianLabs UX/UI Design Token System (--ux-*) — MIT Inspired Clean Utility UI */
:root {
  --ux-page: #F4F2EE;
  --ux-surface: #FFFFFF;
  --ux-surface-2: #F5F3EF;
  --ux-surface-3: #EAE7E1;
  --ux-ink: #16151B;
  --ux-ink-2: #57535F;
  --ux-ink-3: #8E8A97;
  --ux-line: rgba(22, 21, 27, 0.09);
  --ux-line-2: rgba(22, 21, 27, 0.17);
  --ux-accent: #6A57F2;
  --ux-accent-soft: rgba(106, 87, 242, 0.10);
  --ux-accent-ink: #FFFFFF;
  --ux-cta-bg: #16151B;
  --ux-cta-ink: #FFFFFF;
  --ux-mint: #119C72;
  --ux-mint-soft: rgba(17, 156, 114, 0.11);
  --ux-warn: #D6731E;
  --ux-warn-soft: rgba(214, 115, 30, 0.12);
  --ux-danger: #D93A55;
  --ux-danger-soft: rgba(217, 58, 85, 0.10);
  --ux-code-bg: #0D0E14;
  --ux-shadow: rgba(40, 30, 80, 0.09);
  --ux-shadow-strong: rgba(22, 21, 27, 0.18);
  --ux-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ux-spring: cubic-bezier(0.3, 1.1, 0.4, 1);
}

:root[data-theme="dark"] {
  --ux-page: #07080D;
  --ux-surface: #13141C;
  --ux-surface-2: #1A1B25;
  --ux-surface-3: #252632;
  --ux-ink: #F4F0E8;
  --ux-ink-2: rgba(244, 240, 232, 0.70);
  --ux-ink-3: rgba(244, 240, 232, 0.44);
  --ux-line: rgba(255, 255, 255, 0.08);
  --ux-line-2: rgba(255, 255, 255, 0.16);
  --ux-accent: #B7A4FF;
  --ux-accent-soft: rgba(183, 164, 255, 0.15);
  --ux-accent-ink: #0B0C12;
  --ux-cta-bg: #F4F0E8;
  --ux-cta-ink: #0B0C12;
  --ux-mint: #7EE8C0;
  --ux-mint-soft: rgba(126, 232, 192, 0.13);
  --ux-warn: #FFB26B;
  --ux-warn-soft: rgba(255, 178, 107, 0.14);
  --ux-danger: #FF7D8C;
  --ux-danger-soft: rgba(255, 125, 140, 0.14);
  --ux-code-bg: #090A0F;
  --ux-shadow: rgba(0, 0, 0, 0.45);
  --ux-shadow-strong: rgba(0, 0, 0, 0.72);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background: var(--ux-page);
  color: var(--ux-ink);
  font-family: "Pretendard Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
  user-select: none;
}

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ux-accent);
  outline-offset: 2px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

/* Top Compact Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 58px;
  background: var(--ux-surface);
  border-bottom: 1px solid var(--ux-line);
  padding: 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 17px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ux-ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.brand .dot {
  color: var(--ux-accent);
}

.nav-tabs {
  display: flex;
  gap: 4px;
  background: var(--ux-surface-2);
  padding: 4px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--ux-line);
}

.nav-tab {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ux-ink-2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s var(--ux-ease), color 0.18s var(--ux-ease);
}

.nav-tab:hover {
  color: var(--ux-ink);
}

.nav-tab.active {
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.nav-tab.active .badge-count {
  background: rgba(128, 128, 128, 0.25);
  color: inherit;
}

.badge-count {
  background: var(--ux-surface-3);
  color: var(--ux-ink);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 800;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.balance-pill {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ux-ink-2);
}

.balance-pill strong {
  color: var(--ux-ink);
  font-weight: 850;
}

.btn-cta {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.12s ease;
}

.btn-cta:hover {
  opacity: 0.9;
}

.btn-cta:active {
  transform: scale(0.985);
}

.btn-ghost {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ux-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.btn-ghost:hover {
  background: var(--ux-surface-3);
}

.avatar-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ux-accent-soft);
  color: var(--ux-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
}

/* Main Page Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 1-Line Notice Strip */
.notice-strip {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ux-ink-2);
  font-weight: 600;
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ux-mint);
  box-shadow: 0 0 0 3px var(--ux-mint-soft);
  flex-shrink: 0;
}

.notice-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ux-ink-3);
  font-weight: 700;
}

.notice-right b {
  color: var(--ux-ink);
}

/* Storefront Main Board (#273 + #305 + #230) */
.board {
  background: var(--ux-surface);
  border-radius: 26px;
  box-shadow: 0 0 0 1px var(--ux-line), 0 24px 48px -32px var(--ux-shadow-strong);
  display: grid;
  grid-template-columns: 1fr 376px;
  gap: 0;
  min-height: 620px;
  overflow: hidden;
}

.catalog-pane {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

/* #305 Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.chip {
  height: 33px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ux-ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s var(--ux-ease);
}

.chip:hover {
  color: var(--ux-ink);
}

.chip.active {
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  box-shadow: none;
}

.chip .cnt {
  font-size: 11px;
  opacity: 0.65;
  font-weight: 800;
}

.search-wrap {
  position: relative;
  width: 230px;
}

.search-input {
  width: 100%;
  height: 34px;
  padding: 0 42px 0 12px;
  border-radius: 10px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ux-ink);
}

.search-input::placeholder {
  color: var(--ux-ink-3);
}

.kbd-hint {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line);
  color: var(--ux-ink-3);
  font-weight: 800;
  pointer-events: none;
}

/* Table Column Headers */
.col-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 136px 86px 94px 88px 94px;
  column-gap: 10px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ux-ink-3);
}

.col-head div:nth-child(4),
.col-head div:nth-child(5),
.col-head div:nth-child(6) {
  text-align: right;
}

/* #273 Product List Rows */
.rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.row {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 136px 86px 94px 88px 94px;
  column-gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--ux-surface);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  cursor: pointer;
  transition: background 0.15s var(--ux-ease), box-shadow 0.15s var(--ux-ease);
}

.row > div {
  min-width: 0;
}

.row:hover {
  background: var(--ux-surface-2);
}

.row.is-on {
  background: var(--ux-accent-soft);
  box-shadow: inset 3.5px 0 0 var(--ux-accent), inset 0 0 0 1px var(--ux-accent);
}

.row.out {
  opacity: 0.56;
}

.prod-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mail-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: #D93A55;
  flex-shrink: 0;
}

.row.is-on .mail-icon {
  background: var(--ux-surface);
}

.prod-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ux-ink);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.flag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--ux-surface-3);
  color: var(--ux-ink-2);
  font-weight: 800;
  white-space: nowrap;
}

.prod-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ux-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-meta {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ux-surface-2);
  font-size: 11px;
  font-weight: 750;
  color: var(--ux-ink-2);
  white-space: nowrap;
}

.stock-cell {
  text-align: right;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ux-mint-soft);
  color: var(--ux-mint);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.stock-pill.empty {
  background: var(--ux-surface-3);
  color: var(--ux-ink-3);
}

.price-cell {
  text-align: right;
  font-size: 14.5px;
  font-weight: 850;
  color: var(--ux-ink);
  white-space: nowrap;
}

.action-cell {
  display: flex;
  justify-content: flex-end;
}

.btn-buy {
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-buy.selected {
  background: var(--ux-accent);
  color: var(--ux-accent-ink);
}

.btn-buy.disabled {
  background: var(--ux-surface-3);
  color: var(--ux-ink-3);
}

.catalog-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ux-line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ux-ink-3);
  font-weight: 650;
}

/* #273 + #230 Right Quick Buy Panel */
.side-panel-wrap {
  padding: 12px 12px 12px 0;
  display: flex;
}

.side-panel {
  flex: 1;
  border-radius: 22px;
  background: var(--ux-surface);
  box-shadow: 0 0 0 1px var(--ux-line-2), -14px 0 36px -18px var(--ux-shadow-strong);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 850;
  color: var(--ux-ink-2);
}

.icon-btn:hover {
  color: var(--ux-ink);
  background: var(--ux-surface-3);
}

.sp-counter {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ux-ink-3);
  margin-left: 4px;
}

.sp-header h2 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.sp-sub {
  font-size: 12.5px;
  color: var(--ux-ink-2);
  font-weight: 650;
}

.sp-sub b {
  color: var(--ux-mint);
  font-weight: 800;
}

.kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kv-tile {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
}

.kv-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ux-ink-3);
  margin-bottom: 3px;
}

.kv-val {
  font-size: 12.5px;
  font-weight: 850;
  color: var(--ux-ink);
}

.qty-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: var(--ux-ink-2);
}

.qty-stepper {
  height: 44px;
  border-radius: 12px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1.5px var(--ux-line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.qty-stepper:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--ux-accent);
}

.step-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ux-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--ux-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.qty-input {
  width: 120px;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
}

.quick-qty {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.q-chip {
  height: 30px;
  border-radius: 9px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ux-ink-2);
}

.q-chip.active {
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  box-shadow: none;
}

/* #230 Promo Code Section */
.promo-section {
  padding: 11px 0;
  border-top: 1px solid var(--ux-line);
  border-bottom: 1px solid var(--ux-line);
}

.promo-trigger {
  font-size: 12px;
  font-weight: 800;
  color: var(--ux-accent);
}

.promo-form {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.promo-input {
  flex: 1;
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1.5px var(--ux-line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.promo-input.invalid {
  box-shadow: inset 0 0 0 1.5px var(--ux-danger);
  animation: uxShake 0.36s ease;
}

@keyframes uxShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.promo-apply-btn {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  font-size: 12px;
  font-weight: 850;
}

.promo-applied-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promo-pill {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--ux-mint-soft);
  color: var(--ux-mint);
  font-size: 11.5px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.promo-err {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--ux-danger);
  font-weight: 700;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ux-ink-2);
}

.s-row {
  display: flex;
  justify-content: space-between;
}

.s-row.discount span:last-child {
  color: var(--ux-mint);
  font-weight: 850;
}

.total-box {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ux-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.total-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.total-label strong {
  font-size: 13.5px;
  font-weight: 850;
}

.saved-badge {
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ux-mint);
  color: #09130E;
  font-size: 10px;
  font-weight: 900;
}

.old-price {
  font-size: 12px;
  color: var(--ux-ink-3);
  text-decoration: line-through;
  font-weight: 700;
  margin-right: 6px;
}

.final-price {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ux-ink);
}

.cta-checkout {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  font-size: 14px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s ease, transform 0.12s ease;
}

.cta-checkout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.after-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--ux-ink-3);
  font-weight: 650;
}

/* Secondary Tab Views (VietQR Topup, Order History & Output, API Docs) */
.split-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 20px;
}

.card {
  background: var(--ux-surface);
  border-radius: 26px;
  box-shadow: 0 0 0 1px var(--ux-line), 0 24px 48px -32px var(--ux-shadow-strong);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-head h2 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.card-head p {
  font-size: 12.5px;
  color: var(--ux-ink-2);
  font-weight: 600;
}

.mint-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--ux-mint-soft);
  color: var(--ux-mint);
  font-size: 11.5px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.amount-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.amt-pill {
  height: 38px;
  border-radius: 11px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  font-size: 13px;
  font-weight: 800;
  color: var(--ux-ink-2);
}

.amt-pill.active {
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  box-shadow: none;
}

.custom-amt-box {
  height: 42px;
  border-radius: 12px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1.5px var(--ux-line-2);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.custom-amt-input {
  text-align: right;
  font-weight: 900;
  font-size: 15px;
  width: 160px;
}

.qr-section {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--ux-surface-2);
  border-radius: 20px;
  padding: 16px;
  box-shadow: inset 0 0 0 1px var(--ux-line);
}

.qr-frame {
  width: 176px;
  height: 176px;
  border-radius: 16px;
  background: #FFFFFF;
  padding: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.bank-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.b-label {
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ux-ink-3);
}

.b-val-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.b-val {
  font-size: 14px;
  font-weight: 850;
  color: var(--ux-ink);
}

.b-val.memo {
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--ux-accent-soft);
  color: var(--ux-accent);
  font-family: "JetBrains Mono", "Consolas", monospace;
}

.copy-mini {
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--ux-surface-3);
  box-shadow: inset 0 0 0 1px var(--ux-line-2);
  font-size: 11px;
  font-weight: 800;
}

.webhook-box {
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--ux-mint-soft);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ux-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* QR / Manual Non-QR Deposit Switcher */
.dep-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
}

.dep-mode-btn {
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ux-ink-2);
  transition: all 0.16s var(--ux-ease);
}

.dep-mode-btn.active {
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.manual-bank-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manual-row {
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.manual-row.highlight {
  box-shadow: inset 0 0 0 1.5px var(--ux-accent);
  background: var(--ux-accent-soft);
}

.manual-val-lg {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--ux-ink);
}

.copy-btn-md {
  height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* Account Output Viewer */
.code-window {
  background: var(--ux-code-bg);
  color: #F4F0E8;
  border-radius: 16px;
  padding: 16px;
  font-family: "JetBrains Mono", "Cascadia Mono", "Consolas", monospace;
  font-size: 12.5px;
  line-height: 1.9;
  min-height: 280px;
  max-height: 430px;
  overflow: auto;
  white-space: pre;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.output-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-item {
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.order-item:hover, .order-item.active {
  box-shadow: inset 0 0 0 1.5px var(--ux-accent);
}

/* Modal System */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 18, 0.48);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 410px;
  background: var(--ux-surface);
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--ux-line-2), 0 28px 60px -20px var(--ux-shadow-strong);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ux-ink-2);
}

.input-box {
  height: 42px;
  padding: 0 13px;
  border-radius: 11px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line-2);
  font-size: 13.5px;
  font-weight: 650;
}

.input-box:focus {
  box-shadow: inset 0 0 0 1.5px var(--ux-accent);
}

.pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pwd-wrap .input-box {
  width: 100%;
  padding-right: 52px;
}

.pwd-toggle {
  position: absolute;
  right: 8px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--ux-surface-3);
  font-size: 11px;
  font-weight: 800;
  color: var(--ux-ink-2);
}

.field-hint {
  font-size: 11px;
  color: var(--ux-ink-3);
  font-weight: 600;
}

.pwd-meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 4px;
}

.pwd-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--ux-surface-3);
  transition: background 0.2s ease;
}

/* Toast Notification */
.toast-stack {
  position: fixed;
  bottom: 78px;
  right: 22px;
  z-index: 130;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ux-ink);
  color: var(--ux-surface);
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
}

/* Notification Bell Badge */
.bell-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.unread-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ux-danger);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--ux-surface);
}

/* Confirm Purchase Summary Box */
.confirm-summary {
  background: var(--ux-surface-2);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}

.cf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ux-ink-2);
  font-weight: 650;
}

.cf-row strong {
  color: var(--ux-ink);
  font-weight: 850;
}

.cf-row.total {
  padding-top: 9px;
  border-top: 1px solid var(--ux-line);
  font-size: 15px;
  color: var(--ux-ink);
  font-weight: 850;
}

/* Notification List Items */
.notif-feed {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 2px;
}

.notif-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.notif-item.unread {
  box-shadow: inset 3px 0 0 var(--ux-accent), inset 0 0 0 1px var(--ux-line-2);
}

/* Floating Live Support Chat Widget */
.support-fab {
  position: fixed;
  bottom: 20px;
  right: 22px;
  z-index: 105;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  font-size: 13px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--ux-line-2);
  transition: transform 0.15s var(--ux-ease);
}

.support-fab:hover {
  transform: translateY(-2px);
}

.support-drawer {
  position: fixed;
  bottom: 76px;
  right: 22px;
  z-index: 110;
  width: 370px;
  max-width: calc(100vw - 28px);
  height: 490px;
  max-height: calc(100vh - 110px);
  background: var(--ux-surface);
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--ux-line-2), 0 28px 60px -16px var(--ux-shadow-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sp-chat-head {
  padding: 14px 16px;
  background: var(--ux-surface-2);
  border-bottom: 1px solid var(--ux-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sp-quick-tags {
  padding: 8px 12px;
  border-bottom: 1px solid var(--ux-line);
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.sp-tag-btn {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  font-size: 11px;
  font-weight: 750;
  color: var(--ux-ink-2);
  white-space: nowrap;
}

.sp-tag-btn:hover {
  color: var(--ux-ink);
  background: var(--ux-surface-3);
}

.sp-chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-msg.from-user {
  align-self: flex-end;
  background: var(--ux-cta-bg);
  color: var(--ux-cta-ink);
  border-bottom-right-radius: 4px;
  font-weight: 650;
}

.chat-msg.from-admin {
  align-self: flex-start;
  background: var(--ux-surface-2);
  color: var(--ux-ink);
  box-shadow: inset 0 0 0 1px var(--ux-line);
  border-bottom-left-radius: 4px;
}

.chat-meta {
  font-size: 10px;
  opacity: 0.62;
  margin-top: 4px;
}

.sp-chat-foot {
  padding: 10px 12px;
  border-top: 1px solid var(--ux-line);
  display: flex;
  gap: 8px;
  background: var(--ux-surface);
}

.sp-chat-input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--ux-surface-2);
  box-shadow: inset 0 0 0 1px var(--ux-line-2);
  font-size: 13px;
}

/* Responsive Laptop, Tablet & Mobile */
@media (max-width: 1320px) {
  .col-head,
  .row {
    grid-template-columns: minmax(180px, 1fr) 94px 88px 94px;
  }
  .col-head > div:nth-child(2),
  .col-head > div:nth-child(3),
  .row > div:nth-child(2),
  .row > div:nth-child(3) {
    display: none;
  }
}

@media (max-width: 1060px) {
  .navbar {
    flex-wrap: wrap;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .side-panel-wrap {
    padding: 0 16px 16px;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .navbar, .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .col-head {
    display: none;
  }
  .row {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  .row > div:nth-child(2),
  .row > div:nth-child(3) {
    display: none;
  }
  .qr-section {
    flex-direction: column;
    align-items: stretch;
  }
  .qr-frame {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
