/* POPON bundled CSS — generated by scripts/bundle-css.js — do not edit by hand */
/* Edit modular files in assets/css/ then run: npm run build:css */

/* ===== styles-modern.css ===== */

/* Header modern + Roblox soon + auth polish */

.site-header--modern {
  height: auto;
  min-height: var(--header-h);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(8, 6, 10, 0.72);
}

.site-header--modern .header-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(244, 114, 182, 0.07), transparent);
  opacity: 0.8;
}

.site-header--modern .header-inner {
  position: relative;
  z-index: 1;
  min-height: var(--header-h);
}

.nav-pill {
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  gap: 2px;
}

.nav-pill .nav-link {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9375rem;
}

.nav-pill .nav-link::after {
  display: none;
}

.nav-pill .nav-link.is-active,
.nav-pill .nav-link:hover {
  background: rgba(244, 114, 182, 0.14);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.22);
}

.btn-header-ghost {
  border: 1px solid transparent;
}

@media (min-width: 768px) {
  .btn-header-ghost:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
  }
}

.mobile-nav--sheet {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  background: rgba(12, 9, 14, 0.98);
  backdrop-filter: blur(20px);
}

.mobile-nav-head {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-cta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.game-card--soon {
  cursor: pointer;
}

.game-card--soon:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.35);
}

.game-card--soon .game-card-meta {
  color: #fcd34d;
}

.game-card--soon .game-card-cta {
  color: var(--text-muted);
}

.game-badge--soon {
  top: auto;
  bottom: 10px;
  left: 10px;
  right: auto;
  background: rgba(15, 12, 18, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.game-badge--maint {
  top: auto;
  bottom: 10px;
  left: 10px;
  right: auto;
  background: rgba(15, 12, 18, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fbbf24;
}

.game-badge--off {
  top: auto;
  bottom: 10px;
  left: 10px;
  right: auto;
  background: rgba(15, 12, 18, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

.game-card--maint,
.game-card--off {
  opacity: 0.72;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.game-card--maint:hover,
.game-card--off:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
}

.game-card--maint .game-card-meta,
.game-card--off .game-card-meta,
.game-card--maint .game-card-cta,
.game-card--off .game-card-cta {
  color: var(--text-muted);
}

.game-soon-banner--maint strong {
  color: #fbbf24;
}

.game-soon-banner--off strong {
  color: #94a3b8;
}

.game-card-soon-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 6, 10, 0.55));
  pointer-events: none;
  z-index: 2;
}

.game-soon-banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.game-soon-banner strong {
  color: #fde68a;
  font-size: 0.9375rem;
}

.game-soon-banner span {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.checkout--disabled {
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
}

.auth-layout--modern .auth-page-bg {
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(236, 72, 153, 0.2), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 100%, rgba(219, 39, 119, 0.12), transparent 50%);
}

.auth-shell--modern {
  gap: 28px;
}

.auth-layout--modern .auth-showcase--pop {
  border: 1px solid rgba(244, 114, 182, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.auth-layout--modern .auth-card--pop {
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(244, 114, 182, 0.1);
}

.auth-layout--modern .form-input--soft:focus {
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.12);
}

.checkout-main {
  min-width: 0;
}

/* —— Compact checkout (one card, no long scroll on summary) —— */

.page--checkout {
  padding-bottom: 24px;
}

.breadcrumb--tight {
  margin-bottom: 12px;
}

.checkout-layout--fit {
  gap: 20px;
}

.panel--checkout-main,
.panel--checkout-packages {
  padding: 22px 24px;
}

/* Account fields inside pay card — compact, no nested frames */
.pay-card-account {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pay-card-section-head {
  margin-bottom: 8px;
}

.pay-card-section-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;
}

.pay-card-section-desc {
  display: none;
}

.checkout-account-stack {
  display: grid;
  gap: 8px;
}

@media (min-width: 1024px) {
  .pay-card .checkout-account-stack:has(> :nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }
}

.pay-card .checkout-field-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pay-card .checkout-field-card .form-label,
.pay-card .checkout-field-card__label {
  display: block;
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.pay-card .checkout-field-card .form-label .required,
.pay-card .checkout-field-card__label .required {
  color: #fb7185;
}

.pay-card .checkout-field-card .form-input,
.pay-card .checkout-field-card .form-select {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.84rem;
}

.pay-card .checkout-field-card .form-input:focus,
.pay-card .checkout-field-card .form-select:focus {
  border-color: rgba(244, 114, 182, 0.65);
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.18);
  outline: 0;
}

.pay-card .checkout-field-card .form-hint {
  display: none;
}

.pay-card .checkout-qty-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.pay-card .checkout-qty-card .checkout-field-card__label {
  margin: 0;
  font-size: 0.8rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.qty-stepper__btn {
  appearance: none;
  border: 0;
  margin: 0;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.qty-stepper__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.qty-stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-stepper__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 0 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.pay-card-terms {
  margin: 6px 0 8px;
}

.pay-card .pay-total-bar {
  margin: 2px 0 4px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pay-card .pay-total-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.pay-card .pay-total-value {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pay-card .checkbox-row--terms.pay-card-terms {
  gap: 8px;
  margin: 6px 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: none;
}

.pay-card .checkbox-row--terms.pay-card-terms:active {
  transform: none;
}

.pay-card .checkbox-row--terms.pay-card-terms:has(input:checked) {
  border: 0;
  background: transparent;
}

.pay-card .checkbox-row--terms.pay-card-terms input {
  width: 16px;
  height: 16px;
}

.pay-card .pay-card-terms .checkbox-terms-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.pay-card .pay-card-submit {
  min-height: 42px;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.pay-card .server-picker {
  grid-template-columns: 1fr;
}

@media (max-width: 1023px) {
  .checkout-layout .pay-card {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

.panel-title--sm {
  margin: 20px 0 12px;
  font-size: 1.0625rem;
}

.package-grid + .panel-title--sm {
  margin-top: 28px;
  padding-top: 8px;
}

.package-specials-block {
  margin-top: 6px;
}

.package-specials-block .package-specials-title {
  margin-top: 22px;
  margin-bottom: 12px;
}

.package-specials-block + .panel-title--sm {
  margin-top: 28px;
  padding-top: 8px;
}

/* Hoyoverse server picker — card grid instead of native select */
.server-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.server-picker__opt {
  display: block;
  margin: 0;
  cursor: pointer;
}

.server-picker__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.server-picker__face {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 12px 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.server-picker__code {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffc2df;
  background: rgba(255, 77, 166, 0.14);
}

.server-picker__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.server-picker__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f3eaf1;
  line-height: 1.2;
}

.server-picker__hint {
  font-size: 0.75rem;
  color: #958796;
  line-height: 1.3;
}

.server-picker__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-left: auto;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.server-picker__opt:hover .server-picker__face {
  border-color: rgba(255, 126, 192, 0.35);
  background: rgba(255, 77, 166, 0.06);
}

.server-picker__input:focus-visible + .server-picker__face {
  outline: 2px solid var(--accent, #ff4da6);
  outline-offset: 2px;
}

.server-picker__input:checked + .server-picker__face {
  border-color: rgba(255, 77, 166, 0.7);
  background: rgba(255, 77, 166, 0.1);
}

.server-picker__input:checked + .server-picker__face .server-picker__code {
  color: #fff;
  background: var(--accent, #ff4da6);
}

.server-picker__input:checked + .server-picker__face .server-picker__check {
  border-color: var(--accent, #ff4da6);
  background: var(--accent, #ff4da6);
  box-shadow: inset 0 0 0 3px #140a12;
}

.form-select--pretty {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #c9b4c8 50%),
    linear-gradient(135deg, #c9b4c8 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

@media (max-width: 420px) {
  .server-picker {
    gap: 8px;
  }

  .server-picker__face {
    min-height: 58px;
    padding: 10px 10px 10px 8px;
    border-radius: 12px;
  }

  .server-picker__code {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.6875rem;
  }

  .server-picker__name {
    font-size: 0.8125rem;
  }

  .server-picker__hint {
    font-size: 0.6875rem;
  }
}

.game-hero.game-hero--compact {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

body[data-page="game-detail"] [data-site-footer] {
  display: none;
}

.game-hero--compact .game-hero-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 0;
  overflow: hidden;
  background: #121016;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.game-hero--compact .game-hero-thumb img {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: cover;
}

.game-hero--compact .game-hero-text {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.game-hero--compact h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #faf7f9;
}

.game-hero--compact p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #9a8f9c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.package-grid--compact {
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.package-grid--compact .package-option input,
.package-grid--compact .package-card {
  min-height: 88px;
}

.package-grid--compact .package-card {
  padding: 12px 10px;
}

.package-grid--compact .package-name {
  font-size: 0.875rem;
  line-height: 1.3;
}

.package-grid--compact .package-price {
  font-size: 1.0625rem;
  font-weight: 700;
}

/* Shop-style tiles (icons + name + price) — dense, fits many packages */
.package-grid--shop,
.package-grid.package-grid--shop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.package-grid--shop .package-option input,
.package-grid--shop .package-card {
  min-height: 0;
}

.package-grid--shop .package-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px 6px 7px;
  border-radius: 12px;
  border-width: 1px;
  text-align: center;
  background: #161218;
}

.package-card-icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.package-card-icon--empty {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.package-grid--shop .package-name {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #f3eaf0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.package-grid--shop .package-price {
  margin: 0;
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.package-grid--shop .package-option input:checked + .package-card {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.16), #161218 70%);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.25);
}

@media (max-width: 767.98px) {
  .page--checkout .breadcrumb--tight {
    margin-bottom: 8px;
  }

  .page--checkout .checkout-step-head {
    margin-bottom: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }

  .page--checkout .checkout-step-title {
    font-size: 0.9rem;
  }

  .page--checkout .checkout-step-desc {
    width: 100%;
  }

  .page--checkout .game-hero--compact {
    margin: 2px 0 12px;
    padding: 0;
    gap: 12px;
    border: 0;
    background: none;
  }

  .page--checkout .game-hero--compact .game-hero-thumb,
  .page--checkout .game-hero--compact .game-hero-thumb img {
    width: 56px;
    height: 56px;
  }

  .page--checkout .game-hero--compact .game-hero-thumb {
    border-radius: 14px;
  }

  .page--checkout .game-hero--compact h1 {
    font-size: 1.0625rem;
  }

  .page--checkout .game-hero--compact p {
    display: -webkit-box;
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .page--checkout .panel-title--sm {
    margin: 8px 0 6px;
    font-size: 0.875rem;
  }

  .page--checkout .package-grid + .panel-title--sm,
  .page--checkout .package-specials-block + .panel-title--sm {
    margin-top: 26px;
    padding-top: 10px;
  }

  .page--checkout .package-specials-block .package-specials-title {
    margin-top: 18px;
    margin-bottom: 8px;
  }

  .package-grid--shop,
  .package-grid.package-grid--shop {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  .package-grid--shop .package-card {
    padding: 6px 4px 5px;
    border-radius: 10px;
    gap: 2px;
  }

  .package-grid--shop .package-card-icon,
  .package-grid--shop .package-card-icon--empty {
    width: 36px;
    height: 36px;
  }

  .package-grid--shop .package-name {
    font-size: 0.58rem;
    min-height: 2.3em;
  }

  .package-grid--shop .package-price {
    font-size: 0.7rem;
  }

  .page--checkout .checkbox-row--compact {
    margin-top: 8px;
  }
}

@media (min-width: 768px) {
  .package-grid--shop,
  .package-grid.package-grid--shop {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .package-grid--shop .package-card-icon,
  .package-grid--shop .package-card-icon--empty {
    width: 56px;
    height: 56px;
  }

  .package-grid--shop .package-name {
    font-size: 0.75rem;
  }

  .package-grid--shop .package-price {
    font-size: 0.875rem;
  }
}

.panel--checkout-main .form-group {
  margin-bottom: 14px;
}

.pay-card .checkout-account-stack .form-group {
  margin-bottom: 0;
}

.panel-title--sm:first-of-type {
  margin-top: 0;
}

.panel--checkout-main .form-group label {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.panel--checkout-main .form-input {
  min-height: var(--input-h);
  padding: 12px 14px;
  font-size: 1rem;
}

.checkbox-row--compact {
  margin-top: 16px;
  font-size: 0.9375rem;
}

/* Discount code */
.discount-box {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.discount-box-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.55);
}

.discount-box-label svg {
  width: 14px;
  height: 14px;
  color: rgba(244, 114, 182, 0.85);
  flex-shrink: 0;
}

.discount-box-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-height: 36px;
}

.discount-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #faf7f9;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0 12px;
  outline: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.discount-input::placeholder {
  color: #8b7f8e;
  font-weight: 400;
}

.discount-input:focus {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 1.5px rgba(236, 72, 153, 0.35);
}

.discount-input:read-only {
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.1);
}

.discount-apply {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #ec4899;
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.discount-apply:hover {
  filter: brightness(1.06);
}

.discount-apply:active {
  transform: scale(0.98);
}

.discount-apply:disabled {
  opacity: 0.7;
  cursor: wait;
}

.discount-msg {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

.discount-msg.is-ok {
  color: #86efac;
}

.discount-msg.is-err {
  color: #fca5a5;
}

.discount-clear {
  margin-top: 6px;
  border: 0;
  background: none;
  color: #f9a8d4;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

.pay-summary-row dd[data-summary-discount] {
  color: #86efac;
}

.checkbox-row--terms {
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.checkbox-row--terms:active {
  transform: scale(0.985);
}

.checkbox-row--terms:has(input:checked) {
  border-color: rgba(236, 72, 153, 0.55);
  background: rgba(236, 72, 153, 0.1);
}

.checkbox-row--terms input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #ec4899;
  flex-shrink: 0;
}

.checkbox-terms-text {
  font-size: 0.9375rem;
  color: #e8e0e6;
  line-height: 1.4;
}

.terms-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #f472b6;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
  transition: color 0.15s ease, filter 0.15s ease;
}

.terms-link:hover {
  color: #fda4d2;
}

.terms-link:active {
  color: #fff;
  filter: brightness(1.1);
}

/* Terms modal */
.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.terms-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.terms-modal[hidden] {
  display: none !important;
}

.terms-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(4, 2, 6, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.terms-modal-sheet {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(82dvh, 640px);
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: linear-gradient(180deg, #241828 0%, #140e18 100%);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(24px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.terms-modal.is-open .terms-modal-sheet {
  transform: none;
}

.terms-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terms-modal-head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #faf7f9;
}

.terms-modal-x {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #faf7f9;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.terms-modal-x:active {
  transform: scale(0.94);
  background: rgba(236, 72, 153, 0.16);
}

.terms-modal-body {
  overflow-y: auto;
  padding: 14px 18px 8px;
  -webkit-overflow-scrolling: touch;
}

.terms-modal-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #cfc4d1;
  font-size: 0.875rem;
  line-height: 1.55;
}

.terms-modal-list li {
  margin-bottom: 10px;
}

.terms-modal-list li::marker {
  color: #ec4899;
  font-weight: 700;
}

.terms-modal-foot {
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terms-modal-accept {
  min-height: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.28);
}

.terms-modal-accept:active {
  transform: scale(0.98);
}

body.terms-modal-open {
  overflow: hidden;
}

@media (min-width: 640px) {
  .terms-modal {
    align-items: center;
    padding: 24px;
  }

  .terms-modal-sheet {
    border-radius: 18px;
    transform: translateY(16px) scale(0.98);
  }

  .terms-modal.is-open .terms-modal-sheet {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-modal,
  .terms-modal-sheet,
  .checkbox-row--terms,
  .terms-link {
    transition: none !important;
  }
}

.order-summary.order-summary--compact {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  border-color: rgba(244, 114, 182, 0.28);
  box-shadow: var(--shadow-card), 0 0 40px rgba(236, 72, 153, 0.12);
}

.summary-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.summary-eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.summary-game-line {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.summary-game-line strong {
  color: var(--text-primary);
  font-weight: 600;
}

.summary-total-big {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-hover);
  white-space: nowrap;
}

.checkout-login-gate--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 114, 182, 0.3);
  background: rgba(244, 114, 182, 0.08);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.checkout-user--inline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.checkout-pay-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-hint-line {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pay-icon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pay-icon-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pay-icon-tab input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pay-icon-tab:has(input:checked) {
  border-color: var(--accent);
  background: rgba(244, 114, 182, 0.14);
  color: var(--text-primary);
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.25), 0 8px 24px rgba(236, 72, 153, 0.15);
}

.pay-icon-tab .payment-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.pay-split {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 14px;
  align-items: start;
}

.pay-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.pay-qr-box canvas {
  display: block;
  width: 148px !important;
  height: 148px !important;
  border-radius: 8px;
}

.pay-qr-amt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
}

.pay-proof {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.payment-panel--compact {
  display: none;
  margin: 0;
}

.payment-panel--compact.is-visible {
  display: block;
}

.pay-meta {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.file-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px dashed rgba(244, 114, 182, 0.5);
  background: rgba(244, 114, 182, 0.08);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-hover);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.file-pill:hover {
  background: rgba(244, 114, 182, 0.14);
  border-color: var(--accent);
}

.file-pill--block {
  display: flex;
  width: 100%;
}

.file-pill input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.form-input--dense {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.9375rem;
}

.btn-checkout {
  min-height: 52px;
  margin-top: 6px;
  font-size: 1.0625rem;
}

.checkout-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.checkout-back:hover {
  color: #fff;
  border-color: rgba(244, 114, 182, 0.45);
  background: rgba(236, 72, 153, 0.12);
}

.form-status--compact {
  margin: 0;
  font-size: 0.875rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1023px) {
  .pay-split {
    grid-template-columns: 1fr;
  }

  .pay-qr-box {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .auth-shell--modern {
    align-items: center;
  }
}

/* —— Checkout pay card (reference layout, POPON theme) —— */

.checkout-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-step-head--pay {
  margin-bottom: 14px;
}

.checkout-step-text {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
}

.checkout-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}

.checkout-step-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.96);
}

.checkout-step-desc {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.35;
}

.pay-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(36, 24, 40, 0.98) 0%, rgba(22, 14, 26, 0.98) 100%);
  border-color: rgba(244, 114, 182, 0.22);
}

.pay-card .checkout-step-head--pay {
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.pay-card .discount-box {
  margin: 0 0 8px;
}

.pay-card .pay-summary-list {
  margin: 0 0 4px;
}

.pay-card .pay-summary-row {
  padding: 7px 0;
}

.pay-card .pay-summary-row:first-child {
  display: none;
}

.pay-card .checkout-back {
  margin-top: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
}

.pay-card-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.1);
}

.pay-card-login p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
}

.pay-card-login .btn,
.pay-card-login [data-checkout-signin] {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.25rem;
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
}

@media (max-width: 420px) {
  .pay-card-login {
    flex-wrap: wrap;
    gap: 10px;
  }

  .pay-card-login p {
    flex: 1 1 100%;
  }

  .pay-card-login .btn,
  .pay-card-login [data-checkout-signin] {
    width: 100%;
    min-width: 0;
  }
}

.pay-card-user {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pay-account {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pay-account[hidden] {
  display: none !important;
}

.pay-account.is-low {
  border: 0;
  background: transparent;
}

.pay-account-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 0 8px;
}

.pay-account-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #db2777, #ec4899);
  box-shadow: none;
}

.pay-account-who {
  min-width: 0;
  flex: 1;
}

.pay-account-label {
  display: none;
}

.pay-account-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #faf7f9;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pay-account-method {
  display: none;
}

.pay-account-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  text-decoration: none;
  background: transparent;
  transition: color 0.15s ease;
}

.pay-account-balance:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
}

.pay-account-balance:hover .pay-account-balance-cta {
  color: #fff;
  background: #db2777;
}

.pay-account-balance:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pay-account-balance-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}

.pay-account-balance-text small {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #8b7f8e;
}

.pay-account-balance-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f9a8d4;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pay-account.is-low .pay-account-balance-text strong {
  color: #fda4af;
}

.pay-account-balance-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fce7f3;
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(244, 114, 182, 0.28);
  box-shadow: none;
}

.pay-account-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #f9a8d4;
  line-height: 1.4;
}

.pay-account-note[hidden] {
  display: none !important;
}

.pay-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.pay-card-body[hidden],
.pay-card-login[hidden],
.pay-card-user[hidden],
.pay-qr-center[hidden],
[data-pp-qr-wrap][hidden],
[data-wallet-qr-wrap][hidden],
[data-order-msg][hidden] {
  display: none !important;
}

.pay-method-panel[hidden] {
  display: none !important;
}

.payment-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.pay-method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pay-method-row {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.pay-method-row input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.pay-method-row input:disabled {
  cursor: not-allowed;
}

.pay-method-row-face {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px 1fr 22px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 12, 22, 0.85);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
}

.pay-method-row:has(input:checked) .pay-method-row-face {
  border-color: rgba(244, 114, 182, 0.55);
  background: rgba(244, 114, 182, 0.1);
  box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.2);
}

.pay-method-row:has(input:disabled) .pay-method-row-face {
  opacity: 0.55;
}

.pay-method-row:has(input:focus-visible) .pay-method-row-face {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.pay-method-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: transparent;
  padding: 0;
}

.pay-method-row-icon .payment-logo {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.pay-method-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.pay-method-row-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.pay-method-row-status {
  display: none;
  margin-top: 2px;
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
}

.pay-method-row-status[hidden] {
  display: none !important;
}

.pay-method-row-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}

.pay-method-row:has(input:checked) .pay-method-row-mark {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px rgba(18, 12, 22, 0.35);
}

.pay-method-row-badge {
  display: none;
}

.pay-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pay-method-tile {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.pay-method-tile--wide {
  grid-column: 1 / -1;
}

.pay-method-tile input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pay-method-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 108px;
  padding: 16px 12px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pay-method-tile--wide .pay-method-face {
  flex-direction: row;
  min-height: 64px;
  justify-content: center;
}

.pay-method-tile:has(input:checked) .pay-method-face {
  border-color: var(--accent);
  background: rgba(244, 114, 182, 0.12);
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.25);
}

.pay-method-tile:has(input:focus-visible) .pay-method-face {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.pay-method-tile .payment-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.pay-method-tile--wide .payment-logo {
  width: 48px;
  height: 48px;
}

.pay-method-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.pay-method-panel {
  display: none;
}

.pay-method-panel.is-visible {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-field-label {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pay-textarea {
  min-height: 88px;
  padding: 12px 14px;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  resize: vertical;
}

.pay-qr-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pay-qr-center canvas {
  display: block;
  width: 160px !important;
  height: 160px !important;
  border-radius: 8px;
}

.pay-qr-amt {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-hover);
}

/* Modal pay flow — PromptPay / Wallet */

.pay-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pay-flow-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pay-flow-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
}

.pay-flow-head-text {
  min-width: 0;
}

.pay-flow-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.pay-flow-kicker--step {
  margin-bottom: 10px;
}

.pay-flow-hint {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pay-qr-stage {
  padding: 18px 16px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(0, 0, 0, 0.45), rgba(244, 114, 182, 0.06));
  border: 1px solid rgba(244, 114, 182, 0.22);
  text-align: center;
}

.pay-qr-stage[hidden],
[data-pp-qr-wrap][hidden],
[data-wallet-qr-wrap][hidden] {
  display: none !important;
}

.pay-qr-label {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.pay-qr-frame {
  display: inline-flex;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pay-qr-frame canvas {
  display: block;
  width: 200px !important;
  height: 200px !important;
  border-radius: 6px;
}

.pay-qr-caption {
  margin: 14px 0 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
}

.pay-flow-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pay-flow-badges li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.pay-slip-block {
  padding-top: 4px;
}

.pay-slip-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(244, 114, 182, 0.45);
  background: rgba(244, 114, 182, 0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pay-slip-zone:hover {
  border-color: var(--accent);
  background: rgba(244, 114, 182, 0.12);
}

.pay-slip-zone input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.pay-slip-zone-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.pay-slip-zone-icon svg {
  width: 22px;
  height: 22px;
}

.pay-slip-zone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
}

.pay-slip-zone-text strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pay-slip-zone-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pay-modal-sheet--wallet .pay-modal-total,
.pay-modal-sheet--promptpay .pay-modal-total {
  margin-bottom: 14px;
}

.pay-upload-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(244, 114, 182, 0.5);
  background: rgba(244, 114, 182, 0.08);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-hover);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pay-upload-btn:hover {
  background: rgba(244, 114, 182, 0.14);
  border-color: var(--accent);
}

.pay-upload-btn input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.pay-upload-link {
  font-size: 0.8125rem;
  color: var(--accent);
  cursor: pointer;
  text-align: center;
}

.pay-upload-link input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.pay-summary-list {
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.pay-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pay-summary-row dt {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pay-summary-row dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pay-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 114, 182, 0.15);
}

.pay-total-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pay-total-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
}

.pay-card-submit {
  min-height: 52px;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.pay-card-status {
  margin: 0 0 10px;
  font-size: 0.875rem;
}

.panel--checkout-main .checkout-step-head {
  margin-bottom: 16px;
}

/* Payment modal */

body.pay-modal-open {
  overflow: hidden;
}

.pay-modal[hidden] {
  display: none !important;
}

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

@media (min-width: 640px) {
  .pay-modal {
    align-items: center;
    padding: 24px;
  }
}

.pay-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 6, 0.72);
  backdrop-filter: blur(6px);
}

.pay-modal-sheet {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  max-height: min(92dvh, 680px);
  overflow-y: auto;
  padding: 22px 22px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: linear-gradient(180deg, #241828 0%, #140e18 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 48px rgba(236, 72, 153, 0.12);
}

.pay-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pay-modal-title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
}

.pay-modal-sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pay-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.pay-modal-close:hover {
  border-color: rgba(244, 114, 182, 0.4);
  background: rgba(244, 114, 182, 0.1);
}

.pay-modal-total {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent-hover);
  text-align: center;
  background: rgba(244, 114, 182, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.pay-modal .pay-method-panel.is-visible {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.pay-modal .pay-qr-frame canvas {
  width: 200px !important;
  height: 200px !important;
}

.pay-modal-submit {
  min-height: 56px;
  font-size: 1.125rem;
  margin-top: 4px;
}

.pay-modal-status {
  margin: 0 0 10px;
  font-size: 0.875rem;
}

.pay-card-body {
  margin-bottom: 10px;
}

.pay-summary-list {
  margin-top: 4px;
}

/* Angpao popup — dark POPON card */

.pay-modal-sheet--angpao {
  width: min(540px, 100%);
  padding: 24px 24px 26px;
}

.pay-modal-sheet--angpao .pay-modal-total {
  display: none;
}

.pay-angpao-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 26px 32px;
  border-radius: var(--radius-xl);
  background: rgba(18, 12, 22, 0.92);
  color: var(--text-primary);
  border: 1px solid rgba(244, 114, 182, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-height: 340px;
}

.pay-angpao-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.pay-angpao-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: transparent;
}

.pay-angpao-title {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.pay-angpao-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

.pay-angpao-amt-line {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pay-angpao-amt-line strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 800;
  color: #f472b6;
  font-variant-numeric: tabular-nums;
}

.pay-angpao-input {
  width: 100%;
  min-height: 72px;
  padding: 20px 20px;
  border: 2px solid rgba(244, 114, 182, 0.45);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.pay-angpao-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.pay-angpao-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.pay-field-label--center {
  text-align: center;
}

.pay-qr-center--solo {
  margin: 0 auto;
  max-width: 240px;
}

.pay-qr-center--solo canvas {
  width: 200px !important;
  height: 200px !important;
}

/* ===== popon-redesign.css ===== */

/* POPON v3 — game shop UI (not SaaS landing) */

:root {
  --bg-base: #070508;
  --bg-elevated: #0f0c11;
  --bg-card-solid: #131018;
  --bg-card-hover: #1a1520;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-primary: #f5eef7;
  --text-secondary: #b8a8c0;
  --text-muted: #7a6b85;
  --accent: #ff4da6;
  --accent-hover: #ff7ec0;
  --accent-deep: #e91e8c;
  --accent-soft: rgba(255, 77, 166, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --header-h: 64px;
  --max-w: 1180px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --btn-h: 44px;
}

body {
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-base);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

body::before {
  opacity: 0.08;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 70% 40% at 50% -8%, rgba(255, 77, 166, 0.09), transparent 55%);
}

/* —— Header —— */

.site-header,
.site-header--modern {
  height: var(--header-h);
  min-height: var(--header-h);
  background: var(--bg-base);
  backdrop-filter: none;
  border-bottom: 1px solid var(--border-strong);
  box-shadow: none;
}

.site-header--modern .header-glow {
  display: none;
}

.header-inner {
  padding: 0 16px;
}

.nav-pill {
  padding: 0;
  gap: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

.nav-pill .nav-link {
  padding: 8px 10px;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-pill .nav-link::after {
  display: block;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  border-radius: 0;
  background: var(--accent);
  transform: scaleX(0);
}

.nav-pill .nav-link.is-active,
.nav-pill .nav-link:hover {
  background: transparent;
  color: var(--text-primary);
  box-shadow: none;
}

.nav-pill .nav-link.is-active::after,
.nav-pill .nav-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.btn-signup {
  border-radius: var(--radius-sm);
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn-header-ghost {
  min-height: 40px;
  font-size: 0.9375rem;
}

/* —— Buttons —— */

.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent-deep);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-accent-outline {
  box-shadow: none;
  border-color: var(--border-strong);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) {
    background: var(--accent);
    box-shadow: none;
  }

  .btn-accent-outline:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
}

.btn-lg {
  min-height: 48px;
}

/* —— Typography helpers —— */

.kicker {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-eyebrow,
.catalog-desc {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-hero-eyebrow {
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  color: var(--accent);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-hero-eyebrow svg {
  display: none;
}

.gradient-text {
  color: var(--text-primary);
  font-weight: 700;
}

/* —— Page hero (catalog / cards) —— */

.page-hero {
  margin-bottom: 24px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  box-shadow: none;
}

.page-hero::after {
  display: none;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero-lead {
  font-size: 1rem;
  margin-bottom: 16px;
}

.page-hero--catalog {
  display: block;
}

.page-hero-aside,
.hero-preview-stack {
  display: none !important;
}

.page-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.page-meta-line strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* —— Trust strip → compact bar —— */

.trust-strip {
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 20px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  overflow: hidden;
}

@media (min-width: 768px) {
  .trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  padding: 12px 14px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-right: 1px solid var(--border);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.trust-item strong {
  font-size: 0.8125rem;
}

.trust-item span {
  font-size: 0.75rem;
}

.trust-strip--landing {
  display: none;
}

/* —— Game cards —— */

.game-grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
}

.game-card {
  border-radius: var(--radius-md);
  background: var(--bg-card-solid);
  box-shadow: none;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.game-card:hover,
.game-card.reveal.is-visible:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.reveal {
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* —— Landing home —— */

.landing-hero--pop {
  padding: 28px 16px 36px;
}

.landing-hero-bg {
  display: none;
}

.landing-hero-content {
  gap: 28px;
}

.landing-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.landing-lead {
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.landing-tagline {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.landing-slogans {
  display: none;
}

.landing-showcase-glow {
  display: none;
}

.landing-showcase-panel {
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transform: none;
}

.landing-showcase:hover .landing-showcase-panel {
  transform: none;
}

.landing-showcase-bar {
  padding: 10px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.landing-showcase-live-dot {
  display: none;
}

.landing-showcase-live {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.landing-showcase-live::before {
  content: none;
}

.landing-showcase-tag {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  padding: 3px 8px;
}

.landing-mosaic {
  padding: 8px;
  gap: 4px;
  background: transparent;
}

.landing-showcase-metrics {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.landing-metric-value {
  font-size: 1rem;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--accent-hover);
}

.landing-metric--accent {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--accent);
}

.landing-steps {
  padding: 0 16px 28px;
}

.landing-steps-inner {
  gap: 8px;
}

.landing-step {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
}

.landing-step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  margin-bottom: 10px;
  background: var(--accent-deep);
  box-shadow: none;
}

.landing-step h3 {
  font-size: 0.9375rem;
}

.landing-step p {
  font-size: 0.8125rem;
}

.featured-section,
.catalog-section {
  padding-left: 16px;
  padding-right: 16px;
}

.section-head h2,
.catalog-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-cards--pop {
  padding: 0 16px 32px;
  gap: 10px;
}

.service-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  box-shadow: none;
}

.service-card:hover {
  border-color: var(--accent);
  transform: none;
}

.service-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.landing-cta {
  padding: 0 16px 40px;
}

.landing-cta-inner {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  box-shadow: none;
  gap: 16px;
}

.landing-cta-inner h2 {
  font-size: 1.125rem;
  margin: 0 0 6px;
}

.landing-cta-inner p {
  font-size: 0.875rem;
  margin: 0;
  color: var(--text-muted);
}

/* —— Catalog toolbar —— */

.toolbar-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: none;
}

.search-input {
  border-radius: var(--radius-sm);
}

/* —— Footer —— */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-strong);
  background: var(--bg-base);
}

.site-footer--compact {
  padding: 0;
}

.footer-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.footer-bar-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  min-width: 0;
}

.footer-brand-link .brand-lockup-img {
  height: 30px;
}

.footer-brand-link .brand-lockup {
  gap: 6px;
}

.footer-brand-link .brand-mascot {
  width: 26px;
  height: 26px;
}

.footer-brand-link .brand-logo {
  height: 26px;
}

.footer-inline-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.footer-inline-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.footer-inline-nav a:hover {
  color: var(--text-primary);
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 639px) {
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    white-space: normal;
  }
}

.site-footer--compact .footer-grid,
.site-footer--compact .footer-trust,
.site-footer--compact .footer-inner {
  display: none;
}


/* —— Auth —— */

.auth-page-bg {
  opacity: 0.15;
}

.auth-showcase--pop {
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  box-shadow: none;
}

.auth-showcase h2 {
  font-size: 1.375rem;
}

.auth-benefits li {
  font-size: 0.875rem;
}

.auth-mini-games {
  opacity: 0.85;
}

.auth-card--pop {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-card);
}

.form-input--soft {
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

/* —— Checkout —— */

.pay-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
}

.checkout-step-num {
  border-radius: 7px;
  box-shadow: none;
  background: var(--accent);
}

.pay-modal-sheet {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-card);
}

.panel--checkout-main {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card-solid);
}

.site-header.is-scrolled {
  background: var(--bg-base);
  backdrop-filter: none;
  box-shadow: none;
}

.page-meta-line--catalog {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.page--catalog .page-meta-line {
  margin-left: 20px;
  margin-right: 20px;
}

@media (min-width: 768px) {
  .page-meta-line {
    flex-direction: row;
    justify-content: flex-start;
  }
}

.cookie-bar {
  border-top: 1px solid var(--border-strong);
  background: var(--bg-elevated);
}

/* ===== home-lnw.css ===== */

/* Home + catalog — LNW-style dense game grid */

.home-main {
  flex: 1;
  padding: 20px 16px 48px;
}

.home-shell {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* —— Landing home (not full catalog) —— */

/* —— Landing: notice + stats (แทน hero) —— */

.home-top-stage {
  position: relative;
  margin-bottom: 18px;
}

.home-mascot-cling {
  position: absolute;
  top: 50%;
  right: 0;
  left: auto;
  z-index: 4;
  width: clamp(52px, 10vw, 68px);
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 8px 14px rgba(244, 114, 182, 0.28));
  transform: translateY(-50%);
  transform-origin: center center;
  animation: home-mascot-bob 3.8s ease-in-out infinite;
}

@keyframes home-mascot-bob {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(calc(-50% - 4px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-mascot-cling {
    animation: none;
  }
}

@media (max-width: 520px) {
  .home-mascot-cling {
    right: 0;
    width: 48px;
  }
}

.home-main--landing .home-notice {
  margin-bottom: 14px;
  padding-left: 16px;
  padding-right: clamp(58px, 12vw, 78px);
  border-color: rgba(244, 114, 182, 0.28);
  background:
    radial-gradient(90% 80% at 100% 50%, rgba(244, 114, 182, 0.12), transparent 55%),
    var(--bg-elevated);
}

.home-notice {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  overflow: visible;
}

.home-notice-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #ff4fa3;
  background: rgba(236, 72, 153, 0.12);
  border: 1.5px solid rgba(255, 79, 163, 0.85);
  box-shadow: none;
}

.home-notice-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* —— Soft heart / carrot on outer corners only —— */
.home-main--landing {
  --spark-heart: url("../img/brand/spark-heart.png?v=1");
  --spark-carrot: url("../img/brand/spark-carrot.png?v=1");
}

.home-main--landing .home-notice,
.home-main--landing .home-stat {
  position: relative;
  isolation: isolate;
}

.home-main--landing .home-notice::before,
.home-main--landing .home-stat::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background-repeat: no-repeat;
  opacity: 0.92;
}

.home-main--landing .home-notice::before {
  background-image: var(--spark-heart), var(--spark-carrot);
  background-size: 24px 24px, 22px 22px;
  background-position:
    4px 4px,
    8px calc(100% - 4px);
}

.home-main--landing .home-stat::before {
  background-image: var(--spark-heart);
  background-size: 16px 16px;
  background-position: calc(100% - 2px) 2px;
}

.home-main--landing .home-stat:nth-child(2)::before {
  background-image: var(--spark-carrot);
  background-size: 17px 17px;
  background-position: calc(100% - 2px) calc(100% - 2px);
}

.home-main--landing .home-stat:nth-child(3)::before {
  background-image: var(--spark-heart);
  background-size: 16px 16px;
  background-position: calc(100% - 2px) 2px;
}

.home-main--landing .home-stat:nth-child(4)::before {
  background-image: var(--spark-carrot);
  background-size: 17px 17px;
  background-position: calc(100% - 2px) calc(100% - 2px);
}

@media (max-width: 520px) {
  .home-main--landing .home-notice::before {
    background-size: 20px 20px, 18px 18px;
  }

  .home-main--landing .home-stat::before {
    background-size: 14px 14px;
  }
}

.home-notice-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff7ab8;
}

.home-notice-text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: #f3e8ef;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}

@media (min-width: 720px) {
  .home-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.home-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
  padding: 16px 16px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card-solid);
  min-width: 0;
}

.home-stat-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-stat-ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #ff4fa3;
  background: rgba(236, 72, 153, 0.12);
  border: 1.5px solid rgba(255, 79, 163, 0.85);
}

.home-stat-ico svg {
  width: 22px;
  height: 22px;
}

.home-stat-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.25;
}

.home-stat-num {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  line-height: 1;
}

.home-stat-val {
  display: inline;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.home-stat-val--text {
  font-size: 1.35rem;
}

.home-stat-unit {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.home-stats-note {
  margin: 0 0 20px;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

@media (max-width: 719px) {
  .home-stat {
    min-height: 80px;
    padding: 14px 12px;
  }

  .home-stat-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .home-stat-val {
    font-size: 1.35rem;
  }

  .home-stat-val--text {
    font-size: 1.2rem;
  }
}

.home-featured {
  margin-top: 28px;
}

.home-featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.home-featured-head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

/* —— Order feed marquee —— */

.order-feed {
  margin-bottom: 8px;
  padding: 14px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  overflow: hidden;
}

.order-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.order-feed-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent-hover);
}

.order-feed-title svg {
  width: 18px;
  height: 18px;
}

.order-feed-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.order-feed-empty {
  margin: 0;
  padding: 18px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  width: 100%;
}

.order-feed-viewport {
  position: relative;
  overflow: hidden;
}

.order-feed-viewport::before,
.order-feed-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
}

.order-feed-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-elevated), transparent);
}

.order-feed-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-elevated), transparent);
}

.order-feed-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 4px 14px 2px;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.order-feed-track.is-marquee {
  animation: orderFeedScroll 42s linear infinite;
  will-change: transform;
}

.order-feed-track.is-marquee.is-paused {
  animation-play-state: paused;
}

@keyframes orderFeedScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.order-feed-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(280px, 78vw);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  user-select: none;
  -webkit-user-select: none;
}

.order-feed-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #0c0a0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.order-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-feed-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.order-feed-body {
  min-width: 0;
  flex: 1;
}

.order-feed-game {
  margin: 0 0 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-feed-detail {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-feed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 0.625rem;
  color: var(--text-muted);
}

.order-feed-status {
  font-weight: 600;
}

.order-feed-status--ok {
  color: #4ade80;
}

.order-feed-status--run {
  color: #fbbf24;
}

.home-top {
  margin-bottom: 20px;
}

.home-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.home-top h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-top-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.home-top-actions {
  display: flex;
  gap: 8px;
}

.home-search {
  padding: 10px 12px;
}

.home-search .search-wrap {
  max-width: none;
}

/* —— Catalog search bar (premium) —— */

.page--catalog-lnw .home-search--bar.toolbar-panel {
  padding: 2px;
  margin-bottom: 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(
    120deg,
    rgba(255, 77, 166, 0.55) 0%,
    rgba(160, 70, 180, 0.35) 45%,
    rgba(255, 255, 255, 0.12) 100%
  );
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.page--catalog-lnw .home-search--bar .search-wrap {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 12, 22, 0.98) 0%, rgba(10, 6, 14, 0.98) 100%);
  backdrop-filter: blur(10px);
}

.page--catalog-lnw .home-search--bar .search-wrap svg {
  left: 18px;
  width: 19px;
  height: 19px;
  color: #8f7f99;
  transition: color 0.2s ease, transform 0.2s ease;
}

.page--catalog-lnw .home-search--bar .search-input {
  min-height: 50px;
  padding: 0 20px 0 50px;
  border: none;
  border-radius: 999px;
  font-size: 0.9375rem;
  background: transparent;
  box-shadow: none;
}

.page--catalog-lnw .home-search--bar .search-input::placeholder {
  color: #7a6b85;
}

.page--catalog-lnw .home-search--bar:focus-within {
  filter: brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(255, 120, 190, 0.35),
    0 14px 44px rgba(233, 30, 140, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.page--catalog-lnw .home-search--bar:focus-within .search-wrap svg {
  color: var(--accent-hover);
  transform: translateY(-50%) scale(1.05);
}

.page--catalog-lnw .home-search--bar .search-input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

@media (min-width: 720px) {
  .page--catalog-lnw .home-search--bar .search-input {
    min-height: 52px;
    font-size: 1rem;
  }
}

.home-catalog-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.home-catalog-tabs a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.home-catalog-tabs a:hover {
  color: var(--text-primary);
}

.home-catalog-tabs a.is-active {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.home-search-empty {
  margin: 24px 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.home-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.home-foot-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.home-foot-links a:hover {
  color: var(--accent-hover);
}

/* Dense store grid (LNW-like) — double class beats later .game-grid */

.game-grid.game-grid--store {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px 10px;
}

@media (max-width: 640px) {
  .game-grid.game-grid--store {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .game-grid--store .game-card-thumb {
    border-radius: 10px;
  }

  .game-grid--store .game-card-thumb img {
    object-fit: contain;
    padding: 8%;
    box-sizing: border-box;
  }

  .game-grid--store .game-card-title {
    font-size: 0.6875rem;
  }

  .game-grid--store .game-card-meta {
    font-size: 0.625rem;
  }

  .game-grid--store .game-badge {
    top: 4px;
    right: 4px;
    padding: 1px 4px;
    font-size: 0.5rem;
  }

  .game-grid--store .game-card:hover .game-card-thumb img {
    transform: scale(1.04);
  }
}

@media (max-width: 360px) {
  .game-grid.game-grid--store {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .game-grid.game-grid--store {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 20px 12px;
  }
}

@media (min-width: 1024px) {
  .game-grid.game-grid--store {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.game-grid--store .game-card {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.game-grid--store .game-card.reveal.is-visible:hover,
.game-grid--store .game-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.game-grid--store .game-card-thumb {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0a0e;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.game-grid--store .game-card-thumb::after {
  display: none;
}

.game-grid--store .game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.2s ease;
}

.game-grid--store .game-card:hover .game-card-thumb {
  border-color: rgba(255, 77, 166, 0.55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.game-grid--store .game-card:hover .game-card-thumb img {
  transform: scale(1.03);
}

.game-grid--store .game-badge {
  top: 6px;
  left: auto;
  right: 6px;
  padding: 2px 5px;
  font-size: 0.5625rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  backdrop-filter: none;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  color: #e9d5ff;
}

.game-grid--store .game-badge--uid {
  background: rgba(88, 28, 135, 0.85);
  color: #f3e8ff;
}

.game-grid--store .game-card-body {
  padding: 8px 0 0;
  gap: 3px;
  text-align: center;
}

.game-grid--store .game-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  -webkit-line-clamp: 2;
}

.game-grid--store .game-card-meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-grid--store .game-card-cta {
  display: none;
}

.game-grid--store .game-card--soon .game-card-thumb {
  opacity: 1;
}

.game-grid--store .game-card--soon .game-card-soon-overlay {
  display: none;
}

.game-grid--store .game-card--soon .game-badge--soon {
  top: 6px;
  right: 6px;
  left: auto;
  bottom: auto;
  padding: 3px 7px;
  font-size: 0.5625rem;
  background: rgba(120, 53, 15, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fde68a;
}

.game-grid--store .game-card--soon .game-card-meta {
  color: var(--text-muted);
}

/* Skeleton loading — soft / subtle */
.game-skel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  opacity: 0.55;
}

.game-skel-thumb {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.045);
}

.game-skel-body {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 2px 4px 0;
}

.game-skel-line {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.game-skel-line--title {
  width: 72%;
  height: 10px;
}

.game-skel-line--meta {
  width: 44%;
  height: 8px;
  opacity: 0.8;
}

.game-skel:nth-child(3n) .game-skel-line--title {
  width: 60%;
}

.game-skel:nth-child(4n) .game-skel-line--meta {
  width: 36%;
}

@media (max-width: 640px) {
  .game-skel-thumb {
    border-radius: 10px;
  }
}

.page--catalog-lnw .page-hero,
.page--catalog-lnw .page-meta-line,
.page--catalog-lnw .trust-strip {
  display: none;
}

.page--catalog-lnw .catalog-section {
  padding-top: 0;
}

.page--catalog-lnw .catalog-head h2 {
  font-size: 1.125rem;
}

.page--catalog-lnw .breadcrumb {
  margin-bottom: 12px;
  font-size: 0.8125rem;
}

.home-top-row .catalog-count,
.home-foot-links .catalog-count {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  align-self: center;
  white-space: nowrap;
}

/* —— Info pages (เติมเงิน / ติดต่อ) —— */

.info-page-head {
  margin-bottom: 18px;
}

.info-page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.info-page-lead {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.info-panel {
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card-solid);
}

.info-steps {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.info-steps li + li {
  margin-top: 8px;
}

.info-steps strong {
  color: var(--text-primary);
}

.info-note {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.info-note a {
  color: var(--accent-hover);
  font-weight: 600;
}

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

.info-panel--contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.info-contact-card:hover {
  border-color: rgba(244, 114, 182, 0.45);
  background: rgba(244, 114, 182, 0.06);
}

.info-contact-card strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.info-contact-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.info-contact-ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.info-contact-ico svg {
  width: 22px;
  height: 22px;
}

.info-panel--contact .info-note {
  margin: 4px 0 0;
}

/* ===== pay-modal-v2.css ===== */

/* Payment modal v2 — compact, mobile-first */

.pay-modal-sheet.pay-modal-sheet--v2 {
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  max-height: min(92dvh, 720px);
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-card);
}

@media (max-width: 639px) {
  .pay-modal {
    padding: 0;
    align-items: flex-end;
  }

  .pay-modal-sheet.pay-modal-sheet--v2 {
    width: 100%;
    max-height: 94dvh;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
  }
}

.pay-modal-sheet--v2 .pay-modal-head {
  margin: 0;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.pay-modal-sheet--v2 .pay-modal-title {
  font-size: 1.0625rem;
}

.pay-modal-sheet--v2 .pay-modal-sub {
  font-size: 0.8125rem;
}

.pay-modal-sheet--v2 .pay-modal-close {
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
}

.pay-modal-amount-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 77, 166, 0.08);
  border-bottom: 1px solid rgba(255, 77, 166, 0.15);
}

.pay-modal-amount-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pay-modal-amount-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.pay-modal-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px 8px;
  -webkit-overflow-scrolling: touch;
}

.pay-modal-sheet--v2 .pay-modal-foot {
  flex-shrink: 0;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.pay-modal-sheet--v2 .pay-modal-status {
  margin: 0 0 8px;
}

.pay-modal-sheet--v2 .pay-modal-submit {
  margin: 0;
  min-height: 48px;
  font-size: 1rem;
}

.pay-modal-sheet--v2 .pay-modal-total {
  display: none;
}

.pay-modal-sheet--angpao.pay-modal-sheet--v2 .pay-modal-amount-bar {
  display: none;
}

.pay-modal-sheet--v2 .pay-method-panel.is-visible {
  margin-bottom: 0;
}

.pay-modal-sheet--v2 .pay-flow {
  gap: 12px;
}

.pay-modal-sheet--v2 .pay-flow-head {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.pay-modal-sheet--v2 .pay-flow-logo {
  width: 40px;
  height: 40px;
}

.pay-modal-sheet--v2 .pay-flow-hint {
  font-size: 0.8125rem;
  line-height: 1.45;
}

.pay-modal-sheet--v2 .pay-qr-stage {
  padding: 14px 12px;
  border-color: var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.pay-modal-sheet--v2 .pay-qr-label {
  margin-bottom: 10px;
  font-size: 0.75rem;
}

.pay-modal-sheet--v2 .pay-qr-frame {
  padding: 8px;
  border-radius: 12px;
}

.pay-modal-sheet--v2 .pay-qr-frame canvas {
  width: min(168px, 46vw) !important;
  height: min(168px, 46vw) !important;
}

.pay-modal-sheet--v2 .pay-qr-caption {
  display: none;
}

.pay-modal-sheet--v2 .pay-slip-zone {
  padding: 12px 14px;
}

.pay-modal-sheet--v2 .pay-slip-zone-icon {
  width: 40px;
  height: 40px;
}

.pay-modal-sheet--v2 .pay-angpao-card {
  padding: 16px;
  min-height: 0;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.pay-modal-sheet--v2 .pay-angpao-title {
  font-size: 1.125rem;
}

.pay-modal-sheet--v2 .pay-angpao-input {
  min-height: 56px;
  padding: 14px 16px;
  font-size: 0.9375rem;
}

.pay-modal-sheet--v2 .pay-flow-badges {
  margin-top: 10px;
}

.pay-modal-sheet--v2 .pay-flow-badges li {
  font-size: 0.6875rem;
  padding: 4px 10px;
}

/* ===== auth-c.css ===== */

/* POPON — Auth layout C (login / register)
   Mobile: frameless, edge-to-edge. Desktop: card panel. */

.auth-c-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
  background: #050306;
  overflow-x: hidden;
  color: var(--text-primary);
}

.auth-c-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 55% at 50% -8%, rgba(255, 77, 166, 0.18), transparent 58%),
    linear-gradient(180deg, #0c0712 0%, #050306 42%, #070508 100%);
}

.auth-c-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.45;
}

.auth-c-orb--1 {
  top: 8%;
  right: -18%;
  width: min(260px, 70vw);
  height: min(260px, 70vw);
  background: rgba(233, 30, 140, 0.38);
}

.auth-c-orb--2 {
  bottom: 12%;
  left: -22%;
  width: min(220px, 60vw);
  height: min(220px, 60vw);
  background: rgba(120, 60, 180, 0.26);
}

.auth-c-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 3, 6, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-c-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #d4c4dc;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.auth-c-back:hover {
  color: #ff9fd4;
  border-color: rgba(255, 77, 166, 0.35);
  background: rgba(255, 77, 166, 0.08);
}

.auth-c-logo {
  justify-self: center;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

.auth-c-logo .brand-lockup-img {
  height: 32px;
}

.auth-c-logo .brand-lockup {
  gap: 6px;
}

.auth-c-logo .brand-mascot {
  width: 28px;
  height: 28px;
}

.auth-c-logo .brand-logo {
  display: block;
  height: 26px;
  width: auto;
}

.auth-c-top-spacer {
  width: 40px;
}

.auth-c-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 18px 0;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}

.auth-c-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  flex-shrink: 0;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-c-seg span,
.auth-c-seg a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: #8f7f99;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-c-seg .is-on {
  color: #fff;
  background: linear-gradient(145deg, #ff4da6 0%, #c2187a 100%);
  box-shadow:
    0 4px 14px rgba(233, 30, 140, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-c-seg a:hover {
  color: #e8d8ef;
}

/* Mobile: no card frame — form sits on page background */
.auth-c-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-c-panel > form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.auth-c-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-c-panel-head h1 {
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.auth-c-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #9a8aa8;
}

.auth-c-games-mini {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.auth-c-games-mini img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.auth-c-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.auth-c-field {
  margin-bottom: 0;
}

.auth-c-field .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c4b4cc;
}

.auth-c-opt {
  font-weight: 400;
  color: #7a6b85;
}

.auth-c-inp-wrap {
  position: relative;
  margin-bottom: 12px;
}

.auth-c-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6f5f7a;
  pointer-events: none;
}

.auth-c-inp-wrap .form-input {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-c-inp-wrap:has(.auth-c-ico) .form-input {
  padding-left: 40px;
}

.auth-c-inp-wrap .password-wrap .form-input {
  padding-right: 48px;
}

.auth-c-inp-wrap:has(.auth-c-ico) .password-wrap .form-input {
  padding-left: 40px;
}

.auth-c-inp-wrap .form-input:focus {
  outline: none;
  border-color: rgba(255, 77, 166, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 77, 166, 0.15);
  background: rgba(0, 0, 0, 0.45);
}

.auth-c-forgot {
  display: block;
  margin: -2px 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ff7ec0;
  text-align: right;
  text-decoration: none;
}

.auth-c-forgot:hover {
  color: #ff9fd4;
}

.auth-c-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 2px 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  color: #b8a8c0;
  line-height: 1.4;
  cursor: pointer;
}

.auth-c-check a {
  color: #ff7ec0;
}

.auth-c-check input {
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-c-panel .form-status {
  margin: 0 0 12px;
  font-size: 0.875rem;
}

.auth-c-panel .form-status.is-error {
  color: var(--danger);
}

.auth-c-panel .form-status.is-success {
  color: var(--success);
}

.auth-c-btn.btn-primary {
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, #ff5eb3 0%, #e91e8c 48%, #b8126f 100%);
  box-shadow:
    0 10px 28px rgba(233, 30, 140, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

.auth-c-btn.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  background: linear-gradient(145deg, #ff5eb3 0%, #e91e8c 48%, #b8126f 100%);
  box-shadow:
    0 12px 32px rgba(233, 30, 140, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.auth-c-btn.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.auth-c-btn.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-c-inp-wrap .password-toggle {
  color: #8b7a94;
}

@media (max-width: 719px) {
  .auth-c-panel > form .auth-c-btn.btn-primary {
    margin-top: 8px;
    position: sticky;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (min-width: 720px) {
  .auth-c-orb {
    opacity: 0.55;
  }

  .auth-c-body {
    flex: 1;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 8px 24px max(32px, env(safe-area-inset-bottom));
  }

  .auth-c-top {
    padding: 14px 24px;
    padding-top: 14px;
  }

  .auth-c-logo .brand-lockup-img {
    height: 36px;
  }

  .auth-c-logo .brand-mascot {
    width: 32px;
    height: 32px;
  }

  .auth-c-logo .brand-logo {
    height: 30px;
  }

  .auth-c-seg {
    margin-bottom: 18px;
    padding: 5px;
    border-radius: 16px;
  }

  .auth-c-seg span,
  .auth-c-seg a {
    min-height: 48px;
    font-size: 0.9375rem;
    border-radius: 12px;
  }

  .auth-c-panel {
    flex: 0 0 auto;
    padding: 28px 26px 28px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(22, 16, 28, 0.92) 0%, rgba(12, 8, 16, 0.88) 100%);
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
  }

  .auth-c-panel > form {
    flex: 0 0 auto;
  }

  .auth-c-panel-head {
    margin-bottom: 20px;
    gap: 16px;
  }

  .auth-c-panel-head h1 {
    font-size: 1.75rem;
  }

  .auth-c-hint {
    font-size: 0.875rem;
  }

  .auth-c-games-mini {
    gap: 8px;
  }

  .auth-c-games-mini img {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .auth-c-field .form-label,
  .auth-c-grid2 .form-label {
    margin-bottom: 8px;
    font-size: 0.8125rem;
  }

  .auth-c-inp-wrap {
    margin-bottom: 14px;
  }

  .auth-c-ico {
    left: 14px;
    font-size: 0.75rem;
  }

  .auth-c-inp-wrap .form-input {
    min-height: 50px;
    padding-left: 14px;
    font-size: 1rem;
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.35);
  }

  .auth-c-inp-wrap:has(.auth-c-ico) .form-input,
  .auth-c-inp-wrap:has(.auth-c-ico) .password-wrap .form-input {
    padding-left: 42px;
  }

  .auth-c-grid2 {
    gap: 12px 16px;
  }

  .auth-c-check {
    margin: 4px 0 16px;
    padding: 10px 14px;
    font-size: 0.75rem;
  }

  .auth-c-forgot {
    margin: 0 0 16px;
    font-size: 0.8125rem;
  }

  .auth-c-btn.btn-primary {
    min-height: 52px;
    margin-top: 0;
    font-size: 1.0625rem;
    border-radius: 13px;
  }
}

@media (max-width: 340px) {
  .auth-c-grid2 {
    grid-template-columns: 1fr;
  }
}

/* ===== wallet-topup.css ===== */

/* Wallet top-up — same pink accent as site */

.wallet-theme {
  --wallet-accent: var(--accent);
  --wallet-accent-deep: var(--accent-deep);
  --wallet-accent-soft: var(--accent-soft);
  --wallet-accent-dim: rgba(244, 114, 182, 0.35);
  --wallet-surface: var(--bg-base);
  --wallet-card: var(--bg-card-solid);
  --wallet-card-border: rgba(244, 114, 182, 0.22);
}

.wallet-theme #main.wallet-page {
  background: var(--wallet-surface);
}

.wallet-theme .wallet-breadcrumb {
  justify-content: center;
}

.wallet-theme .wallet-breadcrumb a:hover,
.wallet-theme .breadcrumb a:hover {
  color: var(--accent-hover);
}

.wallet-page {
  padding-bottom: 48px;
}

.wallet-page-head {
  margin-bottom: 24px;
  text-align: center;
}

.wallet-page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.wallet-page-head h1 {
  background: linear-gradient(135deg, #fdf2f8 0%, var(--accent-hover) 55%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wallet-page-lead {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.wallet-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .wallet-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.wallet-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  border: 1px solid var(--wallet-card-border);
  border-radius: 14px;
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--wallet-card) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.wallet-card:hover {
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow: 0 12px 36px var(--accent-glow);
  transform: translateY(-2px);
}

.wallet-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 0;
}

.wallet-card-tag {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.wallet-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--trust);
  border: 1px solid var(--trust-soft);
  background: var(--trust-soft);
}

.wallet-card-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 12px;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid var(--wallet-accent-dim);
}

.wallet-card-ico svg {
  width: 36px;
  height: 36px;
}

.wallet-card-body {
  flex: 1;
  padding: 0 16px 12px;
  text-align: center;
}

.wallet-card-body h2 {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.wallet-card-min {
  margin: 0 0 14px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.wallet-card-action {
  display: block;
  width: calc(100% - 32px);
  margin: 0 auto 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-hover);
  border: 1px solid rgba(244, 114, 182, 0.45);
  background: transparent;
  pointer-events: none;
}

.wallet-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* —— Wallet login gate (clean, no chrome) —— */

.wallet-theme:has([data-wallet-gate]:not([hidden])) #main.wallet-page,
.wallet-theme:has([data-history-gate]:not([hidden])) #main.wallet-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - 72px);
  padding: 24px 16px 40px;
  background: var(--wallet-surface, #0a070c);
}

.wallet-theme:has([data-wallet-gate]:not([hidden])) .home-shell,
.wallet-theme:has([data-history-gate]:not([hidden])) .home-shell {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.wallet-login {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wallet-login__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.wallet-login__title {
  margin: 0 0 14px;
  max-width: 12em;
  font-family: "IBM Plex Sans Thai", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.5rem, 5.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #f7f0f5;
}

.wallet-login__desc {
  margin: 0 0 32px;
  max-width: 20em;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  color: #9a8d9f;
}

.wallet-login__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

.wallet-login__actions:has(> :only-child) {
  max-width: 260px;
  margin: 0 auto;
}

.wallet-login__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.wallet-login__btn--primary {
  color: #fff;
  background: var(--accent, #ff4da6);
}

.wallet-login__btn--primary:hover {
  color: #fff;
  background: var(--accent-hover, #ff7ec0);
}

.wallet-login__btn--ghost {
  color: #d7c8d8;
  background: transparent;
}

.wallet-login__btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.wallet-login__btn--soft {
  color: #ffe6f3;
  background: rgba(255, 255, 255, 0.08);
}

.wallet-login__btn--soft:hover {
  color: #fff;
  background: rgba(255, 77, 166, 0.16);
}

/* Keep shared wallet buttons for modal / history fallbacks */
.wallet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: filter 0.15s ease, background 0.15s ease;
}

.wallet-btn--gold {
  color: #fff;
  background: var(--accent, #ff4da6);
}

.wallet-btn--gold:hover {
  color: #fff;
  background: var(--accent-hover, #ff7ec0);
}

.wallet-btn--outline {
  color: #ffe4f2;
  background: rgba(255, 255, 255, 0.06);
}

.wallet-btn--outline:hover {
  background: rgba(255, 77, 166, 0.16);
  color: #fff;
}

.wallet-btn--ghost {
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

.wallet-btn--ghost:hover {
  background: var(--bg-card-hover);
}

.wallet-main[hidden],
.wallet-gate[hidden],
.wallet-auth-prompt[hidden],
.wallet-login[hidden] {
  display: none !important;
}

/* —— Pay sheet (bottom sheet on phone, centered card on desktop) —— */

body.wallet-modal-open {
  overflow: hidden;
  touch-action: none;
}

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(4, 2, 8, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.wallet-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wallet-modal[hidden] {
  display: none !important;
}

@media (min-width: 560px) {
  .wallet-modal {
    align-items: center;
    padding: 24px;
  }
}

.wallet-modal-sheet {
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  max-height: min(92dvh, 680px);
  overflow: hidden;
  padding: 0;
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(236, 72, 153, 0.16), transparent 55%),
    linear-gradient(180deg, #1b151f 0%, #110e15 48%, #0d0b11 100%);
  box-shadow:
    0 -18px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translate3d(0, 110%, 0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.wallet-modal.is-open .wallet-modal-sheet {
  transform: translate3d(0, 0, 0);
}

@media (min-width: 560px) {
  .wallet-modal-sheet {
    border-radius: 20px;
    max-height: min(90dvh, 760px);
    transform: translate3d(0, 18px, 0) scale(0.98);
    opacity: 0.96;
    transition:
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.28s ease;
  }

  .wallet-modal.is-open .wallet-modal-sheet {
    transform: none;
    opacity: 1;
  }
}

.wallet-modal-sheet::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 42px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

@media (min-width: 560px) {
  .wallet-modal-sheet::before {
    display: none;
  }
}

.wallet-modal-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 14px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-modal-head-text {
  min-width: 0;
}

.wallet-modal-ico {
  display: none !important;
}

.wallet-modal-x {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #b7aab8;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.wallet-modal-x:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.wallet-modal-head h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff7fb;
}

.wallet-modal-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: #a698a8;
  line-height: 1.45;
}

.wallet-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 16px;
}

.wallet-modal-panel[hidden] {
  display: none !important;
}

.wallet-amt-row {
  margin-bottom: 14px;
}

.wallet-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: #b3a5b4;
  letter-spacing: 0.01em;
}

.wallet-amount {
  position: relative;
}

.wallet-amount-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  font-weight: 800;
  color: #f472b6;
  pointer-events: none;
}

.wallet-input {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 1rem;
  color: #fff8fb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    #0c0a0f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wallet-input--amount {
  padding-left: 40px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wallet-input:focus {
  outline: none;
  border-color: rgba(236, 72, 153, 0.7);
  background:
    linear-gradient(180deg, rgba(236, 72, 153, 0.08), rgba(255, 255, 255, 0.02)),
    #0b090e;
  box-shadow:
    0 0 0 3px rgba(236, 72, 153, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wallet-input::placeholder {
  color: #6f6473;
  font-weight: 500;
}

.wallet-hint {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #8f8292;
}

.wallet-hint--warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.08);
  color: #fbbf24;
  font-size: 0.78rem;
  line-height: 1.45;
}

.wallet-hint--warn.is-active {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}

.wallet-pay-block {
  margin-bottom: 12px;
}

.wallet-pay-block[hidden] {
  display: none !important;
}

.wallet-qr-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
  border-radius: 14px;
  background: #fff;
}

.wallet-qr-panel img {
  width: 168px;
  height: 168px;
  display: block;
  object-fit: contain;
  background: #fff;
}

.wallet-qr-meta {
  width: 100%;
  text-align: center;
}

.wallet-qr-name {
  margin: 0 0 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-qr-name[hidden] {
  display: none !important;
}

.wallet-qr-amt {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111827;
}

.wallet-qr-wait {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
}

.wallet-slip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0a0e;
  cursor: pointer;
  text-align: left;
}

.wallet-slip[hidden] {
  display: none !important;
}

.wallet-slip.is-dragover,
.wallet-slip:hover {
  border-color: rgba(236, 72, 153, 0.55);
}

.wallet-slip.has-file {
  border-color: rgba(236, 72, 153, 0.65);
}

.wallet-slip-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.12);
}

.wallet-slip-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.wallet-slip-text strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: #faf7f9;
}

.wallet-slip-text small {
  font-size: 0.75rem;
  color: #8b7f8e;
}

.wallet-slip-preview {
  margin-left: auto;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wallet-slip-preview[hidden] {
  display: none !important;
}

.wallet-slip.has-file .wallet-slip-ico {
  display: none;
}

.wallet-modal-sheet.is-pp-ready .wallet-amt-row {
  margin-bottom: 12px;
}

.wallet-modal-sheet.is-pp-ready .wallet-input--amount {
  min-height: 46px;
  font-size: 1.2rem;
}

.wallet-modal-msg {
  margin: 10px 0 0;
  min-height: 1.2em;
  padding-bottom: 2px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #f9a8d4;
}

.wallet-modal-msg.is-error {
  color: #f87171;
}

.wallet-modal-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  flex-shrink: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.18));
}

.wallet-modal-actions .wallet-btn {
  width: 100%;
  border-radius: 999px;
  min-height: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: none;
}

.wallet-modal-actions .wallet-btn--gold {
  color: #fff;
  background: linear-gradient(180deg, #ff5aaa 0%, #ec4899 100%);
  border: 0;
  box-shadow:
    0 10px 24px rgba(236, 72, 153, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.wallet-modal-actions .wallet-btn--gold:hover {
  filter: brightness(1.06);
}

.wallet-modal-actions .wallet-btn--ghost {
  min-width: 88px;
  width: auto;
  padding: 0 14px;
  background: transparent;
  border: 0;
  color: #d5cad7;
  font-weight: 600;
  box-shadow: none;
}

.wallet-modal-actions .wallet-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* —— Mobile bottom sheet —— */
@media (max-width: 559px) {
  .wallet-modal {
    align-items: flex-end;
    padding: 0;
    background: rgba(2, 1, 4, 0.62);
  }

  .wallet-modal-sheet {
    width: 100%;
    max-width: none;
    max-height: min(92dvh, 100%);
    border-radius: 26px 26px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow:
      0 -20px 50px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }

  .wallet-modal-sheet::before {
    width: 44px;
    height: 5px;
    margin: 11px auto 2px;
    background: rgba(255, 255, 255, 0.28);
  }

  .wallet-modal-head {
    align-items: center;
    padding: 10px 18px 14px;
    border-bottom-color: rgba(255, 255, 255, 0.05);
  }

  .wallet-modal-head h3 {
    font-size: 1.125rem;
  }

  .wallet-modal-sub {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .wallet-modal-x {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
  }

  .wallet-modal-body {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 8px 18px 12px;
  }

  .wallet-amt-row {
    margin-bottom: 14px;
  }

  .wallet-label {
    margin-bottom: 8px;
    font-size: 0.78rem;
  }

  .wallet-input {
    min-height: 54px;
    border-radius: 16px;
    font-size: 16px; /* กัน iOS zoom */
  }

  .wallet-input--amount {
    min-height: 58px;
    font-size: 1.35rem;
  }

  .wallet-amount-prefix {
    left: 16px;
    font-size: 1.1rem;
  }

  /* มี QR แล้ว: ย่อช่องยอด ไม่แย่งพื้นที่กับ QR */
  .wallet-modal-sheet.is-pp-ready .wallet-amt-row .wallet-label,
  .wallet-modal-panel:has([data-tm-qr]:not([hidden])) .wallet-amt-row .wallet-label {
    display: none;
  }

  .wallet-modal-sheet.is-pp-ready .wallet-amt-row,
  .wallet-modal-panel:has([data-tm-qr]:not([hidden])) .wallet-amt-row {
    margin-bottom: 10px;
  }

  .wallet-modal-sheet.is-pp-ready .wallet-input--amount,
  .wallet-modal-panel:has([data-tm-qr]:not([hidden])) .wallet-input--amount {
    min-height: 46px;
    font-size: 1.15rem;
    border-radius: 14px;
  }

  .wallet-pay-block {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
  }

  .wallet-qr-panel {
    width: fit-content;
    max-width: 100%;
    gap: 10px;
    margin: 0 auto;
    padding: 14px 14px 12px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }

  .wallet-qr-panel img {
    width: min(180px, 52vw);
    height: min(180px, 52vw);
  }

  .wallet-qr-meta {
    padding-top: 2px;
  }

  .wallet-qr-amt {
    font-size: 1.1875rem;
    letter-spacing: -0.02em;
  }

  .wallet-qr-wait {
    font-size: 0.75rem;
  }

  .wallet-slip {
    gap: 12px;
    min-height: 58px;
    margin: 0 0 2px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
  }

  .wallet-slip-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .wallet-slip-text strong {
    font-size: 0.875rem;
  }

  .wallet-slip-preview {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .wallet-modal-msg {
    margin-top: 8px;
    font-size: 0.78rem;
  }

  .wallet-modal-actions {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.22));
  }

  .wallet-modal-actions .wallet-btn {
    min-height: 52px;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 700;
  }

  .wallet-modal-actions .wallet-btn--ghost {
    min-width: 78px;
  }

  .wallet-hint {
    font-size: 0.78rem;
  }
}

/* จอเตี้ย / landscape มือถือ — บีบ QR ให้พอดี */
@media (max-width: 559px) and (max-height: 720px) {
  .wallet-modal-sheet {
    max-height: 96dvh;
  }

  .wallet-modal-head {
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .wallet-modal-sub {
    display: none;
  }

  .wallet-qr-panel {
    padding: 12px 10px 10px;
  }

  .wallet-qr-panel img {
    width: 128px;
    height: 128px;
  }

  .wallet-modal-sheet.is-pp-ready .wallet-amt-row {
    margin-bottom: 8px;
  }
}

@media (max-width: 380px) {
  .wallet-modal-actions {
    grid-template-columns: 1fr 1.35fr;
    gap: 8px;
  }

  .wallet-slip-text small {
    display: none;
  }
}

.wallet-alert {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 2, 8, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.wallet-alert.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.wallet-alert[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.wallet-alert-open,
html.wallet-alert-open {
  overflow: hidden !important;
  touch-action: none;
}

.wallet-alert-card {
  position: relative;
  width: min(100%, 380px);
  max-height: min(86vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 28px 22px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #1a151f 0%, #120f16 52%, #0e0c12 100%);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  transform: translate3d(0, 12px, 0) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.wallet-alert.is-open .wallet-alert-card {
  transform: none;
}

.wallet-alert-card::before {
  content: "";
  display: none;
}

@media (max-width: 759px) {
  .wallet-alert {
    display: block;
    padding: 0;
    background: rgba(4, 2, 8, 0.78);
  }

  .wallet-alert-card {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    max-height: min(88dvh, 88vh);
    margin: 0;
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    /* ไม่ใช้ % translate — iOS มักเลื่อนชีทหลุดจอหลัง fetch */
    transform: translate3d(0, 24px, 0);
    box-shadow:
      0 -20px 50px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .wallet-alert.is-open .wallet-alert-card {
    transform: translate3d(0, 0, 0);
  }

  .wallet-alert-card::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
  }
}

.wallet-alert-card.is-ok {
  border-color: rgba(74, 222, 128, 0.28);
  background: linear-gradient(180deg, #151a17 0%, #111614 55%, #0d100f 100%);
}

.wallet-alert-card.is-err {
  border-color: rgba(251, 113, 133, 0.28);
  background: linear-gradient(180deg, #1a1417 0%, #141013 55%, #100d10 100%);
}

.wallet-alert-card.is-warn {
  border-color: rgba(251, 191, 36, 0.32);
  background: linear-gradient(180deg, #1a1712 0%, #14120e 55%, #100e0c 100%);
}

.wallet-alert-ico {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  line-height: 1;
}

.wallet-alert-card.is-ok .wallet-alert-ico {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.28);
}

.wallet-alert-card.is-err .wallet-alert-ico {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.1);
  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.28);
}

.wallet-alert-card.is-warn .wallet-alert-ico {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.3);
}

.wallet-alert-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff7fb;
}

.wallet-alert-card.is-ok .wallet-alert-title {
  color: #bbf7d0;
}

.wallet-alert-card.is-err .wallet-alert-title {
  color: #fecdd3;
}

.wallet-alert-card.is-warn .wallet-alert-title {
  color: #fde68a;
}

.wallet-alert-lead {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #b7a8b8;
}

.wallet-alert-lead[hidden] {
  display: none !important;
}

.wallet-alert-meta {
  width: 100%;
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.wallet-alert-meta[hidden] {
  display: none !important;
}

.wallet-alert-meta p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 0.8125rem;
  color: #9a8a9c;
}

.wallet-alert-meta strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  word-break: break-word;
}

.wallet-alert-meta strong[data-kind="ok"] {
  color: #4ade80;
}

.wallet-alert-meta strong[data-kind="err"] {
  color: #fb7185;
}

.wallet-alert-text {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #a898aa;
  white-space: pre-wrap;
}

.wallet-alert-text[hidden] {
  display: none !important;
}

.wallet-alert-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #ff5aaa 0%, #ec4899 100%);
  box-shadow:
    0 10px 24px rgba(236, 72, 153, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.wallet-alert-ok:hover {
  filter: brightness(1.05);
}

.wallet-alert-ok:active {
  transform: translateY(1px);
}

.wallet-alert-card.is-ok .wallet-alert-ok {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  box-shadow:
    0 10px 24px rgba(34, 197, 94, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.wallet-alert-card.is-err .wallet-alert-ok {
  color: #fff;
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
  box-shadow:
    0 10px 24px rgba(225, 29, 72, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.wallet-alert-card.is-warn .wallet-alert-ok {
  color: #1c1408;
  background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%);
  box-shadow:
    0 10px 24px rgba(245, 158, 11, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.wallet-pay-methods {
  max-width: 560px;
  margin: 0 auto;
}

button.wallet-channel {
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

button.wallet-channel .pay-method-row-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

button.wallet-channel .pay-method-row-desc {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-muted);
}

button.wallet-channel .pay-method-row-status {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
}

/* ปิดช่องทางจากแอดมิน — โชว์เป็นแถวเทา กดไม่ได้ */
button.wallet-channel[hidden],
.pay-method-row.wallet-channel[hidden] {
  display: none !important;
}

button.wallet-channel.is-channel-off {
  display: block !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
}

button.wallet-channel.is-channel-off .pay-method-row-face {
  background: rgba(148, 148, 156, 0.14);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

button.wallet-channel.is-channel-off .pay-method-row-icon {
  filter: grayscale(0.7);
  opacity: 0.72;
}

button.wallet-channel.is-channel-off .pay-method-row-title {
  color: rgba(210, 205, 214, 0.78);
  font-weight: 600;
}

button.wallet-channel.is-channel-off .pay-method-row-desc[hidden] {
  display: none !important;
}

button.wallet-channel.is-channel-off .pay-method-row-status {
  display: block;
  margin-top: 2px;
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

button.wallet-channel.is-channel-off .pay-method-row-mark {
  opacity: 0.25;
  border-color: rgba(255, 255, 255, 0.12);
}

button.wallet-channel.is-channel-off:hover .pay-method-row-face {
  border-color: rgba(255, 255, 255, 0.06);
}

.wallet-channels-empty[hidden] {
  display: none !important;
}

.wallet-fee-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.wallet-fee-note[hidden] {
  display: none !important;
}

.wallet-fee-note strong {
  color: #fef3c7;
  font-weight: 700;
}

button.wallet-channel .pay-method-row-face {
  border-color: rgba(244, 114, 182, 0.28);
}

button.wallet-channel:hover .pay-method-row-face {
  border-color: rgba(244, 114, 182, 0.55);
}

.wallet-pay-box {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.08);
}

.wallet-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.wallet-pay-row strong {
  font-size: 1.125rem;
  color: var(--accent-hover);
}

.wallet-pay-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.wallet-pay-note a {
  color: var(--accent-hover);
  font-weight: 600;
}

/* ===== history.css ===== */

/* History — card rows with status icons */

.history-page .home-shell {
  max-width: 760px;
}

.history-head {
  margin: 0 0 18px;
}

.history-head h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.history-head p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.history-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  max-width: 400px;
  margin: 0 0 22px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.history-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.history-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
}

.history-tab:hover {
  color: var(--text-primary);
}

.history-tab:hover svg {
  opacity: 1;
}

.history-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #db2777);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.28);
}

.history-tab.is-active svg {
  opacity: 1;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.history-list--table {
  border: none;
  background: transparent;
  overflow: visible;
  border-radius: 0;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(18, 12, 22, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  animation: history-row-in 0.32s ease both;
}

.history-row:nth-child(1) { animation-delay: 0.02s; }
.history-row:nth-child(2) { animation-delay: 0.05s; }
.history-row:nth-child(3) { animation-delay: 0.08s; }
.history-row:nth-child(4) { animation-delay: 0.11s; }
.history-row:nth-child(5) { animation-delay: 0.14s; }
.history-row:nth-child(6) { animation-delay: 0.17s; }

@keyframes history-row-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.history-row:hover {
  border-color: rgba(244, 114, 182, 0.28);
  background:
    linear-gradient(145deg, rgba(236, 72, 153, 0.08), transparent 50%),
    rgba(24, 14, 28, 0.9);
}

.history-row-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.history-row-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1220;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.history-row-thumb--ph,
.history-row-thumb--in {
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.18);
}

.history-row-thumb--in {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.16);
}

.history-row-thumb--pay {
  object-fit: contain;
  padding: 6px;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.history-row-prod-text {
  min-width: 0;
  flex: 1;
  padding-top: 1px;
}

.history-row-name {
  display: block;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.history-row-desc {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 10px;
}

.history-row-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.history-row-chip svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.8;
}

.history-row-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  flex-shrink: 0;
}

.history-row-amt {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.history-row-amt--in {
  color: #34d399;
}

.history-row-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
}

.history-row-status svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.history-row-status--ok {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.14);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.28);
}

.history-row-status--warn {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.14);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28);
}

.history-row-status--bad {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.14);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.28);
}

.history-row-status--muted {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.history-row-when {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.history-row-when svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  flex-shrink: 0;
}

.history-row-qty {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.history-empty,
.history-error {
  margin: 0;
  padding: 40px 20px;
  text-align: center;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.02);
}

.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 18px 32px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(236, 72, 153, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.02);
}

.history-empty-reel {
  position: relative;
  width: min(100%, 340px);
  height: 210px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 78%,
    transparent 100%
  );
}

.history-empty-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform;
  animation: history-empty-rise 16s linear infinite;
}

.history-empty-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.history-empty-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-empty-avatar svg {
  width: 20px;
  height: 20px;
  display: block;
}

.history-empty-lines {
  flex: 1 1 auto;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.history-empty-lines i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.history-empty-lines i:first-child {
  width: 72%;
}

.history-empty-lines i:last-child {
  width: 48%;
  opacity: 0.75;
}

.history-empty-card:nth-child(3n) .history-empty-lines i:first-child {
  width: 64%;
}

.history-empty-card:nth-child(3n) .history-empty-lines i:last-child {
  width: 40%;
}

.history-empty-card:nth-child(4n) .history-empty-lines i:first-child {
  width: 80%;
}

.history-empty-card:nth-child(5n) .history-empty-lines i:last-child {
  width: 56%;
}

@keyframes history-empty-rise {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -50%, 0);
  }
}

.history-empty strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.history-empty > span {
  display: block;
  max-width: 300px;
  line-height: 1.5;
  color: #a898aa;
}

@media (prefers-reduced-motion: reduce) {
  .history-empty-track {
    animation: none;
    transform: translate3d(0, -12%, 0);
  }
}

.history-error {
  border-style: solid;
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
  margin-bottom: 10px;
}

.history-empty[hidden],
.history-error[hidden],
.history-skel[hidden] {
  display: none !important;
}

.history-skel {
  display: grid;
  gap: 10px;
  border: none;
  background: transparent;
  overflow: visible;
  border-radius: 0;
}

.history-skel-row {
  height: 96px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.07) 45%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: history-shimmer 1.1s linear infinite;
}

@keyframes history-shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 640px) {
  .history-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .history-row-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    gap: 8px 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .history-row-when {
    margin-left: auto;
  }

  .history-tabs {
    max-width: none;
  }

  .history-tab {
    font-size: 0.78rem;
    gap: 6px;
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-tab,
  .history-row,
  .history-skel-row {
    animation: none;
    transition: none;
  }
}

/* ===== contact-page.css ===== */

/* Contact — Facebook + Discord */

.contact-main {
  padding-bottom: 64px;
}

.contact-shell {
  max-width: 480px;
  margin: 0 auto;
}

.contact-hero {
  text-align: center;
  margin: 8px 0 28px;
}

.contact-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.contact-hero-lead {
  margin: 0 auto;
  max-width: 32ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.contact-hours {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.contact-hours[hidden] {
  display: none !important;
}

.contact-hours strong {
  color: var(--text-secondary);
  font-weight: 700;
}

.contact-channel[hidden] {
  display: none !important;
}

.contact-channel-ico--line {
  background: #06c755;
}

.contact-channels {
  display: grid;
  gap: 10px;
}

.contact-channel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 96px;
  align-items: center;
  column-gap: 14px;
  height: 72px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
}

.contact-channel:hover,
.contact-channel:focus,
.contact-channel:active {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.contact-channel-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
}

.contact-channel-ico svg {
  display: block;
  width: 22px;
  height: 22px;
}

.contact-channel-ico--fb {
  background: #1877f2;
}

.contact-channel-ico--dc {
  background: #5865f2;
}

.contact-channel-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.contact-channel-body strong {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.contact-channel-body span {
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-channel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 36px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #db2777;
}

.contact-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ===== how-to-buy.css ===== */

/* How to buy — realistic auto demo */

.howto-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 64px;
}

.howto-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.howto-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.4;
  animation: howto-orb 16s ease-in-out infinite alternate;
}

.howto-orb--a {
  width: min(50vw, 340px);
  height: min(50vw, 340px);
  top: -8%;
  right: -14%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.55), transparent 70%);
}

.howto-orb--b {
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  bottom: 10%;
  left: -16%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.28), transparent 72%);
  animation-delay: -5s;
}

.howto-shell {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  padding-top: 8px;
}

.howto-demo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  min-height: 1.35em;
}

.howto-demo-caption {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f9a8d4;
  line-height: 1.35;
}

.howto-demo-dots {
  display: flex;
  gap: 6px;
}

.howto-demo-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease, transform 0.25s ease;
}

.howto-demo-dots span.is-on {
  background: #ec4899;
  transform: scale(1.2);
}

/* Device frame */
.howto-device {
  position: relative;
  margin: 0 auto;
  padding: 11px;
  border-radius: 40px;
  background:
    linear-gradient(145deg, #3a3340 0%, #1a161e 28%, #0d0b10 72%, #18141c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 32px 80px rgba(0, 0, 0, 0.62),
    0 8px 24px rgba(236, 72, 153, 0.08);
}

.howto-device-btn {
  position: absolute;
  z-index: 3;
  background: linear-gradient(90deg, #2c2732, #16131a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.howto-device-btn--silent {
  left: -2px;
  top: 92px;
  width: 3px;
  height: 22px;
  border-radius: 2px 0 0 2px;
}

.howto-device-btn--volup {
  left: -2px;
  top: 128px;
  width: 3px;
  height: 36px;
  border-radius: 2px 0 0 2px;
}

.howto-device-btn--voldn {
  left: -2px;
  top: 172px;
  width: 3px;
  height: 36px;
  border-radius: 2px 0 0 2px;
}

.howto-device-btn--power {
  right: -2px;
  top: 148px;
  width: 3px;
  height: 56px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(270deg, #2c2732, #16131a);
}

.howto-device-shine {
  position: absolute;
  inset: 9px;
  border-radius: 32px;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.1), transparent 38%),
    linear-gradient(300deg, rgba(236, 72, 153, 0.05), transparent 40%);
  z-index: 2;
}

.howto-device-bezel {
  position: relative;
  z-index: 1;
  border-radius: 30px;
  overflow: hidden;
  background: #0c0a0e;
  min-height: 580px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.howto-homebar {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 4;
  width: 108px;
  height: 4px;
  margin-left: -54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.howto-status {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 16px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f5f0f4;
  background: #0c0a0e;
}

.howto-status > span:first-child {
  justify-self: start;
}

.howto-notch {
  width: 96px;
  height: 24px;
  border-radius: 0 0 16px 16px;
  background: #050406;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

.howto-notch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 42px;
  height: 5px;
  margin-left: -21px;
  border-radius: 999px;
  background: #1a171e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.howto-status-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 3px;
}

.howto-status-right i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: #f5f0f4;
}

.howto-status-right i:nth-child(1) { height: 5px; opacity: 0.45; }
.howto-status-right i:nth-child(2) { height: 7px; opacity: 0.7; }
.howto-status-right i:nth-child(3) { height: 9px; }

.howto-status-right b {
  width: 18px;
  height: 9px;
  margin-left: 4px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  position: relative;
}

.howto-status-right b::after {
  content: "";
  position: absolute;
  inset: 1px 3px 1px 1px;
  border-radius: 1px;
  background: #4ade80;
}

.howto-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 10, 14, 0.96);
}

.howto-appbar-logo {
  display: flex;
  align-items: center;
  min-height: 24px;
}

.howto-appbar-logo .brand-lockup-img {
  height: 28px;
}

.howto-appbar-logo .brand-lockup {
  gap: 6px;
}

.howto-appbar-logo .brand-mascot {
  width: 24px;
  height: 24px;
}

.howto-appbar-logo .brand-logo {
  height: 22px;
  width: auto;
}

.howto-appbar-bal {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f9a8d4;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.28);
}

.howto-screen {
  position: relative;
  padding: 14px 14px 28px;
  min-height: 470px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(236, 72, 153, 0.08), transparent 50%),
    #0c0a0e;
}

.howto-scene {
  display: grid;
  gap: 12px;
  animation: howto-scene-in 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.howto-scene[hidden] {
  display: none !important;
}

.howto-scene-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #faf7f9;
  letter-spacing: -0.02em;
}

.howto-scene-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: #9a8f9c;
  line-height: 1.4;
}

.howto-auth-card {
  display: grid;
  gap: 12px;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #1a151f, #121016);
}

.howto-field {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  color: #9a8f9c;
}

.howto-field input,
.howto-amt {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a080c;
  color: #faf7f9;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
}

.howto-field input.is-typing,
.howto-amt.is-typing {
  border-color: rgba(236, 72, 153, 0.75);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.16);
}

.howto-amt {
  display: flex;
  align-items: center;
  gap: 6px;
}

.howto-amt > span:first-child {
  color: #f472b6;
  font-weight: 700;
  font-size: 1.05rem;
}

.howto-amt input {
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 0;
  box-shadow: none;
}

.howto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: #ec4899;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
  cursor: default;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.howto-btn.is-press {
  transform: scale(0.975);
  filter: brightness(1.08);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.22);
}

.howto-scene[data-scene="wallet"] {
  gap: 8px;
}

.howto-scene[data-scene="wallet"] .howto-scene-title {
  font-size: 0.975rem;
}

.howto-wallet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(18, 14, 22, 0.9));
  color: #cfc4d1;
  font-size: 0.75rem;
}

.howto-wallet-card strong {
  font-size: 1.05rem;
  color: #f9a8d4;
  font-variant-numeric: tabular-nums;
}

.howto-payrows {
  display: grid;
  gap: 6px;
}

.howto-payrow-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121016;
  color: #faf7f9;
  text-align: left;
  font: inherit;
  cursor: default;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.howto-payrow-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.howto-payrow-btn span {
  display: grid;
  gap: 1px;
}

.howto-payrow-btn strong {
  font-size: 0.8125rem;
}

.howto-payrow-btn small {
  font-size: 0.6875rem;
  color: #8b7f8e;
}

.howto-payrow-btn.is-on,
.howto-payrow-btn.is-press {
  border-color: rgba(236, 72, 153, 0.65);
  background: rgba(236, 72, 153, 0.1);
}

.howto-scene[data-scene="wallet"] .howto-field {
  gap: 4px;
}

.howto-scene[data-scene="wallet"] .howto-amt {
  min-height: 40px;
}

.howto-scene[data-scene="wallet"] .howto-btn {
  min-height: 42px;
  margin-top: 0;
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.22);
}

/* After QR is created — collapse form so it fits the phone */
.howto-scene[data-scene="wallet"].is-qr-ready .howto-payrows,
.howto-scene[data-scene="wallet"].is-qr-ready .howto-field,
.howto-scene[data-scene="wallet"].is-qr-ready [data-demo-topup] {
  display: none !important;
}

.howto-scene[data-scene="wallet"].is-qr-ready {
  gap: 10px;
}

.howto-qr {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: #fff;
  animation: howto-scene-in 0.35s ease;
}

.howto-qr[hidden] {
  display: none !important;
}

.howto-qr-badge {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
}

.howto-qr-frame {
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.howto-qr-box {
  width: 108px;
  height: 108px;
  image-rendering: pixelated;
  background:
    linear-gradient(#111, #111) 3px 3px / 22px 22px,
    linear-gradient(#fff, #fff) 8px 8px / 12px 12px,
    linear-gradient(#111, #111) 11px 11px / 6px 6px,
    linear-gradient(#111, #111) 83px 3px / 22px 22px,
    linear-gradient(#fff, #fff) 88px 8px / 12px 12px,
    linear-gradient(#111, #111) 91px 11px / 6px 6px,
    linear-gradient(#111, #111) 3px 83px / 22px 22px,
    linear-gradient(#fff, #fff) 8px 88px / 12px 12px,
    linear-gradient(#111, #111) 11px 91px / 6px 6px,
    #fff;
  background-repeat: no-repeat;
}

.howto-qr p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.howto-qr-amt {
  margin: 2px 0 0 !important;
  font-size: 0.8125rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

.howto-qr-wait {
  margin: 0 !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  line-height: 1.35;
}

.howto-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.howto-game {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 8px 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121016;
  color: #e8e0e6;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: default;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.howto-game img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.howto-game.is-press,
.howto-game.is-on {
  border-color: rgba(236, 72, 153, 0.7);
  background: rgba(236, 72, 153, 0.12);
  transform: translateY(-3px);
}

.howto-pay-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.howto-pay-head img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.howto-packs {
  display: grid;
  gap: 8px;
}

.howto-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121016;
  color: #e8e0e6;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: default;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.howto-pack strong {
  color: #f9a8d4;
}

.howto-pack.is-on,
.howto-pack.is-press {
  border-color: rgba(236, 72, 153, 0.7);
  background: rgba(236, 72, 153, 0.12);
}

.howto-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #cfc4d1;
}

.howto-check input {
  width: 16px;
  height: 16px;
  accent-color: #ec4899;
}

.howto-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #161218;
}

.howto-total small {
  display: block;
  font-size: 0.75rem;
  color: #8b7f8e;
}

.howto-total span {
  font-size: 0.75rem;
  color: #a99eaa;
}

.howto-total b {
  color: #f9a8d4;
}

.howto-total strong {
  font-size: 1.125rem;
  color: #faf7f9;
}

.howto-scene--ok {
  min-height: 360px;
  place-content: center;
}

.howto-ok-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 28px 18px;
  border-radius: 18px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: linear-gradient(180deg, #1c1520, #120e16);
}

.howto-ok-ico {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  background: #ec4899;
  box-shadow: 0 14px 36px rgba(236, 72, 153, 0.38);
  animation: howto-ok-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.howto-ok-card h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #faf7f9;
}

.howto-ok-card p {
  margin: 0;
  color: #a99eaa;
  font-size: 0.875rem;
  line-height: 1.45;
}

.howto-ok-meta {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: #8b7f8e;
}

.howto-ok-meta strong {
  color: #f9a8d4;
}

/* Cursor */
.howto-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  width: 24px;
  height: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(48px, 120px, 0);
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.howto-cursor.is-on {
  opacity: 1;
}

.howto-cursor.is-click {
  transform: translate3d(var(--cx, 48px), var(--cy, 120px), 0) scale(0.88);
}

.howto-cursor-ring {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(249, 168, 212, 0.9);
  opacity: 0;
  transform: scale(0.4);
}

.howto-cursor.is-click .howto-cursor-ring {
  animation: howto-ring 0.42s ease-out;
}

.howto-toast {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 114, 182, 0.4);
  background: rgba(18, 14, 22, 0.94);
  color: #f9a8d4;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  animation: howto-toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.howto-toast[hidden] {
  display: none !important;
}

.howto-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

.howto-cta-primary,
.howto-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 148px;
  padding: 0 18px;
  border-radius: 14px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.howto-cta-primary {
  color: #fff;
  background: #ec4899;
  border: 1px solid #ec4899;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.3);
}

.howto-cta-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.howto-cta-secondary {
  color: #f3eaf0;
  background: transparent;
  border: 1px solid rgba(244, 114, 182, 0.4);
}

.howto-cta-secondary:hover {
  background: rgba(244, 114, 182, 0.1);
}

@keyframes howto-orb {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-14px, 18px, 0); }
}

@keyframes howto-scene-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes howto-ok-pop {
  0% { transform: scale(0.72); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes howto-ring {
  0% { opacity: 0.9; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(2.1); }
}

@keyframes howto-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .howto-orb,
  .howto-scene,
  .howto-ok-ico,
  .howto-cursor,
  .howto-cursor-ring,
  .howto-toast {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 420px) {
  .howto-device {
    padding: 8px;
    border-radius: 34px;
  }

  .howto-device-bezel {
    border-radius: 26px;
    min-height: 560px;
  }

  .howto-device-btn {
    display: none;
  }

  .howto-cta-primary,
  .howto-cta-secondary {
    flex: 1 1 100%;
  }
}

/* ===== dashboard.css ===== */

/* Admin dashboard — ops console, not generic AI cards */

.dash-page {
  position: relative;
}

.dash-main-wrap {
  position: relative;
  isolation: isolate;
}

.dash-bg {
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  height: min(52vh, 480px);
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 12% -10%, rgba(236, 72, 153, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 0%, rgba(255, 255, 255, 0.04), transparent 55%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}

.dash-shell {
  max-width: 1180px;
}

.dash-gate {
  margin: 56px auto;
  max-width: 380px;
  padding: 0;
  text-align: left;
}

.dash-gate h2 {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #faf7f9;
}

.dash-gate p {
  margin: 0 0 20px;
  color: #9a8f9b;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.dash-app {
  display: grid;
  gap: 28px;
  padding: 8px 0 48px;
}

@media (min-width: 960px) {
  .dash-app {
    grid-template-columns: 188px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
}

/* —— side rail —— */
.dash-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.dash-rail-select-wrap {
  display: none;
  gap: 6px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.dash-rail-select-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f6572;
}

.dash-rail-select-wrap .dash-rail-select {
  /* hidden once enhanced; keep as fallback */
  width: 100%;
}

.dash-dd--nav {
  display: block;
  width: 100%;
}

.dash-dd--nav .dash-dd-btn {
  width: 100%;
  max-width: none;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(12, 8, 14, 0.9);
  color: #faf7f9;
  font-size: 0.9375rem;
  font-weight: 650;
}

.dash-dd--nav.is-open .dash-dd-btn,
.dash-dd--nav .dash-dd-btn:hover {
  border-color: rgba(236, 72, 153, 0.55);
  background: rgba(236, 72, 153, 0.1);
}

.dash-dd--nav .dash-dd-menu,
.dash-dd--nav .dash-dd-menu.is-fixed {
  padding: 8px;
  border-radius: 14px;
  border-color: rgba(236, 72, 153, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    #161118;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  max-height: min(70vh, 440px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.dash-dd-group {
  margin: 10px 10px 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8b7f8e;
  pointer-events: none;
}

.dash-dd-group:first-child {
  margin-top: 2px;
}

.dash-dd--nav .dash-dd-opt {
  min-height: 44px;
  padding: 0 12px;
  margin: 2px 0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e8dde6;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.dash-dd--nav .dash-dd-opt:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.dash-dd--nav .dash-dd-opt.is-on {
  color: #fff;
  background: rgba(236, 72, 153, 0.2);
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.45);
  font-weight: 650;
}

.dash-dd--nav .dash-dd-opt.is-on::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #f472b6;
  vertical-align: middle;
}

@media (min-width: 960px) {
  .dash-rail {
    position: sticky;
    top: 88px;
    padding-top: 4px;
  }
}

.dash-rail-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dash-rail-group + .dash-rail-group {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-rail-title {
  margin: 0;
  padding: 0 10px 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f6572;
}

.dash-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px 2px;
  scrollbar-width: none;
}

.dash-tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 960px) {
  .dash-tabs {
    flex-direction: column;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 959px) {
  .dash-rail {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    overflow: visible;
    margin: 0;
    padding: 0 0 2px;
    min-width: 0;
    max-width: 100%;
  }

  .dash-rail-select-wrap {
    display: grid;
  }

  .dash-rail-nav {
    display: none;
  }

  .dash-credits-chip {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

.dash-tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: #9a8f9b;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-align: left;
  transition: color 0.16s ease, background 0.16s ease;
}

.dash-tab:hover {
  color: #ece4ea;
  background: rgba(255, 255, 255, 0.035);
}

.dash-tab.is-active {
  color: #fff;
  background: rgba(236, 72, 153, 0.12);
  font-weight: 600;
}

.dash-tab--soon {
  color: #7d7380;
}

.dash-tab--soon.is-active {
  color: #e8dfe6;
}

.dash-tab-tag {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c4b5c8;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 959px) {
  .dash-tab-tag {
    display: none;
  }
}

@media (min-width: 960px) {
  .dash-tab.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 2px;
    border-radius: 2px;
    background: #ec4899;
  }
}

.dash-tab-ico {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.75;
}

.dash-tab.is-active .dash-tab-ico {
  opacity: 1;
  color: #f472b6;
}

.dash-tab-ico svg {
  width: 17px;
  height: 17px;
}

.dash-rail-back {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 4px 10px 12px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(185, 28, 28, 0.08));
  color: #fecaca;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.dash-rail-back-ico {
  display: inline-flex;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #f87171;
}

.dash-rail-back-ico svg {
  width: 18px;
  height: 18px;
}

.dash-rail-back-text {
  line-height: 1.2;
}

.dash-rail-back:hover {
  color: #fff;
  border-color: rgba(248, 113, 113, 0.55);
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.38), rgba(185, 28, 28, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 16px rgba(185, 28, 28, 0.22);
  transform: translateY(-1px);
}

.dash-rail-back:hover .dash-rail-back-ico {
  color: #fecaca;
}

.dash-rail-back:active {
  transform: translateY(0);
}

@media (min-width: 960px) {
  .dash-rail-back {
    display: inline-flex;
  }
}

.dash-soon-card {
  margin-top: 4px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(244, 114, 182, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.dash-soon-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f472b6;
}

.dash-soon-card > p:not(.dash-soon-kicker) {
  margin: 0 0 12px;
  color: #c9bec8;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.dash-soon-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #9a8f9b;
  font-size: 0.875rem;
  line-height: 1.6;
}

.dash-soon-card li + li {
  margin-top: 4px;
}

.dash-report {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dash-report-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-report-tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  color: #9a8f9b;
  font: inherit;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dash-report-tab span {
  font-size: 0.9375rem;
  font-weight: 700;
}

.dash-report-tab em {
  font-style: normal;
  font-size: 0.6875rem;
  opacity: 0.75;
}

.dash-report-tab:hover {
  color: #ece4ea;
  background: rgba(255, 255, 255, 0.04);
}

.dash-report-tab.is-active {
  color: #fff;
  background: linear-gradient(160deg, rgba(244, 114, 182, 0.28), rgba(236, 72, 153, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(244, 114, 182, 0.35),
    0 8px 20px rgba(236, 72, 153, 0.18);
}

.dash-report-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 900px) {
  .dash-report-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dash-kpi {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), transparent 55%),
    rgba(18, 12, 20, 0.88);
  overflow: hidden;
}

.dash-kpi span {
  display: block;
  font-size: 0.75rem;
  color: #9a8f9b;
  margin-bottom: 4px;
}

.dash-kpi strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.dash-kpi em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.6875rem;
  color: #7d7380;
}

.dash-kpi-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  color: #f9a8d4;
  background: rgba(244, 114, 182, 0.14);
}

.dash-kpi-ico svg {
  width: 18px;
  height: 18px;
}

.dash-kpi--sales .dash-kpi-ico {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.14);
}

.dash-kpi--ok .dash-kpi-ico {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
}

.dash-kpi--wallet .dash-kpi-ico {
  color: #93c5fd;
  background: rgba(56, 189, 248, 0.14);
}

.dash-kpi-ring {
  position: absolute;
  right: 12px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(#34d399 var(--p), rgba(255, 255, 255, 0.08) 0);
}

.dash-kpi-ring i {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #151018;
}

.dash-report-rule {
  height: 1px;
  border: 0;
  margin: 2px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(244, 114, 182, 0.35),
    rgba(255, 255, 255, 0.1),
    rgba(244, 114, 182, 0.35),
    transparent
  );
}

.dash-report-split {
  display: grid;
  gap: 14px;
}

@media (min-width: 960px) {
  .dash-report-split {
    grid-template-columns: 1.05fr 1fr;
    gap: 16px;
  }
}

.dash-report-panel {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(244, 114, 182, 0.08), transparent 45%),
    rgba(12, 9, 14, 0.75);
}

.dash-report-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dash-report-panel-head h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f8eef5;
}

.dash-report-panel-head span {
  font-size: 0.75rem;
  color: #7d7380;
}

.dash-day-list,
.dash-game-rank,
.dash-pay-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-day-list li + li,
.dash-game-rank li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.dash-day-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.dash-day-top strong {
  font-size: 0.875rem;
  color: #efe6ed;
}

.dash-day-top span {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f9a8d4;
  font-variant-numeric: tabular-nums;
}

.dash-day-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dash-day-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #db2777, #f472b6 55%, #fbcfe8);
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.35);
}

.dash-day-sub {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #7d7380;
}

.dash-game-rank-main {
  display: grid;
  grid-template-columns: 24px 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.dash-game-rank-no {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #f9a8d4;
  background: rgba(244, 114, 182, 0.14);
}

.dash-game-rank li:nth-child(1) .dash-game-rank-no {
  color: #1a0612;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
}

.dash-game-rank li:nth-child(2) .dash-game-rank-no {
  color: #1a0612;
  background: linear-gradient(180deg, #e5e7eb, #9ca3af);
}

.dash-game-rank li:nth-child(3) .dash-game-rank-no {
  color: #1a0612;
  background: linear-gradient(180deg, #fdba74, #ea580c);
}

.dash-game-rank-art {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0a0e;
  position: relative;
}

.dash-report-game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dash-report-game-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f9a8d4;
  background: rgba(244, 114, 182, 0.12);
}

.dash-game-rank-copy strong {
  display: block;
  font-size: 0.875rem;
  color: #f8eef5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-game-rank-copy span {
  font-size: 0.75rem;
  color: #7d7380;
}

.dash-game-rank-val {
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.dash-game-rank-bar {
  margin-top: 8px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dash-game-rank-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.35), #f472b6);
}

.dash-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 720px) {
  .dash-pay-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dash-pay-chip {
  padding: 14px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.dash-pay-chip-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.dash-pay-chip-top strong {
  font-size: 0.8125rem;
  color: #efe6ed;
}

.dash-pay-chip-top span {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.dash-pay-chip-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dash-pay-chip-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.dash-pay-chip em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.6875rem;
  color: #7d7380;
}

.dash-pay-chip--pp .dash-pay-chip-bar i {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}
.dash-pay-chip--tm .dash-pay-chip-bar i {
  background: linear-gradient(90deg, #fb923c, #f97316);
}
.dash-pay-chip--ap .dash-pay-chip-bar i {
  background: linear-gradient(90deg, #f472b6, #ec4899);
}
.dash-pay-chip--cp .dash-pay-chip-bar i {
  background: linear-gradient(90deg, #a3e635, #22c55e);
}
.dash-pay-chip--ot .dash-pay-chip-bar i {
  background: linear-gradient(90deg, #c4b5c9, #9a8f9b);
}


.dash-form--announce,
.dash-form--settings {
  margin-bottom: 16px;
}

.dash-form--settings {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  grid-template-columns: 1fr;
}

.dash-form--announce {
  display: block;
  padding: 0;
  border: 0;
}

.dash-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(12, 8, 14, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.dash-card--warn {
  border-color: rgba(244, 114, 182, 0.28);
  background: rgba(236, 72, 153, 0.08);
}

.dash-card--markup {
  margin: 0 0 14px;
}

.dash-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 14px;
}

.dash-card-head strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.dash-card-head span {
  font-size: 0.75rem;
  color: #8b7f8e;
}

.dash-form-grid {
  display: grid;
  gap: 12px;
}

.dash-form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .dash-form-grid--2 {
    grid-template-columns: 1fr;
  }
}

.dash-field--full {
  grid-column: 1 / -1;
}

.dash-form textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #f3eaf0;
  font: inherit;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dash-form textarea:focus {
  outline: none;
  border-color: rgba(236, 72, 153, 0.65);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.dash-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.dash-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 12px 4px 0;
  font-size: 0.875rem;
  color: #c9bec8;
}

.dash-check--warn {
  color: #f9a8d4;
  margin: 0;
}

.dash-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 900px) {
  .dash-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dash-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .dash-pay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dash-pay-grid,
  .dash-pay-grid--fees {
    grid-template-columns: 1fr;
  }
}

.dash-pay-grid--fees {
  align-items: stretch;
}

.dash-pay-card {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.dash-pay-fee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 10px 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dash-pay-fee-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
  user-select: none;
}

.dash-pay-fee-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dash-pay-fee-switch {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.16s ease;
}

.dash-pay-fee-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease;
}

.dash-pay-fee-toggle input:checked + .dash-pay-fee-switch {
  background: linear-gradient(135deg, #34d399, #16a34a);
}

.dash-pay-fee-toggle input:checked + .dash-pay-fee-switch::after {
  transform: translateX(16px);
}

.dash-pay-fee-label {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.dash-pay-fee-label strong {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #e8dde6;
  letter-spacing: -0.01em;
}

.dash-pay-fee-label small {
  font-size: 0.6875rem;
  color: #7a6f7c;
}

.dash-pay-fee:has(input[type="checkbox"]:checked) .dash-pay-fee-label strong {
  color: #86efac;
}

.dash-pay-fee-pct {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 36px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.dash-pay-fee:has(input[type="checkbox"]:checked) .dash-pay-fee-pct {
  background: rgba(34, 197, 94, 0.12);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.22);
}

.dash-pay-fee-pct input {
  width: 56px;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4ade80;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  appearance: textfield;
  -moz-appearance: textfield;
}

.dash-pay-fee-pct input::-webkit-outer-spin-button,
.dash-pay-fee-pct input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dash-pay-fee-pct input:focus {
  outline: none;
}

.dash-pay-fee-unit {
  margin-left: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #86efac;
}

.dash-pay-fee:not(:has(input[type="checkbox"]:checked)) .dash-pay-fee-pct input,
.dash-pay-fee:not(:has(input[type="checkbox"]:checked)) .dash-pay-fee-unit {
  color: #8b7f8e;
}

.dash-pay-toggle {
  display: block;
  cursor: pointer;
}

.dash-pay-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dash-pay-toggle-face {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.28);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.dash-pay-toggle:hover .dash-pay-toggle-face {
  border-color: rgba(244, 114, 182, 0.35);
  transform: translateY(-1px);
}

.dash-pay-toggle input:checked + .dash-pay-toggle-face {
  border-color: rgba(236, 72, 153, 0.55);
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(12, 8, 14, 0.7);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.12);
}

.dash-pay-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
}

.dash-pay-logo--coupon {
  background: #1a1018;
  padding: 0;
}

.dash-pay-toggle-text {
  min-width: 0;
}

.dash-pay-toggle-text strong {
  display: block;
  font-size: 0.875rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.dash-pay-toggle-text small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: #8b7f8e;
}

.dash-switch-ui {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: background 0.16s ease;
}

.dash-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.16s ease;
}

.dash-pay-toggle input:checked + .dash-pay-toggle-face .dash-switch-ui,
.dash-switch input:checked + .dash-switch-ui {
  background: linear-gradient(135deg, #f472b6, #db2777);
}

.dash-pay-toggle input:checked + .dash-pay-toggle-face .dash-switch-ui::after,
.dash-switch input:checked + .dash-switch-ui::after {
  transform: translateX(18px);
}

.dash-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 4px 0;
}

.dash-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dash-switch-copy {
  min-width: 0;
}

.dash-switch-copy strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}

.dash-switch-copy small {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  color: #8b7f8e;
  line-height: 1.4;
}

.dash-switch--warn .dash-switch-copy strong {
  color: #f9a8d4;
}

.dash-check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  color: #e8dde6;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dash-check-card:hover {
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(236, 72, 153, 0.08);
}

.dash-check-card input {
  accent-color: #ec4899;
}

.dash-fieldset {
  grid-column: 1 / -1;
  margin: 8px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-fieldset legend {
  padding: 0 6px;
  font-size: 0.8125rem;
  color: #9a8f9b;
}

.dash-form-msg {
  margin-left: 10px;
  font-size: 0.8125rem;
  color: #86efac;
}

.dash-form--announce .dash-form-action {
  margin-top: 14px;
  padding: 0 18px 16px;
}

.dash-form--announce .dash-form-grid {
  padding: 0 18px;
}

.dash-form--announce .dash-card-head {
  padding: 16px 18px 0;
  margin-bottom: 12px;
}

.dash-hint {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: #8b7f8e;
  line-height: 1.45;
}

.dash-hint code {
  font-size: 0.72rem;
  color: #f9a8d4;
}

.dash-help {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.dash-help--soft {
  margin-top: 12px;
  margin-bottom: 0;
}

.dash-help p {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  color: #c9bec8;
  line-height: 1.5;
}

.dash-help p:last-child {
  margin-bottom: 0;
}

.dash-help ol {
  margin: 6px 0 8px;
  padding-left: 1.2rem;
  color: #c9bec8;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.dash-help ol li + li {
  margin-top: 4px;
}

.dash-card--discord {
  border-color: rgba(88, 101, 242, 0.28);
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(236, 72, 153, 0.06)),
    rgba(12, 8, 14, 0.72);
}

.dash-card--discord-compact {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-card--discord-compact .dash-card-head {
  margin-bottom: 0;
}

.dash-discord-block {
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
}

.dash-discord-block--credits {
  border-color: rgba(239, 68, 68, 0.28);
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent 70%),
    rgba(0, 0, 0, 0.22);
}

.dash-discord-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dash-discord-block-head p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(201, 190, 200, 0.72);
}

.dash-discord-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.28);
}

.dash-discord-tag--red {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.32);
}

.dash-discord-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.dash-discord-row .dash-field {
  margin: 0;
}

.dash-field--grow {
  flex: 1 1 220px;
  min-width: 0;
}

.dash-field--threshold {
  flex: 0 0 108px;
}

.dash-threshold-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-threshold-wrap input {
  width: 100%;
  min-width: 0;
}

.dash-threshold-wrap span {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fca5a5;
}

.dash-discord-test {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

.dash-discord-hint {
  margin: 7px 0 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(201, 190, 200, 0.58);
}

.dash-discord-block .dash-form-msg {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
}

.dash-discord-guide {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.dash-discord-guide summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(201, 190, 200, 0.78);
  user-select: none;
}

.dash-discord-guide summary::-webkit-details-marker {
  display: none;
}

.dash-discord-guide summary::before {
  content: "▸ ";
  color: #f87171;
}

.dash-discord-guide[open] summary::before {
  content: "▾ ";
}

.dash-discord-guide ol {
  margin: 8px 0 0;
  padding: 8px 10px 8px 24px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(201, 190, 200, 0.82);
}

.dash-discord-guide li + li {
  margin-top: 4px;
}

.dash-form-action--inline {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dash-help code,
.dash-discord-guide code {
  font-size: 0.72rem;
  color: #f9a8d4;
}

.dash-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  .dash-mode-row {
    grid-template-columns: 1fr;
  }
}

.dash-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dash-mode-card:hover {
  border-color: rgba(244, 114, 182, 0.35);
}

.dash-mode-card:has(input:checked) {
  border-color: rgba(236, 72, 153, 0.55);
  background: rgba(236, 72, 153, 0.12);
}

.dash-mode-card input {
  margin-top: 3px;
  accent-color: #ec4899;
}

.dash-mode-card strong {
  display: block;
  color: #fff;
  font-size: 0.875rem;
}

.dash-mode-card small {
  display: block;
  margin-top: 2px;
  color: #8b7f8e;
  font-size: 0.75rem;
  line-height: 1.4;
}

.dash-price-preview {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.22);
  color: #f3eaf0;
  font-size: 0.875rem;
}

.dash-price-preview strong {
  color: #f9a8d4;
  font-variant-numeric: tabular-nums;
}

.dash-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.16);
  vertical-align: middle;
}

.dash-pill--off {
  color: #9a8f9b;
  background: rgba(255, 255, 255, 0.06);
}

.dash-row--announce {
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 8, 14, 0.55);
}

.dash-row--announce .dash-row-main p {
  margin: 8px 0;
  color: #d4c8d2;
  font-size: 0.9rem;
  line-height: 1.55;
}

.dash-row--audit {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 8, 14, 0.55);
}

.dash-audit-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
}

.dash-audit-top strong {
  font-size: 0.9375rem;
  color: #fff;
}

.dash-audit-groups {
  display: grid;
  gap: 12px;
}

.dash-audit-group-title {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c4b4c2;
}

.dash-audit-detail {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.dash-kv {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 0;
}

.dash-kv.is-on {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.dash-kv.is-off {
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(248, 113, 113, 0.07);
}

.dash-kv dt {
  font-size: 0.6875rem;
  color: #8b7f8e;
  text-transform: none;
}

.dash-kv dd {
  margin: 0;
  font-size: 0.8125rem;
  color: #f3eaf0;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.dash-kv.is-on dd {
  color: #86efac;
  font-weight: 700;
}

.dash-kv.is-off dd {
  color: #fca5a5;
  font-weight: 700;
}

.dash-panel-hint--inline {
  margin: 4px 0 0;
}

.home-notice[hidden],
.home-maint-banner[hidden] {
  display: none !important;
}

.home-maint-banner {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(236, 72, 153, 0.12);
  color: #fce7f3;
  font-size: 0.875rem;
}

/* —— stage —— */
.dash-stage {
  min-width: 0;
}

.dash-page .home-main,
.dash-page .dash-main-wrap,
.dash-page .dash-shell,
.dash-page .dash-stage {
  overflow: visible;
}

.dash-page .dash-table-wrap {
  overflow: visible;
}

.dash-top {
  margin: 0 0 28px;
}

.dash-top-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
}

@media (min-width: 860px) {
  .dash-top-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 18px;
    align-items: stretch;
  }
}

.dash-kicker {
  margin: 0 0 8px;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f472b6;
}

.dash-top-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 4px 2px 2px;
}

.dash-top-copy h1 {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: #fff7fb;
}

.dash-top-copy p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9rem;
  color: #9a8d9c;
  line-height: 1.55;
}

.dash-metric--hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 20px 20px 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(244, 114, 182, 0.28), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(190, 24, 93, 0.18), transparent 50%),
    linear-gradient(160deg, rgba(28, 12, 22, 0.95), rgba(10, 6, 12, 0.92));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: dash-hero-in 0.55s ease both;
}

.dash-metric--hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(244, 114, 182, 0.18);
  filter: blur(28px);
  pointer-events: none;
}

.dash-metric-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-metric-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fbcfe8;
  letter-spacing: 0.02em;
}

.dash-metric--hero .dash-metric-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: rgba(244, 114, 182, 0.22);
  border-color: rgba(251, 113, 133, 0.35);
}

.dash-metric-value {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
}

.dash-metric-note {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.75rem;
  color: rgba(251, 207, 232, 0.72);
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  animation: dash-metrics-in 0.55s ease 0.08s both;
}

@media (min-width: 720px) {
  .dash-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dash-metrics--orders-only {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

@media (min-width: 720px) {
  .dash-metrics--orders-only {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .dash-metrics--orders-only {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.dash-credits-chip {
  display: block;
  margin: auto 8px 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  min-width: 0;
  box-sizing: border-box;
}

.dash-credits-chip-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  min-width: 0;
}

.dash-credits-chip-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 0;
  color: #f9a8d4;
  background: transparent;
  border: 0;
}

.dash-credits-chip-ico svg {
  width: 22px;
  height: 22px;
}

.dash-credits-chip-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 1px;
}

.dash-credits-chip-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(201, 190, 200, 0.58);
}

.dash-credits-chip-val {
  margin: 0;
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", sans-serif;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #faf7f9;
  font-variant-numeric: tabular-nums;
}

.dash-credits-chip-note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(201, 190, 200, 0.62);
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.dash-credits-chip-note:not([hidden]) {
  display: block;
  width: auto;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-credits-chip-refresh {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(201, 190, 200, 0.85);
  cursor: pointer;
  line-height: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.dash-credits-chip-refresh:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.dash-credits-chip-refresh:active {
  transform: none;
}

.dash-credits-chip-refresh:disabled {
  opacity: 0.55;
  cursor: wait;
}

.dash-credits-chip.is-low {
  border: 0;
  background: transparent;
}

.dash-credits-chip.is-low .dash-credits-chip-ico {
  color: #fbbf24;
  background: transparent;
  border: 0;
}

.dash-credits-chip.is-low .dash-credits-chip-val {
  color: #fcd34d;
}

.dash-credits-chip.is-low .dash-credits-chip-note:not([hidden]) {
  color: #fbbf24;
  background: transparent;
}

.dash-metric {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 16px 15px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.045), transparent 55%),
    rgba(12, 8, 14, 0.72);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dash-metric:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 114, 182, 0.22);
  background:
    linear-gradient(165deg, rgba(244, 114, 182, 0.08), transparent 50%),
    rgba(14, 9, 16, 0.85);
}

@media (max-width: 899px) {
  .dash-metric:nth-child(odd),
  .dash-metric:nth-child(-n + 2),
  .dash-metric:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 0;
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (min-width: 900px) {
  .dash-metric:not(:last-child)::after {
    display: none;
  }
}

.dash-metric--accent {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.045), transparent 55%),
    rgba(12, 8, 14, 0.72);
}

.dash-metric--accent:hover {
  border-color: rgba(244, 114, 182, 0.22);
}

.dash-metric-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  color: #e9d5e4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-metric-ico svg {
  width: 16px;
  height: 16px;
}

.dash-metric--accent .dash-metric-ico {
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(236, 72, 153, 0.22);
}

.dash-metric > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dash-metric dt {
  margin: 0;
  order: 2;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #958894;
}

.dash-metric dd {
  margin: 0;
  order: 1;
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff8fb;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.dash-metric--accent dd {
  color: #fff8fb;
}

@keyframes dash-hero-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dash-metrics-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-metric--hero,
  .dash-metrics,
  .dash-metric {
    animation: none;
    transition: none;
  }

  .dash-metric:hover {
    transform: none;
  }
}

.dash-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid #f87171;
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
  font-size: 0.8125rem;
}

.dash-panel[data-dash-panel="orders"] .dash-top {
  margin-bottom: 18px;
}

.dash-error[hidden],
.dash-empty[hidden],
.dash-loading[hidden],
.dash-skel[hidden],
.dash-table-wrap[hidden],
.dash-panel[hidden],
.dash-gate[hidden],
.dash-app[hidden] {
  display: none !important;
}

.dash-loading {
  margin: 0 0 12px;
  color: #7a707c;
  font-size: 0.875rem;
}

@keyframes dash-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.dash-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.dash-toolbar h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #faf7f9;
}

.dash-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.dash-filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: #9a8f9b;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.dash-filter em {
  font-style: normal;
  font-size: 0.75rem;
  color: #6f6572;
}

.dash-filter:hover {
  color: #faf7f9;
  border-color: rgba(255, 255, 255, 0.18);
}

.dash-filter.is-on {
  color: #fff;
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(236, 72, 153, 0.4);
}

.dash-filter.is-on em {
  color: #f9a8d4;
}

.dash-feed {
  display: grid;
  gap: 22px;
}

.dash-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dash-group-head h3 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 650;
  color: #faf7f9;
  letter-spacing: -0.01em;
}

.dash-group-head span {
  font-size: 0.75rem;
  color: #6f6572;
}

.dash-rows {
  display: grid;
  gap: 6px;
}

.dash-rows--cards {
  gap: 12px;
}

.dash-row {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dash-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
}

.dash-row--order {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  gap: 10px 12px;
  align-items: center;
}

.dash-game-thumb--order {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.dash-row-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.dash-row--simple .dash-row-top {
  align-items: center;
}

.dash-row-id {
  min-width: 2rem;
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6f6572;
  font-variant-numeric: tabular-nums;
}

.dash-row-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  background: #ec4899;
}

.dash-row-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.dash-row-copy strong {
  font-size: 0.875rem;
  font-weight: 650;
  color: #faf7f9;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-row-pkg {
  font-weight: 500;
  color: #9a8f9b;
}

.dash-row-copy > span {
  font-size: 0.75rem;
  color: #9a8f9b;
  line-height: 1.35;
}

.dash-row-meta {
  font-size: 0.6875rem !important;
  color: #6f6572 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  letter-spacing: 0.04em;
}

.dash-row-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex-shrink: 0;
}

.dash-row-amt {
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f9a8d4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dash-row--order .dash-badge {
  justify-self: end;
}

.dash-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dash-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.dash-dd {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.dash-dd--form {
  display: block;
  width: 100%;
}

.dash-dd-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  min-width: 7.5rem;
  max-width: 11rem;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.35);
  color: #ece4ea;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dash-dd--form .dash-dd-btn {
  width: 100%;
  max-width: none;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.875rem;
}

.dash-dd.is-open .dash-dd-btn,
.dash-dd-btn:hover {
  border-color: rgba(236, 72, 153, 0.55);
  background: rgba(236, 72, 153, 0.08);
}

.dash-dd-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-dd-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.dash-dd-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  min-width: 100%;
  max-height: none;
  overflow: visible;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a151c;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.dash-dd-menu.is-fixed {
  position: fixed;
  top: auto;
  left: auto;
  z-index: 5000;
  max-height: min(280px, calc(100vh - 16px));
  overflow: auto;
}

.dash-dd-menu[hidden] {
  display: none !important;
}

.dash-dd-opt {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  color: #e8dde6;
  font: inherit;
  font-size: 0.8125rem;
  text-align: left;
}

.dash-dd-opt:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dash-dd-opt.is-on {
  color: #fff;
  background: rgba(236, 72, 153, 0.2);
}

.dash-row-actions select {
  display: none;
}

.dash-row-status-label {
  display: contents;
}

.dash-row-status-label span {
  display: none;
}

.dash-row-status-label select {
  width: auto;
  min-width: 7.5rem;
  max-width: 9rem;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #e8dde6;
  font: inherit;
  font-size: 0.75rem;
}

@media (max-width: 820px) {
  .dash-row--order {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 6px 10px;
    align-items: center;
  }

  .dash-row--order .dash-row-id {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .dash-row--order .dash-game-thumb--order,
  .dash-row--order .dash-game-thumb {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 36px;
    height: 36px;
  }

  .dash-row--order .dash-row-copy {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    min-width: 0;
  }

  .dash-row--order .dash-row-amt {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    align-self: end;
    font-size: 0.9375rem;
  }

  .dash-row--order .dash-badge {
    grid-column: 4;
    grid-row: 2;
    justify-self: end;
    align-self: start;
  }
}

.dash-pay-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.dash-pay-logo--fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
}

.dash-row--pay .dash-row-top {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.dash-row--admin {
  border-color: rgba(236, 72, 153, 0.28);
  background: rgba(236, 72, 153, 0.06);
}

.dash-row-avatar.is-admin {
  background: linear-gradient(145deg, #db2777, #ec4899);
}

.dash-row-side .dash-row-meta {
  text-align: right;
}

.dash-empty-inline {
  margin: 8px 0 0;
  color: #7a707c;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .dash-row-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dash-row-side {
    grid-column: 2;
    justify-items: start;
    grid-auto-flow: column;
    align-items: center;
    gap: 10px;
  }

  /* เติมเงิน: เก็บยอดเงินไว้ขวา อย่าดันลงบรรทัดล่าง */
  .dash-row--pay .dash-row-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .dash-row--pay .dash-row-side {
    grid-column: 3;
    justify-items: end;
  }
}

.dash-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, #f472b6, #db2777);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.dash-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.36);
  transform: translateY(-1px);
}

.dash-btn:active {
  transform: translateY(0);
}

.dash-btn:disabled,
.dash-btn.is-loading {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  filter: none;
}

.dash-btn--save {
  min-width: 168px;
}

.dash-btn-ico {
  display: grid;
  place-items: center;
}

.dash-btn--ghost {
  color: #c4b8c5;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.dash-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  filter: none;
}

.dash-btn--sm {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.75rem;
  border-radius: 9px;
  box-shadow: none;
}

.dash-form-action--bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(18, 12, 22, 0.92);
  position: sticky;
  bottom: 10px;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.dash-form {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 900px) {
  .dash-form:not(.dash-form--settings):not(.dash-form--announce) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: end;
  }
}

.dash-field {
  display: grid;
  gap: 6px;
}

.dash-field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #8b7f8e;
}

.dash-field input,
.dash-field select {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #faf7f9;
  font: inherit;
  font-size: 0.875rem;
  transition: border-color 0.15s ease;
}

.dash-field input::placeholder {
  color: #6f6572;
}

.dash-field input:focus,
.dash-field select:focus {
  outline: none;
  border-color: rgba(236, 72, 153, 0.65);
}

.dash-form-action {
  display: flex;
  align-items: end;
}

.dash-table-wrap {
  overflow: visible;
  margin: 0;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.8125rem;
}

.dash-table th,
.dash-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  vertical-align: middle;
}

.dash-table th {
  padding-top: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6f6572;
  white-space: nowrap;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dash-table td {
  color: #e8dde6;
}

.dash-table tbody tr {
  transition: background 0.12s ease;
}

.dash-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.dash-table tr:last-child td {
  border-bottom: 0;
}

.dash-muted {
  margin-top: 2px;
  color: #7a707c;
  font-size: 0.75rem;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9a8f9b;
  background: none;
  padding: 0;
  border-radius: 0;
  min-height: 0;
}

.dash-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.dash-badge--paid,
.dash-badge--done,
.dash-badge--active,
.dash-badge--available {
  color: #4ade80;
}

.dash-badge--processing,
.dash-badge--coming_soon {
  color: #f472b6;
}

.dash-badge--maintenance {
  color: #fbbf24;
}

.dash-badge--cancelled,
.dash-badge--refunded,
.dash-badge--off,
.dash-badge--disabled {
  color: #f87171;
}

.dash-row--game {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px 14px;
  align-items: center;
  padding: 12px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-row--game:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
}

.dash-rows--games {
  gap: 0;
}

.dash-game-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.dash-game-thumb--ph {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f9a8d4;
  background: linear-gradient(145deg, rgba(219, 39, 119, 0.35), rgba(15, 12, 18, 0.9));
}

.dash-row--game .dash-row-copy strong {
  font-size: 0.9375rem;
}

.dash-row--game .dash-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-row--game .dash-dd-btn {
  min-width: 8.5rem;
  max-width: 11rem;
}

.dash-game-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-game-block .dash-row--game {
  border-bottom: 0;
}

.dash-pricing {
  --price-line: rgba(255, 255, 255, 0.09);
  --price-pink: #f472b6;
  --price-pink-dim: rgba(236, 72, 153, 0.12);
  --price-surface: rgba(10, 8, 12, 0.55);
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 20px;
  max-width: 100%;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(236, 72, 153, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  font-family: "IBM Plex Sans Thai", "Plus Jakarta Sans", sans-serif;
}

.dash-pricing [hidden],
.dash-price-field[hidden],
.dash-price-amount[hidden] {
  display: none !important;
}

.dash-pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.dash-pricing-head-copy strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
}

.dash-pricing-head-copy span {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.45;
}

.dash-pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-pricing-game {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--price-pink-dim);
  border: 1px solid rgba(244, 114, 182, 0.22);
}

.dash-pricing-game-copy h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.dash-pricing-game-copy p {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.52);
}

.dash-pricing-edit {
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 100%;
}

.dash-pricing .dash-price-seg {
  display: inline-flex !important;
  align-items: center;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 3px;
  flex-shrink: 0;
}

.dash-pricing .dash-price-seg-btn,
.dash-pricing button.dash-price-seg-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.55) !important;
  min-height: 32px;
  min-width: 40px;
  padding: 0 11px !important;
  border-radius: 9px !important;
  font: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.dash-pricing .dash-price-seg-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.dash-pricing .dash-price-seg-btn.is-on,
.dash-pricing button.dash-price-seg-btn.is-on {
  background: linear-gradient(135deg, #fb7185, #db2777) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(236, 72, 153, 0.35) !important;
}

.dash-price-amount { min-width: 0; }
.dash-price-field { display: grid; gap: 0; }
.dash-price-field span { display: none; }

.dash-price-input {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dash-price-input i {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.dash-price-input input {
  width: 4.25rem;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  padding: 4px 0;
}

.dash-pricing-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.dash-pricing-list-head h4 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.dash-pricing-list-head span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  font-variant-numeric: tabular-nums;
}

.dash-pricing-list {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--price-surface);
}

.dash-pricing-table {
  display: table !important;
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.dash-pricing-table thead { display: table-header-group !important; }
.dash-pricing-table tbody { display: table-row-group !important; }
.dash-pricing-table tr { display: table-row !important; }

.dash-pricing-col-name { width: 28%; }
.dash-pricing-col-num { width: 13%; }
.dash-pricing-col-edit { width: 33%; }

.dash-pricing-table th,
.dash-pricing-table td {
  display: table-cell !important;
  padding: 13px 12px;
  vertical-align: middle;
  border-bottom: 1px solid var(--price-line);
  box-sizing: border-box;
}

.dash-pricing-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #17121a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dash-pricing-table thead th:nth-child(1) {
  text-align: left;
  padding-left: 18px;
}

.dash-pricing-table thead th:nth-child(2),
.dash-pricing-table thead th:nth-child(3),
.dash-pricing-table thead th:nth-child(4) {
  text-align: right;
}

.dash-pricing-table thead th:nth-child(5) {
  text-align: right;
  padding-right: 18px;
}

.dash-pricing-table tbody tr:last-child td { border-bottom: 0; }
.dash-pricing-table tbody tr:hover td { background: rgba(255, 255, 255, 0.028); }
.dash-pricing-tr[data-mode]:not([data-mode='inherit']) td {
  background: rgba(236, 72, 153, 0.07);
}

.dash-pricing-td-name { padding-left: 18px !important; }
.dash-pricing-td-name strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.dash-pricing-td-num {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-left: 8px !important;
  padding-right: 16px !important;
}

.dash-pricing-td-num b {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  min-width: 5.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
}

.dash-pricing-td-num b i {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 650;
  opacity: 0.72;
}

.dash-pricing-td-num b em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.dash-pricing-cost { color: rgba(255, 255, 255, 0.78) !important; }
.dash-pricing-sell { color: #fda4cf !important; }
.dash-pricing-profit { color: #86efac !important; }

.dash-pricing-td-edit {
  text-align: right !important;
  padding-right: 18px !important;
  white-space: nowrap;
}

.dash-pricing-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--price-line);
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(14, 10, 16, 0.96) 28%);
  padding-bottom: 2px;
  z-index: 2;
}

.dash-pricing-hint {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}

.dash-pricing-msg {
  margin: 0;
  font-size: 0.85rem;
  color: #86efac;
}

.dash-empty-inline {
  margin: 8px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 860px) {
  .dash-pricing-table {
    min-width: 780px;
  }

  .dash-pricing-table th,
  .dash-pricing-table td {
    padding: 12px 10px;
  }

  .dash-pricing .dash-price-seg-btn {
    min-height: 30px;
    min-width: 38px;
    padding: 0 9px !important;
  }
}

@media (max-width: 720px) {
  .dash-row--game {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dash-row--game .dash-badge {
    grid-column: 2;
    justify-self: start;
  }

  .dash-row--game .dash-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .dash-pricing {
    padding: 12px;
    border-radius: 16px;
  }

  .dash-pricing-game {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .dash-pricing-game .dash-pricing-edit {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-pricing-game .dash-price-seg {
    width: 100%;
  }

  .dash-pricing-game .dash-price-amount,
  .dash-pricing-game .dash-price-input,
  .dash-pricing-game .dash-price-input input {
    width: 100%;
  }

  .dash-pricing-actions {
    width: 100%;
  }

  .dash-pricing-actions .dash-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .dash-pricing-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-pricing-foot .dash-btn {
    width: 100%;
    justify-content: center;
  }
}

.dash-feed--users {
  gap: 28px;
}

.dash-user-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.dash-user-group-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dash-user-group-ico {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.dash-user-group--admins .dash-user-group-ico {
  background: #ec4899;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.18);
}

.dash-user-group-title h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.dash-user-group-note {
  font-size: 0.75rem;
  color: #8b7f8e;
}

.dash-user-grid {
  display: grid;
  gap: 8px;
}

.dash-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: center;
  padding: 12px 4px 12px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  transition: background 0.16s ease;
}

.dash-user-card:last-child {
  border-bottom: 0;
}

.dash-user-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dash-user-card.is-admin {
  background: transparent;
}

.dash-user-card.is-admin:hover {
  background: rgba(236, 72, 153, 0.06);
}

.dash-user-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.dash-user-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #e8dde6;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
}

.dash-user-avatar.is-admin {
  color: #fff;
  background: linear-gradient(145deg, #db2777, #f472b6);
  box-shadow: none;
}

.dash-user-info {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.dash-user-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dash-user-name-row strong {
  font-size: 0.975rem;
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fce7f3;
  background: rgba(236, 72, 153, 0.16);
  border: 0;
}

.dash-user-role::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f472b6;
}

.dash-user-role--member {
  color: #b5a8b4;
  background: rgba(255, 255, 255, 0.06);
}

.dash-user-role--member::before {
  background: #8b7f8e;
}

.dash-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.dash-user-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  font-size: 0.75rem;
  color: #b5a8b4;
  background: transparent;
  border: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user-chip--muted {
  color: #7a6f7c;
}

.dash-user-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 6.5rem;
}

.dash-user-balance {
  display: grid;
  justify-items: end;
  gap: 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.dash-user-balance-label {
  font-size: 0.6875rem;
  color: #7a6f7c;
}

.dash-user-balance-amt {
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #4ade80;
  font-variant-numeric: tabular-nums;
}

.dash-btn--user-edit {
  min-width: 5.25rem;
  color: #d8cdd6 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.dash-btn--user-edit:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none;
}

.dash-rows--users {
  gap: 10px;
}

body.dash-user-modal-open {
  overflow: hidden;
}

.dash-user-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dash-user-modal[hidden] {
  display: none !important;
}

.dash-user-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dash-user-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 8, 0.72);
}

.dash-user-modal-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(92dvh, 640px);
  overflow: hidden;
  padding: 0 0 env(safe-area-inset-bottom, 0);
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #151018;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(110%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.dash-user-modal.is-open .dash-user-modal-sheet {
  transform: translateY(0);
}

.dash-user-modal-handle {
  width: 42px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.dash-user-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-user-modal-who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dash-user-modal-who-text {
  min-width: 0;
}

.dash-user-modal-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #9d174d, #ec4899);
  box-shadow: 0 6px 16px rgba(219, 39, 119, 0.25);
}

.dash-user-modal-avatar.is-admin {
  background: linear-gradient(145deg, #db2777, #f472b6);
}

.dash-user-modal-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #faf7f9;
  letter-spacing: -0.02em;
}

.dash-user-modal-sub {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.8125rem;
  color: #9a8f9b;
}

.dash-user-modal-role {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.dash-user-modal-role.is-admin {
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(244, 114, 182, 0.28);
}

.dash-user-modal-x {
  appearance: none;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #9a8f9b;
  background: transparent;
  cursor: pointer;
}

.dash-user-modal-x:hover {
  color: #faf7f9;
  background: rgba(255, 255, 255, 0.06);
}

.dash-user-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 18px;
  overflow: auto;
}

.dash-field--balance {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.06);
  border: 1px solid rgba(244, 114, 182, 0.18);
}

.dash-field--balance > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: #c4a4b8;
}

.dash-field--balance input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #f9a8d4;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.dash-field--balance input:focus {
  outline: none;
  border-color: rgba(236, 72, 153, 0.55);
}

.dash-user-modal-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.dash-user-modal-fields .dash-field {
  margin: 0;
}

.dash-user-modal-fields .dash-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: #8a808c;
}

.dash-user-modal-fields input[type="number"],
.dash-user-modal-fields input[type="email"],
.dash-user-modal-fields input[type="text"],
.dash-user-modal-fields select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #faf7f9;
  font: inherit;
}

.dash-user-modal-fields select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%9a8f9b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.dash-user-modal-fields input:focus,
.dash-user-modal-fields select:focus {
  outline: none;
  border-color: rgba(236, 72, 153, 0.55);
}

.dash-user-modal-fields .dash-field--full {
  grid-column: 1 / -1;
}

.dash-user-modal-fields .dash-dd {
  display: block;
  width: 100%;
}

.dash-user-modal-fields .dash-dd-btn {
  width: 100%;
  max-width: none;
  min-height: 42px;
  border-radius: 10px;
  font-size: 0.875rem;
}

.dash-user-modal-msg {
  margin: 0;
  font-size: 0.8125rem;
  color: #fda4af;
}

.dash-user-modal-msg[hidden] {
  display: none !important;
}

.dash-user-modal-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8px;
  padding-top: 2px;
}

.dash-user-modal-actions .dash-btn {
  min-height: 44px;
  justify-content: center;
  border-radius: 10px;
}

@media (min-width: 640px) {
  .dash-user-modal {
    align-items: center;
    padding: 24px;
  }

  .dash-user-modal-sheet {
    width: min(100%, 440px);
    border-radius: 16px;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .dash-user-modal.is-open .dash-user-modal-sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .dash-user-modal-handle {
    display: none;
  }

  .dash-user-modal-fields {
    grid-template-columns: 1fr 1fr;
  }

  .dash-user-modal-fields .dash-field--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .dash-user-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .dash-user-card-side {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    width: 100%;
  }

  .dash-user-balance {
    justify-items: start;
  }
}

.dash-rows--codes {
  gap: 0;
}

.dash-row--code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-row--code:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
}

.dash-row--code .dash-row-actions {
  display: flex;
  align-items: center;
}

.dash-row--code .dash-dd-btn {
  min-width: 7rem;
}

.dash-dd-btn--status {
  gap: 6px;
  font-weight: 600;
}

.dash-dd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}

.dash-dd-btn--status.is-on {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
}

.dash-dd-btn--status.is-on:hover,
.dash-dd.is-open .dash-dd-btn--status.is-on {
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(74, 222, 128, 0.16);
}

.dash-dd-btn--status.is-off {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
}

.dash-dd-btn--status.is-off:hover,
.dash-dd.is-open .dash-dd-btn--status.is-off {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.16);
}

.dash-dd-opt--on {
  color: #86efac;
}

.dash-dd-opt--on.is-on {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
}

.dash-dd-opt--off {
  color: #fca5a5;
}

.dash-dd-opt--off.is-on {
  color: #f87171;
  background: rgba(248, 113, 113, 0.14);
}

.dash-dd-opt .dash-dd-dot {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.dash-dd-opt--on .dash-dd-dot {
  background: #4ade80;
}

.dash-dd-opt--off .dash-dd-dot {
  background: #f87171;
}

.dash-panel-hint {
  margin: -4px 0 14px;
  color: #8a808c;
  font-size: 0.8125rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .dash-row--game {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dash-row--game .dash-badge {
    grid-column: 2;
  }

  .dash-row--game .dash-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.dash-actions select {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #e8dde6;
  font: inherit;
  font-size: 0.75rem;
}

.dash-empty {
  margin: 0;
  padding: 40px 8px;
  text-align: left;
  color: #7a707c;
  font-size: 0.875rem;
}

/* —— Mobile polish (phone only) —— */
@media (max-width: 720px) {
  .dash-page .home-main {
    padding-left: 12px;
    padding-right: 12px;
    overflow-x: hidden;
  }

  .dash-app,
  .dash-stage,
  .dash-shell {
    min-width: 0;
    max-width: 100%;
  }

  .dash-app {
    gap: 16px;
    padding-bottom: 36px;
  }

  .dash-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    margin: 0 -4px 14px;
    padding: 2px 4px 8px;
    scrollbar-width: none;
  }

  .dash-filters::-webkit-scrollbar {
    display: none;
  }

  .dash-filter {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
  }

  .dash-toolbar {
    align-items: center;
    margin-bottom: 12px;
  }

  .dash-toolbar .dash-btn--ghost {
    min-height: 40px;
    padding: 0 14px;
  }

  .dash-card {
    padding: 14px;
    border-radius: 14px;
  }

  .dash-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
  }

  .dash-card-head span {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .dash-pay-fee {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 8px 0 0;
  }

  .dash-pay-fee-toggle {
    min-height: 44px;
  }

  .dash-pay-fee-pct {
    width: 100%;
    justify-content: flex-end;
    min-height: 44px;
    height: 44px;
    box-sizing: border-box;
  }

  .dash-pay-fee-pct input {
    width: 72px;
    font-size: 1rem;
  }

  .dash-pay-toggle-face {
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .dash-mode-card {
    min-height: 52px;
    padding: 14px;
    border-radius: 14px;
  }

  .dash-field input,
  .dash-field select {
    min-height: 46px;
    font-size: 1rem;
  }

  .dash-switch {
    gap: 14px;
    padding: 4px 0;
    min-height: 48px;
  }

  .dash-switch-ui {
    width: 48px;
    height: 28px;
  }

  .dash-switch-ui::after {
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
  }

  .dash-switch input:checked + .dash-switch-ui::after,
  .dash-pay-toggle input:checked + .dash-pay-toggle-face .dash-switch-ui::after {
    transform: translateX(20px);
  }

  .dash-help,
  .dash-help--soft,
  .dash-discord-guide {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .dash-help code,
  .dash-discord-guide code {
    font-size: 0.68rem;
  }

  .dash-price-preview {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .dash-row {
    padding: 12px;
  }

  .dash-row--pay .dash-row-amt {
    font-size: 1rem;
  }

  .dash-row-copy strong {
    font-size: 0.9rem;
  }

  .dash-row-copy > span {
    font-size: 0.78rem;
  }

  .dash-metric {
    padding: 12px;
    gap: 10px;
  }

  .dash-metric dd {
    font-size: 1.15rem;
  }

  .dash-metrics--orders-only {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-top-hero {
    gap: 12px;
  }

  .dash-metric--hero {
    min-height: 0;
    padding: 14px 16px;
  }

  .dash-metric-value {
    font-size: 1.75rem;
  }

  .dash-row--order .dash-row-copy strong {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .dash-row--order .dash-row-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dash-form-action--bar {
    bottom: 8px;
    padding: 12px;
    gap: 10px;
  }

  .dash-btn--save {
    min-width: 0;
    flex: 1 1 auto;
    min-height: 46px;
  }

  .dash-report-tabs {
    grid-template-columns: 1fr;
  }

  .dash-report-tab {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-panel,
  .dash-tab,
  .dash-btn,
  .dash-table tbody tr {
    animation: none;
    transition: none;
  }
}

/* Credits top-up modal */
body.dash-credits-modal-open {
  overflow: hidden;
}

.dash-credits-chip {
  cursor: pointer;
}

.dash-credits-chip:focus-visible {
  outline: 2px solid rgba(244, 114, 182, 0.7);
  outline-offset: 3px;
}

.dash-credits-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: end center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.dash-credits-modal[hidden] {
  display: none !important;
}

.dash-credits-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dash-credits-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 8, 0.72);
  backdrop-filter: blur(6px);
}

.dash-credits-modal-sheet {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  margin: 0;
  padding: 8px 18px 20px;
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #1c1320 0%, #120d16 100%);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(18px);
  transition: transform 0.2s ease;
}

.dash-credits-modal.is-open .dash-credits-modal-sheet {
  transform: none;
}

.dash-credits-modal-handle {
  width: 42px;
  height: 4px;
  margin: 4px auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.dash-credits-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-credits-modal-head h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.dash-credits-modal-head p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dash-credits-modal-body .dash-field {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.dash-credits-modal-body .dash-field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-credits-modal-body input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
}

.dash-credits-modal-body input:focus {
  outline: none;
  border-color: rgba(244, 114, 182, 0.55);
}

.dash-credits-modal-msg {
  margin: 0 0 12px;
  color: #fca5a5;
  font-size: 0.8125rem;
}

.dash-credits-modal-msg[hidden] {
  display: none !important;
}

.dash-credits-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-credits-modal-actions .dash-btn {
  flex: 1 1 auto;
  min-height: 44px;
}

.dash-credits-qr {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: 4px;
}

.dash-credits-qr[hidden] {
  display: none !important;
}

.dash-credits-qr-img {
  width: min(280px, 72vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.dash-credits-qr-img[hidden] {
  display: none !important;
}

.dash-credits-success {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 12px 6px;
  text-align: center;
}

.dash-credits-success[hidden] {
  display: none !important;
}

.dash-credits-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.dash-credits-success-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #bbf7d0;
  letter-spacing: 0.01em;
}

.dash-credits-qr.is-success .dash-credits-modal-actions {
  justify-content: center;
}

.dash-credits-qr-meta {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.dash-credits-qr-meta p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.dash-credits-qr-meta strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  word-break: break-all;
}

.dash-credits-qr-meta strong[data-status-kind="pending"] {
  color: #fbbf24;
}

.dash-credits-qr-meta strong[data-status-kind="success"] {
  color: #4ade80;
}

.dash-credits-qr-meta strong[data-status-kind="timeout"],
.dash-credits-qr-meta strong[data-status-kind="failed"],
.dash-credits-qr-meta strong[data-status-kind="cancelled"] {
  color: #f87171;
}

.dash-credits-qr-result {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.dash-credits-qr-result[hidden] {
  display: none !important;
}

.dash-credits-qr-result[data-status-kind="pending"] {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
}

.dash-credits-qr-result[data-status-kind="success"] {
  color: #bbf7d0;
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.3);
}

.dash-credits-qr-result[data-status-kind="timeout"],
.dash-credits-qr-result[data-status-kind="failed"],
.dash-credits-qr-result[data-status-kind="cancelled"] {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
}

.dash-credits-qr-hint {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (min-width: 720px) {
  .dash-credits-modal {
    place-items: center;
    padding: 24px;
  }

  .dash-credits-modal-sheet {
    border-radius: 20px;
    padding: 18px 20px 22px;
    transform: translateY(10px) scale(0.98);
  }

  .dash-credits-modal.is-open .dash-credits-modal-sheet {
    transform: none;
  }

  .dash-credits-modal-handle {
    display: none;
  }
}

/* ===== header-user.css ===== */

/* Header — logged-in user menu */

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-contact-pill {
  display: none !important;
}

.header-account {
  position: relative;
}

.header-avatar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-elevated);
  color: var(--accent-hover);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .header-avatar-btn:hover {
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 3px var(--accent-soft);
    color: var(--accent);
  }
}

.header-avatar-btn:active {
  border-color: var(--accent-hover);
  background: var(--accent-soft);
}

.header-avatar-fallback {
  display: block;
  flex-shrink: 0;
}

.header-avatar-letter {
  display: none !important;
}

/* Desktop dropdown (default look) */
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: min(300px, calc(100vw - 24px));
  padding: 14px 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: linear-gradient(180deg, #1a1520 0%, #100e14 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.account-menu[hidden] {
  display: none !important;
}

.account-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-bottom: 12px;
}

.account-menu-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1510;
  background: linear-gradient(145deg, var(--accent-deep) 0%, var(--accent) 100%);
  flex-shrink: 0;
}

.account-menu-who {
  min-width: 0;
}

.account-menu-name {
  display: block;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #faf7f9;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu-hint {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: #8b7f8e;
}

.account-menu-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.28);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.account-menu-balance small {
  display: block;
  font-size: 0.6875rem;
  color: #a99eaa;
  margin-bottom: 2px;
}

.account-menu-balance strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #f9a8d4;
  font-variant-numeric: tabular-nums;
}

.account-menu-balance-cta {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #ec4899;
}

@media (hover: hover) and (pointer: fine) {
  .account-menu-balance:hover {
    background: rgba(236, 72, 153, 0.16);
    border-color: rgba(236, 72, 153, 0.45);
  }
}

.account-menu-nav {
  margin-bottom: 10px;
}

.account-menu-group {
  margin: 10px 0 6px;
  padding: 0 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b7f8e;
}

.account-menu-group:first-child {
  margin-top: 0;
}

.account-menu-list {
  display: grid;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.account-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #e8e0e6;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-menu-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(236, 72, 153, 0.12);
  color: #f9a8d4;
  flex-shrink: 0;
}

.account-menu-ico svg {
  width: 16px;
  height: 16px;
}

.account-menu-label {
  font-size: 0.875rem;
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .account-menu-list a:hover {
    background: rgba(236, 72, 153, 0.12);
    color: #faf7f9;
  }

  .account-menu-logout:hover {
    background: rgba(127, 29, 29, 0.4);
  }
}

.account-menu-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.28);
  cursor: pointer;
  transition: background 0.15s ease;
}

.account-menu-logout svg {
  width: 18px;
  height: 18px;
}

.account-menu-backdrop {
  display: none;
}

/* เผื่อ header เก่าติด cache — ยังโชว์ลิงก์เมนูได้ */
.account-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.account-menu-grid a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8e0e6;
  text-decoration: none;
  text-align: left;
}

.account-menu-grid svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #f9a8d4;
}

.account-menu:has(.account-menu-nav) .account-menu-grid {
  display: none;
}

.mobile-nav-user {
  padding: 0 4px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-user-name {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #faf7f9;
}

.mobile-nav-user-balance {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--accent-hover);
}

.mobile-nav-cta--user {
  margin-top: 8px;
}

/* Drawer overlay — keyed off body class so it never depends on viewport media */

.header-guest[hidden],
.header-user[hidden],
.mobile-nav-cta[hidden],
.mobile-nav-user[hidden],
[data-header-guest-mobile][hidden],
[data-header-user-mobile][hidden],
[data-mobile-nav-user][hidden] {
  display: none !important;
}

.header-guest {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-guest .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
}

/* มือถือ/แท็บเล็ตแนวตั้ง: ลบปุ่มเข้าสู่ระบบ-สมัครออกจากหัวเว็บทั้งหมด */
.header-only-desktop {
  display: none !important;
}

.header-actions {
  gap: 6px;
}

.menu-toggle {
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .header-guest,
  .header-guest .btn,
  .header-only-desktop {
    display: none !important;
  }

  /* มือถือใช้เมนูขีดสามขีดอย่างเดียว — ซ่อนปุ่มโปรไฟล์ */
  .header-user,
  .header-avatar-btn {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .header-only-desktop {
    display: inline-flex !important;
  }

  .header-guest,
  .header-user {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* Account blocks inside hamburger drawer */
.mobile-nav-account {
  margin: 0 0 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-account[hidden] {
  display: none !important;
}

.mobile-nav-account .account-menu-head {
  margin-bottom: 10px;
}

.mobile-nav-account .account-menu-avatar {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.mobile-nav-account .account-menu-name {
  font-size: 0.9rem;
}

.mobile-nav-account .account-menu-balance {
  display: flex !important;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.mobile-nav-account .account-menu-balance strong {
  font-size: 1.15rem;
}

.mobile-nav-account .account-menu-nav {
  margin: 0;
}

.mobile-nav-account .account-menu-group {
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: 0.68rem;
}

.mobile-nav-account .account-menu-list a {
  min-height: 42px;
  padding: 8px 10px;
  font-size: 0.875rem;
}

.mobile-nav-account .account-menu-list a:active {
  background: rgba(236, 72, 153, 0.14);
  color: #faf7f9;
}

.mobile-nav-links[hidden] {
  display: none !important;
}

/* Mobile: no separate account bottom sheet — content lives in hamburger */
@media (max-width: 767.98px) {
  .account-menu-backdrop,
  .header-account > .account-menu {
    display: none !important;
  }

  body.account-menu-open {
    overflow: hidden;
  }
}

/* ===== mobile-tabbar.css ===== */

/* Mobile bottom tab bar — style inspired by app tab strip */

.mobile-tabbar {
  display: none;
}

@media (max-width: 767.98px) {
  .mobile-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 9000;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 6px;
    padding: 8px 8px 10px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 10, 16, 0.38);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }

  .mobile-tabbar[hidden],
  body.auth-c-page .mobile-tabbar,
  body.auth-layout .mobile-tabbar,
  body.dash-page .mobile-tabbar,
  body.mobile-nav-open .mobile-tabbar,
  body.wallet-modal-open .mobile-tabbar,
  body.pay-modal-open .mobile-tabbar,
  body.wallet-alert-open .mobile-tabbar,
  body.account-menu-open .mobile-tabbar {
    display: none !important;
  }

  .mobile-tabbar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 56px;
    margin: 0;
    padding: 6px 4px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  }

  .mobile-tabbar__ico {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: inherit;
  }

  .mobile-tabbar__ico svg {
    width: 15px;
    height: 15px;
  }

  .mobile-tabbar__label {
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .mobile-tabbar__item.is-active:not(.mobile-tabbar__item--cta) {
    color: #f9a8d4;
    background: rgba(236, 72, 153, 0.16);
    box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.28), 0 0 18px rgba(236, 72, 153, 0.18);
  }

  .mobile-tabbar__item.is-active:not(.mobile-tabbar__item--cta) .mobile-tabbar__ico {
    border-color: rgba(244, 114, 182, 0.55);
    background: rgba(236, 72, 153, 0.12);
  }

  .mobile-tabbar__item:active:not(.mobile-tabbar__item--cta) {
    transform: scale(0.97);
  }

  /* Center CTA — floating jewel orb */
  .mobile-tabbar__item--cta {
    z-index: 2;
    gap: 5px;
    min-height: 0;
    margin-top: -26px;
    padding: 0 2px 2px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    overflow: visible;
  }

  .mobile-tabbar__cta-orb,
  .mobile-tabbar__cta-orb * {
    pointer-events: none;
  }

  .mobile-tabbar__cta-orb {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
  }

  .mobile-tabbar__cta-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgba(244, 114, 182, 0.55) 0%,
      rgba(236, 72, 153, 0.18) 48%,
      transparent 72%
    );
    filter: blur(2px);
    animation: mobile-tab-cta-breathe 2.8s ease-in-out infinite;
    pointer-events: none;
  }

  .mobile-tabbar__cta-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
      from 0deg,
      #fff5fb 0%,
      #f9a8d4 18%,
      #ec4899 36%,
      #a855f7 54%,
      #22d3ee 72%,
      #f472b6 88%,
      #fff5fb 100%
    );
    animation: mobile-tab-cta-spin 2.8s linear infinite;
    pointer-events: none;
  }

  .mobile-tabbar__cta-ring::after {
    content: "";
    position: absolute;
    inset: 2.5px;
    border-radius: 50%;
    background: #120e16;
  }

  .mobile-tabbar__cta-core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.34) 0%, transparent 42%),
      linear-gradient(180deg, #ff7eb6 0%, #ec4899 48%, #be185d 100%);
    box-shadow:
      0 10px 24px rgba(190, 24, 93, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.22) inset,
      0 -6px 12px rgba(0, 0, 0, 0.18) inset;
    overflow: hidden;
  }

  .mobile-tabbar__cta-shine {
    position: absolute;
    top: -30%;
    left: -20%;
    width: 70%;
    height: 55%;
    border-radius: 50%;
    background: radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0) 70%
    );
    pointer-events: none;
  }

  .mobile-tabbar__item--cta .mobile-tabbar__ico {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
  }

  .mobile-tabbar__item--cta .mobile-tabbar__ico svg {
    width: 22px;
    height: 22px;
  }

  .mobile-tabbar__item--cta .mobile-tabbar__label {
    position: relative;
    z-index: 1;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffe4f1;
    text-shadow: 0 1px 8px rgba(236, 72, 153, 0.55);
  }

  .mobile-tabbar__item--cta.is-active .mobile-tabbar__cta-core,
  .mobile-tabbar__item--cta:active .mobile-tabbar__cta-core {
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.4) 0%, transparent 42%),
      linear-gradient(180deg, #ff9eca 0%, #f472b6 48%, #db2777 100%);
  }

  .mobile-tabbar__item--cta:active {
    transform: translateY(1px) scale(0.98);
  }

  .mobile-tabbar__item--cta.is-active {
    background: transparent;
    box-shadow: none;
  }

  @keyframes mobile-tab-cta-spin {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes mobile-tab-cta-breathe {
    0%,
    100% {
      opacity: 0.7;
      transform: scale(0.96);
    }
    50% {
      opacity: 1;
      transform: scale(1.05);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-tabbar__cta-ring,
    .mobile-tabbar__cta-glow {
      animation: none;
    }
  }

  /* leave room above floating tab bar */
  body.has-mobile-tabbar {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-tabbar .site-footer--compact {
    margin-bottom: 8px;
  }
}

/* ===== popon-express.css ===== */

/* Express app helpers */

.popon-flash {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.popon-flash--error {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.popon-flash--success {
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.35);
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.popon-flash--info {
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.wallet-card--form {
  cursor: default;
}

.wallet-card--form:hover {
  transform: none;
}

.wallet-card--form .wallet-input {
  margin: 0;
  text-align: left;
}

.wallet-card--form .wallet-card-body {
  padding-bottom: 16px;
}

.auth-c-panel .popon-flash {
  margin-bottom: 14px;
}

/* ===== styles-core.css ===== */

/* POPON — Game top-up UI */











:root {
  --bg-base: #0a070c;
  --bg-elevated: #120d14;
  --bg-card: rgba(28, 18, 32, 0.72);
  --bg-card-solid: #1a121f;
  --bg-card-hover: #241a28;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #fdf2f8;
  --text-secondary: #c4b5c9;
  --text-muted: #8b7a94;
  --accent: #f472b6;
  --accent-hover: #f9a8d4;
  --accent-deep: #ec4899;
  --accent-soft: rgba(244, 114, 182, 0.16);
  --accent-glow: rgba(236, 72, 153, 0.4);
  --trust: #34d399;
  --trust-soft: rgba(52, 211, 153, 0.12);
  --gold: #fbbf24;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.48);
  --shadow-glow: 0 0 56px rgba(236, 72, 153, 0.22);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --font: "IBM Plex Sans Thai", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --header-h: 80px;
  --max-w: 1320px;
  --btn-h: 48px;
  --input-h: 52px;
  --transition: 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  /* แถวออเดอร์หน้าแรกต้องเลื่อนได้ — ยกเว้นจากกฎตัด animation */
  .order-feed-track.is-marquee {
    animation: orderFeedScroll 42s linear infinite !important;
    animation-duration: 42s !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(219, 39, 119, 0.14), transparent 58%),
    linear-gradient(180deg, #0c090e 0%, var(--bg-base) 42%);
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

#main,
.site-header,
.site-footer,
.cookie-bar {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 7, 12, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--shadow-inset);
}

/* modern header must grow / not clip drawer leftovers */
.site-header.site-header--modern {
  height: auto;
  min-height: var(--header-h);
  overflow: visible;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  justify-self: start;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo:hover {
  color: var(--text-primary);
  opacity: 0.92;
  transform: translateY(-0.5px);
}

.brand-lockup-img {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(244, 114, 182, 0.22));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo:hover .brand-lockup-img,
.auth-c-logo:hover .brand-lockup-img,
.footer-brand-link:hover .brand-lockup-img {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 4px 12px rgba(244, 114, 182, 0.32));
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mascot {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(244, 114, 182, 0.28));
  transition: transform 0.2s ease;
}

.logo:hover .brand-mascot,
.auth-c-logo:hover .brand-mascot,
.footer-brand-link:hover .brand-mascot {
  transform: translateY(-1px) scale(1.04);
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.brand-logo-po {
  fill: #f4f0f5;
}

.brand-logo-pon {
  fill: #f472b6;
}

.brand-logo-swoosh {
  stroke: #ec4899;
  opacity: 0.75;
}

[data-popon-logo-size="lg"] .brand-lockup-img {
  height: 52px;
}

[data-popon-logo-size="lg"] .brand-mascot {
  width: 46px;
  height: 46px;
}

[data-popon-logo-size="lg"] .brand-logo {
  height: 42px;
}

.footer-brand .brand-lockup-img {
  height: 34px;
}

.footer-brand .brand-mascot {
  width: 32px;
  height: 32px;
}

.footer-brand .brand-logo {
  height: 32px;
}

.nav-main {
  display: none;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 4px;
  grid-column: 2;
}

@media (min-width: 768px) {
  .nav-main {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 8px;
  grid-column: 3;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), opacity var(--transition);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: #ec4899;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 24px rgba(236, 72, 153, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-accent-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(244, 114, 182, 0.45);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) {
    background: #f472b6;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 10px 28px rgba(236, 72, 153, 0.32);
  }

  .btn-accent-outline:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--accent-soft);
  }

  .btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-block {
  width: 100%;
}

.menu-toggle {
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 20px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav .nav-link {
  padding: 14px 12px;
}

/* —— Side drawer (slide from right) —— */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-backdrop.is-visible {
  display: block;
  opacity: 1;
}

.mobile-nav-backdrop[hidden] {
  display: none !important;
  opacity: 0;
}

.mobile-nav.mobile-nav--drawer {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  z-index: 2147483001 !important;
  width: min(86vw, 340px) !important;
  height: 100% !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  flex-direction: column !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: #161218 !important;
  color: #faf7f9 !important;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.65) !important;
  transform: translate3d(105%, 0, 0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 1 !important;
  pointer-events: none;
  filter: none !important;
}

.mobile-nav.mobile-nav--drawer.is-open {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

body.mobile-nav-open {
  overflow: hidden !important;
}

.mobile-nav--drawer .mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav--drawer .mobile-nav-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #faf7f9;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.mobile-nav--drawer .nav-link {
  display: block !important;
  padding: 14px 12px !important;
  border-radius: 10px;
  color: #f3eaf0 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.mobile-nav--drawer .nav-link::after {
  display: none !important;
}

.mobile-nav--drawer .nav-link:active {
  background: rgba(244, 114, 182, 0.14);
  color: #fff !important;
}

.mobile-nav--drawer .mobile-nav-cta {
  display: grid !important;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.mobile-nav--drawer .mobile-nav-cta[hidden],
.mobile-nav--drawer .mobile-nav-user[hidden],
.mobile-nav--drawer .mobile-nav-account[hidden],
.mobile-nav--drawer .mobile-nav-links[hidden] {
  display: none !important;
}

.mobile-nav--drawer .mobile-nav-user,
.mobile-nav--drawer .mobile-nav-account {
  margin-bottom: 8px;
}

.mobile-nav--drawer .mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Layout */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(1.625rem, 4.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-desc {
  margin: 0 0 28px;
  color: var(--text-secondary);
  max-width: 65ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Search & filters */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .toolbar {
    flex-direction: row;
    align-items: center;
  }
}

.search-wrap {
  flex: 1;
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px 0 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card-solid);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.chip:hover {
  border-color: rgba(244, 114, 182, 0.45);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.chip.is-active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), rgba(236, 72, 153, 0.12));
  color: var(--text-primary);
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}

@media (min-width: 768px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .game-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .game-grid--featured {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #1a1f2e 0%, var(--bg-card-solid) 100%);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), var(--shadow-inset);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(236, 72, 153, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.game-card.reveal {
  transform: translateY(18px);
  opacity: 0;
}

.game-card.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease,
    border-color var(--transition),
    box-shadow var(--transition);
}

.game-card.reveal.is-visible:hover {
  transform: translateY(-6px);
}

.game-card-thumb {
  aspect-ratio: 1;
  background: #0d1018;
  display: block;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.game-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 8, 13, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
  box-sizing: border-box;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-card:hover .game-card-thumb img {
  transform: scale(1.06);
}

.game-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.game-badge--uid {
  background: rgba(56, 189, 248, 0.25);
  color: #bae6fd;
}

.game-badge--idpass {
  background: rgba(245, 158, 11, 0.28);
  color: #fde68a;
}

.game-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-card-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.game-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
}

.game-card-cta svg {
  width: 16px;
  height: 16px;
}

.game-card:hover .game-card-cta {
  opacity: 1;
  transform: translateX(0);
}

/* Checkout layout — desktop: packages | sticky pay (UID inside pay card) */
.checkout-layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) min(440px, 40vw);
    align-items: start;
    gap: 28px;
  }

  .checkout-layout--fit {
    align-items: start;
  }

  .checkout-layout .pay-card {
    position: sticky;
    top: calc(var(--header-h) + 10px);
    align-self: start;
    max-height: calc(100dvh - var(--header-h) - 20px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  }

  .checkout-layout .pay-card::-webkit-scrollbar {
    width: 6px;
  }

  .checkout-layout .pay-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
  }

  .order-summary--compact {
    max-height: calc(100dvh - var(--header-h) - 48px);
    overflow: hidden;
  }
}

.panel {
  border: 1px solid rgba(244, 114, 182, 0.12);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(244, 114, 182, 0.05) 0%, var(--bg-card-solid) 42%);
  box-shadow: var(--shadow-card), var(--shadow-inset), 0 0 0 1px rgba(255, 255, 255, 0.03);
  padding: 22px;
}

@media (min-width: 768px) {
  .panel {
    padding: 28px;
  }
}

.panel-title {
  margin: 0 0 18px;
  font-size: 1.25rem;
  font-weight: 600;
}

.game-hero {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), transparent 55%), var(--bg-elevated);
}

.game-hero-thumb {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  background: #0d1018;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
}

@media (min-width: 768px) {
  .game-hero-thumb {
    width: 112px;
    height: 112px;
  }
}

.game-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-hero-text h1 {
  margin: 0 0 8px;
  font-size: 1.375rem;
}

.game-hero-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Product packages */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.package-option {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  position: relative;
  cursor: pointer;
  min-width: 0;
}

.package-option input,
.package-option .package-card {
  grid-column: 1;
  grid-row: 1;
}

.package-option input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 100px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
  appearance: none;
  -webkit-appearance: none;
}

.package-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100px;
  padding: 16px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card-solid);
  text-align: center;
  box-sizing: border-box;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  pointer-events: none;
}

.package-option input:checked + .package-card {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.12) 0%, var(--bg-card-solid) 100%);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.2);
}

.package-option input:focus-visible + .package-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.package-option:hover .package-card {
  border-color: var(--border-strong);
}

.package-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.package-price {
  display: block;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-label .required {
  color: var(--danger);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: var(--input-h);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checkbox-row label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.checkbox-row a {
  color: var(--accent);
}

/* Shared: label + hidden input overlay (radio / file) — ป้องกันบัคขอบเพี้ยนทุกหน้า */
.overlay-hit {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.overlay-hit > input {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
  appearance: none;
  -webkit-appearance: none;
}

.overlay-hit > .overlay-face {
  grid-column: 1;
  grid-row: 1;
  pointer-events: none;
}

input[type="file"] {
  appearance: none;
  -webkit-appearance: none;
}

input[type="file"]::-webkit-file-upload-button {
  visibility: hidden;
  width: 0;
  padding: 0;
  margin: 0;
}

/* Payment methods */
.payment-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.payment-tab {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.payment-tab input,
.payment-tab-inner {
  grid-column: 1;
  grid-row: 1;
}

.payment-tab input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 64px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
  appearance: none;
  -webkit-appearance: none;
}

.payment-tab-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card-solid);
  box-sizing: border-box;
  pointer-events: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.payment-tab input:checked + .payment-tab-inner {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.1) 0%, var(--bg-card-solid) 100%);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.15);
}

.payment-tab:hover .payment-tab-inner {
  border-color: var(--border-strong);
}

.payment-tab input:focus-visible + .payment-tab-inner {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.payment-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.payment-icon--promptpay {
  background: #003d6b;
  color: #fff;
}

.payment-icon--angpao {
  background: #e11d48;
  color: #fff;
}

.payment-icon--qr {
  background: #7c3aed;
  color: #fff;
}

.payment-tab-text strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.payment-tab-text span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.payment-panel {
  display: none;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  margin-top: 12px;
}

.payment-panel.is-visible {
  display: block;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, #fff 50%, transparent 50%) 0 0 / 20px 20px,
    linear-gradient(#fff 50%, transparent 50%) 0 0 / 20px 20px;
  background-color: #fff;
  opacity: 0.95;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 0.75rem;
  font-weight: 600;
}

.bank-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bank-info code {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 112px;
  padding: 24px 20px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-card-solid);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}

.upload-zone:hover,
.upload-zone:focus-within {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
}

.upload-zone-icon {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(236, 72, 153, 0.1);
  pointer-events: none;
}

.upload-zone p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.upload-zone-hint {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* Order summary (sticky) */
.order-summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  border: 1px solid rgba(236, 72, 153, 0.2);
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.06) 0%, var(--bg-card-solid) 120px);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row strong {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-strong);
}

.summary-total span {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.summary-total strong {
  font-size: 1.375rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.coupon-row .form-input {
  flex: 1;
}

/* Auth */
.auth-page {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card-solid);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  text-align: center;
}

.auth-sub {
  margin: 0 0 28px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-footer {
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* Terms list */
.terms-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.terms-list li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  background: var(--bg-elevated);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-inner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 16px 20px;
  background: var(--bg-card-solid);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-bar p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.cookie-bar.is-hidden {
  display: none;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

/* —— Premium sections —— */

.page-hero {
  position: relative;
  margin: 0 0 32px;
  padding: 28px 24px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, transparent 42%),
    linear-gradient(225deg, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    var(--bg-card-solid);
  box-shadow: var(--shadow-card), var(--shadow-inset);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fbcfe8;
  background: var(--accent-soft);
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.page-hero-eyebrow svg {
  width: 14px;
  height: 14px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.875rem, 4.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-hero-lead {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 52ch;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(15, 17, 26, 0.6);
  box-shadow: var(--shadow-inset);
}

.trust-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--gold);
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.trust-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.landing-hero {
  padding: 48px 20px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.landing-hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .landing-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

.landing-title {
  margin: 0 0 16px;
  font-size: clamp(2.125rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.landing-title .gradient-text {
  color: var(--accent-hover);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.landing-lead {
  margin: 0 0 28px;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 48ch;
}

.landing-visual {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  padding: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.landing-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(236, 72, 153, 0.15), transparent 50%);
  pointer-events: none;
}

.landing-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}

.landing-stat {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.landing-stat strong {
  display: block;
  font-size: 1.375rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.landing-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.service-cards {
  display: grid;
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 48px;
}

@media (min-width: 768px) {
  .service-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-inset);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(236, 72, 153, 0.3);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}

.service-card h2 {
  margin: 0 0 8px;
  font-size: 1.3125rem;
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Auth shell */
.auth-shell {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr 1fr;
    padding-top: 40px;
    gap: 32px;
  }
}

.auth-showcase {
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(165deg, rgba(236, 72, 153, 0.14) 0%, transparent 45%),
    linear-gradient(15deg, rgba(52, 211, 153, 0.08) 0%, transparent 40%),
    var(--bg-card-solid);
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .auth-showcase {
    display: flex;
  }
}

.auth-showcase h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.auth-showcase p {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 36ch;
}

.auth-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-benefits li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-benefits svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--trust);
}

.auth-panel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card-solid);
  padding: 36px 32px;
  box-shadow: var(--shadow-card), var(--shadow-inset);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  text-align: left;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 0 0 28px;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-switch a {
  font-weight: 600;
}

.auth-forgot {
  display: block;
  text-align: right;
  margin: -8px 0 16px;
  font-size: 0.8125rem;
}

.form-input:focus,
.search-input:focus {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-status {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.form-status.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.form-status.is-success {
  background: var(--trust-soft);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.password-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.password-wrap .form-input {
  padding-right: 48px;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 48px 20px 32px;
  background: rgba(10, 12, 18, 0.95);
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 28ch;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-trust {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.footer-badge svg {
  width: 14px;
  height: 14px;
  color: var(--trust);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 16px auto 0;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    text-align: left;
  }
}

.header-actions .btn-signup {
  display: none;
}

@media (min-width: 480px) {
  .header-actions .btn-signup {
    display: inline-flex;
  }
}

.search-input,
.form-input {
  transition: border-color var(--transition), box-shadow var(--transition);
}

.chip.is-active {
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.service-card.reveal {
  transform: translateY(16px);
}

.service-card.reveal.is-visible {
  transform: translateY(0);
  transition: transform 0.5s var(--transition), border-color var(--transition);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .game-card.reveal,
  .service-card.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Catalog & featured */
.page--catalog {
  padding-bottom: 56px;
}

.page-hero--catalog {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 32px 24px 36px;
}

@media (min-width: 900px) {
  .page-hero--catalog {
    grid-template-columns: 1fr auto;
    padding: 36px 32px 40px;
  }
}

.page-hero--catalog .page-hero-inner {
  max-width: 560px;
}

.page-hero-aside {
  display: none;
}

@media (min-width: 900px) {
  .page-hero-aside {
    display: block;
  }
}

.hero-preview-stack {
  position: relative;
  width: 200px;
  height: 200px;
}

.hero-preview-stack img {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.hero-preview-stack img:nth-child(1) {
  top: 0;
  left: 0;
  transform: rotate(-8deg);
}

.hero-preview-stack img:nth-child(2) {
  top: 44px;
  left: 52px;
  z-index: 2;
  transform: rotate(4deg);
}

.hero-preview-stack img:nth-child(3) {
  bottom: 0;
  right: 0;
  transform: rotate(10deg);
}

.page-hero-eyebrow--gold {
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
}

.page-hero--idpass {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, transparent 42%),
    linear-gradient(225deg, rgba(56, 189, 248, 0.06) 0%, transparent 40%),
    var(--bg-card-solid);
}

.trust-strip--compact {
  margin-bottom: 24px;
}

.catalog-section {
  margin-top: 4px;
}

.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.catalog-title {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.catalog-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 48ch;
}

.catalog-count {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.toolbar-panel {
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(12, 14, 22, 0.85);
  box-shadow: var(--shadow-inset);
}

.toolbar-panel .toolbar {
  margin-bottom: 0;
}

.search-input:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.search-empty {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  border: 1px dashed var(--border-strong);
  background: rgba(0, 0, 0, 0.2);
}

.catalog-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.catalog-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin: 0 3px;
  animation: catalog-pulse 1s ease-in-out infinite;
}

.catalog-loading-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.catalog-loading-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes catalog-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.featured-section {
  padding: 8px 20px 40px;
  max-width: calc(var(--max-w) + 40px);
  margin: 0 auto;
}

.featured-inner {
  padding: 28px 20px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(236, 72, 153, 0.06) 0%, transparent 35%),
    var(--bg-card-solid);
  box-shadow: var(--shadow-card);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 22px;
}

.section-eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.section-link:hover {
  color: var(--accent);
}

.section-link svg {
  width: 18px;
  height: 18px;
}

.service-cards {
  margin-top: 8px;
}

.service-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, #1c2232 0%, var(--bg-card-solid) 100%);
}

.service-card:hover {
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
  .game-card-cta {
    opacity: 1;
    transform: none;
  }
}

/* —— POPON: Landing & Auth v2 —— */

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1.0625rem;
}

.landing-hero--pop {
  position: relative;
  padding: 32px 20px 40px;
  max-width: none;
  overflow: hidden;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 20% -5%, rgba(236, 72, 153, 0.18), transparent 52%),
    radial-gradient(ellipse 40% 35% at 100% 30%, rgba(244, 114, 182, 0.08), transparent 55%);
}

.page-hero-eyebrow--home {
  margin-top: 0;
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .landing-hero--pop {
    padding: 48px 20px 56px;
  }

  .landing-hero-content {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

/* Landing hero — payment methods (replaces pay-chips) */

.landing-pay-methods {
  margin-bottom: 28px;
}

.landing-slogans {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.landing-slogan {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.14), rgba(0, 0, 0, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.landing-pay-eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.landing-pay-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-pay-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 12, 22, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-pay-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px;
}

.landing-pay-row-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.landing-pay-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.landing-pay-row-text strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.landing-pay-row-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.landing-pay-row-badge {
  display: none;
}

@media (min-width: 640px) {
  .landing-pay-row {
    padding: 14px 16px;
  }

  .landing-pay-row-text strong {
    font-size: 1rem;
  }
}

.landing-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-pay-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 114, 182, 0.18);
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.08), rgba(0, 0, 0, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.landing-pay-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.landing-pay-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .landing-pay-grid {
    gap: 12px;
  }

  .landing-pay-item {
    padding: 16px 10px;
  }

  .landing-pay-logo {
    width: 52px;
    height: 52px;
  }

  .landing-pay-name {
    font-size: 0.8125rem;
  }
}

.pay-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-secondary);
}

.pay-chip--pp {
  border-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.pay-chip--ap {
  border-color: rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}

.pay-chip--qr {
  border-color: rgba(167, 139, 250, 0.35);
  color: #ddd6fe;
}

.landing-showcase {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  min-height: 0;
}

@media (min-width: 960px) {
  .landing-showcase {
    max-width: 340px;
    margin-inline: auto 0;
  }
}

.landing-showcase-glow {
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(236, 72, 153, 0.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.landing-showcase-panel {
  position: relative;
  z-index: 1;
  padding: 2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(244, 114, 182, 0.45),
    rgba(236, 72, 153, 0.06) 45%,
    rgba(167, 139, 250, 0.28)
  );
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transform: none;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

@media (min-width: 960px) {
  .landing-showcase:hover .landing-showcase-panel {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 32px rgba(236, 72, 153, 0.08);
  }
}

.landing-showcase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px;
  border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0;
  background: linear-gradient(180deg, rgba(32, 22, 38, 0.98), rgba(22, 14, 26, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-showcase-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.landing-showcase-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.55);
  animation: landingLivePulse 2s ease-in-out infinite;
}

@keyframes landingLivePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-showcase-live-dot {
    animation: none;
  }

  .landing-showcase-panel {
    transform: none;
  }

  .landing-showcase:hover .landing-showcase-panel {
    transform: none;
  }
}

.landing-showcase-tag {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--accent-hover);
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.1);
}

.landing-mosaic {
  display: grid;
  gap: 5px;
  padding: 8px 10px 10px;
  background: linear-gradient(165deg, rgba(18, 12, 22, 0.98), rgba(8, 5, 10, 0.96));
}

.landing-mosaic--bento {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  min-height: 0;
}

.landing-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.35);
  aspect-ratio: 1;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  opacity: 0.75;
}

.landing-tile img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.landing-tile--feature,
.landing-tile:nth-child(2),
.landing-tile:nth-child(3),
.landing-tile:nth-child(4),
.landing-tile:nth-child(5),
.landing-tile:nth-child(6) {
  grid-column: auto;
  grid-row: auto;
}

.landing-showcase-panel:hover .landing-tile:hover {
  border-color: rgba(244, 114, 182, 0.4);
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.15);
  z-index: 2;
}

.landing-showcase-panel:hover .landing-tile:hover img {
  transform: scale(1.04);
}

.landing-showcase-metrics {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  border-radius: 0 0 calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px);
  background: linear-gradient(180deg, rgba(28, 18, 34, 0.95), rgba(20, 12, 24, 0.98));
  border-top: 1px solid rgba(244, 114, 182, 0.12);
}

.landing-metric-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.landing-metric-value {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(120deg, #fff 0%, var(--accent-hover) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.landing-metric-value small {
  font-size: 0.6875rem;
  font-weight: 600;
  opacity: 0.85;
}

.landing-metric-value--sm {
  font-size: 1rem;
}

.landing-metric--end {
  text-align: right;
}

.landing-metric--accent {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.28);
}

.landing-metric--accent svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 559px) {
  .landing-showcase {
    max-width: min(100%, 300px);
  }
}

/* legacy float card — removed from markup; keep aliases unused */

.landing-float-card {
  display: none;
}

.landing-steps {
  padding: 8px 20px 32px;
}

.landing-steps-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .landing-steps-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.landing-step {
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.08), var(--bg-card-solid));
}

.landing-step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  margin-bottom: 12px;
}

.landing-step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.landing-step p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.landing-trust-wrap {
  padding-top: 0;
  padding-bottom: 8px;
}

.trust-strip--landing {
  margin-bottom: 0;
}

.service-cards--duo {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .service-cards--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.site-header {
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 7, 12, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(244, 114, 182, 0.15);
}

.featured-section .section-head.reveal,
.catalog-section .catalog-head.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.featured-section .section-head.reveal.is-visible,
.catalog-section .catalog-head.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-cards--pop .service-card {
  background: linear-gradient(165deg, rgba(244, 114, 182, 0.1) 0%, var(--bg-card-solid) 55%);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.service-card-arrow {
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.service-card-arrow svg {
  width: 20px;
  height: 20px;
}

.service-card:hover .service-card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.landing-cta {
  padding: 0 20px 56px;
}

.landing-cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(244, 114, 182, 0.25);
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.18), transparent 50%),
    var(--bg-card-solid);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .landing-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 36px;
  }
}

.landing-cta-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.landing-cta-inner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

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

/* Auth layout */
.auth-layout .site-footer {
  padding-top: 20px;
  padding-bottom: 24px;
}

.auth-page {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  overflow: hidden;
}

.auth-page-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(236, 72, 153, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(219, 39, 119, 0.2), transparent 50%);
}

.auth-shell--pop {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  align-items: stretch;
}

.auth-showcase--pop {
  display: flex;
  padding: 28px 24px;
  background:
    linear-gradient(160deg, rgba(236, 72, 153, 0.22) 0%, transparent 48%),
    linear-gradient(340deg, rgba(219, 39, 119, 0.12) 0%, transparent 45%),
    var(--bg-card-solid);
  border-color: rgba(244, 114, 182, 0.2);
}

@media (min-width: 900px) {
  .auth-showcase--pop {
    padding: 44px 40px;
  }
}

.auth-showcase-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  text-decoration: none;
}

.auth-showcase-brand:hover {
  opacity: 0.9;
}

.auth-mini-games {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.auth-mini-games img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.auth-promo {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(244, 114, 182, 0.35);
  background: rgba(0, 0, 0, 0.2);
}

.auth-promo-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fbcfe8;
  background: var(--accent-soft);
}

.auth-promo p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.auth-card--pop {
  max-width: 500px;
  padding: 32px 28px;
  border-color: rgba(244, 114, 182, 0.22);
  background: linear-gradient(180deg, rgba(26, 18, 31, 0.98), rgba(18, 12, 22, 0.98));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(244, 114, 182, 0.08);
}

.auth-card-head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.auth-card-head .auth-sub {
  margin-bottom: 0;
}

.form-input--soft {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.1);
}

.form-row-2 {
  display: grid;
  gap: 0;
}

@media (min-width: 520px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .form-row-2 .form-group {
    margin-bottom: 16px;
  }
}

.social-btns--row {
  flex-direction: row;
}

.social-btns--row .btn-social {
  flex: 1;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.btn-social:hover {
  border-color: rgba(244, 114, 182, 0.4);
  background: var(--accent-soft);
  color: var(--text-primary);
}

.auth-shell--narrow {
  max-width: 900px;
}

@media (max-width: 899px) {
  .auth-shell--pop {
    padding-top: 16px;
  }

  .auth-panel-wrap {
    align-items: flex-start;
  }

  .auth-card--pop {
    padding: 28px 22px;
  }
}

/* Compact footer (overrides block above) */
.site-footer.site-footer--compact {
  padding: 0;
  background: var(--bg-base);
}

/* ===== pricing-panel.css ===== */

/* Pricing panel — loaded last so nothing overrides it */
.dash-pricing,
[data-pricing-panel] {
  --price-line: rgba(255, 255, 255, 0.1);
  --price-pink: #f472b6;
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 20px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(236, 72, 153, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: #fff;
  font-family: "IBM Plex Sans Thai", "Plus Jakarta Sans", sans-serif;
}

.dash-pricing [hidden],
[data-pricing-panel] [hidden],
.dash-price-field[hidden],
.dash-price-amount[hidden] {
  display: none !important;
}

.dash-pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.dash-pricing-head-copy strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
}

.dash-pricing-head-copy span {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.dash-pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-pricing-game {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.24);
}

.dash-pricing-game-copy h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.dash-pricing-game-copy p {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
}

.dash-pricing-edit {
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 100%;
}

.dash-price-seg {
  display: inline-flex !important;
  align-items: center;
  padding: 4px !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  gap: 3px !important;
  flex-shrink: 0;
}

button.dash-price-seg-btn,
.dash-price-seg-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.62) !important;
  min-height: 34px !important;
  min-width: 44px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-family: inherit !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

button.dash-price-seg-btn:hover,
.dash-price-seg-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

button.dash-price-seg-btn.is-on,
.dash-price-seg-btn.is-on {
  background: linear-gradient(135deg, #fb7185, #db2777) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(236, 72, 153, 0.4) !important;
}

.dash-price-amount {
  min-width: 0;
}

.dash-price-field {
  display: grid;
  gap: 0;
}

.dash-price-field > span {
  display: none;
}

.dash-price-input {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.dash-price-input .dash-baht,
.dash-price-input .dash-unit {
  font-style: normal !important;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.dash-price-input input {
  width: 4.25rem;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  padding: 4px 0;
}

.dash-pricing-list-head {
  margin: 0 0 10px;
}

.dash-pricing-list-head h4 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.dash-pricing-list {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow-x: auto;
  background: rgba(8, 6, 10, 0.65);
}

.dash-pricing-table {
  display: table !important;
  width: 100%;
  min-width: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
}

@media (min-width: 721px) {
  .dash-pricing-table {
    min-width: 920px;
  }
}

.dash-pricing-table thead {
  display: table-header-group !important;
}

.dash-pricing-table tbody {
  display: table-row-group !important;
}

.dash-pricing-table tr {
  display: table-row !important;
}

.dash-pricing-col-name {
  width: 26%;
}

.dash-pricing-col-num {
  width: 12%;
}

.dash-pricing-col-edit {
  width: 38%;
}

.dash-pricing-table th,
.dash-pricing-table td {
  display: table-cell !important;
  padding: 14px 12px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--price-line) !important;
  box-sizing: border-box !important;
}

.dash-pricing-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #17121a !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45) !important;
  white-space: nowrap;
}

.dash-pricing-table thead th:nth-child(1) {
  text-align: left;
  padding-left: 18px !important;
}

.dash-pricing-table thead th:nth-child(2),
.dash-pricing-table thead th:nth-child(3),
.dash-pricing-table thead th:nth-child(4) {
  text-align: right !important;
}

.dash-pricing-table thead th:nth-child(5) {
  text-align: right !important;
  padding-right: 18px !important;
}

.dash-pricing-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.dash-pricing-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.dash-pricing-tr[data-mode]:not([data-mode="inherit"]) td {
  background: rgba(236, 72, 153, 0.08);
}

.dash-pricing-td-name {
  padding-left: 18px !important;
}

.dash-pricing-td-name strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-style: normal !important;
}

.dash-pricing-td-num {
  text-align: right !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
  padding-left: 8px !important;
  padding-right: 16px !important;
}

.dash-pricing-money {
  display: inline-flex !important;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  min-width: 5.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  font-style: normal !important;
  line-height: 1;
}

.dash-pricing-money .dash-baht,
.dash-pricing-money .dash-amt {
  font-style: normal !important;
  font-weight: inherit;
}

.dash-pricing-money .dash-baht {
  font-size: 0.72rem;
  opacity: 0.75;
}

.dash-pricing-money .dash-amt {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.dash-pricing-cost {
  color: rgba(255, 255, 255, 0.82) !important;
}

.dash-pricing-sell {
  color: #fda4cf !important;
}

.dash-pricing-profit {
  color: #86efac !important;
}

.dash-pricing-td-edit {
  text-align: right !important;
  padding-right: 18px !important;
  white-space: nowrap;
}

.dash-pricing-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--price-line);
}

.dash-pricing-hint {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.dash-pricing-msg {
  margin: 0;
  font-size: 0.85rem;
  color: #86efac;
}

.dash-empty-inline {
  margin: 8px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 860px) {
  button.dash-price-seg-btn,
  .dash-price-seg-btn {
    min-height: 36px !important;
    min-width: 0 !important;
    flex: 1 1 0;
    padding: 0 8px !important;
    font-size: 0.78rem !important;
  }
}

/* Mobile: stack rows as cards instead of wide table */
@media (max-width: 720px) {
  .dash-pricing,
  [data-pricing-panel] {
    padding: 12px;
    border-radius: 16px;
    margin-left: 0;
    margin-right: 0;
  }

  .dash-pricing-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .dash-pricing-head-copy strong {
    font-size: 1rem;
  }

  .dash-pricing-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .dash-pricing-actions .dash-btn {
    width: 100%;
    min-width: 0;
    padding: 0 6px;
    justify-content: center;
  }

  .dash-pricing-game {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }

  .dash-pricing-game .dash-pricing-edit {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .dash-pricing-game .dash-price-seg {
    width: 100%;
    display: flex !important;
  }

  .dash-pricing-game .dash-price-amount,
  .dash-pricing-game .dash-price-input,
  .dash-pricing-game .dash-price-input input {
    width: 100%;
  }

  .dash-pricing-list {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  .dash-pricing-table,
  .dash-pricing-table colgroup,
  .dash-pricing-table thead,
  .dash-pricing-table tbody,
  .dash-pricing-table tr,
  .dash-pricing-table th,
  .dash-pricing-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .dash-pricing-table {
    min-width: 0 !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
  }

  .dash-pricing-table colgroup,
  .dash-pricing-table thead {
    display: none !important;
  }

  .dash-pricing-table tbody {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }

  .dash-pricing-table tr.dash-pricing-tr {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px 10px;
    padding: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    background: rgba(8, 6, 10, 0.72) !important;
    box-sizing: border-box;
  }

  .dash-pricing-table tr.dash-pricing-tr[data-mode]:not([data-mode="inherit"]) {
    border-color: rgba(244, 114, 182, 0.28) !important;
    background: rgba(236, 72, 153, 0.1) !important;
  }

  .dash-pricing-table th,
  .dash-pricing-table td {
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }

  .dash-pricing-td-name {
    grid-column: 1 / -1;
    padding: 0 0 2px !important;
  }

  .dash-pricing-td-name strong {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 0.95rem;
  }

  .dash-pricing-td-num {
    text-align: left !important;
    padding: 0 !important;
  }

  .dash-pricing-td-num b,
  .dash-pricing-money {
    min-width: 0 !important;
    justify-content: flex-start !important;
    font-size: 0.88rem;
  }

  .dash-pricing-td-num::before {
    display: block;
    margin-bottom: 3px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
  }

  .dash-pricing-td-num:nth-child(2)::before { content: "ต้นทุน"; }
  .dash-pricing-td-num:nth-child(3)::before { content: "ขาย"; }
  .dash-pricing-td-num:nth-child(4)::before { content: "กำไร"; }

  .dash-pricing-td-edit {
    grid-column: 1 / -1;
    text-align: left !important;
    padding: 6px 0 0 !important;
    white-space: normal;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .dash-pricing-td-edit .dash-pricing-edit {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .dash-pricing-td-edit .dash-price-seg {
    width: 100%;
    display: flex !important;
  }

  .dash-pricing-td-edit .dash-price-amount,
  .dash-pricing-td-edit .dash-price-input,
  .dash-pricing-td-edit .dash-price-input input {
    width: 100%;
  }

  .dash-pricing-foot {
    flex-direction: column;
    align-items: stretch;
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(14, 10, 16, 0.96) 24%);
    padding-bottom: 4px;
    z-index: 2;
  }

  .dash-pricing-foot .dash-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .dash-pricing-actions {
    grid-template-columns: 1fr;
  }

  .dash-pricing-actions .dash-btn {
    min-height: 40px;
  }
}
