:root {
  --gold: #7ee23a;
  --gold-dark: #22c55e;
  --orange: #16a34a;
  --ink: #151515;
  --muted: #8a8f98;
  --line: #ececec;
  --panel: #ffffff;
  --page: #f3f3f3;
  --soft: #ecfff2;
  --green: #16a34a;
  --red: #16a34a;
  --product-card-bg: #102519;
  --product-card-hover: #12301d;
  --product-card-text: #f4fff7;
  --product-card-price: #4ade80;
  --product-card-meta: #5f7467;
  --product-card-button: #22c55e;
  --product-card-button-text: #f6fff8;
  --gold-glow: rgba(126, 226, 58, .24);
  --orange-glow: rgba(22, 163, 74, .14);
  --shadow: 0 14px 40px rgba(18, 18, 18, .08);
  --deep-shadow: 0 24px 70px rgba(35, 22, 0, .14);
  --glass: rgba(255, 255, 255, .82);
}

@media (min-width: 981px) {
  .game-menu-page .game-package-layout {
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
  }

  .game-menu-page .game-topup-form {
    order: 1 !important;
    position: sticky !important;
    top: 96px !important;
    width: auto !important;
    margin: 0 !important;
  }

  .game-menu-page .pack-list-panel {
    order: 2 !important;
  }

  .game-menu-page .pack-card-grid {
    max-height: calc(100vh - 300px) !important;
  }
}

/* premium products page breathing room */
body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
  box-sizing: border-box !important;
  width: min(100% - 96px, 1480px) !important;
  max-width: 1480px !important;
  margin-inline: auto !important;
}

body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
  box-sizing: border-box !important;
  padding: 24px 28px 30px !important;
  border-radius: 14px !important;
}

body.premium-fullscreen:not(.premium-detail-open) .premium-grid {
  gap: 18px !important;
}

@media (max-width: 900px) {
  body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
    width: min(100% - 56px, 720px) !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
    padding: 18px 18px 22px !important;
  }
}

@media (max-width: 560px) {
  body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
    width: min(100% - 40px, 520px) !important;
  }

body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
    padding: 14px 14px 18px !important;
    border-radius: 16px !important;
  }
}

/* final button contrast pass */
#profileView .profile-detail-btn,
.wallet-tx-card .profile-detail-btn,
.profile-order-card .profile-detail-btn {
  border: 1px solid #047857 !important;
  background: linear-gradient(135deg, #16a34a, #047857) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22) !important;
  box-shadow: 0 10px 22px rgba(4, 120, 87, .24) !important;
}

#profileView .profile-detail-btn span,
#profileView .profile-detail-btn .icon,
.wallet-tx-card .profile-detail-btn span,
.wallet-tx-card .profile-detail-btn .icon,
.profile-order-card .profile-detail-btn span,
.profile-order-card .profile-detail-btn .icon {
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
  background: transparent !important;
}

.gold-btn:not(:disabled),
.primary-btn:not(:disabled),
.pay-transaction-btn:not(:disabled),
.product-save-btn:not(:disabled),
.small-btn.gold-btn:not(:disabled) {
  color: #052e16 !important;
  font-weight: 900 !important;
}

.gold-btn:not(:disabled) .icon,
.primary-btn:not(:disabled) .icon,
.pay-transaction-btn:not(:disabled) .icon,
.product-save-btn:not(:disabled) .icon,
.small-btn.gold-btn:not(:disabled) .icon {
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
  background: transparent !important;
}

/* premium mobile scale: match the game top-up catalog rhythm */
@media (max-width: 760px) {
  body.premium-fullscreen:not(.premium-detail-open) .premium-page {
    padding-top: 8px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
    width: min(100% - 10px, 440px) !important;
    max-width: 440px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-shop-head {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
    padding: 16px 4px 18px !important;
    border-radius: 18px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-section-head {
    margin-bottom: 12px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-section-head h2,
  body.premium-fullscreen:not(.premium-detail-open) .premium-section-head h3 {
    font-size: 22px !important;
    line-height: 1.12 !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px 4px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card {
    grid-template-rows: 118px minmax(84px, auto) 30px !important;
    min-height: 232px !important;
    border-radius: 13px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-img {
    height: 118px !important;
    min-height: 118px !important;
    border-radius: 13px 13px 0 0 !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-body {
    min-height: 84px !important;
    gap: 5px !important;
    padding: 7px 7px 0 !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-name,
  body.premium-fullscreen:not(.premium-detail-open) .premium-card-body > strong {
    min-height: 28px !important;
    font-size: 10px !important;
    line-height: 1.18 !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-provider-line,
  body.premium-fullscreen:not(.premium-detail-open) .premium-detail-line,
  body.premium-fullscreen:not(.premium-detail-open) .premium-soldout-badge {
    display: none !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-price {
    min-height: 22px !important;
    padding: 4px 5px !important;
    border-radius: 999px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-price b,
  body.premium-fullscreen:not(.premium-detail-open) .premium-sale-price b {
    font-size: 12px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-price em,
  body.premium-fullscreen:not(.premium-detail-open) .premium-sale-price em,
  body.premium-fullscreen:not(.premium-detail-open) .premium-sale-price small {
    font-size: 8px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-bottom {
    grid-template-columns: minmax(0, 1fr) 28px !important;
    min-height: 30px !important;
    gap: 5px !important;
    padding: 0 6px 6px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-stock-line,
  body.premium-fullscreen:not(.premium-detail-open) .premium-card-action {
    min-height: 24px !important;
    border-radius: 999px !important;
    font-size: 8.5px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-action {
    width: 28px !important;
    padding: 0 !important;
  }
}

/* admin game price rows: keep controls inside the panel */
#adminView .game-price-admin .admin-table-wrap {
  overflow-x: auto !important;
  max-width: 100% !important;
}

#adminView .game-price-table {
  width: 100% !important;
}

#adminView .admin-pack-price-card,
#adminView .admin-pack-price-card * {
  box-sizing: border-box !important;
}

#adminView .admin-pack-save .gold-btn {
  min-width: 72px !important;
  white-space: nowrap !important;
}

@media (max-width: 1180px) {
  #adminView .game-price-table {
    min-width: 0 !important;
  }

  #adminView .admin-pack-price-card {
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.15fr) minmax(220px, .95fr) auto !important;
  }

  #adminView .admin-pack-status-fields {
    grid-column: 2 / span 2 !important;
  }

  #adminView .admin-pack-save {
    align-self: end !important;
  }
}

@media (max-width: 900px) {
  #adminView .game-price-admin .admin-table-wrap {
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }

  #adminView .game-price-table,
  #adminView .game-price-table tbody,
  #adminView .game-price-table tr,
  #adminView .game-price-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #adminView .game-price-table thead {
    display: none !important;
  }

  #adminView .admin-pack-price-card {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
  }

  #adminView .admin-pack-main {
    grid-template-columns: 74px minmax(0, 1fr) !important;
  }

  #adminView .admin-pack-main .admin-pack-image-preview {
    width: 74px !important;
    height: 74px !important;
  }

  #adminView .admin-pack-image-fields,
  #adminView .admin-pack-price-fields,
  #adminView .admin-pack-status-fields,
  #adminView .admin-pack-save {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #adminView .admin-pack-price-fields {
    grid-template-columns: 1fr !important;
  }

  #adminView .admin-pack-upload-row {
    grid-template-columns: 1fr !important;
  }

  #adminView .admin-pack-upload-row .small-btn,
  #adminView .admin-pack-save .gold-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 980px) {
  .game-menu-page .game-package-layout {
    grid-template-columns: 1fr !important;
  }

  .game-menu-page .pack-list-panel {
    order: 1 !important;
  }

  .game-menu-page .game-topup-form {
    order: 2 !important;
    position: static !important;
    width: min(100%, 560px) !important;
    margin: 0 auto !important;
  }

  .game-menu-page .pack-card-grid {
    max-height: none !important;
  }
}

body.premium-fullscreen .premium-selected-pill-img,
body.premium-fullscreen .premium-selected-img {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

body.premium-fullscreen .premium-selected-pill-img img,
body.premium-fullscreen .premium-selected-img img {
  position: absolute;
  inset: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  box-sizing: border-box;
  padding: 0;
  object-fit: contain !important;
}

body #adminView .coupon-history-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

body #adminView .coupon-history-wrap .admin-section-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(34, 197, 94, .16);
}

body #adminView .coupon-history-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
  border: 0;
  border-radius: 0;
  border-collapse: separate;
  border-spacing: 0;
}

body #adminView .coupon-history-table th {
  padding: 14px 18px;
  color: #0f2f1f;
  background: #effdf5;
  border-bottom: 1px solid rgba(34, 197, 94, .18);
  font-size: 13px;
  font-weight: 900;
}

body #adminView .coupon-history-table th:nth-child(1) { width: 28%; }
body #adminView .coupon-history-table th:nth-child(2) { width: 18%; }
body #adminView .coupon-history-table th:nth-child(3) { width: 18%; }
body #adminView .coupon-history-table th:nth-child(4) { width: 18%; }
body #adminView .coupon-history-table th:nth-child(5) { width: 18%; }

body #adminView .coupon-history-table td {
  padding: 18px;
  border-bottom: 1px solid rgba(34, 197, 94, .14);
  color: #102033;
  vertical-align: middle;
}

body #adminView .coupon-history-table tr:last-child td {
  border-bottom: 0;
}

body #adminView .coupon-code-block,
body #adminView .coupon-metric-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body #adminView .coupon-code-block > strong {
  color: #06142b;
  font-size: 16px;
  line-height: 1.2;
}

body #adminView .coupon-metric-block > strong {
  color: #052e1a;
  font-size: 18px;
  line-height: 1.15;
}

body #adminView .coupon-history-table .muted {
  color: #64748b;
  line-height: 1.45;
}

body #adminView .coupon-date-text {
  display: inline-flex;
  max-width: 100%;
  line-height: 1.45;
  color: #102033;
  font-weight: 800;
}

body #adminView .coupon-action-cell {
  text-align: right;
  white-space: nowrap;
}

body #adminView .coupon-action-cell .small-btn {
  min-width: 78px;
  min-height: 42px;
  justify-content: center;
  margin-left: 8px;
}

button.pay-transaction-btn,
body .pay-transaction-btn {
  position: relative;
  display: flex !important;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  min-height: 92px;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, .2) !important;
  border-radius: 12px !important;
  color: #102519 !important;
  background: #ffffff !important;
  box-shadow: 0 16px 34px rgba(22, 163, 74, .12) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

button.pay-transaction-btn:hover,
body .pay-transaction-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, .38) !important;
  box-shadow: 0 22px 44px rgba(22, 163, 74, .18) !important;
}

button.pay-transaction-btn:disabled,
body .pay-transaction-btn:disabled {
  opacity: .58 !important;
  transform: none !important;
  cursor: not-allowed;
}

.pay-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  min-height: 92px;
  flex: 0 0 118px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 68% 18%, rgba(190, 242, 100, .72), transparent 28%),
    linear-gradient(135deg, #18c86d, #b9f542);
}

.pay-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex: 1;
  padding: 0 18px;
  font-weight: 1000;
  white-space: nowrap;
}

.pay-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pay-copy svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: #16a34a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s ease;
}

.pay-transaction-btn:hover .pay-copy svg {
  transform: translateX(4px);
}

.pay-card {
  position: absolute;
  z-index: 3;
  display: flex;
  width: 66px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  border-radius: 7px;
  background: #e8ffe2;
  box-shadow: 8px 9px 12px rgba(14, 126, 66, .26);
}

.pay-card-line {
  width: 58px;
  height: 12px;
  margin-top: 7px;
  border-radius: 3px;
  background: #80ea69;
}

.pay-card-dots {
  width: 8px;
  height: 8px;
  margin: 10px 0 0 -30px;
  border-radius: 50%;
  background: #2f9c22;
  box-shadow: 0 -10px 0 #257f17, 0 10px 0 #62c64a;
  transform: rotate(90deg);
}

.pay-terminal {
  position: absolute;
  top: 104px;
  z-index: 4;
  width: 62px;
  height: 72px;
  overflow: hidden;
  border-radius: 7px;
  background: #e2e8e5;
}

.pay-terminal-line {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 46px;
  height: 9px;
  border-radius: 0 0 3px 3px;
  background: #3f4442;
}

.pay-terminal-line::before {
  content: "";
  position: absolute;
  top: -8px;
  width: 46px;
  height: 9px;
  background: #6f7772;
}

.pay-terminal-screen {
  position: absolute;
  top: 22px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 22px;
  border-radius: 3px;
  background: #ffffff;
}

.pay-terminal-screen span {
  color: #15803d;
  font-size: 16px;
  font-weight: 1000;
  opacity: 0;
}

.pay-terminal-keys {
  position: absolute;
  left: 25px;
  top: 51px;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: #838b86;
  box-shadow: 0 -17px 0 #838b86, 0 17px 0 #838b86;
  transform: rotate(90deg);
}

.pay-terminal-keys-2 {
  top: 66px;
  background: #a8afab;
  box-shadow: 0 -17px 0 #a8afab, 0 17px 0 #a8afab;
}

.pay-transaction-btn:hover .pay-card,
.pay-transaction-btn:focus-visible .pay-card {
  animation: pay-card-slide 1.05s cubic-bezier(.645, .045, .355, 1) both;
}

.pay-transaction-btn:hover .pay-terminal,
.pay-transaction-btn:focus-visible .pay-terminal {
  animation: pay-terminal-slide .86s cubic-bezier(.165, .84, .44, 1) both;
}

.pay-transaction-btn:hover .pay-terminal-screen span,
.pay-transaction-btn:focus-visible .pay-terminal-screen span {
  animation: pay-fade-in .24s .78s both;
}

@keyframes pay-card-slide {
  0% { transform: translateY(0) rotate(0); }
  52% { transform: translateY(-62px) rotate(90deg); }
  62% { transform: translateY(-62px) rotate(90deg); }
  100% { transform: translateY(-6px) rotate(90deg); }
}

@keyframes pay-terminal-slide {
  50% { transform: translateY(0); }
  100% { transform: translateY(-64px); }
}

@keyframes pay-fade-in {
  0% { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  button.pay-transaction-btn,
  body .pay-transaction-btn {
    min-height: 78px;
  }

  .pay-visual {
    width: 92px;
    min-height: 78px;
    flex-basis: 92px;
  }

  .pay-copy {
    padding: 0 12px;
    font-size: 14px;
  }

  .pay-card {
    transform: scale(.88);
  }

  .pay-terminal {
    transform: scale(.88);
  }
}

@media (max-width: 900px) {
  body #adminView .coupon-history-wrap {
    overflow: visible;
    padding: 0 12px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body #adminView .coupon-history-wrap .admin-section-head {
    padding: 16px 4px 12px;
    border: 0;
  }

  body #adminView .coupon-history-table,
  body #adminView .coupon-history-table thead,
  body #adminView .coupon-history-table tbody,
  body #adminView .coupon-history-table tr,
  body #adminView .coupon-history-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body #adminView .coupon-history-table {
    background: transparent;
  }

  body #adminView .coupon-history-table thead {
    display: none;
  }

  body #adminView .coupon-history-table tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid rgba(34, 197, 94, .18);
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
  }

  body #adminView .coupon-history-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 8px 0;
    border: 0;
  }

  body #adminView .coupon-history-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
  }

  body #adminView .coupon-action-cell {
    grid-template-columns: 92px repeat(2, minmax(0, 1fr));
    text-align: left;
    white-space: normal;
    justify-content: stretch;
  }

  body #adminView .coupon-action-cell::before {
    padding-top: 11px;
  }

  body #adminView .coupon-action-cell .small-btn {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  body.premium-fullscreen .premium-card {
    min-height: 260px !important;
  }

  body.premium-fullscreen .premium-card-img {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    height: 150px !important;
    min-height: 150px !important;
    overflow: hidden !important;
  }

  body.premium-fullscreen .premium-card-img img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
  }

body.premium-fullscreen .premium-card-img .premium-img-fallback {
    height: 100% !important;
    min-height: 150px !important;
  }
}

/* urgent premium mobile repair: keep image and copy visible */
@media (max-width: 760px) {
  body.premium-fullscreen .premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.premium-fullscreen .premium-card {
    display: grid !important;
    grid-template-rows: 150px minmax(138px, auto) 42px !important;
    min-height: 334px !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  body.premium-fullscreen .premium-card-img {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 150px !important;
    min-height: 150px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  body.premium-fullscreen .premium-card-img img,
  body.premium-fullscreen .premium-card-img .premium-img-fallback {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.premium-fullscreen .premium-card-body {
    position: relative !important;
    z-index: 3 !important;
    display: grid !important;
    grid-template-rows: auto auto auto auto auto !important;
    gap: 6px !important;
    min-height: 138px !important;
    padding: 9px 10px 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  body.premium-fullscreen .premium-card-name,
  body.premium-fullscreen .premium-card-body > strong {
    position: relative !important;
    z-index: 4 !important;
    display: block !important;
    min-height: 34px !important;
    margin: 0 !important;
    color: #102519 !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }

  body.premium-fullscreen .premium-detail-line {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 18px !important;
    color: #52665b !important;
    font-size: 10.5px !important;
  }
}

/* premium image final override: do not show hidden fallback over real images */
body.premium-fullscreen .premium-card-img img[hidden],
body.premium-fullscreen .premium-card-img .premium-img-fallback[hidden],
body.premium-fullscreen .premium-selected-img img[hidden],
body.premium-fullscreen .premium-selected-img .premium-img-fallback[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body.premium-fullscreen .premium-card-img img:not([hidden]) {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.premium-fullscreen .premium-card-img .premium-img-fallback:not([hidden]) {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #f8fafc !important;
  background:
    radial-gradient(circle at 68% 20%, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(135deg, #334155, #111827) !important;
}

/* admin tab icon cleanup */
#adminView .admin-tabs button .icon,
.admin-tabs button .icon {
  width: 16px !important;
  height: 16px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#adminView .admin-tabs button.active .icon,
#adminView .admin-tabs button:hover .icon,
.admin-tabs button.active .icon,
.admin-tabs button:hover .icon {
  color: currentColor !important;
  background: transparent !important;
}

/* loader logo centering */
.page-loader-card {
  grid-template-rows: 150px auto !important;
  align-content: center !important;
  gap: 18px !important;
  min-height: 230px !important;
}

.page-loader-orbit {
  top: 0 !important;
  left: 50% !important;
  margin-left: -75px !important;
}

.page-loader-logo {
  position: relative !important;
  z-index: 1 !important;
  grid-row: 1 !important;
  width: 150px !important;
  height: 150px !important;
  animation: loader-logo-breathe-centered 2.4s ease-in-out infinite !important;
}

.page-loader-logo .site-logo-image,
.page-loader-logo .logo-mark {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.page-loader-logo .site-logo-image {
  width: 88px !important;
  height: 88px !important;
}

.page-loader-logo .logo-mark {
  width: 78px !important;
  height: 78px !important;
}

.page-loader-logo strong {
  position: absolute !important;
  top: calc(50% + 48px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
}

.page-loader p {
  grid-row: 2 !important;
}

.page-loader.is-visible .page-loader-card {
  transform: translateY(-52px) scale(1) !important;
}

@keyframes loader-logo-breathe-centered {
  0%, 100% { opacity: .84; transform: scale(.985); }
  50% { opacity: 1; transform: scale(1.015); }
}

/* premium products page breathing room */
body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
  box-sizing: border-box !important;
  width: min(100% - 96px, 1480px) !important;
  max-width: 1480px !important;
  margin-inline: auto !important;
}

body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
  box-sizing: border-box !important;
  padding: 24px 28px 30px !important;
  border-radius: 14px !important;
}

body.premium-fullscreen:not(.premium-detail-open) .premium-grid {
  gap: 18px !important;
}

@media (max-width: 900px) {
  body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
    width: min(100% - 56px, 720px) !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
    padding: 18px 18px 22px !important;
  }
}

@media (max-width: 560px) {
  body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
    width: min(100% - 40px, 520px) !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
    padding: 14px 14px 18px !important;
    border-radius: 16px !important;
  }
}

/* final button contrast pass - live override */
body #profileView .profile-detail-btn,
body .wallet-tx-card .profile-detail-btn,
body .profile-order-card .profile-detail-btn {
  border: 1px solid #047857 !important;
  background: linear-gradient(135deg, #16a34a, #047857) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22) !important;
  box-shadow: 0 10px 22px rgba(4, 120, 87, .24) !important;
}

body #profileView .profile-detail-btn span,
body #profileView .profile-detail-btn .icon,
body .wallet-tx-card .profile-detail-btn span,
body .wallet-tx-card .profile-detail-btn .icon,
body .profile-order-card .profile-detail-btn span,
body .profile-order-card .profile-detail-btn .icon {
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
  background: transparent !important;
}

body .gold-btn:not(:disabled),
body .primary-btn:not(:disabled),
body .pay-transaction-btn:not(:disabled),
body .product-save-btn:not(:disabled),
body .small-btn.gold-btn:not(:disabled) {
  color: #052e16 !important;
  font-weight: 900 !important;
}

body .gold-btn:not(:disabled) .icon,
body .primary-btn:not(:disabled) .icon,
body .pay-transaction-btn:not(:disabled) .icon,
body .product-save-btn:not(:disabled) .icon,
body .small-btn.gold-btn:not(:disabled) .icon {
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
  background: transparent !important;
}

/* final button contrast pass - keep this at the end */
body #profileView .profile-detail-btn,
body .wallet-tx-card .profile-detail-btn,
body .profile-order-card .profile-detail-btn {
  border: 1px solid #047857 !important;
  background: linear-gradient(135deg, #16a34a, #047857) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22) !important;
  box-shadow: 0 10px 22px rgba(4, 120, 87, .24) !important;
}

body #profileView .profile-detail-btn span,
body #profileView .profile-detail-btn .icon,
body .wallet-tx-card .profile-detail-btn span,
body .wallet-tx-card .profile-detail-btn .icon,
body .profile-order-card .profile-detail-btn span,
body .profile-order-card .profile-detail-btn .icon {
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
  background: transparent !important;
}

body .gold-btn:not(:disabled),
body .primary-btn:not(:disabled),
body .pay-transaction-btn:not(:disabled),
body .product-save-btn:not(:disabled),
body .small-btn.gold-btn:not(:disabled) {
  color: #052e16 !important;
  font-weight: 900 !important;
}

body .gold-btn:not(:disabled) .icon,
body .primary-btn:not(:disabled) .icon,
body .pay-transaction-btn:not(:disabled) .icon,
body .product-save-btn:not(:disabled) .icon,
body .small-btn.gold-btn:not(:disabled) .icon {
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
  background: transparent !important;
}

/* premium mobile: compact 3-column product grid */
@media (max-width: 760px) {
  body.premium-fullscreen:not(.premium-detail-open) .premium-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
    padding: 12px 10px 16px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card {
    grid-template-rows: 78px minmax(64px, auto) 22px !important;
    min-height: 178px !important;
    padding-bottom: 5px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-img {
    height: 78px !important;
    min-height: 78px !important;
    border-radius: 9px 9px 0 0 !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-body {
    min-height: 64px !important;
    gap: 3px !important;
    padding: 5px 6px 0 !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-name,
  body.premium-fullscreen:not(.premium-detail-open) .premium-card-body > strong {
    min-height: 30px !important;
    font-size: 9px !important;
    line-height: 1.18 !important;
    -webkit-line-clamp: 2 !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-provider-line,
  body.premium-fullscreen:not(.premium-detail-open) .premium-soldout-badge,
  body.premium-fullscreen:not(.premium-detail-open) .premium-detail-line,
  body.premium-fullscreen:not(.premium-detail-open) .agent-price-note {
    display: none !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-price {
    min-height: 18px !important;
    margin-top: 0 !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-sale-price b,
  body.premium-fullscreen:not(.premium-detail-open) .premium-card-price b {
    font-size: 9px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-sale-price em {
    display: none !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-sale-price small {
    display: none !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 20px !important;
    padding: 0 6px 5px !important;
    margin-top: 0 !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-action {
    display: none !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-stock-line {
    display: inline-flex !important;
    justify-content: center !important;
    min-height: 18px !important;
    padding: 2px 5px !important;
    border-radius: 999px !important;
    font-size: 8.5px !important;
    line-height: 1 !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-stock-line,
  body.premium-fullscreen:not(.premium-detail-open) .premium-card-action {
    min-height: 24px !important;
    border-radius: 999px !important;
    font-size: 9px !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-card-action .icon {
    width: 13px !important;
    height: 13px !important;
  }
}

/* premium mobile detail final surface alignment */
@media (max-width: 760px) {
  body.premium-fullscreen.premium-detail-open {
    overflow-x: hidden !important;
    background: #f5fff8 !important;
  }

  body.premium-fullscreen.premium-detail-open main,
  body.premium-fullscreen.premium-detail-open #premiumAppsView,
  body.premium-fullscreen.premium-detail-open .premium-page,
  body.premium-fullscreen.premium-detail-open .premium-shell,
  body.premium-fullscreen.premium-detail-open .premium-layout {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-checkout-panel {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: calc(10px + env(safe-area-inset-top)) 8px calc(14px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #fbfffc 0%, #f4fff7 100%) !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-selected {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-buy-form {
    width: 100% !important;
    max-width: none !important;
    margin: 8px 0 0 !important;
    padding: 0 0 calc(10px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box,
  body.premium-fullscreen.premium-detail-open .premium-coupon-card,
  body.premium-fullscreen.premium-detail-open .premium-buy-form .gold-btn {
    box-sizing: border-box !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

/* premium products page breathing room */
body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
  box-sizing: border-box !important;
  width: min(100% - 84px, 1480px) !important;
  max-width: 1480px !important;
  margin-inline: auto !important;
}

body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
  box-sizing: border-box !important;
  padding: 22px 24px 28px !important;
  border-radius: 14px !important;
}

body.premium-fullscreen:not(.premium-detail-open) .premium-grid {
  gap: 18px !important;
}

@media (max-width: 900px) {
  body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
    width: min(100% - 36px, 720px) !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
    padding: 16px 14px 20px !important;
  }
}

@media (max-width: 560px) {
  body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
    width: min(100% - 24px, 520px) !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
    padding: 12px 10px 16px !important;
    border-radius: 16px !important;
  }
}

/* premium mobile detail final surface alignment */
@media (max-width: 760px) {
  body.premium-fullscreen.premium-detail-open {
    overflow-x: hidden !important;
    background: #f5fff8 !important;
  }

  body.premium-fullscreen.premium-detail-open main,
  body.premium-fullscreen.premium-detail-open #premiumAppsView,
  body.premium-fullscreen.premium-detail-open .premium-page,
  body.premium-fullscreen.premium-detail-open .premium-shell,
  body.premium-fullscreen.premium-detail-open .premium-layout {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-checkout-panel {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: calc(10px + env(safe-area-inset-top)) 8px calc(14px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #fbfffc 0%, #f4fff7 100%) !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-selected {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-buy-form {
    width: 100% !important;
    max-width: none !important;
    margin: 8px 0 0 !important;
    padding: 0 0 calc(10px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box,
  body.premium-fullscreen.premium-detail-open .premium-coupon-card,
  body.premium-fullscreen.premium-detail-open .premium-buy-form .gold-btn {
    box-sizing: border-box !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

/* game top-up catalog image fill */
#gameTopupView .game-card-grid .game-pick-card {
  overflow: hidden !important;
  padding: 0 !important;
}

#gameTopupView .game-card-grid .game-pick-card .game-pick-media,
#gameTopupView .game-card-grid .game-pick-card .game-card-cover {
  position: relative !important;
  width: 100% !important;
  height: clamp(112px, 7.4vw, 132px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 8px 8px 0 0 !important;
  background: #0f172a !important;
}

#gameTopupView .game-card-grid .game-pick-card strong,
#gameTopupView .game-card-grid .game-pick-card small {
  width: 100% !important;
  padding-right: 10px !important;
  padding-left: 10px !important;
}

#gameTopupView .game-card-grid .game-pick-card .game-pick-media img,
#gameTopupView .game-card-grid .game-pick-card .game-card-cover img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  padding: 0 !important;
}

/* loader final position */
.page-loader.is-visible .page-loader-card {
  transform: translateY(-52px) scale(1) !important;
}

/* loader final position */
.page-loader.is-visible .page-loader-card {
  transform: translateY(-52px) scale(1) !important;
}

/* admin tab icon cleanup */
#adminView .admin-tabs button .icon,
.admin-tabs button .icon {
  width: 16px !important;
  height: 16px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#adminView .admin-tabs button.active .icon,
#adminView .admin-tabs button:hover .icon,
.admin-tabs button.active .icon,
.admin-tabs button:hover .icon {
  color: currentColor !important;
  background: transparent !important;
}

/* premium card recovery: real images first, fallback only on image error */
body.premium-fullscreen .premium-card {
  display: grid !important;
  grid-template-rows: 220px minmax(148px, auto) 58px !important;
  min-height: 440px !important;
  height: 100% !important;
  padding: 0 0 12px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #102519 !important;
}

body.premium-fullscreen .premium-card::after {
  content: none !important;
  display: none !important;
}

body.premium-fullscreen .premium-card-img {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 220px !important;
  min-height: 220px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 18px 18px 0 0 !important;
  background: #ffffff !important;
}

body.premium-fullscreen .premium-card-img img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.premium-fullscreen .premium-card-img img[hidden],
body.premium-fullscreen .premium-card-img .premium-img-fallback[hidden] {
  display: none !important;
}

body.premium-fullscreen .premium-card-img .premium-img-fallback:not([hidden]) {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #f8fafc !important;
  background:
    radial-gradient(circle at 68% 20%, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(135deg, #334155, #111827) !important;
  font-size: 42px !important;
  font-weight: 950 !important;
}

body.premium-fullscreen .premium-card-body {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-rows: auto auto auto auto auto !important;
  gap: 8px !important;
  min-height: 148px !important;
  padding: 12px 14px 0 !important;
  overflow: visible !important;
  background: #ffffff !important;
  color: #102519 !important;
}

body.premium-fullscreen .premium-card-name,
body.premium-fullscreen .premium-card-body > strong {
  display: -webkit-box !important;
  min-height: 38px !important;
  margin: 0 !important;
  color: #102519 !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1.28 !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

@media (max-width: 760px) {
  body.premium-fullscreen .premium-card {
    grid-template-rows: 150px minmax(138px, auto) 42px !important;
    min-height: 334px !important;
    border-radius: 14px !important;
  }

  body.premium-fullscreen .premium-card-img {
    height: 150px !important;
    min-height: 150px !important;
    border-radius: 14px 14px 0 0 !important;
  }

  body.premium-fullscreen .premium-card-body {
    min-height: 138px !important;
    padding: 9px 10px 0 !important;
  }

  body.premium-fullscreen .premium-card-name,
  body.premium-fullscreen .premium-card-body > strong {
    min-height: 34px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }
}

/* Simple game top-up flow, inspired by compact two-step top-up pages without copying their palette. */
body #gameTopupView.package-mode .game-menu-catalog,
body #gameTopupView.package-mode .game-menu-head {
  display: none !important;
}

body #gameTopupView .game-package-section {
  max-width: 1220px !important;
  margin: 0 auto 38px !important;
  padding: 20px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body #gameTopupView .simple-topup-shell {
  display: grid !important;
  grid-template-columns: minmax(280px, 370px) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 22px !important;
  width: 100% !important;
}

body #gameTopupView .simple-game-info,
body #gameTopupView .simple-step-card {
  border: 1px solid rgba(52, 211, 153, 0.34) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08) !important;
}

body #gameTopupView .simple-game-info {
  position: sticky !important;
  top: 92px !important;
  display: block !important;
  overflow: hidden !important;
  padding: 0 0 18px !important;
}

body #gameTopupView .simple-game-cover {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 12px 12px 0 0 !important;
  background: #06351f !important;
}

body #gameTopupView .simple-game-cover img,
body #gameTopupView .simple-game-cover .topup-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

body #gameTopupView .simple-game-copy {
  padding: 18px 20px 0 !important;
}

body #gameTopupView .simple-game-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 12px 0 10px !important;
}

body #gameTopupView .simple-game-badges span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 28px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: #f0fdf4 !important;
  color: #087443 !important;
  border: 1px solid #bbf7d0 !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
}

body #gameTopupView .simple-game-badges span::before {
  content: "" !important;
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16) !important;
}

body #gameTopupView .simple-game-kicker,
body #gameTopupView .simple-step-title small {
  display: inline-flex !important;
  width: fit-content !important;
  color: #00a35c !important;
  font-size: 0.75rem !important;
  font-weight: 900 !important;
}

body #gameTopupView .simple-game-copy h2 {
  margin: 6px 0 8px !important;
  color: #101828 !important;
  font-size: 1.45rem !important;
  line-height: 1.1 !important;
}

body #gameTopupView .simple-game-copy p {
  margin: 0 0 14px !important;
  color: #667085 !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
}

body #gameTopupView .simple-game-notes {
  display: grid !important;
  gap: 8px !important;
}

body #gameTopupView .simple-game-notes span {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: 8px !important;
  background: #ecfdf3 !important;
  color: #087443 !important;
  font-weight: 900 !important;
  padding: 10px 12px !important;
}

body #gameTopupView .simple-game-notes span::after {
  content: "พร้อมใช้" !important;
  color: #00a35c !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
}

body #gameTopupView .simple-topup-main {
  display: grid !important;
  gap: 16px !important;
}

body #gameTopupView .simple-step-card {
  padding: 18px !important;
}

body #gameTopupView .simple-step-title {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
}

body #gameTopupView .simple-step-title > span {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #20d970, #b9f542) !important;
  color: #062116 !important;
  font-weight: 1000 !important;
  box-shadow: 0 10px 22px rgba(32, 217, 112, 0.24) !important;
  flex: 0 0 auto !important;
}

body #gameTopupView .simple-step-title h2 {
  margin: 2px 0 0 !important;
  color: #101828 !important;
  font-size: 1.3rem !important;
  line-height: 1.15 !important;
}

body #gameTopupView .game-topup-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  order: 1 !important;
  position: static !important;
  width: auto !important;
  margin: 0 !important;
}

body #gameTopupView .game-topup-form label {
  grid-column: 1 / -1 !important;
}

body #gameTopupView .uid-warning {
  grid-column: 1 / -1 !important;
  margin: -4px 0 0 !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  background: #fffbeb !important;
  color: #92400e !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
}

body #gameTopupView .pack-list-panel {
  order: 2 !important;
}

body #gameTopupView .game-topup-form .simple-step-title,
body #gameTopupView .game-topup-form label:last-of-type {
  grid-column: 1 / -1 !important;
}

body #gameTopupView .game-topup-form input,
body #gameTopupView .game-topup-form textarea {
  border-radius: 8px !important;
  background: #f8fafc !important;
  border-color: #c7d7e8 !important;
}

body #gameTopupView .pack-list-panel .topup-panel-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}

body #gameTopupView .pack-list-header {
  display: none !important;
}

body #gameTopupView .simple-pack-grid,
body #gameTopupView .pack-card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  gap: 12px !important;
  max-height: 560px !important;
  overflow: auto !important;
  padding: 2px 4px 8px 2px !important;
  border: 0 !important;
  background: transparent !important;
}

body #gameTopupView .pack-pick-card {
  display: grid !important;
  grid-template-columns: 62px minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 94px !important;
  padding: 12px !important;
  border: 1px solid #d9e6f2 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #101828 !important;
  text-align: left !important;
  box-shadow: none !important;
}

body #gameTopupView .pack-pick-card:hover,
body #gameTopupView .pack-pick-card.active {
  border-color: #34d399 !important;
  background: #effdf5 !important;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.14) !important;
}

body #gameTopupView .pack-pick-card .pack-pick-media {
  width: 62px !important;
  height: 62px !important;
  border-radius: 8px !important;
}

body #gameTopupView .pack-pick-card .pack-info {
  min-width: 0 !important;
}

body #gameTopupView .pack-pick-card .pack-pick-name {
  display: block !important;
  color: #101828 !important;
  font-size: 0.98rem !important;
  line-height: 1.25 !important;
  font-weight: 1000 !important;
}

body #gameTopupView .pack-pick-card small {
  display: block !important;
  margin-top: 5px !important;
  color: #667085 !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

body #gameTopupView .pack-pick-card .pack-sku {
  display: none !important;
}

body #gameTopupView .pack-pick-card .pack-price {
  grid-column: 3 !important;
  grid-row: 1 !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: #dcfce7 !important;
  color: #009f55 !important;
  font-size: 1rem !important;
  white-space: nowrap !important;
}

body #gameTopupView .pack-pick-card .pack-action {
  grid-column: 3 !important;
  grid-row: 2 !important;
  align-self: end !important;
  justify-self: end !important;
  min-width: 74px !important;
  border-radius: 8px !important;
  border-color: #a7f3d0 !important;
  background: #ffffff !important;
  color: #047857 !important;
}

body #gameTopupView .pack-pick-card.active .pack-action {
  background: #22c55e !important;
  color: #062116 !important;
}

body #gameTopupView .simple-checkout-bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 220px !important;
  gap: 12px !important;
  align-items: stretch !important;
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid #e4eef7 !important;
}

body #gameTopupView .topup-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 56px !important;
  border-radius: 8px !important;
  background: #ecfdf3 !important;
  color: #087443 !important;
  border: 1px solid #bbf7d0 !important;
  padding: 12px 14px !important;
  font-weight: 900 !important;
}

body #gameTopupView .topup-summary.is-empty {
  color: #667085 !important;
  background: #f8fafc !important;
  border-color: #d9e6f2 !important;
}

body #gameTopupView #gameTopupSubmitButton:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

body .floating-cart,
body.premium-fullscreen .floating-cart,
body.premium-fullscreen.premium-detail-open .floating-cart {
  display: none !important;
}

@media (max-width: 980px) {
  body #gameTopupView .simple-topup-shell {
    grid-template-columns: 1fr !important;
  }

  body #gameTopupView .simple-game-info {
    position: static !important;
  }

  body #gameTopupView .game-topup-form,
  body #gameTopupView .simple-pack-grid,
  body #gameTopupView .pack-card-grid,
  body #gameTopupView .simple-checkout-bar {
    grid-template-columns: 1fr !important;
  }

  body #gameTopupView .pack-pick-card {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }

  body #gameTopupView .pack-pick-card .pack-price,
  body #gameTopupView .pack-pick-card .pack-action {
    grid-column: 2 !important;
    grid-row: auto !important;
    justify-self: start !important;
    transform: none !important;
  }
}

@media (min-width: 981px) {
  .game-menu-page .game-package-layout {
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
  }

  .game-menu-page .game-topup-form {
    order: 1 !important;
    position: sticky !important;
    top: 96px !important;
    width: auto !important;
    margin: 0 !important;
  }

  .game-menu-page .pack-list-panel {
    order: 2 !important;
  }

  .game-menu-page .pack-card-grid {
    max-height: calc(100vh - 300px) !important;
  }
}

@media (max-width: 980px) {
  .game-menu-page .game-package-layout {
    grid-template-columns: 1fr !important;
  }

  .game-menu-page .pack-list-panel {
    order: 1 !important;
  }

  .game-menu-page .game-topup-form {
    order: 2 !important;
    position: static !important;
    width: min(100%, 560px) !important;
    margin: 0 auto !important;
  }

  .game-menu-page .pack-card-grid {
    max-height: none !important;
  }
}

@media (max-width: 760px) {
  .orange-hero.has-uploaded-banner {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: var(--fit-mobile-natural-ratio, var(--fit-desktop-natural-ratio, 16 / 9)) !important;
    background: #ffffff !important;
  }

  .orange-hero.has-uploaded-banner > .managed-image {
    object-fit: contain !important;
    object-position: var(--fit-mobile-x, 50%) var(--fit-mobile-y, 50%) !important;
    transform: scale(var(--fit-mobile-zoom, 1)) !important;
    transform-origin: var(--fit-mobile-x, 50%) var(--fit-mobile-y, 50%) !important;
    background: #ffffff !important;
  }
}

@media (max-width: 760px) {
  .orange-hero.has-uploaded-banner {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: var(--fit-mobile-natural-ratio, var(--fit-desktop-natural-ratio, 16 / 9)) !important;
    background: #ffffff !important;
  }

  .orange-hero.has-uploaded-banner > .managed-image {
    object-fit: contain !important;
    object-position: var(--fit-mobile-x, 50%) var(--fit-mobile-y, 50%) !important;
    transform: scale(var(--fit-mobile-zoom, 1)) !important;
    transform-origin: var(--fit-mobile-x, 50%) var(--fit-mobile-y, 50%) !important;
    background: #ffffff !important;
  }
}

@media (max-width: 760px) {
  .orange-hero.has-uploaded-banner {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: var(--fit-mobile-natural-ratio, var(--fit-desktop-natural-ratio, var(--fit-mobile-ratio, 16 / 9))) !important;
    background: #ffffff !important;
  }

  .orange-hero.has-uploaded-banner > .managed-image {
    object-fit: contain !important;
    object-position: var(--fit-mobile-x, 50%) var(--fit-mobile-y, 50%) !important;
    transform: scale(var(--fit-mobile-zoom, 1)) !important;
    transform-origin: var(--fit-mobile-x, 50%) var(--fit-mobile-y, 50%) !important;
    background: #ffffff !important;
  }
}

@media (max-width: 760px) {
  .orange-hero.has-uploaded-banner {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: var(--fit-mobile-natural-ratio, var(--fit-desktop-natural-ratio, 16 / 9)) !important;
    background: #ffffff !important;
  }

  .orange-hero.has-uploaded-banner > .managed-image {
    object-fit: contain !important;
    object-position: var(--fit-mobile-x, 50%) var(--fit-mobile-y, 50%) !important;
    transform: scale(var(--fit-mobile-zoom, 1)) !important;
    transform-origin: var(--fit-mobile-x, 50%) var(--fit-mobile-y, 50%) !important;
    background: #ffffff !important;
  }
}

@media (max-width: 760px) {
  body.premium-fullscreen .premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 8px !important;
  }

  body.premium-fullscreen .premium-card {
    grid-template-rows: auto auto auto !important;
    align-content: start !important;
    min-height: 0 !important;
    height: auto !important;
    gap: 6px !important;
    padding-bottom: 8px !important;
  }

  body.premium-fullscreen .premium-card-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    border-radius: 14px 14px 0 0 !important;
    background: #f8fffb !important;
  }

  body.premium-fullscreen .premium-card-img img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    padding: 0 !important;
    filter: none !important;
  }

  body.premium-fullscreen .premium-card-img .premium-img-fallback {
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
  }

  body.premium-fullscreen .premium-card-body strong {
    min-height: 0 !important;
  }

  body.premium-fullscreen .premium-card-bottom {
    align-self: start !important;
  }

  body.premium-fullscreen .premium-head-actions {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  body.premium-fullscreen .premium-mini-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
  }

  body.premium-fullscreen .premium-mini-stats span {
    justify-content: center !important;
    min-height: 34px !important;
    padding: 6px 8px !important;
    font-size: 10px !important;
  }

  body.premium-fullscreen .premium-filter-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 7px !important;
  }

  body.premium-fullscreen .premium-stock-filter {
    min-height: 42px !important;
    padding: 0 11px !important;
    border-radius: 13px !important;
    font-size: 11px !important;
  }

  body.premium-fullscreen .premium-stock-filter .icon {
    width: 14px !important;
    height: 14px !important;
  }
}

.premium-coupon-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, .18);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.premium-coupon-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #102519;
}

.premium-coupon-head span {
  display: inline-grid;
  place-items: center;
  min-width: 50px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0f8f55;
  background: #dcfce7;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
}

.premium-coupon-head strong {
  font-size: 13px;
  font-weight: 950;
}

.premium-coupon-card .premium-coupon-row {
  gap: 10px;
}

.premium-coupon-card input {
  min-height: 44px;
  border-color: rgba(34, 197, 94, .24);
  border-radius: 12px;
  background: #ffffff;
  font-weight: 850;
}

.premium-coupon-card .light-btn {
  min-width: 92px;
  min-height: 44px;
  border-color: rgba(34, 197, 94, .28);
  border-radius: 12px;
  color: #0f8f55;
  background: #dcfce7;
  font-weight: 950;
}

.premium-coupon-result {
  align-items: stretch;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(22, 163, 74, .12);
}

.premium-coupon-result > div {
  display: grid;
  gap: 2px;
}

.premium-coupon-result span {
  color: #607568;
  font-size: 12px;
  font-weight: 850;
}

.premium-coupon-result strong {
  color: #16a34a;
  font-size: 22px;
  line-height: 1.05;
}

.premium-coupon-result small {
  color: #0f8f55;
  font-weight: 900;
}

.premium-coupon-result .ghost {
  align-self: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
}

.premium-mobile-price-discount {
  display: grid !important;
  gap: 4px;
}

.premium-mobile-price-discount em {
  width: fit-content;
}

body.premium-fullscreen .premium-coupon-card {
  padding: 12px;
  border-radius: 15px;
}

body.premium-fullscreen .premium-coupon-card .premium-coupon-row {
  grid-template-columns: minmax(0, 1fr) 92px;
}

body.premium-fullscreen .premium-coupon-result strong {
  font-size: 22px;
}

* { box-sizing: border-box; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold-dark) 72%, #ffffff);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10000;
  transform: translateY(-140%);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  transition: transform .16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

html {
  scrollbar-color: rgba(34, 197, 94, .22) transparent;
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(34, 197, 94, .24);
  background-clip: padding-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, var(--gold-glow), transparent 30%),
    radial-gradient(circle at 88% 8%, var(--orange-glow), transparent 34%),
    linear-gradient(180deg, var(--page), var(--page));
  font-family: "Prompt", "Segoe UI", Tahoma, sans-serif;
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 70%);
}

.ambient-icons {
  position: fixed;
  inset: 72px 0 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-icons::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  background-image:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 24%),
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--gold-dark) 12%, transparent), transparent 22%),
    radial-gradient(circle at 66% 78%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 20%);
  filter: blur(2px);
}

.ambient-icons span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(42px * var(--s));
  height: calc(42px * var(--s));
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold-dark) 18%, transparent);
  border-radius: 14px;
  color: color-mix(in srgb, var(--gold-dark) 52%, transparent);
  background: color-mix(in srgb, var(--panel) 62%, transparent);
  box-shadow: 0 14px 38px color-mix(in srgb, var(--gold-dark) 8%, transparent);
  opacity: .32;
  transform: translate3d(-50%, -50%, 0) rotate(var(--r));
  animation: floatIcon 9s ease-in-out infinite;
  animation-delay: var(--d);
}

.ambient-icons svg {
  width: 54%;
  height: 54%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ambient-icons span:nth-child(3n) {
  border-radius: 999px;
}

.ambient-icons span:nth-child(4n) {
  opacity: .24;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translate3d(-50%, -50%, 0) rotate(var(--r));
  }
  50% {
    transform: translate3d(-50%, calc(-50% - 18px), 0) rotate(calc(var(--r) + 8deg));
  }
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

main:focus {
  outline: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--gold-dark);
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.title-icon {
  width: 24px;
  height: 24px;
  stroke: var(--gold-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: -3px;
}

.shell {
  width: min(1440px, calc(100vw - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.9);
  border-radius: 0;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(0,0,0,.06);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 82px;
  font-size: 18px;
  font-weight: 800;
}

.site-logo-image {
  width: 32px;
  height: 32px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: #fff;
  display: block;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f0fff4, var(--gold) 55%, var(--gold-dark));
  box-shadow: inset 0 0 0 2px #fff;
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  color: #626262;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.main-nav a.active,
.main-nav a:hover {
  color: #111;
  background: linear-gradient(180deg, #fff, #f6f6f6);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.point-pill,
.account-pill,
.ghost,
.light-btn,
.admin-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 9px 14px;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.point-pill {
  border: 0;
  background: #ecfff2;
  color: #166534;
  box-shadow: inset 0 0 0 1px #bbf7d0, 0 8px 22px rgba(22, 163, 74, .10);
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 138px;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.account-pill:hover,
.point-pill:hover,
.ghost:hover,
.light-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.9)),
    color-mix(in srgb, var(--page) 72%, transparent);
  box-shadow: none;
  min-height: 680px;
  padding: 38px 0 78px;
  overflow: hidden;
}

.view {
  position: relative;
  z-index: 1;
  display: none;
}
.view.active {
  display: block;
}

.view.view-entering {
  opacity: 0;
  transform: translateY(14px);
}

.view.view-entered {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity .42s ease,
    transform .48s cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .view.view-entering,
  .view.view-entered {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.18), transparent 13%),
    radial-gradient(circle at 28% 16%, color-mix(in srgb, var(--gold) 42%, transparent), transparent 30%),
    radial-gradient(circle at 82% 24%, rgba(32, 226, 171, .34), transparent 26%),
    linear-gradient(135deg, #0b7f3a 0%, var(--green) 48%, #04743b 100%);
  opacity: 1;
  visibility: visible;
  transform: translateZ(0);
  transition: opacity .62s ease, visibility .62s ease;
}

.page-loader::before,
.page-loader::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.page-loader::before {
  width: min(68vw, 520px);
  height: min(68vw, 520px);
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 62%);
  filter: blur(10px);
}

.page-loader::after {
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,.10), transparent 34%),
    linear-gradient(295deg, rgba(0,0,0,.18), transparent 46%);
}

.page-loader.hidden {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.page-loader-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 14px;
  width: min(100%, 280px);
  min-height: 230px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .62s ease, transform .72s cubic-bezier(.2, .8, .2, 1);
}

.page-loader.is-visible .page-loader-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.page-loader-orbit {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 4px solid rgba(255, 255, 255, .18);
  border-top-color: #ffffff;
  border-right-color: color-mix(in srgb, var(--gold) 92%, #ffffff);
  border-bottom-color: rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 13px rgba(255,255,255,.06),
    0 0 38px rgba(126, 226, 58, .22),
    0 24px 70px rgba(7, 64, 28, .32);
  opacity: .72;
  animation:
    spin 1.35s linear infinite,
    loader-breathe 2.4s ease-in-out infinite;
}

.page-loader-orbit::before,
.page-loader-orbit::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
}

.page-loader-orbit::before {
  border: 1px solid rgba(255,255,255,.18);
}

.page-loader-orbit::after {
  inset: 25px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 68%);
}

.page-loader-logo {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  color: #ffffff;
  filter: drop-shadow(0 18px 28px rgba(3, 57, 26, .34));
  animation: loader-logo-breathe 2.4s ease-in-out infinite;
}

.page-loader-logo .site-logo-image {
  width: 92px;
  height: 92px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.page-loader-logo .logo-mark {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  box-shadow: none;
}

.page-loader-logo strong {
  max-width: 116px;
  overflow: hidden;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 3px 14px rgba(0,0,0,.24);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-loader p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255,255,255,.96);
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 3px 18px rgba(0,0,0,.22);
  opacity: .84;
  animation: loader-text-fade 2.4s ease-in-out infinite;
}

@keyframes loader-breathe {
  0%, 100% {
    opacity: .54;
    box-shadow:
      0 0 0 10px rgba(255,255,255,.04),
      0 0 24px rgba(126, 226, 58, .14),
      0 22px 58px rgba(7, 64, 28, .24);
  }
  50% {
    opacity: .9;
    box-shadow:
      0 0 0 17px rgba(255,255,255,.08),
      0 0 48px rgba(126, 226, 58, .26),
      0 28px 76px rgba(7, 64, 28, .34);
  }
}

@keyframes loader-logo-breathe {
  0%, 100% {
    opacity: .82;
    transform: translateY(2px) scale(.985);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px) scale(1.015);
  }
}

@keyframes loader-text-fade {
  0%, 100% { opacity: .62; }
  50% { opacity: 1; }
}

.hero-frame {
  position: relative;
  margin: 0 0 32px;
}

.orange-hero {
  position: relative;
  height: 310px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,.45), transparent 12%),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.28), transparent 10%),
    linear-gradient(135deg, #8df05a, #22c55e 50%, #16a34a);
  box-shadow: var(--deep-shadow);
}

.orange-hero.has-uploaded-banner {
  height: auto;
  min-height: 0;
  aspect-ratio: var(--fit-desktop-ratio, 16 / 5);
  background-size: cover;
  background-position: center;
}

.managed-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--fit-desktop-fit, cover);
  object-position: var(--fit-desktop-x, 50%) var(--fit-desktop-y, 50%);
  transform: scale(var(--fit-desktop-zoom, 1));
  transform-origin: var(--fit-desktop-x, 50%) var(--fit-desktop-y, 50%);
}

.managed-image-mobile {
  display: none;
}

.orange-hero.has-uploaded-banner .hero-copy,
.orange-hero.has-uploaded-banner .hero-device {
  display: none;
}

.orange-hero.has-uploaded-banner::before {
  opacity: 0;
}

.orange-hero.has-uploaded-banner::after {
  opacity: 0;
}

.orange-hero::before,
.orange-hero::after {
  content: "";
  position: absolute;
  inset: -30px;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.4) 0 8px, transparent 8px 24px),
    radial-gradient(circle, rgba(255,255,255,.35) 0 3px, transparent 4px);
  background-size: 72px 72px, 96px 96px;
  opacity: .45;
}

.orange-hero::before {
  animation: floatPattern 18s linear infinite;
}

@keyframes floatPattern {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(72px, 0, 0); }
}

.orange-hero::after {
  inset: auto 0 0;
  height: 70px;
  background: #fff;
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 100%);
  opacity: .98;
}

.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px clamp(24px, 7vw, 92px);
  color: #fff;
  text-align: left;
  text-shadow: 0 3px 18px rgba(6, 78, 37, .24);
}

.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.sample-chip {
  width: fit-content;
  margin-bottom: 18px;
  color: #0f3d22;
  background: rgba(255,255,255,.94);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-shadow: none;
  box-shadow: 0 16px 35px rgba(0,0,0,.12);
}

.hero-device {
  position: absolute;
  z-index: 2;
  right: clamp(30px, 7vw, 96px);
  bottom: 58px;
  width: clamp(180px, 22vw, 310px);
  aspect-ratio: 1.35;
  transform: rotate(5deg);
  transform-origin: bottom right;
}

.device-screen {
  position: absolute;
  inset: 20% 14%;
  border: 10px solid rgba(255,255,255,.96);
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 30%, rgba(126,226,58,.55), transparent 38%),
    linear-gradient(135deg, rgba(16,37,25,.92), rgba(18,48,29,.78));
  box-shadow: 0 26px 60px rgba(6, 78, 37, .28);
}

.device-screen::before,
.device-screen::after {
  content: "";
  position: absolute;
  background: #7ee23a;
  box-shadow: 0 0 0 6px rgba(126,226,58,.14);
}

.device-screen::before {
  left: 22%;
  top: 48%;
  width: 32%;
  height: 8px;
  border-radius: 999px;
}

.device-screen::after {
  right: 22%;
  top: 40%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.device-pad {
  position: absolute;
  top: 38%;
  width: 54px;
  height: 68px;
  border-radius: 20px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 18px 40px rgba(6, 78, 37, .2);
}

.pad-left { left: 2%; }
.pad-right { right: 2%; }

.device-spark {
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 35px rgba(6, 78, 37, .16);
}

.spark-one {
  right: 5%;
  top: 7%;
  width: 54px;
  height: 16px;
}

.spark-two {
  left: 11%;
  bottom: 4%;
  width: 74px;
  height: 16px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #8b8b8b;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.slider-btn .icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.6;
}

.slider-btn.left { left: -22px; }
.slider-btn.right { right: -22px; }

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: -12px 0 28px;
}

.service-strip article {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 84px;
  padding: 16px;
  border: 1px solid rgba(34, 197, 94, .18);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 36px rgba(15, 61, 34, .07);
}

.service-strip i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--gold-dark);
  flex: 0 0 auto;
}

.service-strip strong,
.service-strip span {
  display: block;
}

.service-strip strong {
  color: #102519;
  font-size: 15px;
  font-weight: 900;
}

.service-strip span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.stat-card {
  min-height: 108px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.86)),
    radial-gradient(circle at 90% 10%, rgba(255,194,26,.22), transparent 35%);
  box-shadow: 0 14px 34px rgba(0,0,0,.055);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(0,0,0,.09);
}

.stat-card span {
  display: block;
  color: #111;
  font-weight: 750;
}

.stat-card strong {
  display: inline-block;
  margin-top: 4px;
  color: var(--gold-dark);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.stat-card small {
  color: #555;
  margin-left: 4px;
}

.stat-card .stat-icon {
  position: absolute;
  right: 18px;
  top: 19px;
  color: #f3d866;
  display: grid;
  place-items: center;
}

.stat-card .stat-icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 14px 0 24px;
}

.section-row h2,
.page-title h1 {
  margin: 0;
  color: #090909;
  font-size: 32px;
  line-height: 1.2;
}

.section-row p,
.page-title p {
  margin: 6px 0 0;
  color: #8a8a8a;
  font-style: italic;
}

.section-row a {
  font-weight: 800;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.text-link .icon {
  width: 16px;
  height: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-bottom: 34px;
  border-bottom: 1px solid #f0f0f0;
}

.category-grid.all {
  border-bottom: 0;
  margin-bottom: 28px;
}

.category-admin-tools {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 0;
}

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

.category-modal-form {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.category-card {
  min-height: 190px;
  position: relative;
  aspect-ratio: var(--fit-desktop-ratio, auto);
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(22, 163, 74, .92), rgba(126, 226, 58, .78)),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.4), transparent 25%);
  box-shadow: 0 18px 42px rgba(22, 163, 74, .18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  background-size: cover;
  background-position: center;
}

.category-card .managed-image {
  opacity: 1;
}

.category-card.has-category-image {
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(22, 163, 74, .92), rgba(126, 226, 58, .78));
}

.category-card.has-category-image {
  background-size: cover;
  background-position: center;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 26px 60px rgba(22, 163, 74, .26);
  filter: saturate(1.08);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: radial-gradient(circle, rgba(255,255,255,.38) 0 3px, transparent 4px);
  background-size: 60px 60px;
}

.category-card .card-dog {
  position: absolute;
  left: 28px;
  top: 23px;
  width: 92px;
  height: 88px;
  transform: rotate(-10deg);
}

.card-dog::before {
  content: "";
  display: block;
  width: 76px;
  height: 58px;
  margin: 20px auto 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 6px #15803d, 13px 10px 0 #22c55e, -12px 14px 0 #22c55e;
}

.category-shortcut {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .92), rgba(34, 197, 94, .74)),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.55), transparent 24%);
}

.category-shortcut .card-route-icon {
  position: absolute;
  left: 28px;
  top: 26px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  color: #052e16;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: 0 18px 34px rgba(5, 46, 22, .18);
}

.category-shortcut .card-route-icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.category-card h3 {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 18px 24px;
  background: rgba(255,255,255,.94);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 -10px 20px rgba(255,255,255,.7);
}

.category-card h3 span {
  display: block;
  color: #9b9b9b;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.recommendations-head { margin-top: 4px; }

.recommend-box {
  min-height: 150px;
  display: block;
  gap: 16px;
  padding: 18px;
  border: 1px solid #bbf7d0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 0%, rgba(126, 226, 58, .18), transparent 30%),
    linear-gradient(180deg, #f7fff9, #ffffff);
  box-shadow: 0 18px 48px rgba(22, 163, 74, .08);
  overflow: hidden;
}

.recommend-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
}

.recommend-track.is-looping {
  animation: none;
}

.recommend-box:hover .recommend-track.is-looping {
  animation-play-state: paused;
}

@keyframes recommend-loop {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}

.recommend-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid #d8f5df;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px rgba(22, 163, 74, .08);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.recommend-card:hover {
  transform: translateY(-3px);
  border-color: #22c55e;
  box-shadow: 0 22px 42px rgba(22, 163, 74, .16);
}

.recommend-media {
  position: relative;
  min-height: 0;
  aspect-ratio: var(--fit-desktop-ratio, auto);
  overflow: hidden;
  border-radius: 14px;
  background: #ecfff2;
}

.recommend-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.recommend-media .managed-image {
  min-height: 0;
  object-fit: var(--fit-desktop-fit, cover);
  object-position: var(--fit-desktop-x, 50%) var(--fit-desktop-y, 50%);
}

.recommend-media span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  color: #166534;
  background: rgba(236, 255, 242, .94);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.recommend-fallback-art {
  width: 100%;
  height: 180px;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #064e3b;
  background:
    radial-gradient(circle at 30% 25%, rgba(34,197,94,.32), transparent 32%),
    linear-gradient(135deg, #dcfce7, #f7fff9);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: 0;
}

.recommend-body {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: center;
}

.recommend-body strong {
  color: #12301d;
  font-size: 18px;
  line-height: 1.25;
}

.recommend-body p {
  margin: 0;
  color: #5f7467;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-card.recommend-peamsub .recommend-media {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.recommend-card.recommend-game_topup .recommend-media {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.recommend-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.recommend-meta b {
  color: #16a34a;
  font-size: 20px;
}

.recommend-meta small {
  color: #52705e;
  font-weight: 750;
}

.recommend-empty {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 130px;
  padding: 22px;
  border: 1px dashed #86efac;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(236,255,242,.96), rgba(255,255,255,.9));
}

.recommend-empty strong,
.recommend-empty span {
  display: block;
}

.recommend-empty strong {
  color: #12301d;
  font-size: 20px;
}

.recommend-empty span {
  margin-top: 4px;
  color: #52705e;
  font-weight: 700;
}

.empty-products-message {
  grid-column: 1 / -1;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed #86efac;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236,255,242,.96), rgba(255,255,255,.9));
  color: #12301d;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

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

.product-card,
.panel,
.order-card,
.policy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.045);
}

.product-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(0,0,0,.10);
}

.product-card.is-out-of-stock {
  filter: grayscale(1);
  opacity: .58;
}

.product-card.is-out-of-stock:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.045);
}

.product-card.is-out-of-stock .gold-btn {
  cursor: not-allowed;
  background: #cbd5e1;
  color: #475569;
  box-shadow: none;
}

.product-card img {
  width: 100%;
  height: 172px;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 16px;
  display: grid;
  gap: 11px;
}

.product-body h3 {
  margin: 0;
  font-size: 17px;
}

.badge {
  width: fit-content;
  padding: 4px 8px;
  color: #166534;
  background: linear-gradient(180deg, #ecfff2, #dcfce7);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.role-select {
  display: block;
  width: min(150px, 100%);
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.dev-editor-panel {
  gap: 14px;
}

.dev-editor-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.dev-editor-toolbar label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.dev-editor-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-weight: 800;
}

.dev-code-editor {
  width: 100%;
  min-height: min(64vh, 720px);
  resize: vertical;
  border: 1px solid rgba(22, 163, 74, .28);
  border-radius: 12px;
  padding: 16px;
  background: #07130c;
  color: #d9fbe5;
  font: 700 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  tab-size: 2;
}

.price {
  color: var(--gold-dark);
  font-size: 22px;
  font-weight: 900;
}

.agent-price-note {
  display: block;
  margin-top: -4px;
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
}

.category-sale-header {
  display: grid;
  gap: 4px;
  margin: 0 0 20px;
  min-height: 180px;
  align-content: center;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(34, 197, 94, .24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 84% 28%, rgba(126, 226, 58, .28), transparent 28%),
    linear-gradient(135deg, #ffffff, #dcfce7 58%, #f0fdf4);
  box-shadow: 0 24px 60px rgba(21, 128, 61, .08);
  overflow: hidden;
}

.category-sale-header span {
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
}

.category-sale-header strong {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
}

.category-sale-header small {
  color: var(--muted);
  font-weight: 800;
  max-width: 720px;
}

.category-products-panel {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(34, 197, 94, .22);
  border-radius: 18px;
  background:
    linear-gradient(rgba(22, 163, 74, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 163, 74, .035) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
}

.category-products-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-products-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.category-products-head h2 span {
  width: 8px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e, #86efac);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .12);
}

.category-products-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.category-products-metrics,
.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-products-metrics {
  justify-content: flex-end;
}

.category-products-metrics span,
.category-chip-row button {
  border: 1px solid rgba(34, 197, 94, .24);
  border-radius: 999px;
  background: #fff;
  color: #166534;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(22, 163, 74, .06);
}

.category-products-metrics span {
  padding: 10px 14px;
  white-space: nowrap;
}

.category-chip-row {
  margin: 0 0 18px;
}

.category-chip-row button {
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.category-chip-row button:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, .5);
}

.category-chip-row button.active {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-color: transparent;
  color: #052e16;
  box-shadow: 0 14px 30px rgba(34, 197, 94, .22);
}

.recommend-box {
  grid-template-columns: repeat(auto-fill, minmax(194px, 1fr));
}

.store-grid {
  grid-template-columns: repeat(auto-fill, minmax(194px, 1fr));
}

.recommend-card,
.product-card {
  display: grid;
  gap: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--product-card-button) 36%, transparent);
  border-radius: 14px;
  background: var(--product-card-bg);
  box-shadow: 0 20px 48px rgba(15, 23, 42, .14);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.recommend-card {
  grid-template-columns: 1fr;
  align-items: initial;
  border-color: rgba(34, 197, 94, .24);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 18px 44px rgba(15, 61, 34, .1);
}

.recommend-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--product-card-button) 72%, #ffffff);
  box-shadow: 0 26px 60px rgba(15, 23, 42, .18);
}

.recommend-card:hover {
  background: linear-gradient(180deg, #f7fff9 0%, #dcfce7 100%);
  box-shadow: 0 24px 54px rgba(34, 197, 94, .16);
}

.product-card:hover {
  background: var(--product-card-hover);
}

.recommend-media,
.product-media {
  min-height: 180px;
  overflow: hidden;
  border-radius: 7px;
  background: #122b1d;
}

.recommend-media {
  background: #e8f8ee;
}

.recommend-media img,
.product-media img,
.product-card img {
  width: 100%;
  height: 180px;
  min-height: 180px;
  object-fit: cover;
  display: block;
  opacity: .72;
  filter: saturate(.95) contrast(.96);
  transition: opacity .18s ease, transform .18s ease;
}

.recommend-card:hover img,
.product-card:hover img {
  opacity: .86;
  transform: scale(1.025);
}

.recommend-body,
.product-body {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 15px 2px 4px;
  align-content: end;
}

.recommend-body strong,
.product-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  text-transform: uppercase;
}

.recommend-body strong {
  color: #102519;
}

.product-body h3 {
  color: var(--product-card-text);
}

.recommend-body > b,
.product-body .price {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.recommend-body > b {
  color: #16a34a;
}

.product-body .price {
  color: var(--product-card-price);
}

.recommend-body button,
.product-body .gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 0;
  border-radius: 7px;
  background: var(--product-card-button);
  color: var(--product-card-button-text);
  font-weight: 900;
  box-shadow: 0 14px 24px color-mix(in srgb, var(--product-card-button) 22%, transparent);
}

.recommend-body button .icon,
.product-body .gold-btn .icon {
  width: 17px;
  height: 17px;
  color: currentColor;
  stroke-width: 2.35;
}

.recommend-body button:hover,
.product-body .gold-btn:hover {
  background: color-mix(in srgb, var(--product-card-button) 88%, #ffffff);
}

.recommend-body small,
.sold-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  justify-self: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 850;
}

.recommend-body small {
  background: #dcfce7;
  color: #0f8f55;
}

.sold-line {
  background: color-mix(in srgb, var(--product-card-meta) 10%, transparent);
  color: var(--product-card-meta);
}

.recommend-body small .icon,
.sold-line .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.recommend-body small .icon {
  color: #0f8f55;
}

.sold-line .icon {
  color: var(--product-card-meta);
}

.sold-icon {
  display: inline-grid;
  place-items: center;
}

.muted { color: var(--muted); }

.page-title {
  margin: 0 0 22px;
}

.page-title h1 span {
  color: var(--gold);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  margin-bottom: 20px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px 13px;
  font-size: 16px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  padding: 0;
}

label:not(.option-toggle):not(.check-row):has(> input[type="checkbox"]) {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 9px 11px;
  border: 1px solid #eadfce;
  border-radius: 13px;
  background: #fff;
}

label:not(.option-toggle):not(.check-row):has(> input[type="checkbox"]) input[type="checkbox"] {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid #e1d2b7;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

label:not(.option-toggle):not(.check-row):has(> input[type="checkbox"]) input[type="checkbox"]::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(45deg);
}

label:not(.option-toggle):not(.check-row):has(> input[type="checkbox"]) input[type="checkbox"]:checked {
  border-color: var(--gold-dark);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 6px 16px rgba(22, 163, 74, .20);
}

label:not(.option-toggle):not(.check-row):has(> input[type="checkbox"]) input[type="checkbox"]:checked::after {
  opacity: 1;
}

label {
  display: grid;
  gap: 7px;
  color: #2f343b;
  font-weight: 650;
}

.gold-btn {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #b7f86a, var(--gold));
  color: #12301d;
  padding: 11px 16px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(22, 163, 74, .18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.gold-btn:hover {
  background: linear-gradient(180deg, #8df05a, var(--gold-dark));
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(22, 163, 74, .24);
}

.gold-btn:disabled,
.gold-btn.is-loading {
  cursor: wait;
  opacity: .78;
  transform: none;
  filter: saturate(.86);
  box-shadow: none;
}

.gold-btn.is-loading {
  position: relative;
}

.gold-btn.is-loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.small { padding: 8px 12px; }
.full { width: 100%; }

.row,
.drawer-head,
.cart-total,
.line-item,
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stack { display: grid; gap: 12px; }
.compact { gap: 8px; font-size: 14px; }

.two-col {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) 1fr;
  gap: 18px;
}

.page-narrow {
  max-width: 1180px;
}

.wallet-page {
  max-width: 1400px;
}

.wallet-layout {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
  gap: 24px;
  align-items: start;
}

.panel,
.policy,
.order-card {
  padding: 20px;
}

.wallet-form-panel,
.wallet-history-panel {
  padding: 30px;
  border-color: #c9f7d4;
  box-shadow: 0 18px 48px rgba(22, 163, 74, .08);
}

.wallet-form-panel {
  gap: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(126, 226, 58, .16), transparent 28%),
    linear-gradient(180deg, #ffffff, #f7fff9);
}

.wallet-form-panel h2 {
  margin-bottom: 2px;
}

.wallet-form-panel > label {
  gap: 10px;
  color: #12301d;
}

.wallet-form-panel input[name="amount"] {
  min-height: 58px;
  border-color: #bbf7d0;
  border-radius: 16px;
  background: #ffffff;
  color: #12301d;
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.wallet-balance {
  margin: 12px 0 18px;
  color: var(--gold-dark);
  font-size: 38px;
  font-weight: 950;
}

.wallet-history-subtitle {
  margin: -4px 0 16px;
  color: #52705e;
  font-size: 13px;
  font-weight: 700;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(106px, 1fr));
  gap: 12px;
}

.quick-amounts button {
  min-height: 58px;
  border: 1px solid #ccefd5;
  background: linear-gradient(180deg, #ffffff, #f2fff5);
  color: var(--gold-dark);
  border-radius: 16px;
  padding: 10px 8px;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 163, 74, .06);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.quick-amounts button:hover,
.quick-amounts button.active {
  border-color: var(--gold-dark);
  background: linear-gradient(180deg, #eaffef, #d9ffd8);
  box-shadow: 0 12px 26px rgba(22, 163, 74, .16);
  transform: translateY(-1px);
}

.wallet-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 12px;
}

.wallet-methods label {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 88px;
  padding: 16px;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  background: #f7fff9;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.wallet-methods label:has(input:checked) {
  border-color: #22c55e;
  background: linear-gradient(180deg, #ecfff2, #ffffff);
  box-shadow: 0 12px 28px rgba(22, 163, 74, .14);
}

.wallet-methods label:hover {
  transform: translateY(-1px);
  border-color: #22c55e;
}

.wallet-method-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(180deg, #dcfce7, #bbf7d0);
  color: #15803d;
  box-shadow: 0 10px 22px rgba(22, 163, 74, .12);
}

.wallet-method-icon .icon {
  width: 20px;
  height: 20px;
  color: inherit;
  stroke-width: 2.25;
}

.wallet-methods input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold-dark);
}

.wallet-methods strong,
.wallet-methods small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.wallet-methods small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

#walletSubmitButton {
  min-height: 58px;
  border-radius: 18px;
  font-size: 16px;
  letter-spacing: 0;
}

.wallet-pay-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid #bbf7d0;
  border-radius: 22px;
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
  text-align: center;
}

.wallet-pay-card h3 {
  margin: 8px 0 0;
  color: var(--gold-dark);
  font-size: 28px;
}

.wallet-pay-card img {
  width: min(320px, 100%);
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  background: #f7fff9;
  padding: 12px;
}

.promptpay-info {
  display: grid;
  gap: 4px;
  width: min(420px, 100%);
  padding: 12px;
  border-radius: 14px;
  background: #ecfff2;
}

.wallet-history-panel .line-item {
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #d8f5df;
  border-radius: 14px;
  background: #ffffff;
}

.wallet-history-panel .compact {
  gap: 10px;
}

.wallet-tx-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid #d8f5df;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fff9);
}

.wallet-tx-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
}

.wallet-tx-title strong {
  color: #12301d;
}

.wallet-tx-title span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfff2;
  color: #166534;
  font-size: 12px;
  font-weight: 900;
}

.wallet-tx-card p {
  margin: 0 0 6px;
  color: #52705e;
  font-size: 13px;
  line-height: 1.45;
}

.wallet-tx-card small {
  display: block;
  color: #6b7c70;
  font-weight: 650;
  line-height: 1.45;
}

.wallet-tx-card > b {
  color: #12301d;
  white-space: nowrap;
}

.wallet-tx-card.status-completed,
.wallet-tx-card.status-paid {
  border-color: #86efac;
}

.wallet-tx-card.status-rejected .wallet-tx-title span {
  background: #fff1f2;
  color: #be123c;
}

.wallet-tx-card.status-pending .wallet-tx-title span,
.wallet-tx-card.status-slip_uploaded .wallet-tx-title span {
  background: #fef9c3;
  color: #854d0e;
}

.wallet-admin-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #c8f5d4;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f4fff7);
  box-shadow: 0 16px 36px rgba(34, 197, 94, .08);
}

.wallet-admin-review p {
  margin: 5px 0 8px;
  color: #52705e;
  font-size: 14px;
}

.wallet-admin-review a,
.wallet-admin-review span {
  display: inline-flex;
  margin-right: 10px;
}

.wallet-admin-review > div:last-child {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.wallet-admin-review b {
  color: var(--green);
  font-size: 20px;
}

.promptpay-info span {
  color: #6f7480;
  font-weight: 700;
}

.wallet-proof-form input[type="file"] {
  padding: 10px;
}

.wallet-proof-form.is-verifying {
  opacity: .86;
  pointer-events: none;
}

.verify-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  text-align: left;
}

.verify-note strong {
  color: var(--red);
}

.verify-note span {
  color: var(--muted);
  font-size: 13px;
}

.qr-box img {
  display: block;
  max-width: 240px;
  width: 100%;
  margin-top: 14px;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: linear-gradient(180deg, #f7fff9, #ffffff);
  border-color: #bbf7d0;
}

.contact-panel div {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #fafafa;
  border-radius: 10px;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  background: linear-gradient(145deg, #f0fdf4, #ffffff);
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 14px 30px rgba(22, 163, 74, .06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -34px auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(126, 226, 58, .16);
  pointer-events: none;
}

.contact-card i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  grid-row: span 2;
  border-radius: 14px;
  background: linear-gradient(180deg, #dcfce7, #bbf7d0);
  color: #15803d;
  box-shadow: 0 10px 22px rgba(22, 163, 74, .12);
}

.contact-card i .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.3;
}

.contact-card strong {
  color: #12301d;
  font-size: 16px;
  line-height: 1.2;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: #22c55e;
  background: linear-gradient(145deg, #ecfff2, #ffffff);
  box-shadow: 0 18px 42px rgba(22, 163, 74, .14);
}

.contact-panel span {
  color: #52705e;
  font-weight: 700;
}

.contact-admin-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 90px auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #f0e3cc;
  border-radius: 16px;
  background: #fff;
}

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

.theme-grid label {
  display: grid;
  grid-template-columns: 1fr 58px;
  align-items: center;
  gap: 10px;
}

.theme-grid input[type="color"] {
  width: 58px;
  height: 42px;
  padding: 4px;
}

.asset-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #c8f5d4;
  border-radius: 16px;
  background: #f4fff7;
}

.asset-preview span {
  color: #355342;
  font-size: 13px;
  font-weight: 850;
}

.asset-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d8f5df;
  background: #fff;
}

.settings-number-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.settings-number-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #c8f5d4;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f4fff7);
}

.settings-number-grid span {
  color: #355342;
  font-weight: 850;
  white-space: nowrap;
}

.settings-number-grid input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  text-align: left;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 12% 20%, rgba(126, 226, 58, .22), transparent 26%),
    linear-gradient(135deg, #fff, #f2fff5);
}

.profile-avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #166534;
  background: linear-gradient(135deg, #dcfce7, var(--gold));
  box-shadow: 0 16px 34px rgba(22, 163, 74, .18);
}

.profile-avatar .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.8;
}

.profile-hero h1 {
  margin: 4px 0;
  font-size: 32px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.profile-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.profile-menu-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.profile-menu-card strong,
.profile-menu-card small {
  grid-column: 2;
  min-width: 0;
}

.profile-menu-card strong {
  font-size: 15px;
}

.profile-menu-card small {
  color: var(--muted);
  font-weight: 700;
}

.profile-menu-card i {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: #94a3b8;
}

.profile-menu-card.active {
  border-color: rgba(34, 197, 94, .45);
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  box-shadow: 0 14px 28px rgba(34, 197, 94, .12);
}

.profile-menu-icon {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #ecfdf5;
  color: #16a34a;
}

.profile-menu-icon-youtube {
  background: #fff1f2;
  color: #ef4444;
}

.profile-menu-icon-wallet {
  background: #fff7ed;
  color: #f97316;
}

.profile-menu-icon-orders {
  background: #eff6ff;
  color: #2563eb;
}

.profile-menu-icon-like {
  background: #faf5ff;
  color: #a855f7;
}

.profile-history-head {
  margin-top: 6px;
}

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

@media (max-width: 620px) {
  .profile-menu {
    grid-template-columns: 1fr;
  }

  .profile-menu-card {
    min-height: 68px;
  }
}

.password-panel {
  margin: 0 0 30px;
  padding: 22px;
}

.password-panel .section-row {
  margin-bottom: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.form-grid input {
  min-width: 0;
  width: 100%;
  border: 1px solid #d8f5df;
  border-radius: 12px;
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
}

.policy {
  padding: 26px;
}

.policy + .policy {
  margin-top: 18px;
}

.policy h1,
.policy h2 {
  color: #102519;
  line-height: 1.2;
}

.policy h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 38px);
}

.policy h2 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.policy p {
  margin: 8px 0;
  color: #475569;
  line-height: 1.75;
}

.profile-stat-card {
  display: grid;
  gap: 6px;
}

.profile-stat-card span {
  color: #555;
  font-weight: 700;
}

.profile-stat-card strong {
  color: var(--gold-dark);
  font-size: 28px;
  line-height: 1;
}

.profile-stat-card small {
  color: var(--muted);
}

.profile-orders {
  display: grid;
  gap: 12px;
}

.profile-order-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.035);
  cursor: pointer;
}

.profile-detail-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid #047857;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #047857);
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  opacity: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
  box-shadow: 0 10px 22px rgba(4, 120, 87, .24);
}

.profile-detail-btn .icon {
  width: 14px;
  height: 14px;
  color: currentColor;
  stroke: currentColor;
  background: transparent;
}

.wallet-tx-card.is-clickable {
  cursor: pointer;
}

.wallet-tx-card.is-clickable .profile-detail-btn {
  grid-column: 1 / -1;
}

.profile-history-detail-card {
  position: relative;
  width: min(620px, calc(100vw - 26px));
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .24);
}

.profile-history-detail {
  display: grid;
  gap: 16px;
}

.profile-history-detail h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 4vw, 32px);
}

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

.profile-detail-grid div,
.profile-detail-section {
  padding: 12px;
  border: 1px solid #d8f5df;
  border-radius: 14px;
  background: #f8fff9;
}

.profile-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-detail-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.profile-detail-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.profile-detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-order-top,
.profile-order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-order-top div {
  display: grid;
  gap: 2px;
}

.profile-order-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-order-top span,
.profile-order-bottom span {
  color: var(--muted);
  font-size: 13px;
}

.profile-order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-order-items span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fafafa;
  color: #555;
  font-size: 13px;
}

.status-badge {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #6e4a00;
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.status-waiting_admin {
  color: #854d0e;
  background: #fef3c7;
}

.status-cleared {
  color: #065f46;
  background: #d1fae5;
}

.preorder-help {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #78350f;
  font-size: 12px;
  line-height: 1.45;
}

.preorder-help strong {
  font-size: 13px;
}

.admin-preorder-prize {
  max-width: 280px;
  max-height: 120px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.preorder-admin-form {
  display: grid;
  gap: 8px;
  min-width: min(320px, 42vw);
}

.preorder-admin-form textarea {
  min-height: 82px;
  resize: vertical;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.premium-order-groups {
  display: grid;
  gap: 16px;
}

.premium-order-group {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold-dark) 14%, transparent);
  border-radius: 14px;
  background: rgba(255,255,255,.74);
}

.premium-order-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold-dark) 12%, transparent);
  background: color-mix(in srgb, var(--soft) 70%, #ffffff);
}

.premium-order-group-head h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 17px;
}

.premium-order-group-head h4 span {
  display: inline-grid;
  min-width: 28px;
  min-height: 24px;
  place-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #065f46;
  background: #dcfce7;
  font-size: 13px;
}

.premium-order-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.premium-order-group-failed .premium-order-group-head {
  background: #fff7ed;
}

.premium-order-group-failed .premium-order-group-head h4 span {
  color: #991b1b;
  background: #fee2e2;
}

.premium-order-table {
  min-width: 900px;
}

.premium-order-table th:nth-child(1),
.premium-order-table td:nth-child(1) {
  width: 15%;
}

.premium-order-table th:nth-child(2),
.premium-order-table td:nth-child(2) {
  width: 16%;
}

.premium-order-table th:nth-child(3),
.premium-order-table td:nth-child(3) {
  width: 18%;
}

.premium-order-table th:nth-child(4),
.premium-order-table td:nth-child(4) {
  width: 8%;
}

.premium-order-table th:nth-child(5),
.premium-order-table td:nth-child(5) {
  width: 20%;
}

.premium-order-table th:nth-child(6),
.premium-order-table td:nth-child(6) {
  width: 23%;
}

.premium-order-table td {
  vertical-align: middle;
}

.status-paid,
.status-completed {
  color: #087044;
  background: #e9fff4;
}

.status-rejected {
  color: #166534;
  background: #f0fdf4;
}

.footer {
  width: min(1240px, calc(100vw - 24px));
  margin: 0 auto;
  background: rgba(255,255,255,.9);
  border-top: 1px solid #f4f4f4;
  padding: 62px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 90px;
}

.footer h2,
.footer h3 { margin-top: 0; }

.footer p,
.footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7a7a7a;
  line-height: 1.8;
}

.footer a .icon {
  width: 16px;
  height: 16px;
}

.footer-trust h3 {
  margin-bottom: 16px;
}

.trust-list {
  display: grid;
  gap: 12px;
}

.trust-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  background: linear-gradient(145deg, #f0fdf4, #ffffff);
  box-shadow: 0 12px 28px rgba(22, 163, 74, .07);
}

.trust-list i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, #dcfce7, #bbf7d0);
  color: #15803d;
  box-shadow: 0 10px 22px rgba(22, 163, 74, .12);
}

.trust-list i .icon {
  width: 20px;
  height: 20px;
  color: inherit;
  stroke-width: 2.35;
}

.trust-list strong,
.trust-list span {
  display: block;
}

.trust-list strong {
  color: #12301d;
  font-size: 15px;
  line-height: 1.25;
}

.trust-list span {
  margin-top: 3px;
  color: #52705e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid #f2f2f2;
  display: flex;
  justify-content: space-between;
  color: #9b9b9b;
  font-size: 13px;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  width: min(440px, 100vw);
  height: 100vh;
  padding: 20px;
  background: #fff;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .18s ease;
  overflow: auto;
}

.drawer.open { transform: translateX(0); }

.line-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.cart-total {
  margin: 18px 0;
  font-size: 20px;
}

#cartTotal {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.cart-original-price {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.cart-final-price {
  color: var(--green);
  font-size: 22px;
  font-weight: 950;
}

.sale-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 5px 8px;
  line-height: 1.15;
}

.sale-price em {
  color: color-mix(in srgb, var(--muted) 82%, var(--ink));
  font-size: .78em;
  font-style: normal;
  font-weight: 850;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.sale-price b {
  color: currentColor;
  font: inherit;
  font-weight: 950;
}

.sale-price small {
  padding: 3px 7px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--green) 82%, var(--ink));
  background: color-mix(in srgb, var(--green) 12%, #ffffff);
  font-size: 11px;
  font-weight: 950;
}

.detail-sale-price {
  justify-content: flex-start;
}

.site-sale-admin-card {
  gap: 14px;
}

.site-sale-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px);
  gap: 12px;
  align-items: end;
}

.site-sale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-sale-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding: 2px;
}

.site-sale-item {
  display: grid;
  grid-template-columns: 22px 48px minmax(0, 1fr) minmax(78px, auto);
  grid-template-areas: "check thumb copy price";
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  min-height: 74px;
  margin: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--green) 18%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 94%, var(--soft));
}

.site-sale-list label.site-sale-item {
  display: grid !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

.site-sale-list .site-sale-item > input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-sale-check {
  grid-area: check;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--green) 36%, var(--line));
  border-radius: 7px;
  background: #fff;
  justify-self: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.site-sale-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(45deg);
}

.site-sale-list .site-sale-item > input[type="checkbox"]:checked + .site-sale-check {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--gold), var(--green));
  box-shadow: 0 6px 16px rgba(22, 163, 74, .22);
}

.site-sale-list .site-sale-item > input[type="checkbox"]:checked + .site-sale-check::after {
  opacity: 1;
}

.site-sale-list .site-sale-item:has(> input[type="checkbox"]:checked) {
  border-color: color-mix(in srgb, var(--green) 72%, var(--line));
  background: color-mix(in srgb, var(--soft) 64%, #fff);
  box-shadow: 0 10px 24px rgba(22, 163, 74, .08);
}

.game-price-table tr.is-hidden-sale-row {
  background: color-mix(in srgb, #f3f4f6 82%, #fff);
  opacity: .78;
}

.hidden-sale-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.premium-hidden-toggle {
  border-color: color-mix(in srgb, var(--green) 22%, var(--line));
}

.premium-hidden-toggle.is-hidden {
  border-color: #fecaca !important;
  background: #fff1f2 !important;
  color: #991b1b;
}

.premium-hidden-toggle.is-hidden input[type="checkbox"]:checked {
  border-color: #ef4444 !important;
  background: linear-gradient(135deg, #fb7185, #ef4444) !important;
}

.premium-hidden-action {
  justify-content: center;
  min-height: 42px;
  border-color: #fecaca !important;
  background: #fff7f7 !important;
  color: #991b1b !important;
  font-weight: 950;
}

.premium-hidden-action:hover {
  background: #fee2e2 !important;
}

.premium-hidden-action.is-hidden {
  border-color: color-mix(in srgb, var(--green) 34%, var(--line)) !important;
  background: color-mix(in srgb, var(--soft) 72%, #fff) !important;
  color: #166534 !important;
}

.site-sale-thumb {
  grid-area: thumb;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.site-sale-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-sale-copy {
  grid-area: copy;
  display: grid;
  min-width: 0;
  gap: 2px;
}

.site-sale-copy strong,
.site-sale-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-sale-copy strong {
  font-size: 13px;
  font-weight: 950;
}

.site-sale-copy small,
.site-sale-price small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.site-sale-price {
  grid-area: price;
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 2px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-sale-controls {
    grid-template-columns: 1fr;
  }

  .site-sale-list {
    grid-template-columns: 1fr;
  }

  .site-sale-item {
    grid-template-columns: 22px 44px minmax(0, 1fr);
    grid-template-areas:
      "check thumb copy"
      "check thumb price";
  }

  .site-sale-price {
    grid-column: 3;
    justify-items: start;
  }
}

.payment-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.payment-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.payment-credit-note {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(34, 197, 94, .24);
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  color: #12301d;
  box-shadow: 0 12px 28px rgba(22, 163, 74, .08);
}

.payment-credit-note strong {
  font-size: 15px;
  font-weight: 900;
}

.payment-credit-note span {
  color: #64746b;
  font-size: 12px;
  font-weight: 800;
}

.checkout-assurance {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, .18);
  border-radius: 12px;
  background: #f7fff9;
  color: #42614d;
  font-size: 12px;
  font-weight: 700;
}

.checkout-assurance span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkout-assurance .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.floating-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  border: 0;
  border-radius: 999px;
  padding: 12px 15px;
  background: #111;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.floating-cart .icon {
  width: 20px;
  height: 20px;
}

body.premium-fullscreen .floating-cart {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(126, 226, 58, .26), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(22, 163, 74, .20), transparent 30%),
    rgba(10, 10, 10, .42);
  padding: 16px;
  backdrop-filter: blur(8px);
}

.auth-card {
  position: relative;
  width: min(920px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: .92fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(0,0,0,.24);
}

.auth-visual {
  position: relative;
  padding: 36px;
  color: #12301d;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.75), transparent 20%),
    radial-gradient(circle at 78% 28%, rgba(255,255,255,.42), transparent 20%),
    linear-gradient(145deg, #dcfce7, #7ee23a 48%, #16a34a);
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.28) 0 8px, transparent 8px 30px),
    radial-gradient(circle, rgba(255,255,255,.36) 0 3px, transparent 4px);
  background-size: 72px 72px, 92px 92px;
  opacity: .48;
}

.auth-visual > * {
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(151, 82, 0, .16);
}

.auth-visual h2 {
  margin: 74px 0 14px;
  max-width: 360px;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: 0;
}

.auth-visual p {
  max-width: 360px;
  margin: 0;
  color: rgba(36,24,0,.74);
  line-height: 1.8;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  margin-top: 42px;
}

.auth-benefits span {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 13px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 700;
}

.auth-benefits .icon {
  color: #b87500;
}

.auth-form {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(28px, 5vw, 54px);
}

.auth-heading {
  margin-bottom: 8px;
}

.auth-heading h2 {
  margin: 6px 0 6px;
  font-size: 34px;
  line-height: 1.1;
}

.auth-heading p,
.modal-card p {
  margin: 0;
  color: var(--muted);
}

.auth-kicker {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafafa;
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.active {
  background: linear-gradient(135deg, var(--gold), #dcfce7);
  color: #2a1600;
  box-shadow: 0 12px 26px rgba(22, 163, 74, .18);
}

.auth-panel {
  display: grid;
  gap: 14px;
}

.auth-identity-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  gap: 8px;
}

.input-wrap {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.input-wrap:focus-within {
  border-color: rgba(34, 197, 94, .95);
  box-shadow: 0 0 0 4px rgba(126, 226, 58, .18);
}

.input-wrap .icon {
  color: #a6a6a6;
}

.input-wrap input {
  border: 0;
  border-radius: 0;
  padding: 14px 0;
  outline: 0;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.auth-actions button {
  min-height: 46px;
}

.auth-submit {
  min-height: 48px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid #e1d2b7;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.check-row input::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(45deg);
}

.check-row input:checked {
  border-color: var(--gold-dark);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 6px 16px rgba(22, 163, 74, .20);
}

.check-row input:checked::after {
  opacity: 1;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  color: #333;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.ad-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 19, 12, .62);
  backdrop-filter: blur(10px);
}

.ad-popup-card {
  position: relative;
  width: min(92vw, 860px);
  border-radius: 24px;
  background: rgba(247, 255, 250, .96);
  border: 1px solid rgba(34, 197, 94, .28);
  box-shadow: 0 30px 80px rgba(3, 22, 12, .32);
  overflow: hidden;
}

.ad-popup-close {
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .94);
}

.ad-popup-image-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.ad-popup-image-button img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ecfff4;
}

.ad-popup-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}

.ad-popup-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 0 0 1px rgba(2, 44, 24, .16);
  pointer-events: auto;
}

.ad-popup-dots button.active {
  width: 22px;
  background: #22c55e;
}

.product-detail-card {
  position: relative;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: .95fr 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(0,0,0,.24);
}

.product-detail-media {
  min-height: 520px;
  background:
    radial-gradient(circle at 18% 20%, rgba(126, 226, 58, .20), transparent 26%),
    #f2fff5;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.product-detail-info {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(28px, 5vw, 54px);
}

.product-detail-info h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-price-row strong {
  color: var(--gold-dark);
  font-size: 34px;
  line-height: 1;
}

.detail-note {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: #f2fff5;
}

.detail-note p {
  margin: 0;
  color: #6b7280;
}

.qty-control span {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 8px;
}

.qty-control input {
  text-align: center;
  font-weight: 800;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-actions button {
  min-height: 48px;
}

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 75;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.12);
}

.cookie p { margin: 4px 0 0; color: var(--muted); }

.cookie-options,
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.cookie-options input {
  appearance: none;
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid #e1d2b7;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.cookie-options input::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(45deg);
}

.cookie-options input:checked {
  border-color: var(--gold-dark);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 6px 16px rgba(22, 163, 74, .20);
}

.cookie-options input:checked::after {
  opacity: 1;
}

.cookie-actions .light-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 95;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 12px 12px 12px 14px;
  border: 1px solid color-mix(in srgb, var(--toast-color) 18%, rgba(255,255,255,.9));
  border-radius: 14px;
  color: #1f2a24;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)),
    var(--toast-bg);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .12);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  animation: toast-in .22s ease both;
}

.toast-card.leaving {
  animation: toast-out .18s ease both;
}

.toast-success {
  --toast-color: #22c55e;
  --toast-bg: #ecfff2;
}

.toast-purchase {
  --toast-color: #16a34a;
  --toast-bg: #edfff4;
  border-color: rgba(34, 197, 94, .36);
  box-shadow: 0 22px 54px rgba(22, 163, 74, .22);
}

.toast-purchase .toast-icon {
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 10px 24px rgba(34, 197, 94, .28);
}

.toast-error {
  --toast-color: #ef4444;
  --toast-bg: #fff7f7;
}

.toast-warning {
  --toast-color: #f59e0b;
  --toast-bg: #fff8e6;
}

.toast-info {
  --toast-color: #0ea5e9;
  --toast-bg: #eef8ff;
}

.toast-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--toast-color);
  background: color-mix(in srgb, var(--toast-color) 13%, #fff);
}

.toast-error .toast-icon {
  color: #ef4444;
  background: #fff;
  border: 2px solid #ef4444;
  box-shadow: 0 8px 18px rgba(239, 68, 68, .16);
}

.toast-icon .icon {
  width: 18px;
  height: 18px;
  color: inherit;
  stroke: currentColor;
}

.toast-text {
  white-space: pre-line;
  color: #17231c;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.toast-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .06);
  color: #758079;
  font-size: 20px;
  line-height: 1;
}

.toast-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--toast-color);
  transform-origin: left;
  animation: toast-progress 4.2s linear both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(18px) scale(.98); }
}

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-tabs button.active {
  border-color: var(--gold);
  background: var(--gold);
}

.admin-tabs button .icon {
  width: 17px;
  height: 17px;
  color: var(--green);
  stroke-width: 2.2;
}

.admin-tabs button.active .icon {
  color: #0b3d1f;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
}

.game-price-game {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 210px;
}

.game-price-game img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.game-price-table small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.game-price-table input[type="number"],
.game-price-table input[name="note"] {
  width: 100%;
  min-width: 120px;
}

.custom-premium-panel .admin-table-wrap {
  overflow-x: auto;
}

.custom-premium-table {
  min-width: 1180px;
  table-layout: fixed;
}

.custom-premium-table th:nth-child(1),
.custom-premium-table td:nth-child(1) {
  width: 34%;
}

.custom-premium-table th:nth-child(2),
.custom-premium-table td:nth-child(2) {
  width: 14%;
}

.custom-premium-table th:nth-child(3),
.custom-premium-table td:nth-child(3) {
  width: 22%;
}

.custom-premium-table th:nth-child(4),
.custom-premium-table td:nth-child(4) {
  width: 23%;
}

.custom-premium-table th:nth-child(5),
.custom-premium-table td:nth-child(5) {
  width: 7%;
}

.custom-premium-table td {
  vertical-align: top;
}

.custom-premium-table td > input,
.custom-premium-table td > select,
.custom-premium-table td > textarea,
.custom-premium-table td > label {
  width: 100%;
  margin-top: 10px;
}

.custom-premium-table td > label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.custom-premium-table td > label input,
.custom-premium-table td > label select {
  width: 100%;
  min-width: 0;
}

.custom-premium-table .game-price-game {
  min-width: 0;
  margin-bottom: 10px;
}

.custom-premium-table .premium-image-actions {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}

.custom-premium-table .compact-file {
  margin: 0;
}

.custom-premium-table .inline-check {
  display: flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.84);
  color: var(--ink);
}

.custom-premium-table .inline-check input {
  width: auto;
  min-width: 0;
  margin: 0;
}

.custom-premium-table td:last-child {
  padding-left: 16px;
}

.custom-premium-table td:last-child .small-btn {
  width: 100%;
  margin: 0 0 10px;
}

.custom-premium-list {
  display: grid;
  gap: 14px;
}

.custom-premium-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
}

.custom-premium-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--orange) 14%, var(--line));
}

.custom-premium-card-head .game-price-game {
  min-width: 0;
}

.custom-premium-card-head .game-price-game span {
  min-width: 0;
}

.custom-premium-card-head .game-price-game strong,
.custom-premium-card-head .game-price-game small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-premium-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.custom-premium-actions .small-btn {
  min-width: 82px;
}

.custom-premium-form-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.25fr) minmax(220px, .7fr) minmax(240px, .75fr);
  gap: 16px;
  align-items: start;
}

.custom-premium-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.custom-premium-block h4 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.custom-premium-block input,
.custom-premium-block select,
.custom-premium-block textarea {
  width: 100%;
  min-width: 0;
}

.custom-premium-block label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.custom-premium-main {
  grid-template-columns: 1fr 1fr;
}

.custom-premium-main h4,
.custom-premium-main .premium-image-actions,
.custom-premium-main textarea,
.custom-premium-main .muted {
  grid-column: 1 / -1;
}

.custom-premium-main .premium-image-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.custom-premium-card .inline-check {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.84);
  color: var(--ink);
}

.custom-premium-card .inline-check input {
  width: auto;
  min-width: 0;
  margin: 0;
}

@media (max-width: 1180px) {
  .custom-premium-form-grid {
    grid-template-columns: 1fr;
  }

  .custom-premium-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .custom-premium-card {
    padding: 12px;
    border-radius: 14px;
  }

  .custom-premium-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .custom-premium-actions {
    width: 100%;
  }

  .custom-premium-actions .small-btn {
    flex: 1;
  }

  .custom-premium-main,
  .custom-premium-main .premium-image-actions {
    grid-template-columns: 1fr;
  }

  .custom-premium-main h4,
  .custom-premium-main .premium-image-actions,
  .custom-premium-main textarea {
    grid-column: auto;
  }
}

.admin-game-picker {
  display: grid;
  gap: 14px;
}

.admin-game-picker-tools {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 12px;
  align-items: center;
}

.admin-game-picker-tools input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
}

.admin-game-type-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--orange) 20%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 96%, var(--soft)), color-mix(in srgb, var(--panel) 92%, var(--page)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(22, 163, 74, .08);
}

.admin-game-type-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.admin-game-type-tabs button:hover {
  background: color-mix(in srgb, var(--orange) 9%, var(--panel));
  color: var(--ink);
}

.admin-game-type-tabs button.active {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #062116;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--orange) 18%, transparent);
  transform: translateY(-1px);
}

.admin-game-type-tabs button span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, var(--panel));
  color: color-mix(in srgb, var(--ink) 58%, var(--muted));
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  margin-left: 0;
}

.admin-game-type-tabs button.active span {
  background: rgba(255,255,255,.5);
  color: #062116;
}

.admin-game-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.admin-game-select-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 9px;
  text-align: left;
  cursor: pointer;
  min-height: 0;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.admin-game-select-card:hover,
.admin-game-select-card:focus-visible,
.admin-game-select-card.active {
  border-color: var(--accent-dark);
  background: color-mix(in srgb, var(--soft) 34%, var(--panel));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-dark) 16%, transparent), 0 12px 24px rgba(22, 163, 74, .10);
}

.admin-game-select-card:hover,
.admin-game-select-card.active {
  transform: translateY(-1px);
}

.admin-game-select-card .game-pick-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in srgb, var(--soft) 76%, #ffffff);
}

.admin-game-select-card .game-pick-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 0;
  background: transparent;
}

.admin-game-select-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.admin-game-select-card small {
  color: var(--muted);
  font-weight: 800;
}

.selected-admin-game {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

/* polished admin game API catalog */
.game-price-admin {
  gap: 20px;
  padding: 22px;
}

.game-price-admin > .admin-section-head {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--orange) 14%, var(--line));
}

.game-price-admin > .admin-section-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.game-price-admin > .admin-section-head h3::before {
  content: "";
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--orange));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--orange) 24%, transparent);
}

.game-price-admin .admin-game-picker {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--orange) 16%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--soft) 54%, transparent), transparent),
    color-mix(in srgb, var(--panel) 92%, var(--page));
}

.game-price-admin .admin-game-picker-tools {
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  margin-bottom: 4px;
}

.game-price-admin .admin-game-picker-tools input[type="search"] {
  min-height: 48px;
  border-radius: 14px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--panel) 94%, #fff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.game-price-admin .admin-game-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.game-price-admin .admin-game-select-card {
  position: relative;
  min-height: 184px;
  padding: 12px;
  border-radius: 14px;
  border-color: color-mix(in srgb, var(--orange) 16%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 96%, var(--soft)), color-mix(in srgb, var(--panel) 86%, var(--page)));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--orange) 8%, transparent);
}

.game-price-admin .admin-game-select-card.active::after {
  content: "เลือกอยู่";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #062116;
  font-size: 10px;
  font-weight: 1000;
}

.game-price-admin .admin-game-select-card .game-pick-media {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.82), transparent 44%),
    color-mix(in srgb, var(--soft) 78%, #fff);
  box-shadow: 0 14px 24px color-mix(in srgb, var(--ink) 12%, transparent);
}

.game-price-admin .admin-game-select-card .game-pick-media img {
  object-fit: contain;
  padding: 4px;
}

.game-price-admin .admin-game-select-card .game-pick-media em {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: color-mix(in srgb, var(--ink) 76%, var(--orange));
  font-size: 10px;
  font-style: normal;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

.game-price-admin .admin-game-select-card strong {
  min-height: 38px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.game-price-admin .admin-game-select-card small {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--soft) 74%, var(--panel));
  color: var(--muted);
  font-size: 12px;
}

.game-price-admin .inline-selected-admin-game {
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--soft) 82%, var(--panel)), color-mix(in srgb, var(--panel) 92%, #fff));
}

@media (max-width: 760px) {
  .game-price-admin {
    padding: 14px;
  }

  .game-price-admin .admin-game-picker-tools {
    grid-template-columns: 1fr;
  }

  .game-price-admin .admin-game-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-price-admin .admin-game-select-card {
    min-height: 158px;
    padding: 10px;
  }
}

.admin-game-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: 96px 18px 24px;
  background: rgba(15, 23, 42, .28);
  backdrop-filter: blur(6px);
}

.admin-game-modal-backdrop.hidden {
  display: none !important;
}

.admin-game-modal-backdrop .selected-admin-game {
  position: relative;
  width: min(940px, 100%);
  max-height: calc(100vh - 130px);
  overflow: auto;
  border-color: #bae6fd;
  background: linear-gradient(135deg, #ffffff, #f0fdf4);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .22);
}

.admin-game-modal-backdrop .modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.selected-admin-game-main {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.selected-admin-game-image {
  position: relative;
  isolation: isolate;
  width: 74px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  background: #052e16;
}

.selected-admin-game-main strong,
.selected-admin-game-main small {
  display: block;
}

.selected-admin-game-main strong {
  font-size: 18px;
  line-height: 1.25;
}

.selected-admin-game-main small {
  margin: 3px 0 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-game-image-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  gap: 10px;
  align-items: end;
}

.admin-game-image-form label {
  margin: 0;
}

.admin-game-image-form input {
  min-width: 0;
}

.admin-game-image-form > input[name="note"],
.admin-game-image-actions {
  grid-column: 1 / -1;
}

.admin-game-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-selected-admin-game {
  grid-template-columns: minmax(240px, auto) 1fr;
}

.inline-selected-admin-game > .muted {
  margin: 0;
  font-weight: 800;
}

.admin-pack-filter-actions {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.admin-pack-filter-actions .muted {
  margin: 0;
  font-weight: 800;
}

.admin-pack-filter-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--orange) 20%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 96%, var(--soft)), color-mix(in srgb, var(--panel) 92%, var(--page)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(22, 163, 74, .08);
}

.admin-pack-filter-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.admin-pack-filter-tabs button:hover {
  background: color-mix(in srgb, var(--orange) 9%, var(--panel));
  color: var(--ink);
}

.admin-pack-filter-tabs button.active {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #062116;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--orange) 18%, transparent);
  transform: translateY(-1px);
}

.admin-pack-filter-tabs button span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, var(--panel));
  color: color-mix(in srgb, var(--ink) 58%, var(--muted));
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  margin-left: 0;
}

.admin-pack-filter-tabs button.active span {
  background: rgba(255,255,255,.5);
  color: #062116;
}

.admin-stock-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--green) 16%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--soft) 64%, #ffffff);
}

.admin-stock-filter-bar .muted {
  margin: 0;
  font-weight: 800;
}

.admin-pack-image-editor {
  display: grid;
  grid-template-columns: 72px minmax(220px, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 340px;
}

.admin-pack-image-preview {
  position: relative;
  isolation: isolate;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}

.admin-pack-image-fields {
  display: grid;
  gap: 8px;
}

.admin-pack-image-fields input[name="image_url"] {
  width: 100%;
  min-width: 0;
}

.admin-pack-image-fields .compact-file {
  min-width: 0;
}

.admin-pack-image-fields .small-btn {
  justify-self: start;
}

.game-price-table {
  border-collapse: separate;
  border-spacing: 0 12px;
  min-width: 980px;
}

.game-price-table th {
  padding: 6px 12px;
  border: 0;
}

.game-price-table td {
  padding: 0;
  border: 0;
}

.admin-pack-price-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(280px, 1.3fr) minmax(240px, .95fr) minmax(220px, .9fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--green) 18%, var(--line));
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--soft) 72%, #ffffff), #ffffff 56%),
    var(--panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.admin-pack-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.admin-pack-main .admin-pack-image-preview {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
}

.admin-pack-title {
  min-width: 0;
}

.admin-pack-title strong,
.admin-pack-title small,
.admin-pack-title span {
  display: block;
}

.admin-pack-title strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.admin-pack-title small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  word-break: break-all;
}

.admin-pack-title span {
  width: fit-content;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 10%, #ffffff);
  color: color-mix(in srgb, var(--ink) 78%, var(--green));
  font-size: 12px;
  font-weight: 900;
}

.admin-pack-image-fields,
.admin-pack-price-fields,
.admin-pack-status-fields {
  display: grid;
  gap: 9px;
}

.admin-pack-price-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-pack-image-fields label,
.admin-pack-price-fields label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-pack-image-fields input,
.admin-pack-price-fields input,
.admin-pack-status-fields input[name="note"] {
  width: 100%;
  min-width: 0;
}

.admin-pack-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-pack-status-fields .inline-check {
  width: fit-content;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--green) 20%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 7%, #ffffff);
}

.admin-pack-save {
  display: flex;
  justify-content: flex-end;
}

.admin-pack-save .gold-btn {
  min-width: 86px;
  min-height: 42px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--green) 20%, transparent);
}

@media (max-width: 1280px) {
  .admin-pack-price-card {
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr);
  }

  .admin-pack-save {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .selected-admin-game {
    grid-template-columns: 1fr;
  }

  .admin-game-image-form {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) {
  .site-header .shell.header-inner {
    width: min(1500px, calc(100vw - 32px));
    gap: 14px;
  }

  .site-header .logo {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .site-header .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-header .main-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .main-nav a {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
    padding: 9px 11px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1;
  }

  .site-header .main-nav a .icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
  }

  .site-header .header-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .site-header .point-pill,
  .site-header .account-pill {
    min-height: 42px;
    white-space: nowrap;
    padding: 9px 13px;
  }

  .site-header .account-pill {
    min-width: 118px;
  }
}

.game-menu-page .game-package-layout {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.game-menu-page .pack-list-panel {
  order: 1;
}

.game-menu-page .game-topup-form {
  order: 2;
  position: static !important;
  width: min(100%, 560px);
  margin: 0 auto;
}

.game-menu-page .game-topup-form.hidden {
  display: none !important;
}

.game-menu-page .pack-card-grid {
  max-height: none;
}

@media (max-width: 980px) {
  .game-menu-page .game-topup-form {
    order: 2 !important;
  }
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
}

.inline-check input {
  width: auto;
}

.small-btn {
  min-height: 38px;
  padding: 8px 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card { padding: 16px; }
.metric-card strong {
  display: block;
  color: var(--gold-dark);
  font-size: 28px;
}

.sales-chart-card {
  position: relative;
  padding: 24px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(22, 163, 74, .14), transparent 38%),
    radial-gradient(circle at 92% 18%, rgba(6, 182, 212, .16), transparent 28%),
    linear-gradient(180deg, #fbfffc, #f8fffb 52%, #ffffff);
  border-color: rgba(134, 239, 172, .95);
  box-shadow: 0 22px 70px rgba(22, 163, 74, .1);
  overflow: hidden;
}

.sales-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.sales-chart-head h3 {
  margin: 4px 0 0;
  color: #12301d;
  font-size: 24px;
}

.sales-chart-head p {
  margin: 7px 0 0;
  color: #607568;
  font-weight: 800;
}

.sales-chart-summary {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: #52705e;
  text-align: right;
}

.sales-chart-summary strong {
  color: #0f9f4f;
  font-size: 34px;
  line-height: 1;
  text-shadow: 0 10px 22px rgba(22, 163, 74, .14);
}

.sales-chart-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.sales-chart-insights span {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(187, 247, 208, .9);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(240, 253, 244, .78));
  box-shadow: 0 14px 34px rgba(22, 163, 74, .08);
  color: #63776a;
  font-size: 12px;
  font-weight: 900;
}

.sales-chart-insights small {
  display: block;
  margin-bottom: 4px;
  color: #6f8276;
}

.sales-chart-insights b {
  display: block;
  color: #12301d;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.sales-chart {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 360px;
  padding: 18px 22px 14px;
  border: 1px solid rgba(187, 247, 208, .9);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 10%, rgba(34, 197, 94, .08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .9)),
    repeating-linear-gradient(90deg, rgba(22, 163, 74, .032) 0 1px, transparent 1px 52px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  overflow: hidden;
}

.sales-chart.is-empty {
  min-height: 350px;
}

.sales-chart.is-empty .sales-chart-legend {
  opacity: .72;
}

.sales-chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  color: #52705e;
  font-size: 12px;
  font-weight: 900;
}

.sales-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(240, 253, 244, .8);
}

.sales-chart-legend i {
  width: 22px;
  height: 4px;
  border-radius: 999px;
}

.legend-revenue { background: #22c55e; }
.legend-profit { background: #06b6d4; }

.sales-line-chart {
  width: 100%;
  min-height: 300px;
  display: block;
  overflow: visible;
}

.sales-y-tick line {
  stroke: rgba(22, 163, 74, .12);
  stroke-width: 1;
}

.sales-y-tick text {
  fill: #52685b;
  font-size: 10px;
  font-weight: 900;
}

.sales-bar {
  fill: url(#salesRevenueFill);
  opacity: .9;
  transform-box: fill-box;
  transform-origin: bottom;
  transition: opacity .18s ease, transform .18s ease;
}

.sales-bar.has-value {
  filter: drop-shadow(0 12px 18px rgba(34, 197, 94, .2));
}

.sales-bar:hover {
  opacity: 1;
  transform: scaleY(1.03);
}

.sales-area {
  fill: url(#salesAreaFill);
}

.sales-line {
  fill: none;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.revenue-line {
  stroke: #22c55e;
  filter: drop-shadow(0 8px 12px rgba(34, 197, 94, .16));
}

.profit-line {
  stroke: #06b6d4;
  stroke-width: 3;
  filter: drop-shadow(0 8px 12px rgba(6, 182, 212, .13));
}

.revenue-dot,
.profit-dot {
  stroke: #ffffff;
  stroke-width: 2.2;
}

.revenue-dot { fill: #16a34a; }
.profit-dot { fill: #0891b2; }

.sales-axis-labels text {
  fill: #52685b;
  font-size: 11px;
  font-weight: 800;
}

.sales-real-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 260px;
  border: 1px dashed rgba(134, 239, 172, .95);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(240,253,244,.58)),
    repeating-linear-gradient(135deg, rgba(22, 163, 74, .045) 0 2px, transparent 2px 18px);
  text-align: center;
}

.sales-real-empty strong {
  color: #12301d;
  font-size: 22px;
}

.sales-real-empty span {
  max-width: 520px;
  color: #607568;
  font-weight: 800;
  line-height: 1.7;
}

.sales-empty-state {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 1.2fr;
  align-items: center;
  gap: 26px;
  min-height: 258px;
  padding: 22px;
  border: 1px dashed rgba(134, 239, 172, .95);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(220, 252, 231, .86), rgba(255,255,255,.94)),
    repeating-linear-gradient(135deg, rgba(22, 163, 74, .05) 0 2px, transparent 2px 18px);
  color: #52705e;
  text-align: left;
  font-weight: 800;
}

.sales-empty-visual {
  position: relative;
  min-height: 170px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(34, 197, 94, .18), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(240,253,244,.84));
  overflow: hidden;
}

.sales-empty-visual i {
  position: absolute;
  bottom: 28px;
  width: 26px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #86efac, #22c55e);
  opacity: .82;
}

.sales-empty-visual i:nth-child(1) { left: 22%; height: 46px; }
.sales-empty-visual i:nth-child(2) { left: 38%; height: 74px; }
.sales-empty-visual i:nth-child(3) { left: 54%; height: 58px; }
.sales-empty-visual i:nth-child(4) { left: 70%; height: 98px; }

.sales-empty-visual span {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 42px rgba(22, 163, 74, .18);
  color: #16a34a;
}

.sales-empty-state .icon {
  width: 30px;
  height: 30px;
}

.sales-empty-state strong {
  color: #12301d;
  font-size: 22px;
}

.sales-empty-state p {
  max-width: 520px;
  margin: 8px 0 0;
  color: #6f8276;
  line-height: 1.7;
}

.sales-empty-steps {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-empty-steps span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(187, 247, 208, .9);
  color: #166534;
  font-size: 12px;
  font-weight: 900;
}

.promotion-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.promotion-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--promo-bg);
  color: var(--promo-text);
  box-shadow: 0 18px 44px rgba(22, 163, 74, .18);
  overflow: hidden;
}

.promotion-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.38);
}

.promotion-card div {
  display: grid;
  gap: 4px;
}

.promotion-card span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  font-size: 12px;
  font-weight: 900;
}

.promotion-card strong {
  font-size: 20px;
}

.promotion-card small {
  opacity: .9;
}

.coupon-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 10px 0;
}

.coupon-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d7f8e8;
  border-radius: 12px;
  color: var(--green);
  background: #f0fff7;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
}

.admin-shell {
  width: min(1460px, calc(100vw - 56px));
}

.settings-admin-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.settings-card,
.settings-contact-card {
  align-self: start;
}

.settings-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

.settings-card-single {
  grid-template-columns: minmax(0, 1fr);
}

.settings-block {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #d8f5df;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,255,250,.78)),
    #ffffff;
  box-shadow: 0 12px 34px rgba(22, 163, 74, .055);
}

.settings-block-wide,
.settings-save-bar {
  grid-column: 1 / -1;
}

.settings-block h3 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8f5df;
  color: #12301d;
  font-size: 18px;
}

.settings-block .hint {
  margin: -2px 0 2px;
  color: #64746b;
  font-size: 13px;
  line-height: 1.55;
}

.settings-save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  border: 1px solid #d8f5df;
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 42px rgba(22, 163, 74, .12);
}

.settings-save-bar .gold-btn {
  min-width: 210px;
}

.media-settings-card {
  gap: 16px;
}

.media-settings-block {
  gap: 18px;
}

.media-form-head {
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--gold-dark) 14%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 13%, transparent), transparent 52%),
    linear-gradient(180deg, #ffffff, #f8fffb);
}

.media-size-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.media-size-guide div {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--gold-dark) 18%, transparent);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--soft) 52%, #ffffff));
}

.media-size-guide strong {
  color: var(--ink);
  font-size: 14px;
}

.media-size-guide span {
  color: var(--gold-dark);
  font-size: 18px;
  font-weight: 900;
}

.media-upload-grid {
  display: grid;
  gap: 16px;
}

.media-upload-card {
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold-dark) 18%, transparent);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.media-preview {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.34), transparent 18%),
    linear-gradient(135deg, color-mix(in srgb, var(--gold-dark) 82%, #0f172a), color-mix(in srgb, var(--gold) 72%, #0f172a));
}

.media-logo .media-preview {
  min-height: 240px;
}

.media-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.32) 0 2px, transparent 3px),
    linear-gradient(45deg, transparent 46%, rgba(255,255,255,.16) 47% 52%, transparent 53%);
  background-size: 44px 44px, 58px 58px;
  opacity: .55;
}

.media-preview span {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #ffffff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 18px 38px rgba(0,0,0,.16);
}

.media-preview span .icon {
  width: 40px;
  height: 40px;
  color: #ffffff;
}

.media-preview img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.media-preview .managed-image {
  position: absolute;
  z-index: 1;
  min-height: 0;
  object-fit: var(--fit-desktop-fit, cover);
  object-position: var(--fit-desktop-x, 50%) var(--fit-desktop-y, 50%);
}

.media-upload-card.fit-editor-open {
  align-items: stretch;
}

.media-upload-card.fit-editor-open .media-preview {
  min-height: min(620px, 70vh);
  cursor: grab;
  touch-action: none;
}

.media-upload-card.fit-editor-open .media-preview::before {
  content: "ลากรูปเพื่อขยับตำแหน่ง";
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f3d23;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
  font-size: 12px;
  font-weight: 900;
}

.media-preview.fit-drag-enabled.is-dragging {
  cursor: grabbing;
}

.media-logo .media-preview img {
  width: 150px;
  height: 150px;
  min-height: 0;
  object-fit: contain;
  border-radius: 26px;
  padding: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
}

.media-upload-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.media-upload-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.media-upload-head i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--gold-dark);
  background: var(--soft);
}

.media-upload-head h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 20px;
}

.media-upload-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.image-fit-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--gold-dark) 16%, transparent);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--soft) 42%, #ffffff));
}

.image-fit-panel.is-collapsed {
  display: none;
}

.media-fit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.media-fit-actions small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.image-fit-device {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--gold-dark) 14%, transparent);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}

.image-fit-device > strong {
  color: var(--ink);
  font-size: 13px;
}

.image-fit-device label {
  gap: 5px;
  font-size: 11px;
}

.image-fit-device input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--gold-dark);
}

.fit-preview-card {
  min-height: 170px;
  border: 1px solid color-mix(in srgb, var(--gold-dark) 18%, transparent);
  border-radius: 8px;
}

.media-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-specs span {
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--gold-dark) 16%, transparent);
  border-radius: 999px;
  color: var(--gold-dark);
  background: color-mix(in srgb, var(--soft) 68%, #ffffff);
  font-size: 12px;
  font-weight: 900;
}

.media-url-field {
  display: grid;
  gap: 8px;
}

.media-url-field span {
  color: var(--ink);
  font-weight: 900;
}

.media-file-drop {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  min-height: 76px;
  padding: 14px;
  border: 1.5px dashed color-mix(in srgb, var(--gold-dark) 32%, transparent);
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--soft) 50%, #ffffff), #ffffff);
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.media-file-drop:hover {
  transform: translateY(-1px);
  border-color: var(--gold-dark);
  box-shadow: 0 14px 30px rgba(22, 163, 74, .1);
}

.media-file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.media-file-icon {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.media-file-icon .icon {
  color: #ffffff;
}

.media-file-drop strong {
  color: var(--ink);
}

.media-file-drop small {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 760px) {
  .media-size-guide,
  .media-upload-card {
    grid-template-columns: 1fr;
  }

  .media-preview,
  .media-logo .media-preview {
    min-height: 180px;
  }

  .media-upload-head h4 {
    font-size: 18px;
  }
}

.api-settings-card {
  gap: 18px;
}

.api-settings-block {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-color: rgba(34, 197, 94, .2);
  background:
    radial-gradient(circle at 96% 10%, rgba(34, 197, 94, .12), transparent 28%),
    linear-gradient(180deg, #ffffff, #f8fffb);
}

.api-settings-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #22c55e, #86efac);
}

.api-settings-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(34, 197, 94, .18);
}

.api-settings-head i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: linear-gradient(135deg, #22c55e, #86efac);
  color: #052e16;
  box-shadow: 0 14px 28px rgba(34, 197, 94, .2);
}

.api-settings-head .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.api-settings-head span {
  display: block;
  margin-bottom: 2px;
  color: #16a34a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.api-settings-head h3 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 20px;
}

.api-settings-block label:not(.option-toggle) {
  display: grid;
  gap: 8px;
  color: #26352d;
  font-weight: 900;
}

.api-settings-block input:not([type="checkbox"]) {
  min-height: 52px;
  padding-inline: 14px;
  border-color: rgba(34, 197, 94, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.api-settings-block input:not([type="checkbox"]):focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

.api-game .api-settings-head i {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
}

.api-app .api-settings-head i {
  background: linear-gradient(135deg, #22c55e, #a3e635);
}

.api-bell .api-settings-head i {
  background: linear-gradient(135deg, #22c55e, #facc15);
}

.api-save-bar {
  gap: 10px;
}

.theme-preset-grid,
.theme-saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.theme-preset-card,
.theme-saved-card button:first-child {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 116px;
  padding: 14px;
  border: 1px solid #d8f5df;
  border-radius: 16px;
  background: #fff;
  color: #12301d;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(22, 163, 74, .07);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.theme-preset-card:hover,
.theme-saved-card button:first-child:hover {
  transform: translateY(-2px);
  border-color: #86efac;
  box-shadow: 0 18px 38px rgba(22, 163, 74, .12);
}

.theme-preset-card strong,
.theme-saved-card strong {
  font-size: 17px;
  font-weight: 900;
}

.theme-preset-card small {
  color: #64746b;
  font-weight: 800;
}

.theme-swatch-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  min-height: 32px;
}

.theme-swatch-strip i {
  display: block;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
}

.theme-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-saved-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.theme-saved-card button:first-child {
  min-height: 94px;
}

.theme-delete-btn {
  align-self: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff5f5;
  color: #b91c1c;
  font-weight: 900;
  cursor: pointer;
}

.settings-contact-card {
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,250,240,.64)),
    #fff;
}

.settings-contact-card .image-mini-form {
  min-width: 0;
  padding: 14px;
  border: 1px solid #f0e3cc;
  border-radius: 16px;
  background: #fffdf7;
}

.settings-card input,
.settings-card select,
.settings-card textarea,
.settings-contact-card input,
.settings-contact-card select,
.settings-contact-card textarea,
.contact-admin-row input {
  color: #3f4650;
  font-weight: 520;
}

.settings-card input::placeholder,
.settings-card textarea::placeholder,
.settings-contact-card input::placeholder,
.settings-contact-card textarea::placeholder {
  color: #9aa1aa;
  font-weight: 500;
}

.contact-admin-list {
  display: grid;
  gap: 10px;
}

.product-admin-grid {
  grid-template-columns: minmax(420px, 480px) minmax(760px, 1fr);
  gap: 24px;
  align-items: start;
}

.product-create-card {
  position: sticky;
  top: 96px;
  gap: 15px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,250,240,.72)),
    #fff;
  box-shadow: 0 20px 55px rgba(28, 20, 5, .08);
}

.product-admin-grid .table-wrap {
  min-width: 0;
  border-radius: 18px;
  border: 1px solid #d8f5df;
  background: #fff;
  box-shadow: 0 18px 48px rgba(22, 163, 74, .06);
}

.ad-popup-admin-card {
  grid-column: 1 / -1;
  position: static;
}

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

.ad-admin-preview {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(34, 197, 94, .22);
  border-radius: 14px;
  background: rgba(240, 253, 244, .72);
}

.ad-admin-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
}

.ad-admin-preview span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
}

.product-manager-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d8f5df;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,255,250,.84)),
    #ffffff;
  box-shadow: 0 18px 48px rgba(22, 163, 74, .07);
}

.product-manager-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid #d8f5df;
}

.product-manager-head h3 {
  margin: 4px 0 4px;
  color: #12301d;
  font-size: 24px;
  line-height: 1.15;
}

.product-manager-head p {
  margin: 0;
  color: #52705e;
  font-size: 13px;
  line-height: 1.55;
}

.product-manager-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 8px;
}

.product-manager-stats span {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
  color: #52705e;
  font-size: 11px;
  font-weight: 800;
}

.product-manager-stats strong {
  color: #14532d;
  font-size: 16px;
  line-height: 1.1;
}

.product-card-list {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding-right: 4px;
}

.admin-product-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d8f5df;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}

.admin-product-card.is-inactive {
  background: #f8fafc;
}

.admin-product-main {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(300px, .9fr);
  gap: 14px;
  align-items: center;
}

.admin-product-img {
  width: 76px;
  height: 76px;
  border: 1px solid #d8f5df;
  border-radius: 16px;
  background: #f0fdf4;
  object-fit: cover;
}

.admin-product-info {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.admin-product-title-row {
  display: grid;
  gap: 5px;
}

.admin-product-title-row h4 {
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-category {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfff2;
  color: #166534;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-product-credentials {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-product-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-product-metrics span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.admin-product-metrics small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.admin-product-metrics strong {
  overflow: hidden;
  color: #12301d;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
  background: rgba(4, 12, 9, .52);
  backdrop-filter: blur(6px);
}

.admin-edit-card {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  max-height: min(78vh, 720px);
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 22px;
  border: 1px solid #bbf7d0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.admin-edit-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 0 52px 12px 0;
  border-bottom: 1px solid #d8f5df;
}

.admin-edit-head .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #14532d;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(22, 163, 74, .16);
}

.admin-edit-head .modal-close:hover {
  border-color: #22c55e;
  background: #dcfce7;
}

.admin-edit-head h3 {
  margin: 4px 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.25;
}

.product-edit-details {
  flex: 1 1 100%;
  min-width: 0;
}

.product-edit-details summary {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  color: #14532d;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.product-edit-details summary::-webkit-details-marker {
  display: none;
}

.product-edit-details[open] summary {
  margin-bottom: 10px;
  border-color: #22c55e;
  background: #dcfce7;
}

.product-edit-form {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8f5df;
  border-radius: 16px;
  background: #f8fffb;
}

.product-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.product-edit-grid label,
.product-edit-toggles {
  min-width: 0;
}

.product-edit-wide {
  grid-column: span 3;
}

.product-edit-form input,
.product-edit-form select,
.product-edit-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  background: #ffffff;
}

.product-edit-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.admin-empty-state {
  padding: 28px;
  border: 1px dashed #bbf7d0;
  border-radius: 16px;
  background: #f0fdf4;
  color: #166534;
  text-align: center;
  font-weight: 900;
}

.recommended-admin-grid .admin-thumb {
  border-radius: 12px;
  background: #ecfff2;
  object-fit: cover;
}

.recommended-admin-grid .image-mini-form select,
.recommended-admin-grid .image-mini-form input {
  min-width: 0;
}

.recommended-edit-form {
  min-width: 320px;
}

.recommended-manager-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d8f5df;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(22, 163, 74, .07);
}

.recommended-card-list {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 210px);
  overflow: auto;
  padding-right: 4px;
}

.recommended-admin-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8f5df;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfffd);
}

.recommended-admin-main {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(230px, .7fr);
  gap: 14px;
  align-items: center;
}

.recommended-admin-info {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.recommended-admin-info h4 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.recommended-admin-info p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.recommended-admin-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.recommended-admin-meta span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.recommended-admin-meta small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.recommended-admin-meta strong {
  color: #12301d;
  font-size: 14px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.recommended-admin-meta em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.recommended-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.recommended-fallback-thumb {
  display: grid;
  place-items: center;
  color: #166534;
  font-size: 26px;
  font-weight: 950;
}

.product-admin-grid table {
  min-width: 1080px;
}

.product-admin-grid .category-admin-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.category-admin-table th:nth-child(1) { width: 46%; }
.category-admin-table th:nth-child(2) { width: 22%; }
.category-admin-table th:nth-child(3) { width: 32%; }

.category-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.category-admin-actions .light-btn,
.category-admin-actions .danger-action {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 13px;
}

.product-admin-grid th:nth-child(1) { width: 260px; }
.product-admin-grid th:nth-child(2) { width: 170px; }
.product-admin-grid th:nth-child(3) { width: 100px; }
.product-admin-grid th:nth-child(4) { width: 160px; }
.product-admin-grid th:nth-child(5) { width: 390px; }

.product-edit-form {
  min-width: 360px;
}

.product-edit-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.admin-form-head {
  padding-bottom: 4px;
  border-bottom: 1px solid #f1e7d8;
}

.admin-form-head h3 {
  margin: 4px 0 5px;
  color: #1f2328;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.admin-form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.form-kicker,
.form-section-title {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
}

.form-kicker {
  text-transform: uppercase;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #9a6b00;
  font-weight: 800;
}

.form-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #f3d38a, transparent);
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-create-card input,
.product-create-card select,
.product-create-card textarea {
  border-radius: 14px;
  border-color: #eadfce;
  background: rgba(255,255,255,.9);
  color: #3f4650;
  font-weight: 520;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.product-create-card input::placeholder,
.product-create-card textarea::placeholder {
  color: #9aa1aa;
  font-weight: 500;
}

.product-create-card input:focus,
.product-create-card select:focus,
.product-create-card textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(126, 226, 58, .16);
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-weight: 850;
  line-height: 1.45;
}

.form-status.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.form-status.info {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.credential-builder {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fff9, #ffffff);
}

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

.credential-builder-head strong,
.credential-builder-head span {
  display: block;
}

.credential-builder-head span {
  margin-top: 2px;
  color: #52705e;
  font-size: 13px;
  font-weight: 650;
}

.credential-rows {
  display: grid;
  gap: 10px;
}

.credential-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d8f5df;
  border-radius: 14px;
  background: #fff;
}

.credential-row span {
  color: #166534;
  font-weight: 900;
  white-space: nowrap;
}

.credential-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
  color: #52705e;
  font-weight: 800;
  text-align: center;
}

.file-field {
  padding: 12px;
  border: 1px dashed #22c55e;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
}

.file-field input[type="file"] {
  padding: 9px;
  border-color: #bbf7d0;
  background: #f7fff9;
}

.file-field input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #7ee23a, #22c55e);
  color: #12301d;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .16);
}

.file-field input[type="file"]::file-selector-button:hover {
  background: linear-gradient(180deg, #8df05a, #16a34a);
}

.compact-file {
  padding: 9px;
  font-size: 13px;
}

.compact-file input[type="file"] {
  padding: 7px;
}

.info-hint {
  margin: -2px 0 2px;
  padding: 10px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
  color: #166534;
  line-height: 1.65;
}

.option-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eadfce;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

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

.toggle-ui {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #e6e6e6;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  transition: background .18s ease, box-shadow .18s ease;
}

.toggle-ui::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 4px;
  border-left: 2px solid rgba(255,255,255,.92);
  border-bottom: 2px solid rgba(255,255,255,.92);
  opacity: 0;
  transform: translateY(-58%) rotate(-45deg);
  transition: opacity .18s ease;
}

.toggle-ui::after {
  content: "✓";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transition: transform .18s ease, color .18s ease;
}

.option-toggle input:checked + .toggle-ui {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 8px 20px rgba(22, 163, 74, .20);
}

.option-toggle input:checked + .toggle-ui::before {
  opacity: 1;
}

.option-toggle input:checked + .toggle-ui::after {
  transform: translateX(20px);
  color: var(--gold-dark);
}

.option-toggle strong,
.option-toggle small {
  display: block;
}

.option-toggle strong {
  color: #2f343b;
  font-weight: 750;
}

.option-toggle small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.mini-toggle {
  min-width: 180px;
  padding: 9px 10px;
  border-radius: 13px;
  font-size: 13px;
}

.mini-toggle .toggle-ui {
  width: 38px;
  height: 22px;
}

.mini-toggle .toggle-ui::before {
  right: 7px;
  width: 7px;
  height: 4px;
}

.mini-toggle .toggle-ui::after {
  width: 16px;
  height: 16px;
  font-size: 11px;
}

.mini-toggle input:checked + .toggle-ui::after {
  transform: translateX(16px);
}

.contact-toggle {
  min-width: 98px;
}

.product-save-btn {
  min-height: 50px;
  margin-top: 2px;
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  vertical-align: top;
}

th { background: #f0fdf4; }

.admin-thumb {
  width: 54px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 10px;
  vertical-align: middle;
  border: 1px solid var(--line);
}

.image-mini-form {
  display: grid;
  gap: 8px;
  min-width: 220px;
  margin-bottom: 8px;
}

.image-mini-form input {
  padding: 8px 10px;
  color: #3f4650;
  font-size: 13px;
  font-weight: 520;
}

.credential-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.credential-box pre {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.65;
}

.credential-box > strong {
  color: #166534;
}

.credential-line {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
}

.credential-line span {
  font-weight: 800;
}

.credential-line code {
  display: block;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f7f7f7;
  color: #111;
  word-break: break-all;
}

.game-topup-page {
  margin-top: -24px;
  min-height: 760px;
  padding: 34px 0 56px;
  background: #242424;
  color: #fff;
}

.game-topup-shell {
  display: grid;
  gap: 24px;
  width: min(1160px, calc(100vw - 44px));
}

.game-catalog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.game-catalog-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.game-catalog-logo {
  display: grid;
  place-items: center;
  width: 92px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff7a18, #facc15);
  color: #161616;
  font-weight: 950;
  letter-spacing: 0;
}

.game-catalog-brand strong {
  font-size: 20px;
  font-weight: 900;
}

.game-topup-balance {
  min-width: 150px;
  padding: 12px 16px;
  border: 1px solid rgba(255,122,24,.34);
  border-radius: 8px;
  background: #1b1b1b;
}

.game-topup-balance span,
.game-topup-balance strong {
  display: block;
}

.game-topup-balance span {
  color: rgba(248,251,255,.66);
  font-size: 13px;
  font-weight: 700;
}

.game-topup-balance strong {
  margin-top: 4px;
  color: #ffb020;
  font-size: 22px;
}

.game-catalog-section,
.game-package-section {
  display: grid;
  gap: 28px;
}

.game-catalog-search {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-style: italic;
  outline: none;
}

.game-topup-panel {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  color: #0f172a;
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
}

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

.topup-panel-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.topup-panel-head input {
  max-width: 280px;
}

.topup-panel-head h2,
.game-topup-form h2 {
  margin: 0;
  font-size: 20px;
}

.topup-panel-head input,
.game-topup-form input,
.game-topup-form textarea {
  width: 100%;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  padding: 11px 12px;
  background: #f8fafc;
  color: #0f172a;
}

.game-card-grid,
.pack-card-grid,
.game-topup-form,
.topup-order-list {
  display: grid;
  gap: 10px;
}

.game-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  align-content: start;
  column-gap: 38px;
  row-gap: 34px;
}

.game-pick-card {
  min-height: 172px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
  justify-items: center;
  text-align: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: #fff;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.pack-pick-card {
  min-height: 84px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
  color: #0f172a;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.game-pick-card:hover,
.game-pick-card.active {
  transform: translateY(-4px);
}

.game-pick-media {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: #0f172a;
  box-shadow: 0 14px 30px rgba(0,0,0,.34);
  transition: box-shadow .16s ease, transform .16s ease;
}

.game-pick-card:hover .game-pick-media,
.game-pick-card.active .game-pick-media {
  box-shadow: 0 18px 38px rgba(255,122,24,.24);
  transform: scale(1.03);
}

.game-pick-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-pick-media {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #eaf3ff;
}

.pack-pick-token {
  position: relative;
  isolation: isolate;
  gap: 0;
  border: 1px solid rgba(34, 197, 94, .24);
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.9), transparent 22%),
    linear-gradient(135deg, #ecfff2, #d9f99d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 10px 20px rgba(22, 163, 74, .12);
}

.pack-pick-token::after {
  content: "";
  position: absolute;
  inset: auto 8px 7px 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .16);
}

.pack-pick-token i,
.pack-pick-token svg {
  width: 25px;
  height: 25px;
  display: block;
  color: #047857;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.pack-pick-token b {
  position: absolute;
  right: 5px;
  top: 4px;
  min-width: 22px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #062d1b;
  color: #86efac;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.35;
  text-align: center;
}

.pack-pick-token small {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 10px;
  overflow: hidden;
  color: #065f46;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pack-token-diamond {
  border-color: rgba(14, 165, 233, .24);
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.92), transparent 22%),
    linear-gradient(135deg, #e0f2fe, #cffafe 52%, #dbeafe);
}

.pack-token-diamond i,
.pack-token-diamond svg { color: #0284c7; }
.pack-token-diamond small { color: #075985; }
.pack-token-diamond b { background: #082f49; color: #bae6fd; }

.pack-token-coin {
  border-color: rgba(245, 158, 11, .28);
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.92), transparent 22%),
    linear-gradient(135deg, #fef3c7, #fde68a);
}

.pack-token-coin i,
.pack-token-coin svg { color: #b45309; }
.pack-token-coin small { color: #92400e; }
.pack-token-coin b { background: #451a03; color: #fde68a; }

.pack-token-card {
  border-color: rgba(99, 102, 241, .22);
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.92), transparent 22%),
    linear-gradient(135deg, #eef2ff, #ddd6fe);
}

.pack-token-card i,
.pack-token-card svg { color: #4f46e5; }
.pack-token-card small { color: #4338ca; }
.pack-token-card b { background: #312e81; color: #ddd6fe; }

.pack-pick-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-pick-placeholder .icon {
  color: #0ea5e9;
}

.game-art-letter {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--game-tone), #0f172a);
  color: #fff;
  font-size: 42px;
  font-weight: 900;
}

.game-pick-card strong {
  width: 150px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  word-break: break-word;
}

.game-package-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.game-back-btn {
  justify-self: start;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 10px 14px;
  background: #171717;
  color: #fff;
  font-weight: 800;
}

.pack-pick-card:hover,
.pack-pick-card.active {
  transform: translateY(-2px);
  border-color: #ff8a1f;
  background: #fff8ed;
  box-shadow: 0 14px 28px rgba(255,122,24,.14);
}

.pack-card-grid {
  grid-template-columns: 1fr;
  align-content: start;
}

.pack-pick-card strong {
  color: #16a34a;
  font-size: 18px;
  text-align: right;
  white-space: nowrap;
}

.selected-game-preview {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: linear-gradient(135deg, #ecfeff, #f0fdf4);
}

.selected-game-preview .game-pick-media,
.selected-game-art {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #0f172a;
}

.selected-game-art img,
.selected-game-art .game-art-letter {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-game-preview strong,
.selected-game-preview small {
  display: block;
}

.selected-game-preview strong {
  color: #0f172a;
  font-size: 17px;
}

.selected-game-preview small {
  color: #64748b;
}

.pack-pick-card .pack-pick-name,
.pack-pick-card small {
  grid-column: 2;
}

.game-topup-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 750;
}

.topup-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 800;
}

.topup-orders-panel {
  background: rgba(255,255,255,.94);
}

.topup-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #f8fafc;
}

.topup-order-card strong,
.topup-order-card span,
.topup-order-card small {
  display: block;
}

.topup-order-card span,
.topup-order-card small {
  color: #64748b;
}

.topup-order-card b {
  display: block;
  margin-bottom: 8px;
  color: #16a34a;
  text-align: right;
}

.topup-empty {
  grid-column: 1 / -1;
  max-width: 380px;
  padding: 18px;
  border: 1px dashed #9bd5c7;
  border-radius: 8px;
  color: #475569;
  background: #f8fafc;
}

.game-topup-page {
  margin-top: -24px;
  min-height: 780px;
  padding: 28px 0 54px;
  background:
    linear-gradient(180deg, rgba(5, 18, 32, .94), rgba(7, 22, 20, .96)),
    radial-gradient(circle at 14% 0%, rgba(34, 197, 94, .20), transparent 34%),
    #07131d;
  color: #eef7ff;
}

.game-topup-shell {
  width: min(1420px, calc(100vw - 38px));
  display: grid;
  gap: 16px;
}

.game-topup-hero {
  min-height: 188px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 520px);
  align-items: end;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(125, 211, 252, .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, .92), rgba(20, 83, 45, .78)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 58px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .28);
}

.game-topup-hero-copy span,
.checkout-title span {
  display: block;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 900;
}

.game-topup-hero-copy h1 {
  max-width: 680px;
  margin: 8px 0 8px;
  color: #f8fafc;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.game-topup-hero-copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(226, 232, 240, .84);
  font-weight: 700;
}

.game-topup-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.game-topup-stats div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(4, 12, 20, .56);
}

.game-topup-stats span {
  display: block;
  color: rgba(203, 213, 225, .74);
  font-size: 12px;
  font-weight: 800;
}

.game-topup-stats strong {
  display: block;
  margin-top: 8px;
  color: #86efac;
  font-size: 26px;
  font-weight: 950;
}

.game-topup-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.game-catalog-section,
.game-package-section {
  display: grid;
  gap: 14px;
}

.game-catalog-section {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(8, 19, 32, .92);
  overflow: hidden;
}

.game-section-head,
.topup-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0;
}

.game-section-head h2,
.topup-panel-head h2,
.game-topup-form h2 {
  margin: 0;
  color: inherit;
  font-size: 20px;
  line-height: 1.2;
}

.game-section-head p,
.topup-panel-head p {
  margin: 4px 0 0;
  color: #93a4b8;
  font-size: 13px;
}

.game-search-wrap {
  position: relative;
}

.game-catalog-search {
  height: 44px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 8px;
  padding: 0 14px;
  background: #0e1b2e;
  color: #f8fafc;
  font-size: 15px;
  font-style: normal;
}

.game-catalog-search::placeholder {
  color: #71839a;
}

.game-card-grid {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-right: 4px;
}

.game-card-grid::-webkit-scrollbar,
.pack-card-grid::-webkit-scrollbar {
  width: 8px;
}

.game-card-grid::-webkit-scrollbar-thumb,
.pack-card-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, .34);
}

.game-pick-card {
  min-height: 156px;
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: start;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(15, 30, 49, .76);
  color: #fff;
  text-align: center;
}

.game-pick-card:hover,
.game-pick-card.active {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, .72);
  background: rgba(8, 47, 73, .92);
  box-shadow: 0 16px 28px rgba(6, 182, 212, .12);
}

.game-pick-media {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 22px rgba(0,0,0,.34);
}

.game-pick-card:hover .game-pick-media,
.game-pick-card.active .game-pick-media {
  transform: none;
  box-shadow: 0 16px 28px rgba(45, 212, 191, .16);
}

.game-pick-card strong {
  width: 100%;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.25;
}

.game-pick-card small {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
}

.game-package-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: 16px;
  align-items: start;
}

.game-topup-panel {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: rgba(248, 250, 252, .98);
  color: #0f172a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.pack-list-panel {
  min-height: 558px;
}

.pack-card-grid {
  max-height: 632px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 10px;
  padding-right: 4px;
}

.pack-pick-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 7px 10px;
  align-items: center;
  border-radius: 8px;
  border-color: #d7e2ef;
  background: #f8fafc;
}

.pack-pick-card strong {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 14px;
  text-align: left;
}

.pack-pick-card:hover,
.pack-pick-card.active {
  transform: translateY(-2px);
  border-color: #14b8a6;
  background: #ecfeff;
  box-shadow: 0 14px 30px rgba(20, 184, 166, .14);
}

.pack-pick-card .pack-pick-name,
.pack-pick-card small {
  grid-column: auto;
}

.pack-pick-name {
  display: block;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.pack-pick-card small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.pack-pick-media {
  border-radius: 8px;
  background: #e0f2fe;
}

.selected-game-preview {
  margin: 0;
  border-color: rgba(45, 212, 191, .26);
  background: linear-gradient(135deg, rgba(236, 254, 255, .98), rgba(240, 253, 244, .98));
}

.selected-game-art {
  border-radius: 13px;
}

.game-topup-form {
  position: sticky;
  top: 88px;
  gap: 12px;
}

.checkout-title {
  display: grid;
  gap: 3px;
}

.game-topup-form label {
  color: #334155;
  font-weight: 850;
}

.game-topup-form input,
.game-topup-form textarea {
  border-color: #d6e0ec;
  background: #f8fafc;
}

.topup-summary {
  align-items: center;
  min-height: 58px;
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
}

.topup-summary strong {
  font-size: 20px;
}

.topup-orders-panel {
  background: rgba(248,250,252,.96);
}

.game-back-btn {
  min-height: 34px;
  padding: 7px 12px;
  border-color: rgba(148, 163, 184, .22);
  background: rgba(15, 30, 49, .8);
  color: #dbeafe;
}

.topup-empty {
  max-width: none;
  border-color: rgba(125, 211, 252, .36);
  background: rgba(248, 250, 252, .9);
}

@media (max-width: 1180px) {
  .game-topup-hero,
  .game-topup-workspace,
  .game-package-layout {
    grid-template-columns: 1fr;
  }

  .game-catalog-section,
  .game-topup-form {
    position: static;
    max-height: none;
  }

  .game-card-grid {
    max-height: none;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .pack-card-grid {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .game-topup-shell {
    width: min(100% - 18px, 1420px);
  }

  .game-topup-hero {
    padding: 18px;
  }

  .game-topup-stats {
    grid-template-columns: 1fr;
  }

  .game-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .game-pick-media {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

  .game-pick-card {
    min-height: 136px;
  }

  .pack-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .service-strip {
    margin: -4px 0 20px;
    gap: 10px;
  }

  .service-strip article {
    min-height: 72px;
    padding: 13px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .password-panel,
  .policy {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .ad-popup-modal {
    padding: 14px;
  }

  .ad-popup-card {
    width: min(96vw, 620px);
    border-radius: 20px;
  }

  .ad-popup-close {
    width: 34px;
    height: 34px;
    font-size: 21px;
  }

  .ad-admin-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hidden { display: none !important; }
.ok { color: var(--green); font-weight: 800; }
.warn { color: #b87500; font-weight: 800; }
.danger { color: var(--red); font-weight: 800; }
.danger-action {
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.danger-action:hover {
  border-color: #86efac;
  box-shadow: 0 10px 24px rgba(22, 163, 74, .12);
}
.hint { color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .category-sale-header {
    min-height: 142px;
    border-radius: 18px;
  }
  .category-products-panel {
    padding: 16px;
    border-radius: 16px;
  }
  .category-products-head {
    display: grid;
  }
  .category-products-metrics {
    justify-content: flex-start;
  }
  .category-chip-row {
    gap: 8px;
  }
  .category-chip-row button {
    min-height: 40px;
    padding: 0 14px;
  }
  .stats-grid, .category-grid, .two-col, .footer-grid, .contact-panel, .admin-grid, .profile-stats, .profile-hero { grid-template-columns: 1fr; }
  .service-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: -2px 0 18px;
  }
  .service-strip article {
    min-height: 104px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    padding: 10px 6px;
    text-align: center;
    border-radius: 14px;
  }
  .service-strip i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
  .service-strip i .icon {
    width: 17px;
    height: 17px;
  }
  .service-strip strong {
    font-size: 11px;
    line-height: 1.25;
  }
  .service-strip span {
    display: none;
  }
  .profile-hero {
    text-align: left;
  }
  .filter-bar { grid-template-columns: 1fr; }
  .wallet-methods { grid-template-columns: 1fr; }
  .quick-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-topup-hero,
  .game-topup-grid,
  .topup-order-card {
    grid-template-columns: 1fr;
  }
  .game-topup-hero {
    padding: 24px;
  }
  .game-topup-hero h1 {
    font-size: 40px;
  }
  .contact-admin-row { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
  .orange-hero { height: 330px; }
  .hero-copy { text-align: left; }
  .sample-chip { font-size: 14px; }
  .hero-device { right: 22px; transform: scale(.82) rotate(5deg); transform-origin: bottom right; }
  .slider-btn { display: none; }
  .footer-bottom { display: grid; gap: 10px; }
  .cookie { grid-template-columns: 1fr; }
  .auth-card {
    min-height: auto;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    overflow: auto;
  }
  .auth-visual {
    padding: 28px;
  }
  .auth-visual h2 {
    margin-top: 36px;
    font-size: 34px;
  }
  .auth-benefits {
    margin-top: 24px;
  }
  .auth-actions {
    grid-template-columns: 1fr;
  }

  .auth-identity-row {
    grid-template-columns: 1fr;
  }
  .product-detail-card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    overflow: auto;
  }
  .product-detail-media,
  .product-detail-media img {
    min-height: 260px;
    height: 260px;
  }
  .detail-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .site-header,
  main,
  .footer {
    width: min(100vw - 16px, 1120px);
  }

  .shell {
    width: min(100vw - 32px, 1040px);
  }

  .header-inner {
    gap: 12px;
  }

  .logo {
    min-width: auto;
  }

  .main-nav {
    min-width: 0;
  }

  .main-nav a {
    padding: 9px 10px;
    font-size: 13px;
  }

  .orange-hero {
    height: 280px;
  }

  .hero-copy h1 {
    max-width: 620px;
    font-size: clamp(40px, 5.5vw, 66px);
  }
}

.premium-page {
  padding: 18px 0 34px;
}

.premium-shell {
  display: grid;
  gap: 18px;
}

.premium-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 18px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid rgba(20, 184, 166, .24);
  border-radius: 8px;
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .95), rgba(20, 83, 45, .88)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 68px);
}

.premium-hero span,
.premium-card-category {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.premium-hero h1 {
  margin: 8px 0 10px;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.premium-hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(248, 250, 252, .72);
  font-weight: 700;
}

.premium-hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.premium-hero-stats div,
.premium-toolbar,
.premium-products-panel,
.premium-checkout-panel,
.premium-orders-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.premium-hero-stats div {
  padding: 16px;
  background: rgba(2, 6, 23, .35);
  border-color: rgba(148, 163, 184, .22);
}

.premium-hero-stats span {
  display: block;
  color: rgba(248, 250, 252, .62);
}

.premium-hero-stats strong {
  display: block;
  margin-top: 4px;
  color: #86efac;
  font-size: 24px;
}

.premium-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.premium-toolbar input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--soft);
  font: inherit;
}

.premium-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.premium-chip-row button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.premium-chip-row button.active {
  border-color: rgba(34, 197, 94, .45);
  background: #dcfce7;
  color: #166534;
}

.premium-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.premium-products-panel,
.premium-checkout-panel,
.premium-orders-panel {
  padding: 18px;
}

.premium-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.premium-section-head h2,
.premium-section-head h3 {
  margin: 0;
}

.premium-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 16px;
}

.premium-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  min-height: 338px;
  padding: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(15, 23, 42, .08);
}

.premium-card:hover,
.premium-card.active {
  border-color: rgba(34, 197, 94, .55);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
}

.premium-card-img,
.premium-selected-img {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #0f172a;
}

.premium-poster {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 174px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(135deg, #111827, #020617);
}

.premium-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .38;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.premium-poster-netflix { background: linear-gradient(135deg, #050505, #451111); }
.premium-poster-youtube { background: linear-gradient(135deg, #170606, #b91c1c); }
.premium-poster-canva { background: linear-gradient(135deg, #0f766e, #7c3aed); }
.premium-poster-disney { background: linear-gradient(135deg, #0c1e43, #0369a1); }
.premium-poster-prime { background: linear-gradient(135deg, #082f49, #0284c7); }
.premium-poster-max { background: linear-gradient(135deg, #08111f, #1d4ed8); }
.premium-poster-iqiyi { background: linear-gradient(135deg, #064e3b, #84cc16); }
.premium-poster-viu { background: linear-gradient(135deg, #713f12, #f59e0b); }
.premium-poster-trueid { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.premium-poster-chatgpt { background: linear-gradient(135deg, #064e3b, #0f766e); }

.premium-poster-kicker {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .65);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.premium-poster-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-top: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
}

.premium-poster-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.premium-poster-icon .premium-img-fallback {
  border-radius: 18px;
  font-size: 18px;
}

.premium-poster strong {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  max-width: calc(100% - 22px);
  overflow: hidden;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 4px 18px rgba(0,0,0,.45);
}

.premium-poster small {
  position: relative;
  z-index: 2;
  margin-top: 5px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  text-shadow: 0 3px 12px rgba(0,0,0,.45);
}

.premium-poster em {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  left: 0;
  right: 0;
  color: rgba(255,255,255,.86);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.premium-card-img {
  width: 92px;
  height: 92px;
}

.premium-card-img img,
.premium-selected-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.premium-img-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, .28), rgba(14, 165, 233, .24)),
    #0f172a;
}

.premium-card-body {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 0 14px;
}

.premium-card-body strong {
  line-height: 1.28;
  min-height: 42px;
  overflow: hidden;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.premium-card-body small {
  color: var(--muted);
  font-weight: 700;
}

.premium-provider-line {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: #047857 !important;
  background: #dcfce7;
  font-size: 11px;
  font-weight: 900 !important;
}

.premium-card-price {
  color: #111827;
  font-weight: 900;
}

.premium-detail-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4b5563 !important;
}

.premium-detail-line .icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.premium-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  font-weight: 900;
}

.premium-card.active .premium-card-action {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.premium-stock-line {
  display: block;
  padding: 0 14px;
  color: #4b5563;
  font-weight: 800;
  text-align: right;
}

.premium-selected-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.premium-selected {
  display: grid;
  gap: 16px;
}

.premium-selected-top {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
}

.premium-selected-img {
  width: 92px;
  height: 92px;
}

.premium-selected h2 {
  margin: 4px 0;
  font-size: 21px;
}

.premium-selected p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

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

.premium-price-box div {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.premium-price-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.premium-price-box strong {
  display: block;
  margin-top: 4px;
  color: #15803d;
}

.premium-price-box strong em,
.premium-mobile-price em {
  display: block;
  color: #94a3b8;
  font-size: .62em;
  font-style: normal;
  line-height: 1.15;
  text-decoration: line-through;
}

.premium-discount-box {
  border: 1px solid rgba(34, 197, 94, .22);
  background: #dcfce7 !important;
  animation: premiumDiscountPop .24s ease-out;
}

.premium-discount-box small,
.premium-coupon-result {
  color: #16a34a;
  font-weight: 900;
}

.premium-coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.premium-coupon-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, .2);
  border-radius: 12px;
  background: #f0fdf4;
  animation: premiumDiscountPop .24s ease-out;
}

@keyframes premiumDiscountPop {
  from { transform: translateY(4px) scale(.98); opacity: .35; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.premium-buy-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.premium-demo-note {
  padding: 12px;
  border: 1px dashed rgba(20, 184, 166, .55);
  border-radius: 8px;
  background: rgba(236, 253, 245, .8);
  color: #0f766e !important;
}

.premium-order-list {
  display: grid;
  gap: 10px;
}

.premium-order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.premium-order-card span,
.premium-order-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.premium-order-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #e0f2fe;
  font: 700 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.premium-banner {
  min-height: 178px;
  border: 1px solid rgba(34, 197, 94, .22);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(20, 83, 45, .88)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 58px);
  background-position: center;
  background-size: cover;
}

.premium-banner.has-image {
  min-height: 0;
  aspect-ratio: var(--fit-desktop-ratio, 16 / 5);
}

.premium-banner-empty {
  display: grid;
  align-content: center;
  min-height: 178px;
  padding: 28px 32px;
  color: #f8fafc;
}

.premium-banner.has-image .premium-banner-empty {
  display: none;
}

.premium-banner-empty span {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 900;
}

.premium-banner-empty strong {
  margin-top: 6px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
}

.premium-shop-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.premium-shop-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 24px;
}

.premium-shop-head h2 > span:first-child {
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: var(--gold-dark);
}

.premium-shop-head h2 > span:last-child {
  color: var(--gold-dark);
}

.premium-shop-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.premium-head-actions {
  display: grid;
  grid-template-columns: auto minmax(260px, 360px);
  gap: 12px;
  align-items: center;
}

.premium-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.premium-head-actions input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  font: inherit;
}

.premium-stock-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.premium-stock-filter.active {
  border-color: rgba(34, 197, 94, .48);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, .18);
}

.premium-stock-filter .icon {
  width: 16px;
  height: 16px;
}

.premium-mini-stats {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.premium-mini-stats span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 12px;
  font-weight: 900;
}

.premium-chip-row {
  grid-column: 1 / -1;
}

.premium-toolbar {
  display: none;
}

.premium-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.premium-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 250px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.premium-card:hover,
.premium-card.active {
  border-color: rgba(34, 197, 94, .42);
  box-shadow: 0 16px 30px rgba(15, 23, 42, .12);
}

.premium-card-img {
  width: 100%;
  height: 126px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a, #164e3a);
}

.premium-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px;
}

.premium-card-body {
  gap: 8px;
  padding: 0;
}

.premium-card-body strong {
  min-height: 40px;
  font-size: 14px;
}

.premium-card-price {
  color: #111827;
  font-size: 14px;
}

.premium-detail-line {
  color: #4b5563 !important;
}

.premium-stock-line {
  padding: 0;
  color: #4b5563;
  text-align: right;
}

body.premium-fullscreen {
  background:
    radial-gradient(circle at 0% 70%, rgba(16, 185, 129, .28), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(6, 182, 212, .22), transparent 30%),
    #06111e;
}

body.premium-fullscreen body::before {
  display: none;
}

body.premium-fullscreen .site-header {
  top: 0;
  width: 100%;
  border-width: 0 0 1px;
  border-radius: 0;
  border-color: rgba(20, 184, 166, .25);
  background: rgba(7, 18, 31, .9);
  box-shadow: none;
}

body.premium-fullscreen .site-header .shell {
  width: min(100% - 48px, 1840px);
}

body.premium-fullscreen .logo strong,
body.premium-fullscreen .main-nav a,
body.premium-fullscreen .account-pill {
  color: #e5f9f2;
}

body.premium-fullscreen .main-nav a.active,
body.premium-fullscreen .main-nav a:hover {
  color: #04131f;
  background: #16e7cf;
}

body.premium-fullscreen main {
  width: 100%;
  min-height: calc(100vh - 70px);
  margin: 0;
  padding: 0 0 56px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(4, 19, 31, .96), rgba(5, 15, 27, .98)),
    #06111e;
  box-shadow: none;
  overflow: visible;
}

body.premium-fullscreen main > .view:not(#premiumAppsView) {
  display: none;
}

body.premium-fullscreen #premiumAppsView {
  min-height: calc(100vh - 70px);
}

body.premium-fullscreen .premium-page {
  width: 100%;
  padding: 22px 0 60px;
  color: #e7fff8;
}

body.premium-fullscreen .premium-shell {
  width: min(100% - 48px, 1500px);
  max-width: 1500px;
  gap: 20px;
}

body.premium-fullscreen .premium-banner {
  min-height: 178px;
  border-color: rgba(20, 184, 166, .35);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(5, 18, 31, .84), rgba(5, 97, 83, .42)),
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, .35), transparent 24%),
    linear-gradient(135deg, #081525, #063a3b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 24px 80px rgba(0,0,0,.2);
}

body.premium-fullscreen .premium-banner.has-image {
  min-height: 0;
  aspect-ratio: var(--fit-desktop-ratio, 16 / 5);
}

body.premium-fullscreen .premium-shop-head {
  grid-template-columns: 1fr auto;
  padding: 18px 24px;
  border-color: rgba(20, 184, 166, .22);
  background: linear-gradient(90deg, rgba(7, 18, 31, .92), rgba(5, 68, 82, .76));
  color: #effffb;
  box-shadow: 0 18px 55px rgba(0,0,0,.2);
}

body.premium-fullscreen .premium-shop-head h2 {
  color: #f8fffe;
  font-size: 25px;
}

body.premium-fullscreen .premium-shop-head h2 > span:first-child {
  background: #11f5c9;
}

body.premium-fullscreen .premium-shop-head h2 > span:last-child {
  color: #22f5ad;
}

body.premium-fullscreen .premium-shop-head p {
  color: rgba(231,255,248,.62);
}

body.premium-fullscreen .premium-head-actions {
  grid-template-columns: auto minmax(240px, 320px);
}

body.premium-fullscreen .premium-head-actions input {
  border-color: rgba(20, 184, 166, .5);
  background: rgba(3, 12, 22, .88);
  color: #e7fff8;
}

body.premium-fullscreen .premium-head-actions input::placeholder {
  color: rgba(231,255,248,.45);
}

body.premium-fullscreen .premium-mini-stats span {
  border-color: rgba(17, 245, 201, .28);
  background: rgba(17, 245, 201, .1);
  color: #abfff0;
}

body.premium-fullscreen .premium-chip-row button {
  border-color: rgba(20, 184, 166, .32);
  background: rgba(9, 25, 40, .92);
  color: #b7fff2;
}

body.premium-fullscreen .premium-chip-row button.active {
  border-color: transparent;
  background: #16e7cf;
  color: #04131f;
}

body.premium-fullscreen .premium-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
}

body.premium-fullscreen .premium-products-panel,
body.premium-fullscreen .premium-checkout-panel,
body.premium-fullscreen .premium-orders-panel {
  border-color: rgba(20, 184, 166, .18);
  background: rgba(7, 18, 31, .78);
  color: #e7fff8;
  box-shadow: 0 20px 65px rgba(0,0,0,.18);
}

body.premium-fullscreen .premium-products-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.premium-fullscreen .premium-section-head {
  padding: 0 2px;
}

body.premium-fullscreen .premium-section-head h2,
body.premium-fullscreen .premium-section-head h3 {
  color: #f8fffe;
}

body.premium-fullscreen .premium-section-head p {
  color: rgba(231,255,248,.56);
}

body.premium-fullscreen .premium-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

body.premium-fullscreen .premium-card {
  min-height: 470px;
  padding: 0 0 20px;
  border-color: rgba(20, 184, 166, .18);
  border-radius: 22px;
  background: #071522;
  color: #e7fff8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 18px 45px rgba(0,0,0,.22);
  transform: translateY(0) scale(1);
  transition:
    border-color .34s ease,
    box-shadow .34s ease,
    transform .34s cubic-bezier(.2, .8, .2, 1),
    filter .34s ease;
}

body.premium-fullscreen .premium-card:hover,
body.premium-fullscreen .premium-card.active {
  border-color: rgba(17, 245, 201, .52);
  box-shadow: 0 26px 62px rgba(0,0,0,.34);
  transform: translateY(-3px) scale(1.01);
}

body.premium-fullscreen .premium-card.active {
  animation: premium-card-soft-select .46s cubic-bezier(.2, .8, .2, 1);
}

body.premium-fullscreen .premium-card.active .premium-card-img {
  animation: premium-card-image-glow .58s ease;
}

body.premium-fullscreen .premium-card-img {
  height: 238px;
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(17,245,201,.18), transparent 24%),
    linear-gradient(135deg, #13293b, #233748);
}

body.premium-fullscreen .premium-card-img img {
  padding: 34px;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.4));
}

body.premium-fullscreen .premium-img-fallback {
  color: #e7fff8;
  font-size: 54px;
  background:
    radial-gradient(circle at 70% 20%, rgba(17,245,201,.22), transparent 26%),
    linear-gradient(135deg, #17364c, #092337);
}

body.premium-fullscreen .premium-card-body {
  gap: 10px;
  padding: 0 18px;
}

body.premium-fullscreen .premium-card-body strong {
  min-height: 54px;
  color: #f3fffb;
  font-size: 18px;
}

body.premium-fullscreen .premium-card-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(126, 226, 58, .18);
  border-radius: 999px;
  background: rgba(126, 226, 58, .10);
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

body.premium-fullscreen .premium-card-price small {
  color: rgba(244, 255, 247, .68);
  font-size: 12px;
  font-weight: 800;
}

body.premium-fullscreen .premium-card-price b {
  color: var(--gold);
  font-size: 21px;
  font-weight: 950;
}

body.premium-fullscreen .premium-card-price em {
  color: #bbf7d0;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

body.premium-fullscreen .premium-card::after {
  content: "ซื้อเลย";
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin: 8px 18px 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #20f0d0, #15d99d);
  color: #04131f;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(34, 197, 94, .18);
}

body.premium-fullscreen .premium-card.active::after {
  content: "เลือกแล้ว";
  background: linear-gradient(135deg, #86efac, #22c55e);
}

body.premium-fullscreen {
  background:
    radial-gradient(circle at 0% 72%, rgba(126, 226, 58, .20), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(34, 197, 94, .18), transparent 30%),
    linear-gradient(180deg, #07130d, #0b1711);
}

body.premium-fullscreen .site-header {
  border-color: rgba(126, 226, 58, .22);
  background: rgba(8, 20, 13, .92);
}

body.premium-fullscreen .main-nav a.active,
body.premium-fullscreen .main-nav a:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #06130b;
}

body.premium-fullscreen main {
  background:
    radial-gradient(circle at 5% 82%, rgba(22, 163, 74, .18), transparent 28%),
    linear-gradient(180deg, #07130d, #0b1711);
}

body.premium-fullscreen .premium-banner {
  border-color: rgba(126, 226, 58, .28);
  background:
    linear-gradient(90deg, rgba(7, 19, 13, .88), rgba(18, 80, 36, .44)),
    radial-gradient(circle at 78% 18%, rgba(126, 226, 58, .22), transparent 26%),
    linear-gradient(135deg, #07130d, #154124);
}

body.premium-fullscreen .premium-shop-head {
  border-color: rgba(126, 226, 58, .20);
  background: linear-gradient(90deg, rgba(8, 22, 14, .94), rgba(18, 65, 31, .82));
}

body.premium-fullscreen .premium-shop-head h2 > span:first-child,
body.premium-fullscreen .premium-chip-row button.active,
body.premium-fullscreen .premium-card::after {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #06130b;
}

body.premium-fullscreen .premium-shop-head h2 > span:last-child,
body.premium-fullscreen .premium-card-price,
body.premium-fullscreen .premium-hero-stats strong {
  color: var(--gold);
}

body.premium-fullscreen .premium-head-actions input {
  border-color: rgba(126, 226, 58, .30);
  background: rgba(6, 19, 11, .92);
  color: #f3fff6;
}

body.premium-fullscreen .premium-mini-stats span,
body.premium-fullscreen .premium-chip-row button {
  border-color: rgba(126, 226, 58, .24);
  background: rgba(126, 226, 58, .08);
  color: #dfffd6;
}

body.premium-fullscreen .premium-card {
  border-color: rgba(126, 226, 58, .16);
  background: linear-gradient(180deg, #102519, #0b1811);
  color: #f4fff7;
}

body.premium-fullscreen .premium-card:hover,
body.premium-fullscreen .premium-card.active {
  border-color: rgba(126, 226, 58, .50);
  box-shadow: 0 28px 65px rgba(22, 163, 74, .14), 0 22px 56px rgba(0,0,0,.32);
}

body.premium-fullscreen .premium-card-img {
  background:
    radial-gradient(circle at 72% 20%, rgba(126, 226, 58, .14), transparent 26%),
    linear-gradient(135deg, #173524, #203828);
}

body.premium-fullscreen .premium-card-body strong {
  color: #f4fff7;
}

body.premium-fullscreen .premium-detail-line,
body.premium-fullscreen .premium-stock-line {
  color: rgba(244, 255, 247, .68) !important;
}

body.premium-fullscreen .premium-detail-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 4px 0;
}

body.premium-fullscreen .premium-card-bottom {
  display: flex;
  justify-content: flex-end;
  padding: 0 24px;
}

body.premium-fullscreen .premium-stock-line {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

body.premium-fullscreen .premium-stock-line b {
  color: #bbf7d0;
}

body.premium-fullscreen .premium-card.is-out-of-stock {
  border-color: rgba(148, 163, 184, .36);
  background: linear-gradient(180deg, #f4f6f5, #e8edeb);
  color: #647067;
  filter: grayscale(1);
  opacity: .72;
  box-shadow: none;
}

body.premium-fullscreen .premium-card.is-out-of-stock:hover,
body.premium-fullscreen .premium-card.is-out-of-stock.active {
  border-color: rgba(100, 116, 139, .48);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

body.premium-fullscreen .premium-card.is-out-of-stock .premium-card-img {
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
}

body.premium-fullscreen .premium-card.is-out-of-stock .premium-card-img img,
body.premium-fullscreen .premium-selected.is-out-of-stock .premium-selected-img img,
body.premium-fullscreen .premium-selected.is-out-of-stock .premium-mobile-hero img {
  filter: grayscale(1) contrast(.86);
  opacity: .56;
}

body.premium-fullscreen .premium-card.is-out-of-stock .premium-card-price,
body.premium-fullscreen .premium-card.is-out-of-stock .premium-stock-line,
body.premium-fullscreen .premium-selected.is-out-of-stock .premium-price-box div {
  border-color: rgba(148, 163, 184, .34);
  background: #edf1ef;
  color: #64748b !important;
}

body.premium-fullscreen .premium-card.is-out-of-stock .premium-card-price b,
body.premium-fullscreen .premium-card.is-out-of-stock .premium-stock-line b,
body.premium-fullscreen .premium-selected.is-out-of-stock .premium-price-box strong,
body.premium-fullscreen .premium-selected.is-out-of-stock .premium-mobile-price {
  color: #64748b !important;
}

.premium-soldout-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(100, 116, 139, .24);
  border-radius: 999px;
  background: #e5e7eb;
  color: #475569 !important;
  font-size: 12px;
  font-weight: 900;
}

body.premium-fullscreen .premium-selected.is-out-of-stock {
  border-color: rgba(148, 163, 184, .36);
  background: linear-gradient(180deg, rgba(248, 250, 252, .96), rgba(226, 232, 240, .78));
}

body.premium-fullscreen .premium-buy-form .gold-btn:disabled,
.premium-selected-buy:disabled {
  cursor: not-allowed;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8) !important;
  color: #475569 !important;
  box-shadow: none !important;
  opacity: .9;
}

body.premium-fullscreen .premium-checkout-panel,
body.premium-fullscreen .premium-orders-panel {
  border-color: rgba(126, 226, 58, .18);
  background: linear-gradient(180deg, rgba(16, 37, 25, .96), rgba(9, 22, 15, .96));
}

body.premium-fullscreen .premium-price-box div,
body.premium-fullscreen .premium-demo-note {
  border-color: rgba(126, 226, 58, .22);
  background: rgba(126, 226, 58, .10);
}

body.premium-fullscreen .premium-buy-form .gold-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #06130b;
}

body.premium-fullscreen .premium-selected {
  gap: 18px;
}

body.premium-fullscreen .premium-selected-top {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

body.premium-fullscreen .premium-selected-img {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  background: rgba(126, 226, 58, .08);
}

body.premium-fullscreen .premium-selected-img img {
  padding: 14px;
}

body.premium-fullscreen .premium-selected-top span {
  display: inline-block;
  margin-bottom: 6px;
  color: #a7f3d0;
  font-size: 13px;
  font-weight: 750;
}

body.premium-fullscreen .premium-selected h2 {
  margin: 0 0 8px;
  color: #f4fff7;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.34;
}

body.premium-fullscreen .premium-selected p {
  color: rgba(244, 255, 247, .62);
  font-size: 14px;
  line-height: 1.55;
}

body.premium-fullscreen .premium-price-box {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.premium-fullscreen .premium-price-box div {
  padding: 12px;
  border-radius: 10px;
}

body.premium-fullscreen .premium-price-box span {
  font-size: 11px;
}

body.premium-fullscreen .premium-price-box strong {
  font-size: 16px;
}

body.premium-fullscreen .premium-demo-note {
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

body.premium-fullscreen .premium-buy-form {
  gap: 12px;
}

body.premium-fullscreen .premium-buy-form label {
  font-size: 13px;
  font-weight: 800;
}

body.premium-fullscreen .premium-buy-form textarea {
  min-height: 96px;
  border-radius: 10px;
  font-size: 13px;
}

body.premium-fullscreen .premium-buy-form .gold-btn {
  min-height: 46px;
  border-radius: 12px;
  font-size: 15px;
}

body.premium-fullscreen .premium-detail-line {
  color: rgba(231,255,248,.62) !important;
}

body.premium-fullscreen .premium-stock-line {
  padding: 7px 10px;
  color: rgba(231,255,248,.68);
}

body.premium-fullscreen .premium-buy-form label,
body.premium-fullscreen .premium-selected p,
body.premium-fullscreen .premium-price-box span,
body.premium-fullscreen .premium-order-card span,
body.premium-fullscreen .premium-order-card small {
  color: rgba(231,255,248,.68);
}

body.premium-fullscreen .premium-checkout-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 10px;
}

body.premium-fullscreen .premium-price-box div {
  background: rgba(17,245,201,.08);
}

body.premium-fullscreen {
  background:
    radial-gradient(circle at 0% 78%, rgba(187, 247, 208, .52), transparent 30%),
    radial-gradient(circle at 94% 8%, rgba(220, 252, 231, .74), transparent 34%),
    linear-gradient(180deg, #f6fff8, #ecfff2);
  color: #102519;
}

body.premium-fullscreen .site-header {
  border-color: #d8f8df;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 34px rgba(22, 163, 74, .08);
}

body.premium-fullscreen .logo strong,
body.premium-fullscreen .main-nav a,
body.premium-fullscreen .account-pill {
  color: #102519;
}

body.premium-fullscreen .main-nav a.active,
body.premium-fullscreen .main-nav a:hover {
  background: linear-gradient(135deg, #86efac, #22c55e);
  color: #052e16;
}

body.premium-fullscreen main {
  background:
    radial-gradient(circle at 4% 82%, rgba(187, 247, 208, .45), transparent 28%),
    linear-gradient(180deg, #f7fff9, #effff4);
}

body.premium-fullscreen .premium-banner {
  border-color: #bbf7d0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .78), rgba(220, 252, 231, .72)),
    radial-gradient(circle at 78% 18%, rgba(126, 226, 58, .20), transparent 26%),
    linear-gradient(135deg, #ffffff, #dcfce7);
  box-shadow: 0 18px 45px rgba(22, 163, 74, .10);
}

body.premium-fullscreen .premium-banner-empty {
  color: #102519;
}

body.premium-fullscreen .premium-banner-empty span {
  color: #16a34a;
}

body.premium-fullscreen .premium-shop-head,
body.premium-fullscreen .premium-products-panel,
body.premium-fullscreen .premium-checkout-panel,
body.premium-fullscreen .premium-orders-panel {
  border-color: #bbf7d0;
  background: rgba(255, 255, 255, .86);
  color: #102519;
  box-shadow: 0 18px 48px rgba(22, 163, 74, .09);
}

body.premium-fullscreen .premium-products-panel {
  background: transparent;
  box-shadow: none;
}

body.premium-fullscreen .premium-shop-head h2,
body.premium-fullscreen .premium-section-head h2,
body.premium-fullscreen .premium-section-head h3,
body.premium-fullscreen .premium-card-body strong,
body.premium-fullscreen .premium-selected h2 {
  color: #102519;
}

body.premium-fullscreen .premium-shop-head p,
body.premium-fullscreen .premium-section-head p,
body.premium-fullscreen .premium-detail-line,
body.premium-fullscreen .premium-stock-line,
body.premium-fullscreen .premium-selected p,
body.premium-fullscreen .premium-buy-form label,
body.premium-fullscreen .premium-order-card span,
body.premium-fullscreen .premium-order-card small {
  color: #5f7467 !important;
}

body.premium-fullscreen .premium-head-actions input {
  border-color: #bbf7d0;
  background: #ffffff;
  color: #102519;
}

body.premium-fullscreen .premium-head-actions input::placeholder {
  color: #8fa196;
}

body.premium-fullscreen .premium-mini-stats span,
body.premium-fullscreen .premium-chip-row button {
  border-color: #bbf7d0;
  background: #ffffff;
  color: #166534;
}

body.premium-fullscreen .premium-chip-row button.active {
  background: linear-gradient(135deg, #86efac, #22c55e);
  color: #052e16;
}

body.premium-fullscreen .premium-card {
  border-color: #bbf7d0;
  background: #ffffff;
  color: #102519;
  box-shadow: 0 16px 34px rgba(22, 163, 74, .10);
}

body.premium-fullscreen .premium-card:hover,
body.premium-fullscreen .premium-card.active {
  border-color: #22c55e;
  box-shadow: 0 24px 54px rgba(22, 163, 74, .16);
}

body.premium-fullscreen .premium-card-img {
  background:
    radial-gradient(circle at 72% 20%, rgba(126, 226, 58, .18), transparent 26%),
    linear-gradient(135deg, #f0fdf4, #dcfce7);
}

body.premium-fullscreen .premium-card-img img {
  filter: drop-shadow(0 18px 26px rgba(15, 23, 42, .16));
}

body.premium-fullscreen .premium-card-price {
  border-color: #bbf7d0;
  background: #ecfff2;
}

body.premium-fullscreen .premium-card-price small,
body.premium-fullscreen .premium-card-price em {
  color: #166534;
}

body.premium-fullscreen .premium-card-price b,
body.premium-fullscreen .premium-shop-head h2 > span:last-child {
  color: #16a34a;
}

body.premium-fullscreen .premium-stock-line {
  background: #f0fdf4;
}

body.premium-fullscreen .premium-stock-line b {
  color: #16a34a;
}

body.premium-fullscreen .premium-card::after,
body.premium-fullscreen .premium-buy-form .gold-btn {
  background: linear-gradient(135deg, #86efac, #22c55e);
  color: #052e16;
  box-shadow: 0 14px 28px rgba(22, 163, 74, .20);
}

body.premium-fullscreen .premium-price-box div,
body.premium-fullscreen .premium-demo-note {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

body.premium-fullscreen .premium-price-box strong {
  color: #16a34a;
}

body.premium-fullscreen .premium-selected-img {
  background: #f0fdf4;
}

body.premium-fullscreen .premium-shop-head {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 20px;
  border: 1px solid rgba(34, 197, 94, .22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(240, 253, 244, .92)),
    radial-gradient(circle at 88% 0%, rgba(134, 239, 172, .28), transparent 28%);
  box-shadow: 0 20px 50px rgba(22, 163, 74, .10);
}

body.premium-fullscreen .premium-shop-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 163, 74, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 163, 74, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.55), transparent 68%);
}

body.premium-fullscreen .premium-shop-head > * {
  position: relative;
  z-index: 1;
}

body.premium-fullscreen .premium-shop-head h2 {
  gap: 10px;
  font-size: 28px;
  line-height: 1.1;
}

body.premium-fullscreen .premium-shop-head h2 > span:first-child {
  width: 5px;
  height: 30px;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .10);
}

body.premium-fullscreen .premium-shop-head p {
  margin-top: 8px;
  color: #64756a !important;
}

body.premium-fullscreen .premium-head-actions {
  align-self: start;
  grid-template-columns: auto minmax(240px, 320px);
  gap: 14px;
}

body.premium-fullscreen .premium-mini-stats {
  gap: 8px;
}

body.premium-fullscreen .premium-mini-stats span {
  min-height: 42px;
  padding: 9px 12px;
  border-color: rgba(34, 197, 94, .24);
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 10px 24px rgba(22, 163, 74, .08);
}

body.premium-fullscreen .premium-mini-stats strong {
  color: #16a34a;
}

body.premium-fullscreen .premium-head-actions input {
  min-height: 46px;
  border-color: rgba(34, 197, 94, .28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff, #f8fffa);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 24px rgba(22, 163, 74, .08);
}

body.premium-fullscreen .premium-head-actions input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .12), 0 10px 24px rgba(22, 163, 74, .08);
}

body.premium-fullscreen .premium-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 112px;
  overflow: auto;
  padding: 10px 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 197, 94, .35) transparent;
}

body.premium-fullscreen .premium-chip-row::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

body.premium-fullscreen .premium-chip-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(34, 197, 94, .28);
}

body.premium-fullscreen .premium-chip-row button {
  min-height: 40px;
  padding: 9px 15px;
  border-color: rgba(34, 197, 94, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #166534;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .07);
}

body.premium-fullscreen .premium-chip-row button:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, .48);
  background: #f0fdf4;
}

body.premium-fullscreen .premium-chip-row button.active {
  background: linear-gradient(135deg, #86efac, #22c55e);
  color: #052e16;
  box-shadow: 0 14px 26px rgba(34, 197, 94, .20);
}

body.premium-fullscreen .premium-order-card {
  border-color: rgba(20, 184, 166, .18);
  background: rgba(8, 22, 36, .8);
}

.premium-selected-bar {
  display: none;
}

.game-menu-page {
  margin-top: -24px;
  min-height: 780px;
  padding: 32px 0 54px;
  background: #ffffff;
  color: #0f172a;
}

.game-menu-page .game-topup-shell {
  width: min(1536px, calc(100vw - 32px));
  gap: 28px;
}

.game-menu-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 24px;
  align-items: start;
}

.game-menu-head h1 {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 850;
}

.game-menu-head h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
}

.game-menu-head p {
  max-width: 1280px;
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.8;
}

.game-menu-search {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.game-menu-page .game-catalog-search {
  width: min(100%, 360px);
  height: 44px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
}

.game-menu-page .game-catalog-search::placeholder {
  color: #94a3b8;
}

.game-menu-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.game-menu-stats span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  font-weight: 850;
}

.game-menu-catalog {
  padding-top: 18px;
}

.game-menu-page .game-card-grid {
  max-height: none;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 22px 18px;
  padding: 0;
}

.game-menu-page .game-pick-card {
  min-height: 0;
  display: grid;
  gap: 9px;
  justify-items: center;
  align-content: start;
  padding: 4px 2px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #0f172a;
  box-shadow: none;
  text-align: center;
}

.game-menu-page .game-pick-card:hover,
.game-menu-page .game-pick-card.active {
  transform: none;
  background: transparent;
  box-shadow: none;
}

.game-menu-page .game-pick-media {
  position: relative;
  isolation: isolate;
  width: 132px;
  height: 186px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, .16), transparent 10%),
    linear-gradient(160deg, #0b1117, #101f17 54%, #d6f65d 55%, #f8fffb);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .18);
}

.game-menu-page .game-pick-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-menu-page .game-card-cover::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 2;
  width: 40px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg width='48' height='20' viewBox='0 0 48 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 10H17.2C18 4.2 20.6 0 24 0C27.4 0 30 4.2 30.8 10H44C46.2 10 48 11.8 48 14V15C48 17.76 45.76 20 43 20H5C2.24 20 0 17.76 0 15V14C0 11.8 1.8 10 4 10Z' fill='white'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22));
  transform: translateX(-50%);
}

.game-menu-page .game-card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(4, 12, 9, .88));
  pointer-events: none;
}

.game-menu-page .game-card-cover img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.game-menu-page .game-card-cover b {
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 18px;
  color: #f8fafc;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  word-break: break-word;
  background: linear-gradient(145deg, #052e16, #0f766e 58%, #d9f99d);
}

.game-menu-page .game-card-cover b.game-card-fallback {
  gap: 3px;
  padding: 18px 12px 34px;
  color: rgba(255,255,255,.94);
  font-size: 11px;
  line-height: 1;
  text-shadow: none;
  word-break: normal;
}

.game-menu-page .game-card-cover b.game-card-fallback svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95;
}

.game-menu-page .game-card-cover b.game-card-fallback span {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.game-menu-page .game-card-cover b.game-card-fallback small {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 8px;
  font-weight: 900;
}

.game-menu-page .game-card-cover:has(.game-card-fallback) em {
  display: none;
}

.game-menu-page .game-card-cover b[hidden] {
  display: none;
}

.game-menu-page .game-card-cover em {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 13px;
  z-index: 3;
  overflow: hidden;
  padding: 7px 8px;
  border-radius: 999px;
  background: rgba(240, 253, 244, .92);
  color: #052e16;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-menu-page .pack-pick-media small {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 4;
  max-width: 42px;
  overflow: hidden;
  padding: 2px 5px;
  border-radius: 999px;
  background: #052e16;
  color: #bbf7d0;
  font-size: 9px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-menu-page .game-pick-card:hover .game-pick-media,
.game-menu-page .game-pick-card.active .game-pick-media {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(22, 163, 74, .18);
}

.game-menu-page .game-pick-card strong {
  max-width: 132px;
  min-height: 0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.25;
}

.game-menu-page .game-pick-card small {
  display: none;
}

.game-menu-page .game-package-section.hidden {
  display: none;
}

.game-menu-page .game-package-section {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

#gameTopupView.package-mode .game-menu-catalog {
  display: none;
}

#gameTopupView.package-mode .game-menu-head {
  display: none;
}

#gameTopupView.package-mode .topup-orders-panel {
  display: none;
}

#gameTopupView.package-mode .game-package-section {
  min-height: calc(100vh - 110px);
  align-content: start;
}

.game-menu-page .selected-game-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
  color: #0f172a;
}

.game-menu-page .selected-game-card {
  position: relative;
  width: 62px;
  height: 88px;
  border-radius: 12px;
  background: #07110c;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
}

.game-menu-page .selected-game-card::before {
  top: 3px;
  width: 24px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg width='48' height='20' viewBox='0 0 48 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 10H17.2C18 4.2 20.6 0 24 0C27.4 0 30 4.2 30.8 10H44C46.2 10 48 11.8 48 14V15C48 17.76 45.76 20 43 20H5C2.24 20 0 17.76 0 15V14C0 11.8 1.8 10 4 10Z' fill='white'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .14));
}

.game-menu-page .selected-game-card em {
  left: 6px;
  right: 6px;
  bottom: 7px;
  padding: 4px 5px;
  font-size: 8px;
}

.game-menu-page .game-package-layout {
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  align-items: start;
}

.game-menu-page .game-topup-panel {
  border-color: #dce7ef;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.game-menu-page .pack-list-panel {
  min-height: calc(100vh - 230px);
  padding: 18px;
}

.game-menu-page .pack-card-grid {
  max-height: calc(100vh - 300px);
  grid-template-columns: 1fr;
  gap: 0;
  overflow: auto;
  border: 1px solid #d7e2ef;
  border-radius: 18px;
  background: #f8fafc;
}

.game-menu-page .pack-list-header,
.game-menu-page .pack-pick-card {
  display: grid;
  grid-template-columns: 58px minmax(180px, 1fr) minmax(180px, .85fr) 120px 86px;
  gap: 12px;
  align-items: center;
}

.game-menu-page .pack-list-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 10px 16px;
  border-bottom: 1px solid #d7e2ef;
  background: #ecfdf5;
  color: #064e3b;
  font-size: 12px;
  font-weight: 950;
}

.game-menu-page .pack-pick-card {
  min-height: 0;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: #ffffff;
  text-align: left;
}

.game-menu-page .pack-pick-card:last-child {
  border-bottom: 0;
}

.game-menu-page .pack-pick-media {
  position: relative;
  isolation: isolate;
  width: 48px;
  height: 48px;
  justify-self: start;
  display: grid;
  place-items: center;
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, #ecfeff, #e0f2fe 55%, #f0fdf4);
  box-shadow: none;
}

.game-menu-page .pack-pick-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-menu-page .pack-real-art {
  background: #07110c;
  border-color: rgba(34, 197, 94, .35);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .18);
}

.game-menu-page .pack-real-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, .08), transparent 34%),
    linear-gradient(0deg, rgba(2, 6, 23, .86), transparent 48%);
  pointer-events: none;
}

.game-menu-page .pack-pick-media i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #0284c7;
}

.game-menu-page .pack-pick-media i svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
}

.game-menu-page .pack-token-coupon {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border-color: #86efac;
}

.game-menu-page .pack-token-coupon i { color: #047857; }

.game-menu-page .pack-token-coin {
  background: linear-gradient(145deg, #fff7ed, #fef3c7);
  border-color: #fde68a;
}

.game-menu-page .pack-token-coin i { color: #b45309; }

.game-menu-page .pack-token-card,
.game-menu-page .pack-token-box {
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  border-color: #cbd5e1;
}

.game-menu-page .pack-token-card i,
.game-menu-page .pack-token-box i { color: #0f766e; }

.game-menu-page .pack-pick-media em {
  display: none;
}

.game-menu-page .pack-real-art em {
  background: rgba(240,253,244,.92);
  color: #052e16;
}

.game-menu-page .pack-pick-card > span:not(.pack-pick-media) {
  min-width: 0;
  text-align: left;
}

.game-menu-page .pack-info {
  grid-column: 2;
  min-width: 0;
}

.game-menu-page .pack-pick-card .pack-pick-name {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.game-menu-page .pack-pick-card small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.game-menu-page .pack-sku {
  grid-column: 3;
  min-width: 0;
  overflow: hidden;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-menu-page .pack-pick-card .pack-price {
  grid-column: 4;
  justify-self: end;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.game-menu-page .pack-action {
  grid-column: 5;
  justify-self: end;
  padding: 8px 13px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  color: #047857;
  font-size: 12px;
  font-weight: 950;
}

.game-menu-page .pack-pick-card:hover,
.game-menu-page .pack-pick-card.active {
  border-color: #16a34a;
  background: #f0fdf4;
}

.game-menu-page .pack-pick-card.active .pack-action {
  background: #22c55e;
  color: #052e16;
}

.game-menu-page .game-topup-form {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.game-menu-page .topup-orders-panel {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

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

  .category-grid,
  .two-col,
  .footer-grid,
  .contact-panel,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    width: min(100vw - 24px, 1120px);
  }

  .product-admin-grid {
    grid-template-columns: 1fr;
  }

  .product-create-card {
    position: static;
  }

  .product-manager-panel {
    order: -1;
  }

  .product-manager-head,
  .admin-product-main,
  .recommended-admin-main {
    grid-template-columns: 1fr;
  }

  .product-manager-stats,
  .admin-product-metrics,
  .recommended-admin-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card-list,
  .recommended-card-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .admin-product-main {
    align-items: start;
  }

  .admin-product-img {
    width: 92px;
    height: 92px;
  }

  .product-edit-grid {
    grid-template-columns: 1fr;
  }

  .product-edit-wide {
    grid-column: auto;
  }

  .admin-edit-modal {
    padding: 14px;
  }

  .admin-edit-card {
    width: calc(100vw - 28px);
    max-height: 82vh;
    padding: 18px;
    border-radius: 20px;
  }

  .admin-edit-head {
    padding-right: 48px;
  }

  .wallet-page {
    max-width: 760px;
  }

  .wallet-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .game-topup-grid {
    grid-template-columns: 1fr;
  }

  .game-topup-hero {
    grid-template-columns: 1fr;
  }

  .premium-hero,
  .premium-toolbar,
  .premium-layout,
  .premium-shop-head,
  .premium-head-actions {
    grid-template-columns: 1fr;
  }

  .premium-head-actions,
  .premium-mini-stats {
    justify-content: stretch;
  }

  body.premium-fullscreen .premium-layout,
  body.premium-fullscreen .premium-shop-head,
  body.premium-fullscreen .premium-head-actions {
    grid-template-columns: 1fr;
  }

  body.premium-fullscreen .premium-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  body.premium-fullscreen .premium-card {
    min-height: 440px;
  }

  body.premium-fullscreen .premium-card-img {
    height: 220px;
  }

  .premium-checkout-panel {
    position: static;
  }

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

  .wallet-form-panel,
  .wallet-history-panel {
    padding: 22px;
  }

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

  .product-detail-card,
  .auth-card {
    width: min(760px, calc(100vw - 28px));
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    overflow: auto;
  }

  .auth-visual {
    min-height: 320px;
  }

  .product-detail-media,
  .product-detail-media img {
    min-height: 330px;
    height: 330px;
  }

  .profile-hero {
    grid-template-columns: auto 1fr;
  }

  .profile-hero #logoutButton {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .site-header,
  body.premium-fullscreen .site-header {
    border-bottom-color: rgba(34, 197, 94, .16);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
  }

  .header-inner,
  body.premium-fullscreen .site-header .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    min-height: 78px;
    padding: 10px 0 9px;
  }

  .logo {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .logo strong {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 8px;
    min-width: 0;
  }

  .point-pill,
  .account-pill {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 13px;
    white-space: nowrap;
  }

  .main-nav,
  body.premium-fullscreen .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 7px;
    padding: 0 2px 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a,
  body.premium-fullscreen .main-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    min-width: 102px;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(187, 247, 208, .74);
    border-radius: 13px;
    background: rgba(255, 255, 255, .82);
    color: #315240;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    scroll-snap-align: start;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
  }

  .main-nav a .icon,
  body.premium-fullscreen .main-nav a .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }

  .main-nav a.active,
  .main-nav a:hover,
  body.premium-fullscreen .main-nav a.active,
  body.premium-fullscreen .main-nav a:hover {
    color: #052e16;
    background: linear-gradient(180deg, #eafff0, #ffffff);
    border-color: #86efac;
    transform: none;
    box-shadow: 0 10px 22px rgba(34, 197, 94, .13);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 24px, 640px);
  }

  .settings-number-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  main,
  .footer {
    width: 100%;
    border-radius: 0;
  }

  .header-actions {
    margin-left: auto;
  }

  .point-pill {
    display: none;
  }

  main {
    padding-top: 18px;
  }

  .orange-hero {
    height: 360px;
  }

  .hero-copy {
    justify-content: flex-start;
    padding: 36px 24px;
  }

  .hero-copy h1 {
    max-width: 430px;
    font-size: clamp(38px, 10vw, 54px);
  }

  .hero-device {
    right: 18px;
    bottom: 42px;
    transform: scale(.72) rotate(5deg);
  }

  .sample-chip {
    font-size: 13px;
  }

  .stats-grid,
  .category-grid,
  .two-col,
  .footer-grid,
  .contact-panel,
  .admin-grid,
  .profile-stats,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }

  .slider-btn {
    display: none;
  }

  .footer-bottom {
    display: grid;
    gap: 10px;
  }

  .cookie {
    grid-template-columns: 1fr;
  }

  .auth-actions,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .recommend-card {
    grid-template-columns: 1fr;
  }

  .recommend-empty {
    align-items: stretch;
    flex-direction: column;
  }

  .credential-builder-head,
  .credential-row {
    grid-template-columns: 1fr;
  }

  .credential-builder-head {
    display: grid;
  }

  .product-detail-media,
  .product-detail-media img {
    min-height: 260px;
    height: 260px;
  }

  .premium-hero,
  .premium-products-panel,
  .premium-checkout-panel,
  .premium-orders-panel {
    padding: 16px;
  }

  .premium-price-box,
  .premium-order-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .logo strong {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-pill {
    min-width: auto;
    padding: 9px 11px;
  }

  .main-nav a {
    min-width: 92px;
    justify-content: center;
  }

  .orange-hero {
    height: 330px;
  }

  .hero-copy h1 {
    font-size: 37px;
  }

  .product-detail-info,
  .auth-form,
  .auth-visual {
    padding: 24px;
  }

  .profile-order-top,
  .profile-order-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Mobile app shell */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    min-width: 0;
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 0% 0%, rgba(126, 226, 58, .2), transparent 28%),
      linear-gradient(180deg, #f7fff9, #ffffff 42%, #f2fff6);
    -webkit-tap-highlight-color: transparent;
  }

  body::before {
    opacity: .42;
    background-size: 24px 24px;
  }

  .shell,
  body.premium-fullscreen .site-header .shell,
  body.premium-fullscreen .premium-shell,
  .game-menu-page .game-topup-shell {
    width: min(100% - 24px, 540px);
  }

  .site-header,
  body.premium-fullscreen .site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    border-bottom: 1px solid rgba(34, 197, 94, .18);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  }

  .header-inner {
    height: 62px;
    padding: 9px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .logo {
    min-width: 0;
    font-size: 16px;
  }

  .site-logo-image,
  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .logo strong {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0f2a1b;
  }

  .header-actions {
    gap: 8px;
    margin-left: 0;
  }

  .account-pill {
    min-width: 44px;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 14px;
    background: #f7fff9;
    color: #0f2a1b;
    font-size: 0;
  }

  .account-pill .icon {
    width: 20px;
    height: 20px;
  }

  .main-nav,
  body.premium-fullscreen .main-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 90;
    order: initial;
    width: auto;
    height: 66px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(62px, 1fr);
    gap: 5px;
    align-items: center;
    justify-content: initial;
    padding: 7px;
    overflow-x: auto;
    border: 1px solid rgba(34, 197, 94, .22);
    border-radius: 22px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
    backdrop-filter: blur(20px);
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a,
  body.premium-fullscreen .main-nav a {
    min-width: 62px;
    height: 52px;
    display: grid;
    grid-template-rows: 20px 1fr;
    place-items: center;
    gap: 3px;
    padding: 6px 5px 5px;
    border-radius: 16px;
    color: #42604c;
    font-size: 10px;
    line-height: 1.05;
    font-weight: 850;
    white-space: nowrap;
    box-shadow: none;
    transform: none;
  }

  .main-nav a .icon {
    width: 19px;
    height: 19px;
  }

  .main-nav a.active,
  .main-nav a:hover,
  body.premium-fullscreen .main-nav a.active,
  body.premium-fullscreen .main-nav a:hover {
    color: #052e16;
    background: linear-gradient(180deg, #86efac, #22c55e);
    box-shadow: 0 10px 22px rgba(34, 197, 94, .26);
    transform: none;
  }

  main,
  body.premium-fullscreen main {
    width: 100%;
    min-height: calc(100vh - 62px);
    padding: 12px 0 calc(138px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .view.active::after {
    content: "";
    display: block;
    height: calc(52px + env(safe-area-inset-bottom));
  }

  .footer {
    padding: 22px 0 calc(126px + env(safe-area-inset-bottom));
  }

  .footer-grid {
    grid-template-columns: .9fr 1.1fr;
    gap: 16px 14px;
    align-items: start;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer h2 {
    margin-bottom: 8px;
    font-size: 21px;
    line-height: 1.1;
  }

  .footer h3 {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.2;
  }

  .footer p,
  .footer a {
    font-size: 12px;
    line-height: 1.45;
  }

  .footer p {
    margin: 0;
  }

  .footer-trust h3 {
    margin-bottom: 8px;
  }

  .trust-list {
    gap: 8px;
  }

  .trust-list article {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    min-height: 58px;
    padding: 8px;
    border-radius: 13px;
  }

  .trust-list i {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .trust-list i .icon {
    width: 16px;
    height: 16px;
  }

  .trust-list strong {
    font-size: 12px;
  }

  .trust-list span {
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.25;
  }

  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    gap: 8px;
    font-size: 10px;
  }

  .page-title {
    margin: 10px 0 18px;
  }

  .page-title h1,
  .section-row h2 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.15;
  }

  .section-row p,
  .page-title p {
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-frame {
    margin-bottom: 22px;
    border-radius: 18px;
  }

  .orange-hero {
    height: clamp(165px, 45vw, 230px);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(22, 163, 74, .14);
  }

  .orange-hero::after {
    height: 44px;
  }

  .hero-copy {
    padding: 18px 16px;
  }

  .hero-copy h1 {
    max-width: 80%;
    font-size: clamp(23px, 7.8vw, 34px);
    line-height: 1.05;
    text-shadow: 0 3px 18px rgba(6, 78, 37, .2);
  }

  .sample-chip,
  .hero-device {
    display: none;
  }

  .promotion-strip {
    grid-auto-columns: minmax(240px, 82vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .promotion-card {
    min-height: 116px;
    scroll-snap-align: start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 30px;
  }

  .stat-card {
    min-height: 82px;
    padding: 12px;
    border-radius: 16px;
  }

  .stat-card strong {
    margin-top: 2px;
    font-size: 22px;
  }

  .stat-card span {
    padding-right: 28px;
    font-size: 13px;
    line-height: 1.2;
  }

  .stat-card small {
    font-size: 11px;
  }

  .stat-card .stat-icon {
    right: 12px;
    top: 14px;
  }

  .stat-card .stat-icon .icon {
    width: 19px;
    height: 19px;
  }

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

  .category-grid.all {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }

  #featuredCategories .category-card,
  .category-grid.all .category-card {
    min-height: 124px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(22, 163, 74, .14);
  }

  #featuredCategories .category-card::before,
  .category-grid.all .category-card::before {
    inset: -12px;
    background-size: 44px 44px;
  }

  #featuredCategories .category-card .card-dog,
  .category-grid.all .category-card .card-dog {
    left: 16px;
    top: 16px;
    width: 54px;
    height: 50px;
  }

  #featuredCategories .category-shortcut .card-route-icon,
  .category-grid.all .category-shortcut .card-route-icon {
    left: 16px;
    top: 16px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  #featuredCategories .category-shortcut .card-route-icon .icon,
  .category-grid.all .category-shortcut .card-route-icon .icon {
    width: 24px;
    height: 24px;
  }

  #featuredCategories .card-dog::before,
  .category-grid.all .card-dog::before {
    width: 44px;
    height: 34px;
    margin-top: 10px;
    border-radius: 10px;
  }

  #featuredCategories .category-card h3,
  .category-grid.all .category-card h3 {
    padding: 10px 12px;
    border-radius: 0 0 16px 16px;
    font-size: 14px;
    line-height: 1.25;
  }

  #featuredCategories .category-card h3 span,
  .category-grid.all .category-card h3 span {
    margin-top: 2px;
    font-size: 10px;
  }

  .recommend-box {
    min-height: 0;
    padding: 8px;
    border-radius: 18px;
  }

  .recommend-track {
    grid-auto-columns: minmax(128px, 36vw);
    gap: 8px;
    animation-duration: 24s;
  }

  .recommend-card {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px;
    border-radius: 14px;
  }

  .product-card {
    min-width: 0;
    padding: 10px;
    border-radius: 18px;
  }

  .recommend-media {
    min-height: 88px;
    border-radius: 11px;
  }

  .product-media {
    min-height: 128px;
    border-radius: 13px;
  }

  .recommend-media img,
  .recommend-fallback-art {
    height: 88px;
    min-height: 88px;
  }

  .product-media img,
  .product-card img {
    height: 128px;
    min-height: 128px;
  }

  .recommend-media span {
    left: 6px;
    right: 6px;
    bottom: 5px;
    padding: 4px 5px;
    font-size: 9px;
  }

  .recommend-body {
    padding: 0;
    gap: 5px;
  }

  .product-body {
    padding: 11px 2px 2px;
    gap: 7px;
  }

  .recommend-body strong {
    min-height: 32px;
    font-size: 11px;
    line-height: 1.25;
  }

  .product-body h3 {
    min-height: 40px;
    font-size: 13px;
    line-height: 1.25;
  }

  .recommend-body p {
    display: none;
  }

  .recommend-body > b {
    font-size: 11px;
  }

  .product-body .price {
    font-size: 13px;
  }

  .recommend-body button {
    min-height: 31px;
    margin-top: 2px;
    border-radius: 10px;
    font-size: 10px;
  }

  .product-body .gold-btn {
    min-height: 38px;
    margin-top: 4px;
    border-radius: 12px;
    font-size: 12px;
  }

  .recommend-body small {
    font-size: 9px;
    padding: 4px 6px;
  }

  .sold-line {
    max-width: 100%;
    font-size: 10px;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .filter-bar {
    position: sticky;
    top: 72px;
    z-index: 25;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(34, 197, 94, .16);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .floating-cart {
    right: 14px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 125;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(34, 197, 94, .28);
    background: #07140d;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
  }

  .floating-cart .icon {
    width: 22px;
    height: 22px;
  }

  .floating-cart #cartCount {
    position: absolute;
    right: 5px;
    top: 6px;
    min-width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: #07140d;
    font-size: 9px;
    line-height: 1;
  }

  .drawer {
    z-index: 140;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    max-height: min(76vh, 560px);
    overflow: auto;
    border-left: 0;
    border: 1px solid #bbf7d0;
    border-radius: 22px;
    padding: 14px;
    transform: translateY(calc(100% + 120px));
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  }

  .drawer.open {
    transform: translateY(0);
  }

  .drawer-head {
    margin-bottom: 10px;
  }

  .drawer-head h2 {
    font-size: 18px;
  }

  #cartItems {
    max-height: 150px;
    overflow: auto;
  }

  .cart-total {
    margin: 12px 0;
    font-size: 17px;
  }

  .coupon-form {
    gap: 8px;
  }

  .coupon-form input {
    min-height: 46px;
  }

  .payment-choice label {
    min-height: 44px;
    justify-content: center;
    padding: 8px;
    font-size: 13px;
  }

  #checkoutButton {
    position: sticky;
    bottom: 0;
    z-index: 2;
    min-height: 46px;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(22, 163, 74, .2);
  }

  .modal {
    align-items: end;
    padding: 10px;
  }

  .product-detail-card,
  .auth-card {
    width: 100%;
    max-height: calc(100vh - 22px);
    border-radius: 24px 24px 18px 18px;
  }

  .product-detail-media,
  .product-detail-media img {
    height: 220px;
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  body.premium-fullscreen {
    background: #f8fff9;
  }

  body.premium-fullscreen .site-header {
    background: rgba(255, 255, 255, .94);
  }

  body.premium-fullscreen .logo strong,
  body.premium-fullscreen .account-pill {
    color: #0f2a1b;
  }

  body.premium-fullscreen .premium-page {
    padding: 10px 0 calc(96px + env(safe-area-inset-bottom));
    color: #0f2a1b;
  }

  body.premium-fullscreen .premium-banner,
  body.premium-fullscreen .premium-banner.has-image {
    min-height: 118px;
    border-radius: 22px;
  }

  body.premium-fullscreen .premium-banner.has-image {
    min-height: 0;
    aspect-ratio: var(--fit-mobile-ratio, var(--fit-desktop-ratio, 16 / 5));
  }

  body.premium-fullscreen .premium-banner-empty strong {
    font-size: clamp(28px, 9vw, 42px);
  }

  body.premium-fullscreen .premium-shop-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    color: #0f2a1b;
    box-shadow: 0 18px 44px rgba(22, 163, 74, .1);
  }

  body.premium-fullscreen .premium-shop-head h2,
  body.premium-fullscreen .premium-section-head h2,
  body.premium-fullscreen .premium-section-head h3,
  body.premium-fullscreen .premium-card-body strong,
  body.premium-fullscreen .premium-selected h2 {
    color: #0f2a1b;
  }

  body.premium-fullscreen .premium-shop-head p,
  body.premium-fullscreen .premium-section-head p,
  body.premium-fullscreen .premium-detail-line,
  body.premium-fullscreen .premium-stock-line,
  body.premium-fullscreen .premium-selected p,
  body.premium-fullscreen .premium-buy-form label,
  body.premium-fullscreen .premium-order-card span,
  body.premium-fullscreen .premium-order-card small {
    color: #567262;
  }

  body.premium-fullscreen .premium-head-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.premium-fullscreen .premium-head-actions input {
    width: 100%;
    min-height: 46px;
    border-color: #bbf7d0;
    background: #ffffff;
    color: #0f172a;
  }

  body.premium-fullscreen .premium-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  body.premium-fullscreen .premium-mini-stats span {
    min-width: 0;
    justify-content: center;
    padding: 8px 6px;
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    font-size: 10px;
  }

  body.premium-fullscreen .premium-chip-row {
    margin: 0 -4px;
    padding: 2px 4px 7px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  body.premium-fullscreen .premium-chip-row::-webkit-scrollbar {
    display: none;
  }

  body.premium-fullscreen .premium-chip-row button {
    flex: 0 0 auto;
    min-height: 40px;
    border-color: #bbf7d0;
    background: #ffffff;
    color: #166534;
    font-size: 12px;
  }

  body.premium-fullscreen .premium-chip-row button.active {
    color: #052e16;
    background: linear-gradient(180deg, #86efac, #22c55e);
  }

  body.premium-fullscreen .premium-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.premium-fullscreen .premium-products-panel,
  body.premium-fullscreen .premium-orders-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.premium-fullscreen .premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.premium-fullscreen .premium-card {
    min-height: 252px;
    gap: 7px;
    padding-bottom: 10px;
    border-radius: 16px;
    background: #ffffff;
    color: #0f2a1b;
    box-shadow: 0 16px 36px rgba(22, 163, 74, .1);
  }

  body.premium-fullscreen .premium-card-img {
    height: 104px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #eafff0, #f8fffb);
  }

  body.premium-fullscreen .premium-card-img img {
    padding: 18px;
    filter: drop-shadow(0 10px 16px rgba(15, 23, 42, .12));
  }

  body.premium-fullscreen .premium-card-body {
    padding: 0 10px;
    gap: 6px;
  }

  body.premium-fullscreen .premium-card-body strong {
    min-height: 36px;
    font-size: 11px;
    line-height: 1.28;
  }

  body.premium-fullscreen .premium-card-price {
    padding: 5px 8px;
    font-size: 10px;
    color: #16a34a;
    background: #ecfff2;
  }

  body.premium-fullscreen .premium-card-price b {
    font-size: 17px;
  }

  body.premium-fullscreen .premium-detail-line {
    font-size: 10px;
  }

  body.premium-fullscreen .premium-card-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 10px;
  }

  body.premium-fullscreen .premium-stock-line {
    justify-self: start;
    text-align: left;
    padding: 5px 8px;
    font-size: 10px;
  }

  body.premium-fullscreen .premium-card::after {
    display: none;
    content: none;
  }

  body.premium-fullscreen .premium-checkout-panel {
    position: static;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(22, 163, 74, .12);
  }

  body.premium-fullscreen .premium-selected-top {
    grid-template-columns: 74px 1fr;
    gap: 12px;
  }

  body.premium-fullscreen .premium-selected-img {
    width: 74px;
    height: 74px;
    border-radius: 16px;
  }

  body.premium-fullscreen .premium-selected h2 {
    font-size: 18px;
  }

  body.premium-fullscreen .premium-price-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.premium-fullscreen .premium-buy-form textarea {
    min-height: 96px;
  }
}

@media (max-width: 760px) {
  .game-menu-page {
    margin-top: -12px;
    padding: 18px 0 calc(96px + env(safe-area-inset-bottom));
    min-height: calc(100vh - 62px);
  }

  #gameTopupView.package-mode .game-menu-page {
    min-height: auto;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  #gameTopupView.package-mode .game-package-section {
    min-height: auto;
  }

  main:has(#gameTopupView.package-mode) {
    min-height: 0;
    padding-bottom: 18px;
  }

  main:has(#gameTopupView.package-mode) + .footer {
    padding-top: 8px;
  }

  .game-menu-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .game-menu-head h1 {
    margin-bottom: 10px;
    font-size: clamp(26px, 8vw, 36px);
  }

  .game-menu-head h2 {
    margin-bottom: 10px;
    font-size: 17px;
  }

  .game-menu-head p {
    font-size: 13px;
    line-height: 1.65;
  }

  .game-menu-search {
    justify-items: stretch;
  }

  .game-menu-page .game-catalog-search {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
  }

  .game-menu-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .game-menu-stats span {
    justify-content: center;
    padding: 8px 6px;
    font-size: 10px;
  }

  .game-menu-page .game-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 2px;
  }

  .game-menu-page .game-pick-card {
    min-height: 0;
    gap: 5px;
    padding: 2px 0;
    border-radius: 12px;
  }

  .game-menu-page .game-pick-media {
    width: clamp(78px, 22vw, 104px);
    height: clamp(111px, 31vw, 148px);
    border-radius: 14px;
  }

  .game-menu-page .game-pick-card strong {
    max-width: 100%;
    min-height: 0;
    font-size: 9.5px;
  }

  .game-menu-page .game-pick-card small {
    max-width: 100%;
    font-size: 9px;
  }

  .game-menu-page .selected-game-preview {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(22, 163, 74, .10);
  }

  .game-menu-page .selected-game-card {
    width: 58px;
    height: 82px;
    border-radius: 12px;
  }

  .game-menu-page .selected-game-preview strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.15;
  }

  .game-menu-page .selected-game-preview small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.3;
  }

  .game-menu-page .game-package-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .game-menu-page .game-topup-form {
    order: -1;
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  }

  .game-menu-page .game-topup-form .checkout-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .game-menu-page .game-topup-form .checkout-title span {
    font-size: 10px;
  }

  .game-menu-page .game-topup-form .checkout-title h2 {
    font-size: 18px;
    line-height: 1.15;
  }

  .game-menu-page .game-topup-form label {
    min-width: 0;
    gap: 5px;
    margin-bottom: 0;
    font-size: 12px;
  }

  .game-menu-page .game-topup-form label:first-of-type,
  .game-menu-page .game-topup-form label:nth-of-type(2),
  .game-menu-page .game-topup-form label:nth-of-type(3),
  .game-menu-page .game-topup-form .topup-summary,
  .game-menu-page .game-topup-form .gold-btn {
    grid-column: 1 / -1;
  }

  .game-menu-page .game-topup-form input,
  .game-menu-page .game-topup-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
  }

  .game-menu-page .game-topup-form textarea {
    height: 48px;
    min-height: 48px;
    resize: vertical;
  }

  .game-menu-page .game-topup-form .topup-summary {
    min-height: 44px;
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
  }

  .game-menu-page .game-topup-form .gold-btn {
    min-height: 44px;
    margin-top: 0;
    border-radius: 13px;
    font-size: 14px;
  }

  .game-menu-page .pack-list-panel {
    min-height: auto;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
  }

  .game-menu-page .pack-head {
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .game-menu-page .pack-head h2 {
    font-size: 20px;
    line-height: 1.1;
  }

  .game-menu-page .pack-head .muted {
    font-size: 12px;
  }

  .game-menu-page .pack-head .light-btn {
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 12px;
  }

  .game-menu-page .pack-card-grid {
    max-height: none;
    grid-template-columns: 1fr;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .game-menu-page .pack-list-header {
    display: none;
  }

  .game-menu-page .pack-pick-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 0;
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #f8fffb);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
  }

  .game-menu-page .pack-pick-media {
    width: 52px;
    height: 52px;
    border-radius: 10px;
  }

  .game-menu-page .pack-sku {
    grid-column: 2 / 3;
    margin-top: -2px;
    font-size: 9px;
  }

  .game-menu-page .pack-pick-card .pack-pick-name {
    font-size: 14px;
    line-height: 1.15;
  }

  .game-menu-page .pack-pick-card small {
    margin-top: 3px;
    font-size: 10px;
  }

  .game-menu-page .pack-pick-card .pack-price {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    align-self: center;
    padding: 7px 9px;
    font-size: 12px;
    box-shadow: 0 8px 18px rgba(34, 197, 94, .14);
  }

  .game-menu-page .pack-action {
    display: none;
  }

}

@media (max-width: 420px) {
  .store-grid,
  .recommend-box,
  body.premium-fullscreen .premium-grid {
    gap: 10px;
  }

  .recommend-media,
  .product-media,
  .recommend-media img,
  .product-media img,
  .product-card img,
  .recommend-fallback-art {
    height: 116px;
    min-height: 116px;
  }

  .recommend-body strong,
  .product-body h3,
  body.premium-fullscreen .premium-card-body strong {
    font-size: 12px;
  }

  body.premium-fullscreen .premium-card {
    min-height: 298px;
  }

  body.premium-fullscreen .premium-card-img {
    height: 132px;
  }

  .game-menu-page .game-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-menu-page .game-pick-media {
    width: 78px;
    height: 112px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  #profileView .shell {
    width: min(100vw - 16px, 430px);
  }

  #profileView .profile-hero {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 18px;
  }

  #profileView .profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    box-shadow: 0 10px 22px rgba(22, 163, 74, .14);
  }

  #profileView .profile-avatar .icon {
    width: 24px;
    height: 24px;
  }

  #profileView .profile-hero .auth-kicker {
    font-size: 10px;
  }

  #profileView .profile-hero h1 {
    margin: 2px 0 1px;
    overflow: hidden;
    font-size: 22px;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #profileView #profileEmail {
    overflow: hidden;
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #profileView .profile-hero #logoutButton {
    grid-column: auto;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  #profileView .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }

  #profileView .profile-stat-card {
    min-height: 92px;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
  }

  #profileView .profile-stat-card span {
    font-size: 12px;
    line-height: 1.2;
  }

  #profileView .profile-stat-card strong {
    font-size: 24px;
  }

  #profileView .profile-stat-card small {
    font-size: 11px;
    line-height: 1.3;
  }

  #profileView .section-row {
    gap: 8px;
    margin: 10px 0 12px;
  }

  #profileView .section-row h2 {
    font-size: 22px;
    line-height: 1.12;
  }

  #profileView .section-row p,
  #profileView .section-row a {
    font-size: 12px;
  }

  #profileView .profile-orders {
    gap: 8px;
  }

  #profileView .profile-order-card {
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  #profileView .profile-order-top {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }

  #profileView .profile-order-bottom {
    gap: 6px;
  }

  #profileView .profile-order-actions {
    gap: 6px;
  }

  #profileView .profile-detail-btn {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
  }

  #authModal.modal {
    align-items: center;
    padding: max(6px, env(safe-area-inset-top)) 6px max(6px, env(safe-area-inset-bottom));
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    overscroll-behavior-x: none;
  }

  #authModal .auth-card {
    width: min(calc(100vw - 12px), 430px);
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    min-height: 0;
    min-width: 0;
    grid-template-columns: 1fr;
    border-radius: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  #authModal .modal-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  #authModal .auth-visual {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    padding: 18px 28px 16px;
    overflow: hidden;
  }

  #authModal .auth-logo {
    max-width: calc(100% - 48px);
    padding: 7px 10px;
    font-size: 14px;
  }

  #authModal .auth-logo .site-logo-image,
  #authModal .auth-logo .logo-mark {
    width: 32px;
    height: 32px;
  }

  #authModal .auth-visual h2 {
    margin: 22px 0 7px;
    max-width: 310px;
    font-size: 28px;
    line-height: 1.08;
  }

  #authModal .auth-visual p {
    max-width: 340px;
    font-size: 13px;
    line-height: 1.45;
  }

  #authModal .auth-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 13px;
    padding-bottom: 2px;
    overflow: hidden;
    scrollbar-width: none;
  }

  #authModal .auth-benefits span {
    flex: 1 1 min(100%, 138px);
    gap: 8px;
    width: auto;
    max-width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
  }

  #authModal .auth-benefits .icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }

  #authModal .auth-form {
    width: 100%;
    max-width: 100%;
    gap: 11px;
    min-width: 0;
    padding: 20px 28px 22px;
    align-content: start;
    overflow-x: hidden;
    touch-action: pan-y;
  }

  #authModal .auth-heading {
    margin-bottom: 0;
  }

  #authModal .auth-kicker {
    font-size: 11px;
  }

  #authModal .auth-heading h2 {
    margin: 4px 0;
    font-size: 28px;
    line-height: 1.05;
  }

  #authModal .auth-heading p {
    font-size: 13px;
    line-height: 1.45;
  }

  #authModal .auth-tabs {
    gap: 5px;
    padding: 4px;
    border-radius: 14px;
  }

  #authModal .auth-tabs button {
    min-height: 38px;
    border-radius: 10px;
    font-size: 13px;
  }

  #authModal .auth-panel {
    gap: 10px;
  }

  #authModal .field {
    gap: 6px;
    font-size: 13px;
  }

  #authModal .input-wrap {
    grid-template-columns: 19px minmax(0, 1fr);
    gap: 8px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 13px;
  }

  #authModal .input-wrap input {
    min-height: 44px;
    padding: 10px 0;
    font-size: 13px;
  }

  #authModal .input-wrap .icon {
    width: 18px;
    height: 18px;
  }

  #authModal .check-row {
    gap: 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  #authModal .check-row input {
    width: 17px;
    height: 17px;
    margin-top: 0;
  }

  #authModal .auth-submit {
    min-height: 44px;
    border-radius: 13px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  #authModal .auth-visual {
    padding: 18px 18px 16px;
  }

  #authModal .auth-form {
    padding: 18px;
  }

  #authModal .auth-visual h2 {
    margin-top: 24px;
    font-size: 27px;
  }

  #authModal .auth-benefits span {
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  #adminView .admin-shell {
    width: min(100vw - 16px, 430px);
  }

  #adminView .page-title {
    margin-bottom: 12px;
  }

  #adminView .page-title h1 {
    font-size: 28px;
    line-height: 1.05;
  }

  #adminView .page-title p {
    max-width: 92%;
    font-size: 12px;
    line-height: 1.35;
  }

  #adminView .admin-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 7px;
    margin: 0 -8px 12px;
    padding: 0 8px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  #adminView .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  #adminView .admin-tabs button {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 13px;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
  }

  #adminView .admin-tabs button .icon {
    width: 15px;
    height: 15px;
  }

  #adminView .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  #adminView .metric-card {
    min-height: 86px;
    padding: 12px;
    border-radius: 16px;
  }

  #adminView .metric-card span {
    font-size: 12px;
    line-height: 1.2;
  }

  #adminView .metric-card strong {
    margin-top: 4px;
    overflow-wrap: anywhere;
    font-size: 24px;
  }

  #adminView .sales-chart-card {
    padding: 13px;
    border-radius: 17px;
  }

  #adminView .sales-chart-head {
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  #adminView .sales-chart-head h3 {
    font-size: 16px;
    line-height: 1.18;
  }

  #adminView .sales-chart-head .auth-kicker {
    font-size: 10px;
  }

  #adminView .sales-chart-insights {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  #adminView .sales-chart-insights span {
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 10px;
  }

  #adminView .sales-chart-insights b {
    font-size: 13px;
  }

  #adminView .sales-chart-summary strong {
    font-size: 22px;
  }

  #adminView .sales-chart-summary span {
    font-size: 11px;
  }

  #adminView .sales-chart {
    min-height: 112px;
    padding: 9px 8px 6px;
    border-radius: 14px;
  }

  #adminView .sales-chart-legend {
    gap: 9px;
    font-size: 10px;
  }

  #adminView .sales-chart-legend i {
    width: 16px;
  }

  #adminView .sales-line-chart {
    min-height: 118px;
  }

  #adminView .sales-line {
    stroke-width: 2.4;
  }

  #adminView .profit-line {
    stroke-width: 2.4;
  }

  #adminView .sales-axis-labels text {
    font-size: 8px;
  }

  #adminView .chart-note {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
  }

  #adminView .admin-section-head {
    display: grid;
    gap: 10px;
  }

  #adminView .admin-section-head h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
  }

  #adminView .admin-section-head p {
    font-size: 12px;
    line-height: 1.35;
  }

  #adminView .admin-table-wrap {
    margin: 0 -4px;
    padding-bottom: 4px;
    border-radius: 14px;
  }

  #adminView .admin-table {
    min-width: 680px;
  }

  #adminView .admin-table th,
  #adminView .admin-table td {
    padding: 9px;
    font-size: 12px;
  }

  #adminView .panel {
    border-radius: 17px;
  }
}

@media (max-width: 760px) {
  .shell,
  body.premium-fullscreen .premium-shell,
  .game-menu-page .game-topup-shell {
    width: min(100% - 14px, 520px);
  }

  main,
  body.premium-fullscreen main {
    padding-top: 14px;
    padding-bottom: calc(136px + env(safe-area-inset-bottom));
  }

  .section-row,
  .page-title {
    margin-bottom: 12px;
  }

  .section-row h2,
  .page-title h1 {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.1;
  }

  .section-row p,
  .page-title p {
    font-size: 12px;
    line-height: 1.45;
  }

  .stats-grid,
  .category-grid,
  .store-grid,
  .recommend-box,
  body.premium-fullscreen .premium-grid {
    gap: 9px;
  }

  .store-grid,
  body.premium-fullscreen .premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-card {
    min-height: 124px;
    border-radius: 16px;
  }

  .category-card h3 {
    padding: 12px 13px;
    border-radius: 0 0 16px 16px;
    font-size: 13px;
  }

  .category-card h3 span {
    font-size: 10px;
  }

  .product-card,
  .recommend-card,
  body.premium-fullscreen .premium-card {
    border-radius: 12px;
  }

  .wallet-form-panel,
  .wallet-history-panel,
  .contact-card,
  .panel {
    border-radius: 16px;
  }

  .game-menu-page {
    padding-top: 12px;
  }

  .game-menu-head {
    gap: 10px;
  }

  .game-menu-head h1 {
    margin: 0 0 6px;
    font-size: clamp(22px, 6.2vw, 30px);
    line-height: 1.05;
  }

  .game-menu-head h2 {
    margin: 0 0 7px;
    font-size: clamp(14px, 4.2vw, 18px);
    line-height: 1.28;
  }

  .game-menu-head p {
    font-size: 12px;
    line-height: 1.5;
  }

  .game-menu-page .game-catalog-search {
    min-height: 42px;
  }

  .game-menu-stats {
    gap: 7px;
  }

  .game-menu-stats span {
    min-width: 0;
    min-height: 32px;
    padding: 6px 5px;
    border-radius: 999px;
    font-size: 9px;
  }

  .game-menu-page .game-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 4px;
    justify-items: center;
  }

  .game-menu-page .game-pick-card {
    width: 100%;
    gap: 4px;
    padding: 0;
    border-radius: 10px;
  }

  .game-menu-page .game-pick-media {
    width: clamp(82px, 25vw, 104px);
    height: clamp(116px, 35vw, 146px);
    border-radius: 13px;
  }

  .game-menu-page .game-card-cover::after {
    left: 9px;
    right: 9px;
    bottom: 12px;
    height: 24px;
    font-size: 8px;
  }

  .game-menu-page .game-card-cover b {
    inset: 18px 7px 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: clamp(30px, 11vw, 48px);
    line-height: .82;
    word-break: break-all;
    opacity: .88;
  }

  .game-menu-page .game-card-cover b.game-card-fallback {
    display: grid;
    padding: 18px 10px 34px;
    font-size: 10px;
    word-break: normal;
  }

  .game-menu-page .game-card-cover b.game-card-fallback svg {
    width: 30px;
    height: 30px;
  }

  .game-menu-page .game-card-cover b.game-card-fallback span {
    font-size: 11px;
  }

  .game-menu-page .game-card-cover::before {
    top: 8px;
    left: 50%;
    width: 40px;
    height: 7px;
    transform: translateX(-50%);
  }

  .game-menu-page .game-pick-card strong {
    width: 100%;
    padding: 0 1px;
    font-size: clamp(8.5px, 2.55vw, 10px);
    line-height: 1.2;
    text-align: center;
  }

  .game-menu-page .game-pick-card small {
    display: none;
  }
}

@media (max-width: 370px) {
  .shell,
  body.premium-fullscreen .premium-shell,
  .game-menu-page .game-topup-shell {
    width: min(100% - 10px, 360px);
  }

  .main-nav,
  body.premium-fullscreen .main-nav {
    left: 5px;
    right: 5px;
    grid-auto-columns: minmax(54px, 1fr);
    padding: 5px;
  }

  .main-nav a,
  body.premium-fullscreen .main-nav a {
    min-width: 54px;
    font-size: 9px;
  }

  .game-menu-page .game-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px 3px;
  }

  .game-menu-page .game-pick-media {
    width: clamp(76px, 25vw, 86px);
    height: clamp(108px, 35vw, 122px);
    border-radius: 11px;
  }

  .game-menu-page .game-pick-card strong {
    font-size: 8px;
  }
}

@media (min-width: 430px) and (max-width: 760px) {
  .game-menu-page .game-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 2px;
  }

  .game-menu-page .game-pick-media {
    width: clamp(76px, 19vw, 92px);
    height: clamp(108px, 27vw, 130px);
  }

  .game-menu-page .game-card-cover b {
    font-size: clamp(30px, 9vw, 42px);
  }
}

@media (max-width: 760px) {
  #categoriesView .page-title {
    margin: 4px 0 10px;
  }

  #categoriesView .page-title h1 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(21px, 6vw, 26px);
    line-height: 1.08;
  }

  #categoriesView .title-icon {
    width: 19px;
    height: 19px;
  }

  #categoriesView .page-title p {
    max-width: 94%;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
  }

  #categoriesView .filter-bar {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(118px, .58fr);
    gap: 6px;
    margin-bottom: 12px;
    padding: 7px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(22, 163, 74, .06);
  }

  #categoriesView .filter-bar input,
  #categoriesView .filter-bar select {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 12px;
  }

  #categoriesView .category-grid.all {
    gap: 8px;
    margin-bottom: 10px;
  }
}

@media (max-width: 380px) {
  #categoriesView .filter-bar {
    grid-template-columns: minmax(0, 1fr) 116px;
  }
}

@media (max-width: 760px) {
  body.premium-fullscreen .premium-page {
    padding-top: 6px;
  }

  body.premium-fullscreen .premium-banner,
  body.premium-fullscreen .premium-banner.has-image {
    min-height: 74px;
    border-radius: 16px;
  }

  body.premium-fullscreen .premium-banner.has-image {
    min-height: 0;
    aspect-ratio: var(--fit-mobile-ratio, var(--fit-desktop-ratio, 16 / 5));
  }

  body.premium-fullscreen .premium-banner-empty {
    gap: 3px;
    padding: 12px 16px;
    align-items: flex-start;
  }

  body.premium-fullscreen .premium-banner-empty span {
    font-size: 9px;
  }

  body.premium-fullscreen .premium-banner-empty strong {
    font-size: clamp(22px, 6.5vw, 30px);
    line-height: 1.05;
  }

  body.premium-fullscreen .premium-shop-head {
    gap: 9px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 17px;
  }

  body.premium-fullscreen .premium-shop-head h2 {
    gap: 7px;
    margin: 0;
    font-size: clamp(20px, 6vw, 26px);
    line-height: 1.08;
  }

  body.premium-fullscreen .premium-shop-head h2::before {
    width: 5px;
    height: 30px;
    border-radius: 999px;
  }

  body.premium-fullscreen .premium-shop-head p {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
  }

  body.premium-fullscreen .premium-head-actions {
    gap: 7px;
  }

  body.premium-fullscreen .premium-mini-stats {
    gap: 6px;
  }

  body.premium-fullscreen .premium-mini-stats span {
    min-height: 34px;
    padding: 6px 5px;
    border-radius: 999px;
    font-size: 9px;
  }

  body.premium-fullscreen .premium-mini-stats strong {
    font-size: 9px;
  }

  body.premium-fullscreen .premium-head-actions input {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 13px;
    font-size: 12px;
  }

  body.premium-fullscreen .premium-chip-row {
    gap: 6px;
    padding-bottom: 2px;
  }

  body.premium-fullscreen .premium-chip-row button {
    min-height: 35px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
  }

  body.premium-fullscreen .premium-section-head {
    align-items: center;
    margin: 16px 0 10px;
  }

  body.premium-fullscreen .premium-section-head h2,
  body.premium-fullscreen .premium-section-head h3 {
    font-size: clamp(20px, 6vw, 26px);
    line-height: 1.1;
  }

  body.premium-fullscreen .premium-section-head p {
    font-size: 11px;
    line-height: 1.35;
  }

  body.premium-fullscreen .premium-section-head .light-btn {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 13px;
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  #walletView .wallet-page {
    width: min(100% - 14px, 430px);
  }

  #walletView .page-title {
    margin: 4px 0 10px;
  }

  #walletView .page-title h1 {
    font-size: clamp(22px, 6.4vw, 28px);
    line-height: 1.08;
  }

  #walletView .page-title p {
    max-width: 95%;
    font-size: 11px;
    line-height: 1.35;
  }

  #walletView .wallet-layout {
    gap: 10px;
  }

  #walletView .wallet-form-panel,
  #walletView .wallet-history-panel {
    gap: 10px;
    padding: 12px;
    border-radius: 17px;
  }

  #walletView .wallet-form-panel h2,
  #walletView .wallet-history-panel h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
  }

  #walletView .wallet-form-panel > label {
    gap: 6px;
    font-size: 12px;
  }

  #walletView .wallet-form-panel input[name="amount"] {
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 13px;
    font-size: 20px;
  }

  #walletView .wallet-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  #walletView .wallet-methods label {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 70px;
    padding: 10px;
    border-radius: 14px;
  }

  #walletView .wallet-methods input {
    grid-row: 1 / 3;
    width: 16px;
    height: 16px;
  }

  #walletView .wallet-method-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  #walletView .wallet-method-icon .icon {
    width: 17px;
    height: 17px;
  }

  #walletView .wallet-methods strong {
    font-size: 12px;
    line-height: 1.15;
  }

  #walletView .wallet-methods small {
    display: none;
    margin-top: 2px;
    overflow: hidden;
    font-size: 9.5px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  #walletView .quick-amounts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  #walletView .quick-amounts button {
    min-height: 42px;
    padding: 7px 5px;
    border-radius: 13px;
    font-size: 13px;
  }

  #walletView #walletSubmitButton {
    min-height: 46px;
    border-radius: 14px;
    font-size: 14px;
  }
}

@media (max-width: 340px) {
  #walletView .wallet-methods {
    grid-template-columns: 1fr;
  }

  #walletView .wallet-methods label {
    min-height: 58px;
  }
}

@media (max-width: 760px) {
  #walletView .qr-box {
    display: grid;
    gap: 8px;
  }

  #walletView .wallet-pay-card {
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  #walletView .wallet-pay-card h3 {
    margin-top: 2px;
    font-size: 22px;
    line-height: 1;
  }

  #walletView .wallet-pay-card p {
    font-size: 12px;
  }

  #walletView .wallet-pay-card img {
    width: min(165px, 100%);
    padding: 5px;
    border-radius: 12px;
  }

  #walletView .promptpay-info {
    gap: 2px;
    width: min(260px, 100%);
    padding: 9px 10px;
    border-radius: 12px;
  }

  #walletView .promptpay-info strong {
    font-size: 13px;
  }

  #walletView .promptpay-info span {
    font-size: 12px;
  }

  #walletView .verify-note {
    gap: 3px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 12px;
  }

  #walletView .verify-note span {
    font-size: 11px;
    line-height: 1.35;
  }

  #walletView .wallet-proof-form {
    gap: 7px;
  }

  #walletView .wallet-proof-form label {
    gap: 5px;
    font-size: 12px;
  }

  #walletView .wallet-proof-form input {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 12px;
  }

  #walletView .wallet-proof-form input[type="file"] {
    padding: 8px;
  }
}

@media (max-width: 760px) {
  #walletView .wallet-history-panel {
    gap: 8px;
    padding: 11px;
  }

  #walletView .wallet-history-subtitle {
    margin: -3px 0 4px;
    font-size: 10.5px;
    line-height: 1.3;
  }

  #walletView .wallet-tx-card {
    gap: 8px;
    padding: 10px;
    border-radius: 13px;
  }

  #walletView .wallet-tx-title {
    gap: 5px;
    margin-bottom: 3px;
  }

  #walletView .wallet-tx-title strong {
    font-size: 12px;
    line-height: 1.15;
  }

  #walletView .wallet-tx-title span {
    padding: 3px 7px;
    font-size: 9px;
  }

  #walletView .wallet-tx-card p {
    display: -webkit-box;
    margin-bottom: 4px;
    overflow: hidden;
    color: #587565;
    font-size: 10.5px;
    line-height: 1.32;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  #walletView .wallet-tx-card small {
    font-size: 9.5px;
    line-height: 1.28;
  }

  #walletView .wallet-tx-card > b {
    align-self: start;
    font-size: 13px;
  }

  #contactView .page-title {
    margin: 4px 0 9px;
  }

  #contactView .page-title h1 {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.08;
  }

  #contactView .page-title p {
    font-size: 11px;
    line-height: 1.35;
  }

  #contactView .contact-panel {
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
  }

  #contactView .contact-card {
    min-height: 72px;
    gap: 5px 10px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  #contactView .contact-card::after {
    right: -22px;
    bottom: -26px;
    width: 70px;
    height: 70px;
    opacity: .55;
  }

  #contactView .contact-card i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  #contactView .contact-card i .icon {
    width: 17px;
    height: 17px;
  }

  #contactView .contact-card strong {
    font-size: 13px;
    line-height: 1.18;
  }

  #contactView .contact-panel span {
    font-size: 12px;
    line-height: 1.35;
  }
}

@media (max-width: 430px) {
  .footer {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    padding-top: 18px;
    box-sizing: border-box;
  }

  .footer .shell {
    width: 100%;
    max-width: 430px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer h2 {
    margin-bottom: 5px;
    font-size: 19px;
  }

  .footer h3 {
    margin-bottom: 7px;
    font-size: 14px;
  }

  .footer p,
  .footer a {
    font-size: 11.5px;
    line-height: 1.45;
  }

  .trust-list {
    gap: 7px;
  }

  .trust-list article {
    min-height: 52px;
    padding: 8px 10px;
  }

  .footer-bottom {
    display: grid;
    justify-content: stretch;
    gap: 7px;
  }
}

.footer {
  width: 100%;
  max-width: none;
  margin: 56px 0 0;
  padding: 46px 0 24px;
  background: rgba(255, 255, 255, .92);
  border-top: 1px solid rgba(22, 163, 74, .12);
  box-sizing: border-box;
  overflow: hidden;
}

.footer .shell {
  width: min(1240px, calc(100vw - 48px));
  margin-inline: auto;
}

.footer-grid {
  grid-template-columns: minmax(260px, 1.2fr) minmax(180px, .62fr) minmax(320px, .95fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: start;
}

.footer h2 {
  margin-bottom: 16px;
  color: #0f1f16;
  font-size: 24px;
  line-height: 1.15;
}

.footer h3 {
  margin-bottom: 16px;
  color: #0f1f16;
  font-size: 18px;
  line-height: 1.2;
}

.footer p {
  max-width: 620px;
  margin: 0;
}

.footer p,
.footer a {
  color: #6b766f;
  font-size: 14px;
  line-height: 1.75;
}

.footer a {
  width: fit-content;
  text-decoration: none;
}

.footer a:hover {
  color: var(--red);
}

.footer-bottom {
  width: min(1240px, calc(100vw - 48px));
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  align-items: center;
}

.footer-bottom span:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-bottom a {
  color: inherit;
}

@media (max-width: 900px) {
  .footer {
    margin-top: 34px;
    padding: 34px 0 calc(96px + env(safe-area-inset-bottom));
  }

  .footer .shell,
  .footer-bottom {
    width: min(100vw - 28px, 720px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    display: grid;
    gap: 10px;
    justify-content: stretch;
  }

  .footer-bottom span:last-child {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .toast-stack {
    left: 10px;
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: auto;
    gap: 6px;
    z-index: 2147483600;
  }

  .toast-card {
    grid-template-columns: 28px minmax(0, 1fr) 26px;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
  }

  .toast-icon {
    width: 28px;
    height: 28px;
  }

  .toast-icon .icon {
    width: 15px;
    height: 15px;
  }

  .toast-text {
    font-size: 12px;
    line-height: 1.35;
  }

  .toast-close {
    width: 26px;
    height: 26px;
    font-size: 18px;
  }

  body.premium-fullscreen .premium-checkout-panel {
    display: none;
  }

  body.premium-fullscreen.premium-detail-open .site-header,
  body.premium-fullscreen.premium-detail-open .main-nav,
  body.premium-fullscreen.premium-detail-open .floating-cart {
    display: none !important;
  }

  body.premium-fullscreen.premium-detail-open {
    overflow: auto;
    background:
      radial-gradient(circle at 0% 18%, rgba(134, 239, 172, .24), transparent 34%),
      radial-gradient(circle at 94% 0%, rgba(187, 247, 208, .22), transparent 32%),
      linear-gradient(180deg, #fbfffc 0%, #f1fff6 52%, #ffffff 100%);
  }

  body.premium-fullscreen.premium-detail-open .premium-banner,
  body.premium-fullscreen.premium-detail-open .premium-shop-head,
  body.premium-fullscreen.premium-detail-open .premium-products-panel,
  body.premium-fullscreen.premium-detail-open .premium-orders-panel,
  body.premium-fullscreen.premium-detail-open .premium-selected-bar {
    display: none !important;
  }

  body.premium-fullscreen.premium-detail-open #premiumAppsView,
  body.premium-fullscreen.premium-detail-open .premium-page,
  body.premium-fullscreen.premium-detail-open .premium-shell,
  body.premium-fullscreen.premium-detail-open .premium-layout {
    display: block;
    width: 100%;
    min-height: 100svh;
    margin: 0;
    padding: 0;
  }

  body.premium-fullscreen.premium-detail-open::after {
    display: none;
  }

  body.premium-fullscreen.premium-detail-open .premium-checkout-panel {
    position: relative;
    inset: auto;
    z-index: 1;
    display: block;
    width: min(100%, 520px);
    min-height: 100svh;
    margin: 0 auto;
    padding: calc(10px + env(safe-area-inset-top)) 14px 16px;
    overflow-x: hidden;
    overflow-y: visible;
    overscroll-behavior: auto;
    touch-action: auto;
    contain: none;
    -webkit-overflow-scrolling: auto;
    border: 0;
    border-radius: 0;
    color: #123524;
    background:
      radial-gradient(circle at 0% 18%, rgba(134, 239, 172, .24), transparent 34%),
      radial-gradient(circle at 94% 0%, rgba(187, 247, 208, .22), transparent 32%),
      linear-gradient(180deg, #fbfffc 0%, #f1fff6 52%, #ffffff 100%);
    box-shadow: none;
  }

  body.premium-fullscreen .premium-detail-close {
    position: sticky;
    top: calc(8px + env(safe-area-inset-top));
    float: right;
    z-index: 1002;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, .22);
    background: #ffffff;
    color: #0f5f34;
    font-size: 20px;
    font-weight: 900;
  }

  body.premium-fullscreen.premium-detail-open .premium-selected-bar:not(.hidden) {
    display: none;
  }

  body.premium-fullscreen.premium-detail-open .premium-buy-form > label {
    display: none;
  }

  body.premium-fullscreen.premium-detail-open .premium-buy-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    position: static;
    width: min(100%, 460px);
    margin: 10px auto 0;
    padding: 10px;
    transform: none;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(34, 197, 94, .16);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-card,
  body.premium-fullscreen.premium-detail-open .premium-coupon-result,
  body.premium-fullscreen.premium-detail-open .premium-buy-form .gold-btn {
    grid-column: 1 / -1;
  }

  body.premium-fullscreen.premium-detail-open .premium-form-close {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-card {
    display: grid;
    gap: 7px;
    padding: 9px;
    border-radius: 13px;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-head {
    gap: 7px;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-head span {
    min-width: 44px;
    height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-head strong {
    font-size: 12px;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-card .premium-coupon-row {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 7px;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-card input {
    min-width: 0;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 11px;
    font-size: 12px;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-card .light-btn {
    min-width: 0;
    min-height: 40px;
    padding: 8px 9px;
    border-radius: 11px;
    font-size: 12px;
    white-space: nowrap;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-result {
    padding: 9px 10px;
    border-radius: 13px;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-result strong {
    font-size: 18px;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-result .ghost {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px;
  }

  body.premium-fullscreen.premium-detail-open .premium-selected {
    display: grid;
    gap: 10px;
    max-width: 460px;
    min-height: auto;
    margin: 0 auto;
    padding: 0;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-hero {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding-top: 2px;
  }

  body.premium-fullscreen.premium-detail-open .premium-selected-img {
    width: 68px;
    height: 68px;
    border: 1px solid rgba(34, 197, 94, .20);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(34, 197, 94, .12);
  }

  body.premium-fullscreen.premium-detail-open .premium-selected-img img {
    object-fit: contain;
  }

  body.premium-fullscreen.premium-detail-open .premium-selected h2 {
    color: #10261a;
    font-size: 18px;
    line-height: 1.22;
    text-shadow: none;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-title > span {
    color: #16a34a;
    background: rgba(34, 197, 94, .10);
    box-shadow: none;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-price {
    display: block;
    color: #16a34a;
    font-size: 30px;
    line-height: 1;
    font-weight: 1000;
    letter-spacing: 0;
  }

  body.premium-fullscreen.premium-detail-open .premium-price-box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.premium-fullscreen.premium-detail-open .premium-price-box div {
    min-height: 50px;
    padding: 8px;
    border: 1px solid rgba(34, 197, 94, .12);
    border-radius: 12px;
    background: rgba(236, 253, 245, .72);
  }

  body.premium-fullscreen.premium-detail-open .premium-price-box span {
    color: #6b8073;
    font-size: 10px;
  }

  body.premium-fullscreen.premium-detail-open .premium-price-box strong {
    color: #16a34a;
    font-size: 13px;
    line-height: 1.1;
    word-break: break-word;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box {
    display: grid;
    gap: 10px;
    margin-top: 2px;
    padding: 14px;
    border: 1px solid rgba(34, 197, 94, .18);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box h3 {
    margin: 0;
    color: #10261a;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 950;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box li,
  body.premium-fullscreen.premium-detail-open .premium-mobile-warning {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    margin: 0;
    color: #52665b;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box li > span:not(.premium-detail-icon) {
    color: #52665b;
  }

  body.premium-fullscreen.premium-detail-open .premium-detail-icon-ok {
    color: #16a34a;
  }

  body.premium-fullscreen.premium-detail-open .premium-detail-icon-bad {
    color: #ff285e;
  }

  body.premium-fullscreen.premium-detail-open .premium-demo-note {
    color: #5d7165;
    background: rgba(236, 253, 245, .72);
    border-color: rgba(34, 197, 94, .16);
    font-size: 11px;
    line-height: 1.45;
    padding: 10px;
    border-radius: 14px;
  }

  body.premium-fullscreen.premium-detail-open .premium-buy-form .gold-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    color: #052e16;
    background: linear-gradient(135deg, #86efac, #22c55e);
    box-shadow: 0 14px 30px rgba(34, 197, 94, .18);
    pointer-events: auto;
  }

  body.premium-fullscreen .premium-page,
  body.premium-fullscreen .premium-shell {
    padding-bottom: calc(34px + env(safe-area-inset-bottom));
  }

  body.premium-fullscreen .premium-selected-bar:not(.hidden) {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: 145;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: auto;
    min-height: 68px;
    padding: 10px;
    border: 1px solid rgba(34, 197, 94, .34);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18), 0 0 0 1px rgba(255, 255, 255, .78) inset;
    backdrop-filter: blur(18px);
  }

  body.premium-fullscreen .premium-selected-pill {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  body.premium-fullscreen .premium-selected-pill-img,
  body.premium-fullscreen .premium-selected-pill-img img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  body.premium-fullscreen .premium-selected-pill-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  body.premium-fullscreen .premium-selected-pill-copy strong {
    overflow: hidden;
    color: #0f1f16;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.premium-fullscreen .premium-selected-pill-copy small {
    overflow: hidden;
    color: #66756c;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.premium-fullscreen .premium-selected-buy {
    min-width: 92px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 15px;
    white-space: nowrap;
  }
}

body.premium-fullscreen .premium-card::after {
  display: none !important;
  content: none !important;
}


body.premium-fullscreen .premium-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(34, 197, 94, .28);
  border-radius: 14px;
  color: #06391f;
  background: #ffffff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

body.premium-fullscreen .premium-card-action .icon {
  width: 16px;
  height: 16px;
}

body.premium-fullscreen .premium-card.active .premium-card-action {
  border-color: rgba(34, 197, 94, .45);
  color: #052e16;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  transition:
    border-color .3s ease,
    background .3s ease,
    color .3s ease,
    box-shadow .3s ease;
  box-shadow: 0 12px 28px rgba(34, 197, 94, .16);
}

body.premium-fullscreen #premiumAppsView.premium-selection-changing .premium-selected,
body.premium-fullscreen #premiumAppsView.premium-selection-changing .premium-selected-bar:not(.hidden) {
  opacity: .72;
  transform: translateY(7px) scale(.992);
}

body.premium-fullscreen #premiumAppsView.premium-selection-settled .premium-selected,
body.premium-fullscreen #premiumAppsView.premium-selection-settled .premium-selected-bar:not(.hidden) {
  animation: premium-detail-soft-in .42s cubic-bezier(.2, .8, .2, 1);
}

body.premium-fullscreen .premium-selected,
body.premium-fullscreen .premium-selected-bar:not(.hidden) {
  transition:
    opacity .34s ease,
    transform .34s cubic-bezier(.2, .8, .2, 1),
    box-shadow .34s ease;
}

@keyframes premium-card-soft-select {
  0% {
    transform: translateY(0) scale(.985);
    filter: saturate(.92);
  }
  55% {
    transform: translateY(-5px) scale(1.018);
    filter: saturate(1.12);
  }
  100% {
    transform: translateY(-3px) scale(1.01);
    filter: saturate(1);
  }
}

@keyframes premium-card-image-glow {
  0% { filter: brightness(.96); }
  50% { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}

@keyframes premium-detail-soft-in {
  0% {
    opacity: .62;
    transform: translateY(10px) scale(.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.premium-card-action-short {
  display: none;
}

.premium-mobile-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.premium-mobile-title {
  display: grid;
  gap: 6px;
}

.premium-mobile-title > span {
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  color: #0f8f55;
  background: rgba(34, 197, 94, .10);
  font-size: 12px;
  font-weight: 950;
}

.premium-mobile-title h2 {
  margin: 0;
}

.premium-mobile-price {
  display: none;
}

.premium-mobile-detail-box {
  display: none;
}

.premium-form-close {
  display: none;
}

.premium-image-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.premium-image-actions .compact-file {
  margin: 0;
}

.premium-image-actions .small-btn {
  min-height: 36px;
  padding: 8px 12px;
}

.premium-detail-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.premium-detail-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.premium-detail-icon-ok {
  color: #16a34a;
  background: #dcfce7;
}

.premium-detail-icon-bad {
  color: #ef4444;
  background: #fee2e2;
}

@media (max-width: 760px) {
  body.premium-fullscreen .premium-card-action {
    min-height: 38px;
    border-radius: 12px;
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  body.premium-fullscreen .premium-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  body.premium-fullscreen .premium-card {
    min-height: 152px !important;
    gap: 5px !important;
    padding-bottom: 6px !important;
    border: 1px solid rgba(34, 197, 94, .24) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #ffffff, #f7fff9) !important;
    box-shadow: 0 12px 28px rgba(22, 163, 74, .12) !important;
  }

  body.premium-fullscreen .premium-card-img {
    height: 58px !important;
    border-radius: 14px 14px 0 0 !important;
    background: linear-gradient(135deg, #ecfff2, #ffffff) !important;
  }

  body.premium-fullscreen .premium-card-img img {
    padding: 5px !important;
  }

  body.premium-fullscreen .premium-card-body {
    gap: 4px !important;
    padding: 0 7px !important;
  }

  body.premium-fullscreen .premium-card-body strong {
    min-height: 26px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
  }

  body.premium-fullscreen .premium-card-price {
    justify-content: center;
    width: 100%;
    min-height: 24px;
    padding: 2px 5px !important;
    border-radius: 999px !important;
    font-size: 8px !important;
    border: 1px solid rgba(34, 197, 94, .18);
  }

  body.premium-fullscreen .premium-card-price b {
    font-size: 12px !important;
  }

  body.premium-fullscreen .premium-card-price small,
  body.premium-fullscreen .premium-card-price em {
    display: none !important;
  }

  body.premium-fullscreen .premium-card-price em {
    font-size: 8px !important;
  }

  body.premium-fullscreen .premium-detail-line {
    display: none !important;
  }

  body.premium-fullscreen .premium-card-bottom {
    justify-items: center !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 7px !important;
  }

  body.premium-fullscreen .premium-stock-line {
    justify-self: center !important;
    max-width: 100%;
    min-width: 26px;
    padding: 2px 6px !important;
    border-radius: 999px !important;
    font-size: 8px !important;
    white-space: nowrap;
  }

  body.premium-fullscreen .premium-stock-line b {
    font-size: 9px !important;
  }

  body.premium-fullscreen .premium-card-action {
    display: grid !important;
    place-items: center !important;
    justify-content: center !important;
    align-content: center !important;
    min-height: 26px !important;
    width: 100%;
    padding: 0 6px !important;
    border-radius: 10px !important;
    font-size: 0 !important;
    line-height: 1;
    text-align: center;
    gap: 0 !important;
  }

  body.premium-fullscreen .premium-card-action .icon {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 auto !important;
  }

  body.premium-fullscreen .premium-card-action-text {
    display: none;
  }

  body.premium-fullscreen .premium-card-action-short {
    display: none;
  }

  body.premium-fullscreen.premium-detail-open .premium-checkout-panel {
    width: min(100%, 430px);
    min-height: auto;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: calc(42px + env(safe-area-inset-bottom));
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-hero {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 9px;
  }

  body.premium-fullscreen.premium-detail-open .premium-selected-img {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }

  body.premium-fullscreen.premium-detail-open .premium-selected h2 {
    font-size: 16px;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-price {
    font-size: 26px;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box {
    padding: 12px;
    border-radius: 16px;
  }

  body.premium-fullscreen.premium-detail-open .premium-buy-form {
    position: static !important;
    inset: auto !important;
    width: min(100%, 430px);
    margin: 12px auto 0;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    transform: none !important;
  }
}

@media (max-width: 760px) {
  .main-nav,
  body.premium-fullscreen .main-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav a,
  body.premium-fullscreen .main-nav a {
    flex: 0 0 72px !important;
    min-width: 72px !important;
    scroll-snap-align: center;
  }
}

@media (max-width: 370px) {
  .main-nav a,
  body.premium-fullscreen .main-nav a {
    flex-basis: 64px !important;
    min-width: 64px !important;
  }
}

@media (min-width: 761px) {
  body.premium-fullscreen .premium-layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 440px);
    gap: 22px;
  }

  body.premium-fullscreen .premium-checkout-panel {
    position: sticky;
    top: 96px;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
    max-height: calc(100svh - 118px);
    overflow: hidden;
    padding: 22px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 255, 249, .94)),
      radial-gradient(circle at 96% 0%, rgba(134, 239, 172, .22), transparent 32%);
    box-shadow: 0 24px 54px rgba(22, 163, 74, .12);
  }

  body.premium-fullscreen .premium-detail-close,
  body.premium-fullscreen .premium-form-close {
    display: none;
  }

  body.premium-fullscreen .premium-selected {
    display: grid;
    gap: 16px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 6px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--orange) 40%, transparent) transparent;
  }

  body.premium-fullscreen .premium-selected::-webkit-scrollbar {
    width: 6px;
  }

  body.premium-fullscreen .premium-selected::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--orange) 34%, transparent);
  }

  body.premium-fullscreen .premium-selected::-webkit-scrollbar-track {
    background: transparent;
  }

  body.premium-fullscreen .premium-mobile-hero {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding-bottom: 4px;
  }

  body.premium-fullscreen .premium-selected-img {
    width: 76px;
    height: 76px;
    border: 1px solid rgba(34, 197, 94, .16);
    border-radius: 16px;
    background: #f0fdf4;
  }

  body.premium-fullscreen .premium-selected-img img {
    padding: 6px;
    object-fit: cover;
  }

  body.premium-fullscreen .premium-mobile-title {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  body.premium-fullscreen .premium-mobile-title > span {
    width: fit-content;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    color: #0f8f55;
    background: #dcfce7;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.premium-fullscreen .premium-mobile-title h2 {
    margin: 0;
    color: #102519;
    font-size: 20px;
    line-height: 1.3;
  }

  body.premium-fullscreen .premium-mobile-price {
    display: block;
    color: #16a34a;
    font-size: 30px;
    line-height: 1;
  }

  body.premium-fullscreen .premium-price-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.premium-fullscreen .premium-price-box div {
    min-height: 72px;
    padding: 13px;
    border: 1px solid rgba(34, 197, 94, .14);
    border-radius: 15px;
    background: #f0fdf4;
  }

  body.premium-fullscreen .premium-price-box span {
    color: #607568 !important;
    font-size: 12px;
    font-weight: 850;
  }

  body.premium-fullscreen .premium-price-box strong {
    margin-top: 5px;
    color: #16a34a;
    font-size: 18px;
  }

  body.premium-fullscreen .premium-mobile-detail-box {
    display: grid;
    gap: 10px;
    padding: 15px;
    border: 1px solid rgba(34, 197, 94, .16);
    border-radius: 16px;
    background: #ffffff;
  }

  body.premium-fullscreen .premium-mobile-detail-box h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #102519;
    font-size: 16px;
    line-height: 1.25;
  }

  body.premium-fullscreen .premium-mobile-detail-box ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.premium-fullscreen .premium-mobile-detail-box li,
  body.premium-fullscreen .premium-mobile-warning {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    color: #52665b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
  }

  body.premium-fullscreen .premium-mobile-detail-box li > span:not(.premium-detail-icon) {
    color: #52665b;
  }

  body.premium-fullscreen .premium-detail-icon-ok {
    color: #16a34a;
  }

  body.premium-fullscreen .premium-detail-icon-bad {
    color: #ef4444;
  }

  body.premium-fullscreen .premium-demo-note {
    margin: 0;
    padding: 13px 14px;
    border: 1px dashed rgba(34, 197, 94, .24);
    border-radius: 15px;
    color: #52665b !important;
    background: #f0fdf4;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
  }

  body.premium-fullscreen .premium-buy-form {
    display: grid;
    gap: 11px;
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid color-mix(in srgb, var(--orange) 18%, var(--line));
    background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.96));
  }

  body.premium-fullscreen .premium-buy-form label {
    display: grid;
    gap: 8px;
    color: #52665b !important;
    font-size: 13px;
    font-weight: 900;
  }

  body.premium-fullscreen .premium-buy-form textarea {
    min-height: 92px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
  }

  body.premium-fullscreen .premium-buy-form .gold-btn {
    min-height: 48px;
    border-radius: 14px;
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  #authModal,
  #authModal * {
    box-sizing: border-box;
  }

  #authModal,
  #authModal .auth-card,
  #authModal .auth-visual,
  #authModal .auth-form,
  #authModal .auth-panel,
  #authModal .field,
  #authModal .input-wrap,
  #authModal .auth-tabs,
  #authModal .check-row {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    touch-action: pan-y !important;
  }

  #authModal input,
  #authModal button {
    max-width: 100% !important;
  }

  input,
  select,
  textarea,
  .input-wrap input,
  .wallet-proof-form input,
  .premium-coupon-card input,
  .premium-buy-form textarea,
  .auth-form input {
    font-size: 16px !important;
  }

  .main-nav,
  body.premium-fullscreen .main-nav {
    position: fixed !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    will-change: auto;
  }

  body.premium-fullscreen.premium-detail-open .premium-checkout-panel {
    width: min(100%, 440px) !important;
    padding: calc(12px + env(safe-area-inset-top)) 18px calc(56px + env(safe-area-inset-bottom)) !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-selected {
    gap: 14px !important;
    max-width: 440px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-hero {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 13px !important;
    align-items: start !important;
    padding: 4px 0 2px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-selected-img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 17px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-selected h2 {
    font-size: 16px !important;
    line-height: 1.36 !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-title {
    gap: 7px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-price {
    margin-top: 4px !important;
    font-size: 28px !important;
    line-height: 1.1 !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-price-box {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-price-box div {
    min-height: 66px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-price-box span {
    margin-bottom: 5px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-price-box strong {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box {
    gap: 13px !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box h3 {
    font-size: 16px !important;
    line-height: 1.35 !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box ul {
    gap: 9px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box li,
  body.premium-fullscreen.premium-detail-open .premium-mobile-warning {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    gap: 8px !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-detail-icon {
    margin-top: 1px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-buy-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    position: static !important;
    inset: auto !important;
    width: min(100%, 440px) !important;
    margin: 14px auto 0 !important;
    padding: 12px 12px calc(18px + env(safe-area-inset-bottom)) !important;
    border-radius: 20px !important;
    transform: none !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-buy-form > label,
  body.premium-fullscreen.premium-detail-open .premium-buy-form textarea,
  body.premium-fullscreen.premium-detail-open .premium-form-close {
    display: none !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-card,
  body.premium-fullscreen.premium-detail-open .premium-coupon-result,
  body.premium-fullscreen.premium-detail-open .premium-buy-form .gold-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-card {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-card .premium-coupon-row {
    grid-template-columns: minmax(0, 1fr) 82px !important;
    gap: 9px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-result {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-buy-form .gold-btn {
    min-height: 54px;
    white-space: normal;
  }
}

@media (max-width: 340px) {
  body.premium-fullscreen.premium-detail-open .premium-checkout-panel {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-coupon-card .premium-coupon-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .site-header,
  main,
  .footer,
  body.premium-fullscreen .site-header,
  body.premium-fullscreen main {
    width: 100% !important;
    max-width: 100% !important;
  }

  .shell,
  body.premium-fullscreen .site-header .shell,
  body.premium-fullscreen .premium-shell,
  .game-menu-page .game-topup-shell {
    width: 100% !important;
    max-width: 540px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .main-nav,
  body.premium-fullscreen .main-nav {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(62px, 1fr) !important;
    justify-content: stretch !important;
    overflow-x: auto !important;
  }

  .main-nav a,
  body.premium-fullscreen .main-nav a {
    min-width: 0 !important;
    width: 100% !important;
    flex: initial !important;
  }

  .recommend-track {
    grid-auto-columns: minmax(154px, 46vw) !important;
  }

  #recommendedProducts .recommend-track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: auto !important;
    gap: 9px !important;
    width: 100% !important;
  }

  #recommendedProducts .recommend-card {
    padding: 8px !important;
    border-radius: 16px !important;
  }

  .store-grid,
  body.premium-fullscreen .premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .recommend-card,
  .product-card,
  body.premium-fullscreen .premium-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  .recommend-media,
  .product-media,
  body.premium-fullscreen .premium-poster {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 100 / 78 !important;
    overflow: hidden !important;
  }

  .recommend-media {
    aspect-ratio: var(--fit-mobile-ratio, var(--fit-desktop-ratio, 1 / 1)) !important;
    background: #071f14 !important;
  }

  #recommendedProducts .recommend-media {
    border-radius: 12px !important;
  }

  .recommend-media > img,
  .product-media > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block !important;
  }

  .recommend-media > .managed-image,
  .category-card > .managed-image,
  .orange-hero > .managed-image,
  body.premium-fullscreen .premium-banner > .managed-image {
    object-fit: contain !important;
    object-position: var(--fit-mobile-x, 50%) var(--fit-mobile-y, 50%) !important;
    transform: scale(var(--fit-mobile-zoom, 1)) !important;
    transform-origin: var(--fit-mobile-x, 50%) var(--fit-mobile-y, 50%) !important;
    background: #071f14 !important;
  }

  .managed-image-desktop:has(+ .managed-image-mobile),
  .managed-image-desktop.has-mobile-pair {
    display: none !important;
  }

  .managed-image-mobile {
    display: block !important;
  }

  .category-grid,
  #featuredCategories {
    overflow: hidden !important;
  }

  #featuredCategories,
  #categoryList.category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .category-card.has-category-image {
    min-height: 0 !important;
    aspect-ratio: var(--fit-mobile-ratio, var(--fit-desktop-ratio, 1 / 1)) !important;
    background-color: #071f14 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }

  #featuredCategories .category-card.has-category-image,
  #categoryList.category-grid .category-card.has-category-image {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
  }

  .orange-hero.has-uploaded-banner,
  body.premium-fullscreen .premium-banner.has-image {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: var(--fit-mobile-ratio, var(--fit-desktop-ratio, 16 / 5)) !important;
  }
}

body.premium-fullscreen .premium-selected-pill-img,
body.premium-fullscreen .premium-selected-img {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

body.premium-fullscreen .premium-selected-pill-img img,
body.premium-fullscreen .premium-selected-img img {
  position: absolute;
  inset: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  box-sizing: border-box;
  padding: 0;
  object-fit: contain !important;
}

@media (max-width: 760px) {
  body.premium-fullscreen .premium-card {
    min-height: 260px !important;
  }

  body.premium-fullscreen .premium-card-img {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    height: 150px !important;
    min-height: 150px !important;
    overflow: hidden !important;
  }

  body.premium-fullscreen .premium-card-img img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
  }

  body.premium-fullscreen .premium-card-img .premium-img-fallback {
    height: 100% !important;
    min-height: 150px !important;
  }
}

/* theme-synced navigation and header surfaces */
body:not(.premium-fullscreen) .site-header {
  border-bottom-color: color-mix(in srgb, var(--gold-dark) 18%, transparent);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  box-shadow: 0 10px 34px color-mix(in srgb, var(--ink) 8%, transparent);
}

body:not(.premium-fullscreen) .site-header .shell.header-inner {
  background: transparent;
}

body:not(.premium-fullscreen) .main-nav {
  color: var(--ink);
}

body:not(.premium-fullscreen) .main-nav a {
  color: color-mix(in srgb, var(--ink) 72%, var(--muted)) !important;
}

body:not(.premium-fullscreen) .main-nav a.active,
body:not(.premium-fullscreen) .main-nav a:hover {
  border-color: color-mix(in srgb, var(--gold-dark) 62%, var(--line)) !important;
  color: var(--ink) !important;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--gold) 58%, var(--panel)),
    color-mix(in srgb, var(--gold-dark) 76%, var(--panel))
  ) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--gold-dark) 26%, transparent) !important;
}

body:not(.premium-fullscreen) .point-pill {
  background: color-mix(in srgb, var(--soft) 78%, var(--panel)) !important;
  color: color-mix(in srgb, var(--ink) 78%, var(--gold-dark)) !important;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--gold-dark) 28%, var(--line)),
    0 8px 22px color-mix(in srgb, var(--gold-dark) 12%, transparent) !important;
}

body:not(.premium-fullscreen) .account-pill,
body:not(.premium-fullscreen) .ghost,
body:not(.premium-fullscreen) .light-btn {
  border-color: color-mix(in srgb, var(--gold-dark) 18%, var(--line)) !important;
  background: color-mix(in srgb, var(--panel) 88%, transparent) !important;
  color: var(--ink) !important;
}

body:not(.premium-fullscreen) .gold-btn,
body:not(.premium-fullscreen) .primary-btn {
  color: color-mix(in srgb, var(--ink) 82%, #ffffff) !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--gold-dark) 24%, transparent) !important;
}

@media (max-width: 760px) {
  body:not(.premium-fullscreen) .main-nav {
    border-color: color-mix(in srgb, var(--gold-dark) 22%, transparent) !important;
    background: color-mix(in srgb, var(--panel) 92%, transparent) !important;
    box-shadow: 0 18px 45px color-mix(in srgb, var(--gold-dark) 16%, transparent) !important;
  }

  body:not(.premium-fullscreen) .main-nav a {
    border-color: color-mix(in srgb, var(--gold-dark) 16%, var(--line)) !important;
    background: color-mix(in srgb, var(--panel) 78%, transparent) !important;
  }
}

/* soft game top-up selection changes */
#gameTopupView .game-package-section,
#gameTopupView .simple-game-info,
#gameTopupView .game-topup-form,
#gameTopupView .pack-list-panel,
#gameTopupView .pack-card-grid,
#gameTopupView .simple-checkout-bar,
#gameTopupView .topup-summary {
  will-change: opacity, transform, filter;
}

#gameTopupView.topup-game-changing .game-package-section,
#gameTopupView.topup-game-changing .simple-game-info,
#gameTopupView.topup-game-changing .game-topup-form,
#gameTopupView.topup-game-changing .pack-list-panel {
  opacity: 0;
  transform: translateY(14px) scale(.992);
  filter: saturate(.92);
}

#gameTopupView.topup-game-entered .game-package-section,
#gameTopupView.topup-game-entered .simple-game-info,
#gameTopupView.topup-game-entered .game-topup-form,
#gameTopupView.topup-game-entered .pack-list-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1);
  transition:
    opacity .46s ease,
    transform .54s cubic-bezier(.2, .8, .2, 1),
    filter .46s ease;
}

#gameTopupView.topup-pack-changing .pack-card-grid,
#gameTopupView.topup-pack-changing .simple-checkout-bar,
#gameTopupView.topup-pack-changing .topup-summary {
  opacity: .46;
  transform: translateY(8px);
  filter: saturate(.88);
}

#gameTopupView.topup-pack-entered .pack-card-grid,
#gameTopupView.topup-pack-entered .simple-checkout-bar,
#gameTopupView.topup-pack-entered .topup-summary {
  opacity: 1;
  transform: translateY(0);
  filter: saturate(1);
  transition:
    opacity .38s ease,
    transform .44s cubic-bezier(.2, .8, .2, 1),
    filter .38s ease;
}

#gameTopupView.topup-pack-entered .pack-pick-card.active {
  animation: topup-pack-soft-select .52s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes topup-pack-soft-select {
  0% {
    opacity: .58;
    transform: translateY(7px) scale(.985);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.006);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #gameTopupView.topup-game-changing .game-package-section,
  #gameTopupView.topup-game-changing .simple-game-info,
  #gameTopupView.topup-game-changing .game-topup-form,
  #gameTopupView.topup-game-changing .pack-list-panel,
  #gameTopupView.topup-pack-changing .pack-card-grid,
  #gameTopupView.topup-pack-changing .simple-checkout-bar,
  #gameTopupView.topup-pack-changing .topup-summary,
  #gameTopupView.topup-game-entered .game-package-section,
  #gameTopupView.topup-game-entered .simple-game-info,
  #gameTopupView.topup-game-entered .game-topup-form,
  #gameTopupView.topup-game-entered .pack-list-panel,
  #gameTopupView.topup-pack-entered .pack-card-grid,
  #gameTopupView.topup-pack-entered .simple-checkout-bar,
  #gameTopupView.topup-pack-entered .topup-summary {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    animation: none;
  }
}

/* theme-synced game top-up surfaces */
body:not(.premium-fullscreen) #gameTopupView .simple-game-info,
body:not(.premium-fullscreen) #gameTopupView .simple-step-card,
body:not(.premium-fullscreen) #gameTopupView .pack-list-panel {
  border-color: color-mix(in srgb, var(--orange) 28%, var(--line)) !important;
  background: color-mix(in srgb, var(--panel) 94%, var(--page)) !important;
  box-shadow: 0 18px 44px color-mix(in srgb, var(--orange) 10%, transparent) !important;
}

body:not(.premium-fullscreen) #gameTopupView .simple-game-kicker,
body:not(.premium-fullscreen) #gameTopupView .simple-step-title small {
  color: var(--orange) !important;
}

body:not(.premium-fullscreen) #gameTopupView .simple-step-title > span {
  color: color-mix(in srgb, var(--ink) 84%, var(--panel)) !important;
  background: linear-gradient(135deg, var(--orange), var(--gold-dark)) !important;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--orange) 24%, transparent) !important;
}

body:not(.premium-fullscreen) #gameTopupView .simple-game-badges span,
body:not(.premium-fullscreen) #gameTopupView .simple-game-notes span,
body:not(.premium-fullscreen) #gameTopupView .topup-summary {
  border-color: color-mix(in srgb, var(--orange) 26%, var(--line)) !important;
  background: color-mix(in srgb, var(--soft) 74%, var(--panel)) !important;
  color: color-mix(in srgb, var(--ink) 82%, var(--orange)) !important;
}

body:not(.premium-fullscreen) #gameTopupView .simple-game-badges span::before {
  background: var(--orange) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 18%, transparent) !important;
}

body:not(.premium-fullscreen) #gameTopupView .simple-game-notes span::after {
  color: var(--orange) !important;
}

body:not(.premium-fullscreen) #gameTopupView .pack-pick-card {
  border-color: color-mix(in srgb, var(--orange) 18%, var(--line)) !important;
  background: color-mix(in srgb, var(--panel) 96%, var(--page)) !important;
  color: var(--ink) !important;
}

body:not(.premium-fullscreen) #gameTopupView .pack-pick-card:hover,
body:not(.premium-fullscreen) #gameTopupView .pack-pick-card.active {
  border-color: color-mix(in srgb, var(--orange) 62%, var(--line)) !important;
  background: color-mix(in srgb, var(--soft) 70%, var(--panel)) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--orange) 18%, transparent) !important;
}

body:not(.premium-fullscreen) #gameTopupView .pack-pick-card .pack-pick-name {
  color: var(--ink) !important;
}

body:not(.premium-fullscreen) #gameTopupView .pack-pick-card small {
  color: var(--muted) !important;
}

body:not(.premium-fullscreen) #gameTopupView .pack-pick-card .pack-price {
  background: color-mix(in srgb, var(--orange) 16%, var(--panel)) !important;
  color: var(--orange) !important;
}

body:not(.premium-fullscreen) #gameTopupView .pack-pick-card .pack-action {
  border-color: color-mix(in srgb, var(--orange) 30%, var(--line)) !important;
  background: color-mix(in srgb, var(--panel) 90%, var(--soft)) !important;
  color: var(--orange) !important;
}

body:not(.premium-fullscreen) #gameTopupView .pack-pick-card.active .pack-action {
  background: linear-gradient(135deg, var(--orange), var(--gold-dark)) !important;
  color: color-mix(in srgb, var(--ink) 84%, var(--panel)) !important;
}

body:not(.premium-fullscreen) #gameTopupView .topup-summary.is-empty {
  border-color: color-mix(in srgb, var(--orange) 14%, var(--line)) !important;
  background: color-mix(in srgb, var(--panel) 84%, var(--page)) !important;
  color: var(--muted) !important;
}

body:not(.premium-fullscreen) #gameTopupView #gameTopupSubmitButton.pay-transaction-btn {
  border-color: color-mix(in srgb, var(--orange) 32%, var(--line)) !important;
  background: color-mix(in srgb, var(--panel) 92%, var(--soft)) !important;
  color: var(--ink) !important;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--orange) 16%, transparent) !important;
}

body:not(.premium-fullscreen) #gameTopupView #gameTopupSubmitButton.pay-transaction-btn:not(:disabled) {
  background: linear-gradient(135deg, var(--orange), var(--gold-dark)) !important;
}

body:not(.premium-fullscreen) #gameTopupView #gameTopupSubmitButton.pay-transaction-btn .pay-copy {
  color: var(--ink) !important;
  text-shadow: none !important;
}

body:not(.premium-fullscreen) #gameTopupView #gameTopupSubmitButton.pay-transaction-btn .pay-copy svg {
  stroke: var(--orange) !important;
}

body:not(.premium-fullscreen) #gameTopupView #gameTopupSubmitButton.pay-transaction-btn:not(:disabled) .pay-copy,
body:not(.premium-fullscreen) #gameTopupView #gameTopupSubmitButton.pay-transaction-btn:not(:disabled) .pay-copy svg {
  color: color-mix(in srgb, var(--ink) 88%, var(--panel)) !important;
  stroke: color-mix(in srgb, var(--ink) 88%, var(--panel)) !important;
}

@media (max-width: 760px) {
  body:not(.premium-fullscreen) #gameTopupView #gameTopupSubmitButton.pay-transaction-btn {
    min-height: 78px !important;
    opacity: 1 !important;
  }

  body:not(.premium-fullscreen) #gameTopupView #gameTopupSubmitButton.pay-transaction-btn:disabled {
    opacity: .82 !important;
  }

  body:not(.premium-fullscreen) #gameTopupView #gameTopupSubmitButton.pay-transaction-btn .pay-copy {
    color: var(--ink) !important;
    font-size: 15px !important;
    font-weight: 1000 !important;
  }
}

/* compact premium mobile detail spacing */
@media (max-width: 760px) {
  body.premium-fullscreen.premium-detail-open main,
  body.premium-fullscreen.premium-detail-open #premiumAppsView,
  body.premium-fullscreen.premium-detail-open .premium-page,
  body.premium-fullscreen.premium-detail-open .premium-shell,
  body.premium-fullscreen.premium-detail-open .premium-layout {
    min-height: auto !important;
    padding-bottom: 0 !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-checkout-panel {
    min-height: auto !important;
    padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-buy-form {
    margin-top: 8px !important;
    padding-bottom: 10px !important;
  }

  body.premium-fullscreen.premium-detail-open main + .footer,
  body.premium-fullscreen.premium-detail-open .footer {
    margin-top: 0 !important;
  }
}

/* global theme cohesion overrides */
body {
  background:
    radial-gradient(circle at 10% 12%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 30%),
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--orange) 12%, transparent), transparent 32%),
    var(--page) !important;
  color: var(--ink);
}

main {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 78%, transparent), color-mix(in srgb, var(--panel) 90%, transparent)),
    var(--page) !important;
}

.panel,
.policy,
.order-card,
.metric-card,
.sales-chart-card,
.admin-section,
.admin-table-wrap,
.product-manager-panel,
.recommended-manager-panel,
.settings-card,
.settings-contact-card,
.product-create-card,
.wallet-form-panel,
.wallet-history-panel,
.wallet-pay-card,
.wallet-admin-review,
.contact-panel,
.contact-card,
.trust-list article,
.profile-hero,
.profile-stat-card,
.profile-order-card,
.password-panel,
.asset-preview,
.settings-number-grid label,
.theme-preset-card,
.premium-order-group,
.coupon-history-wrap,
body #adminView .panel,
body #adminView .coupon-history-wrap,
body #adminView .coupon-history-table tr,
body.premium-fullscreen .premium-products-panel,
body.premium-fullscreen .premium-checkout-panel,
body.premium-fullscreen .premium-orders-panel,
body.premium-fullscreen .premium-selected,
body.premium-fullscreen .premium-selected-bar:not(.hidden),
body.premium-fullscreen .premium-card,
body.premium-fullscreen.premium-detail-open .premium-checkout-panel,
body.premium-fullscreen.premium-detail-open .premium-buy-form,
body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box,
body.premium-fullscreen.premium-detail-open .premium-price-box div,
body.premium-fullscreen.premium-detail-open .premium-demo-note {
  border-color: color-mix(in srgb, var(--orange) 20%, var(--line)) !important;
  background: color-mix(in srgb, var(--panel) 92%, var(--page)) !important;
  color: var(--ink) !important;
  box-shadow: 0 16px 42px color-mix(in srgb, var(--orange) 8%, transparent) !important;
}

.admin-tabs button,
.light-btn,
.ghost,
.small-btn,
.quick-amounts button,
.wallet-methods label,
.option-toggle .toggle-ui,
.mini-toggle .toggle-ui,
.coupon-form input,
.premium-coupon-card,
.premium-coupon-card input,
.premium-coupon-card .light-btn,
.premium-coupon-result,
.payment-credit-note,
.checkout-assurance,
.verify-note,
.promptpay-info,
.wallet-tx-card,
.line-item,
.contact-panel div,
.preorder-help,
.premium-order-group-head {
  border-color: color-mix(in srgb, var(--orange) 22%, var(--line)) !important;
  background: color-mix(in srgb, var(--soft) 62%, var(--panel)) !important;
  color: var(--ink) !important;
}

input,
select,
textarea,
.input-wrap,
.form-grid input,
.settings-card input,
.settings-card select,
.settings-card textarea,
.settings-contact-card input,
.settings-contact-card select,
.settings-contact-card textarea,
.contact-admin-row input,
.product-edit-form input,
.product-edit-form select,
.product-edit-form textarea,
.product-create-card input,
.product-create-card select,
.product-create-card textarea,
.game-topup-form input,
.game-topup-form textarea,
.topup-panel-head input,
.api-settings-block input:not([type="checkbox"]),
.premium-head-actions input,
body.premium-fullscreen .premium-head-actions input,
body.premium-fullscreen .premium-buy-form textarea {
  border-color: color-mix(in srgb, var(--orange) 24%, var(--line)) !important;
  background: color-mix(in srgb, var(--panel) 90%, var(--page)) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus,
.input-wrap:focus-within,
.api-settings-block input:not([type="checkbox"]):focus,
body.premium-fullscreen .premium-head-actions input:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 16%, transparent) !important;
}

.admin-tabs button.active,
.admin-tabs button:hover,
.gold-btn,
.primary-btn,
.quick-amounts button:hover,
.quick-amounts button.active,
.wallet-methods label:has(input:checked),
.option-toggle input:checked + .toggle-ui,
.mini-toggle input:checked + .toggle-ui,
.file-field input[type="file"]::file-selector-button,
body.premium-fullscreen .premium-card.active .premium-card-action,
body.premium-fullscreen .premium-selected-buy,
body.premium-fullscreen .premium-buy-form .gold-btn,
body.premium-fullscreen.premium-detail-open .premium-buy-form .gold-btn {
  border-color: color-mix(in srgb, var(--orange) 54%, var(--line)) !important;
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--gold-dark)) !important;
  color: color-mix(in srgb, var(--ink) 86%, var(--panel)) !important;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--orange) 24%, transparent) !important;
}

.admin-tabs button .icon,
.light-btn .icon,
.ghost .icon,
.contact-card i,
.trust-list i,
.wallet-method-icon,
.profile-avatar,
.premium-detail-icon-ok,
.premium-mobile-title > span,
body.premium-fullscreen .premium-detail-icon-ok,
body.premium-fullscreen .premium-mobile-title > span,
body.premium-fullscreen.premium-detail-open .premium-mobile-title > span {
  color: var(--orange) !important;
  background: color-mix(in srgb, var(--orange) 16%, var(--panel)) !important;
}

.main-nav a .icon,
body.premium-fullscreen .main-nav a .icon {
  width: 16px !important;
  height: 16px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.status-paid,
.status-completed,
.status-cleared,
.wallet-tx-card.status-completed,
.wallet-tx-card.status-paid,
.premium-order-group-head h4 span,
.cart-final-price,
.wallet-balance,
.wallet-admin-review b,
.premium-mobile-price,
body.premium-fullscreen .premium-mobile-price,
body.premium-fullscreen.premium-detail-open .premium-mobile-price,
.premium-price-box strong,
body.premium-fullscreen .premium-price-box strong,
body.premium-fullscreen.premium-detail-open .premium-price-box strong {
  color: var(--orange) !important;
  background-color: color-mix(in srgb, var(--orange) 12%, var(--panel)) !important;
}

.admin-table th,
.admin-table td,
body #adminView .coupon-history-table th,
body #adminView .coupon-history-table td,
.product-admin-grid table th,
.product-admin-grid table td,
.premium-order-table th,
.premium-order-table td {
  border-color: color-mix(in srgb, var(--orange) 16%, var(--line)) !important;
}

.admin-table th,
body #adminView .coupon-history-table th,
.product-admin-grid table th,
.premium-order-table th {
  background: color-mix(in srgb, var(--soft) 70%, var(--panel)) !important;
  color: var(--ink) !important;
}

.page-title h1,
.section-row h2,
.admin-section-head h3,
.footer h2,
.footer h3,
.trust-list strong,
.contact-card strong,
.wallet-tx-title strong,
.premium-selected h2,
body.premium-fullscreen .premium-selected h2,
body.premium-fullscreen.premium-detail-open .premium-selected h2 {
  color: var(--ink) !important;
}

.page-title p,
.section-row p,
.admin-section-head p,
.muted,
.footer p,
.footer a,
.trust-list span,
.contact-panel span,
.wallet-tx-card p,
.wallet-tx-card small,
.premium-selected p,
body.premium-fullscreen .premium-selected p,
body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box li,
body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box li > span:not(.premium-detail-icon),
body.premium-fullscreen.premium-detail-open .premium-mobile-warning {
  color: var(--muted) !important;
}

.footer {
  border-top-color: color-mix(in srgb, var(--orange) 16%, var(--line)) !important;
  background: color-mix(in srgb, var(--panel) 88%, transparent) !important;
}

/* password visibility toggle */
.input-wrap:has(.password-toggle) {
  grid-template-columns: 22px minmax(0, 1fr) 36px;
  padding-right: 8px;
}

.password-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--orange) 16%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: color-mix(in srgb, var(--ink) 56%, var(--orange));
  box-shadow: none;
}

.password-toggle .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
  color: currentColor !important;
  background: transparent !important;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.is-visible {
  border-color: color-mix(in srgb, var(--orange) 54%, var(--line));
  background: color-mix(in srgb, var(--orange) 18%, var(--panel));
  color: var(--orange);
}

.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.password-toggle:hover {
  transform: translateY(-1px) scale(1.08) !important;
}

/* tactile themed button interactions */
button,
.main-nav a[href],
.light-btn,
.ghost,
.gold-btn,
.primary-btn,
.small-btn,
.slider-btn,
.modal-close,
.toast-close,
.category-chip-row button,
.premium-chip-row button,
.theme-preset-card,
.game-pick-card,
.pack-pick-card,
.premium-card,
.product-card,
.recommend-card,
.wallet-methods label,
.quick-amounts button,
.admin-tabs button {
  -webkit-tap-highlight-color: transparent;
  transform-origin: center;
}

button:not(:disabled),
.main-nav a[href],
.light-btn:not(:disabled),
.ghost:not(:disabled),
.gold-btn:not(:disabled),
.primary-btn:not(:disabled),
.small-btn:not(:disabled),
.slider-btn:not(:disabled),
.modal-close:not(:disabled),
.toast-close:not(:disabled),
.category-chip-row button:not(:disabled),
.premium-chip-row button:not(:disabled),
.theme-preset-card,
.game-pick-card:not(:disabled),
.pack-pick-card:not(:disabled),
.premium-card:not(:disabled),
.product-card,
.recommend-card,
.wallet-methods label,
.quick-amounts button:not(:disabled),
.admin-tabs button:not(:disabled) {
  transition:
    transform .22s cubic-bezier(.2, .9, .25, 1.35),
    background .22s ease,
    border-color .22s ease,
    color .22s ease,
    box-shadow .22s ease,
    filter .22s ease !important;
}

button:not(:disabled):hover,
.light-btn:not(:disabled):hover,
.ghost:not(:disabled):hover,
.gold-btn:not(:disabled):hover,
.primary-btn:not(:disabled):hover,
.small-btn:not(:disabled):hover,
.slider-btn:not(:disabled):hover,
.modal-close:not(:disabled):hover,
.toast-close:not(:disabled):hover,
.category-chip-row button:not(:disabled):hover,
.premium-chip-row button:not(:disabled):hover,
.theme-preset-card:hover,
.game-pick-card:not(:disabled):hover,
.pack-pick-card:not(:disabled):hover,
.premium-card:not(:disabled):hover,
.product-card:hover,
.recommend-card:hover,
.wallet-methods label:hover,
.quick-amounts button:not(:disabled):hover,
.admin-tabs button:not(:disabled):hover {
  transform: translateY(-2px) scale(1.025) !important;
  border-color: color-mix(in srgb, var(--orange) 58%, var(--line)) !important;
  filter: saturate(1.08) brightness(1.02);
  box-shadow:
    0 14px 30px color-mix(in srgb, var(--orange) 20%, transparent),
    0 0 0 4px color-mix(in srgb, var(--gold) 12%, transparent) !important;
}

button:not(:disabled):active,
.light-btn:not(:disabled):active,
.ghost:not(:disabled):active,
.gold-btn:not(:disabled):active,
.primary-btn:not(:disabled):active,
.small-btn:not(:disabled):active,
.slider-btn:not(:disabled):active,
.modal-close:not(:disabled):active,
.toast-close:not(:disabled):active,
.category-chip-row button:not(:disabled):active,
.premium-chip-row button:not(:disabled):active,
.theme-preset-card:active,
.game-pick-card:not(:disabled):active,
.pack-pick-card:not(:disabled):active,
.premium-card:not(:disabled):active,
.product-card:active,
.recommend-card:active,
.wallet-methods label:active,
.quick-amounts button:not(:disabled):active,
.admin-tabs button:not(:disabled):active {
  transform: translateY(1px) scale(.96) !important;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--gold) 70%, var(--panel)),
    color-mix(in srgb, var(--orange) 86%, var(--panel)),
    color-mix(in srgb, var(--gold-dark) 78%, var(--panel))
  ) !important;
  color: color-mix(in srgb, var(--ink) 88%, var(--panel)) !important;
  box-shadow:
    0 7px 16px color-mix(in srgb, var(--orange) 22%, transparent),
    inset 0 0 0 999px color-mix(in srgb, #ffffff 8%, transparent) !important;
}

button:not(:disabled):focus-visible,
.light-btn:not(:disabled):focus-visible,
.ghost:not(:disabled):focus-visible,
.gold-btn:not(:disabled):focus-visible,
.primary-btn:not(:disabled):focus-visible,
.small-btn:not(:disabled):focus-visible,
.slider-btn:not(:disabled):focus-visible,
.modal-close:not(:disabled):focus-visible,
.toast-close:not(:disabled):focus-visible,
.category-chip-row button:not(:disabled):focus-visible,
.premium-chip-row button:not(:disabled):focus-visible,
.theme-preset-card:focus-visible,
.game-pick-card:not(:disabled):focus-visible,
.pack-pick-card:not(:disabled):focus-visible,
.premium-card:not(:disabled):focus-visible,
.quick-amounts button:not(:disabled):focus-visible,
.admin-tabs button:not(:disabled):focus-visible {
  outline: 0 !important;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent),
    0 14px 28px color-mix(in srgb, var(--orange) 18%, transparent) !important;
}

.modal-close:not(:disabled):hover,
.toast-close:not(:disabled):hover,
.slider-btn:not(:disabled):hover,
body.premium-fullscreen .premium-detail-close:not(:disabled):hover {
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--orange) 18%, var(--panel)) !important;
  color: var(--orange) !important;
}

@media (prefers-reduced-motion: reduce) {
  button,
  .light-btn,
  .ghost,
  .gold-btn,
  .primary-btn,
  .small-btn,
  .slider-btn,
  .modal-close,
  .toast-close,
  .category-chip-row button,
  .premium-chip-row button,
  .theme-preset-card,
  .game-pick-card,
  .pack-pick-card,
  .premium-card,
  .product-card,
  .recommend-card,
  .wallet-methods label,
  .quick-amounts button,
  .admin-tabs button {
    transition: none !important;
  }
}

/* calmer default theme pass */
body {
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 32%),
    radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--orange) 5%, transparent), transparent 34%),
    var(--page) !important;
}

main {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 84%, transparent), color-mix(in srgb, var(--panel) 96%, transparent)),
    var(--page) !important;
}

.panel,
.policy,
.order-card,
.metric-card,
.sales-chart-card,
.admin-section,
.admin-table-wrap,
.product-manager-panel,
.recommended-manager-panel,
.settings-card,
.settings-contact-card,
.product-create-card,
.wallet-form-panel,
.wallet-history-panel,
.wallet-pay-card,
.wallet-admin-review,
.contact-panel,
.contact-card,
.trust-list article,
.profile-hero,
.profile-stat-card,
.profile-order-card,
.password-panel,
.asset-preview,
.settings-number-grid label,
.theme-preset-card,
.premium-order-group,
body #adminView .panel,
body #adminView .coupon-history-wrap,
body.premium-fullscreen .premium-products-panel,
body.premium-fullscreen .premium-checkout-panel,
body.premium-fullscreen .premium-orders-panel,
body.premium-fullscreen .premium-selected,
body.premium-fullscreen .premium-selected-bar:not(.hidden),
body.premium-fullscreen .premium-card,
body.premium-fullscreen.premium-detail-open .premium-checkout-panel,
body.premium-fullscreen.premium-detail-open .premium-buy-form,
body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box,
body.premium-fullscreen.premium-detail-open .premium-price-box div {
  border-color: color-mix(in srgb, var(--orange) 12%, var(--line)) !important;
  background: color-mix(in srgb, var(--panel) 98%, var(--page)) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055) !important;
}

.admin-tabs button.active,
.admin-tabs button:hover,
.gold-btn,
.primary-btn,
.quick-amounts button:hover,
.quick-amounts button.active,
.wallet-methods label:has(input:checked),
.option-toggle input:checked + .toggle-ui,
.mini-toggle input:checked + .toggle-ui,
body.premium-fullscreen .premium-selected-buy,
body.premium-fullscreen .premium-buy-form .gold-btn,
body.premium-fullscreen.premium-detail-open .premium-buy-form .gold-btn {
  border-color: color-mix(in srgb, var(--orange) 32%, var(--line)) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--orange) 14%, var(--panel)), color-mix(in srgb, var(--orange) 24%, var(--panel))) !important;
  color: var(--ink) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--orange) 12%, transparent) !important;
}

body.premium-fullscreen .premium-card.active,
body.premium-fullscreen .premium-card:hover {
  border-color: color-mix(in srgb, var(--orange) 36%, var(--line)) !important;
  background: color-mix(in srgb, var(--orange) 5%, var(--panel)) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--orange) 10%, transparent) !important;
}

body.premium-fullscreen .premium-card.active .premium-card-img,
body.premium-fullscreen .premium-card-img,
body.premium-fullscreen.premium-detail-open .premium-selected-img,
body.premium-fullscreen .premium-selected-img {
  background: color-mix(in srgb, var(--panel) 92%, var(--page)) !important;
  box-shadow: none !important;
}

body.premium-fullscreen .premium-card-price,
body.premium-fullscreen .premium-stock-line,
body.premium-fullscreen .premium-mobile-title > span,
body.premium-fullscreen.premium-detail-open .premium-mobile-title > span,
body.premium-fullscreen.premium-detail-open .premium-demo-note,
.premium-coupon-card,
.premium-coupon-result,
.payment-credit-note,
.checkout-assurance {
  border-color: color-mix(in srgb, var(--orange) 14%, var(--line)) !important;
  background: color-mix(in srgb, var(--orange) 7%, var(--panel)) !important;
  color: color-mix(in srgb, var(--ink) 82%, var(--orange)) !important;
  box-shadow: none !important;
}

body.premium-fullscreen .premium-card.active .premium-card-action,
body.premium-fullscreen .premium-card-action,
body.premium-fullscreen.premium-detail-open .premium-buy-form .gold-btn,
body.premium-fullscreen .premium-buy-form .gold-btn {
  border-color: color-mix(in srgb, var(--orange) 22%, var(--line)) !important;
  background: color-mix(in srgb, var(--panel) 92%, var(--page)) !important;
  color: color-mix(in srgb, var(--ink) 74%, var(--orange)) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06) !important;
}

body.premium-fullscreen .premium-mobile-price,
body.premium-fullscreen.premium-detail-open .premium-mobile-price,
body.premium-fullscreen .premium-price-box strong,
body.premium-fullscreen.premium-detail-open .premium-price-box strong,
.cart-final-price,
.wallet-balance {
  color: color-mix(in srgb, var(--orange) 86%, var(--ink)) !important;
  background: transparent !important;
}

button:not(:disabled):hover,
.light-btn:not(:disabled):hover,
.ghost:not(:disabled):hover,
.gold-btn:not(:disabled):hover,
.primary-btn:not(:disabled):hover,
.small-btn:not(:disabled):hover,
.slider-btn:not(:disabled):hover,
.modal-close:not(:disabled):hover,
.toast-close:not(:disabled):hover,
.category-chip-row button:not(:disabled):hover,
.premium-chip-row button:not(:disabled):hover,
.theme-preset-card:hover,
.game-pick-card:not(:disabled):hover,
.pack-pick-card:not(:disabled):hover,
.premium-card:not(:disabled):hover,
.product-card:hover,
.recommend-card:hover,
.wallet-methods label:hover,
.quick-amounts button:not(:disabled):hover,
.admin-tabs button:not(:disabled):hover {
  transform: translateY(-1px) scale(1.012) !important;
  filter: none !important;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--orange) 10%, transparent) !important;
}

button:not(:disabled):active,
.light-btn:not(:disabled):active,
.ghost:not(:disabled):active,
.gold-btn:not(:disabled):active,
.primary-btn:not(:disabled):active,
.small-btn:not(:disabled):active,
.slider-btn:not(:disabled):active,
.modal-close:not(:disabled):active,
.toast-close:not(:disabled):active,
.category-chip-row button:not(:disabled):active,
.premium-chip-row button:not(:disabled):active,
.theme-preset-card:active,
.game-pick-card:not(:disabled):active,
.pack-pick-card:not(:disabled):active,
.premium-card:not(:disabled):active,
.product-card:active,
.recommend-card:active,
.wallet-methods label:active,
.quick-amounts button:not(:disabled):active,
.admin-tabs button:not(:disabled):active {
  transform: translateY(1px) scale(.98) !important;
  background: color-mix(in srgb, var(--orange) 12%, var(--panel)) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--orange) 5%, transparent) !important;
}

/* flat eye icon on password fields */
.input-wrap:has(.password-toggle),
#authModal .input-wrap:has(.password-toggle) {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) 28px !important;
  align-items: center !important;
  gap: 8px !important;
  padding-right: 12px !important;
}

#authModal .input-wrap:has(.password-toggle) {
  grid-template-columns: 19px minmax(0, 1fr) 28px !important;
}

.password-toggle,
#authModal .password-toggle {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: color-mix(in srgb, var(--muted) 78%, var(--orange)) !important;
  box-shadow: none !important;
  transform: none !important;
}

.password-toggle:hover,
.password-toggle:active,
#authModal .password-toggle:hover,
#authModal .password-toggle:active {
  background: transparent !important;
  color: var(--orange) !important;
  box-shadow: none !important;
  transform: scale(1.08) !important;
}

.password-toggle.is-visible,
#authModal .password-toggle.is-visible {
  border: 0 !important;
  background: transparent !important;
  color: var(--orange) !important;
}

.password-toggle .icon,
#authModal .password-toggle .icon {
  width: 18px !important;
  height: 18px !important;
  background: transparent !important;
}

/* reliable auth checkbox state */
.check-row input[type="checkbox"],
#authModal .check-row input[type="checkbox"] {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  appearance: none !important;
  border: 1px solid color-mix(in srgb, var(--orange) 28%, var(--line)) !important;
  border-radius: 6px !important;
  background: var(--panel) !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.check-row input[type="checkbox"]::after,
#authModal .check-row input[type="checkbox"]::after {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 2px !important;
  width: 5px !important;
  height: 10px !important;
  border-right: 2px solid color-mix(in srgb, var(--ink) 84%, var(--panel)) !important;
  border-bottom: 2px solid color-mix(in srgb, var(--ink) 84%, var(--panel)) !important;
  opacity: 0 !important;
  transform: rotate(45deg) scale(.78) !important;
  transition: opacity .16s ease, transform .16s ease !important;
}

.check-row input[type="checkbox"]:checked,
#authModal .check-row input[type="checkbox"]:checked {
  border-color: color-mix(in srgb, var(--orange) 48%, var(--line)) !important;
  background: color-mix(in srgb, var(--orange) 18%, var(--panel)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 12%, transparent) !important;
}

.check-row input[type="checkbox"]:checked::after,
#authModal .check-row input[type="checkbox"]:checked::after {
  opacity: 1 !important;
  transform: rotate(45deg) scale(1) !important;
}

/* theme-driven admin surfaces */
#adminView .admin-tabs button,
#adminView .metric-card,
#adminView .sales-chart-card,
#adminView .settings-card,
#adminView .panel {
  border-color: color-mix(in srgb, var(--orange) 24%, var(--line)) !important;
}

#adminView .admin-tabs button {
  background: color-mix(in srgb, var(--panel) 92%, var(--page)) !important;
  color: var(--ink) !important;
}

#adminView .admin-tabs button.active,
#adminView .admin-tabs button:hover {
  border-color: color-mix(in srgb, var(--orange) 54%, var(--line)) !important;
  background: linear-gradient(135deg, var(--gold), var(--orange)) !important;
  color: color-mix(in srgb, var(--ink) 82%, var(--panel)) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--orange) 18%, transparent) !important;
}

#adminView .admin-tabs button .icon,
#adminView .admin-section-head .icon,
#adminView .metric-card .icon {
  color: var(--orange) !important;
  stroke: currentColor !important;
}

#adminView .metric-card strong,
#adminView .sales-chart-summary strong,
#adminView .sales-chart-insights b,
#adminView .sales-chart-head .auth-kicker {
  color: var(--orange) !important;
}

#adminView .sales-chart-insights span,
#adminView .sales-chart-legend span {
  background: color-mix(in srgb, var(--orange) 9%, var(--panel)) !important;
  color: color-mix(in srgb, var(--ink) 78%, var(--orange)) !important;
}

#adminView .sales-y-tick line,
#adminView .sales-chart-card input,
#adminView .settings-block {
  border-color: color-mix(in srgb, var(--orange) 18%, var(--line)) !important;
}

/* even premium product cards */
body.premium-fullscreen .premium-grid {
  align-items: stretch !important;
}

body.premium-fullscreen .premium-card {
  display: grid !important;
  grid-template-rows: 168px minmax(132px, 1fr) 58px !important;
  height: 100% !important;
  min-height: 360px !important;
  padding-bottom: 10px !important;
}

body.premium-fullscreen .premium-card-img {
  width: 100% !important;
  height: 168px !important;
  min-height: 168px !important;
  aspect-ratio: auto !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  background: color-mix(in srgb, var(--panel) 94%, var(--page)) !important;
}

body.premium-fullscreen .premium-card-img img,
body.premium-fullscreen .premium-card-img .premium-img-fallback {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  padding: 0 !important;
}

body.premium-fullscreen .premium-card-body {
  display: grid !important;
  grid-template-rows: minmax(38px, auto) auto auto auto 1fr !important;
  align-content: start !important;
  min-height: 132px !important;
}

body.premium-fullscreen .premium-card-body strong {
  min-height: 38px !important;
}

body.premium-fullscreen .premium-card-price {
  justify-content: center !important;
  width: 100% !important;
  min-height: 30px !important;
  margin-top: 2px !important;
}

body.premium-fullscreen .premium-card-bottom {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(44px, 80px) !important;
  align-items: center !important;
  align-self: end !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 48px !important;
  margin-top: auto !important;
  padding: 0 10px !important;
}

body.premium-fullscreen .premium-stock-line,
body.premium-fullscreen .premium-card-action {
  width: 100% !important;
  min-height: 34px !important;
  margin: 0 !important;
}

/* keep premium product copy visible after card/image sizing overrides */
body.premium-fullscreen .premium-card::after {
  content: none !important;
  display: none !important;
}

body.premium-fullscreen .premium-card-body,
body.premium-fullscreen .premium-card-body *,
body.premium-fullscreen .premium-mobile-detail-box,
body.premium-fullscreen .premium-mobile-detail-box * {
  visibility: visible !important;
  opacity: 1 !important;
}

body.premium-fullscreen .premium-card-body {
  display: grid !important;
  grid-template-rows: auto auto auto auto auto !important;
  gap: 8px !important;
  align-content: start !important;
  min-height: 132px !important;
  padding: 8px 14px 0 !important;
  color: var(--ink) !important;
  overflow: visible !important;
}

body.premium-fullscreen .premium-card-body strong {
  display: -webkit-box !important;
  min-height: 38px !important;
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.28 !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body.premium-fullscreen .premium-card-name {
  position: relative !important;
  z-index: 2 !important;
  display: -webkit-box !important;
  min-height: 40px !important;
  color: #102519 !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1.3 !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body.premium-fullscreen .premium-card-body small,
body.premium-fullscreen .premium-detail-line,
body.premium-fullscreen .agent-price-note {
  color: color-mix(in srgb, var(--ink) 58%, var(--muted)) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

body.premium-fullscreen .premium-provider-line,
body.premium-fullscreen .premium-soldout-badge {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  min-height: 24px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  color: color-mix(in srgb, var(--orange) 78%, var(--ink)) !important;
  background: color-mix(in srgb, var(--orange) 9%, var(--panel)) !important;
}

body.premium-fullscreen .premium-detail-line {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 20px !important;
  margin-top: 2px !important;
}

body.premium-fullscreen .premium-detail-line .icon {
  width: 13px !important;
  height: 13px !important;
  color: currentColor !important;
  background: transparent !important;
}

body.premium-fullscreen .premium-mobile-detail-box {
  color: var(--ink) !important;
}

@media (max-width: 760px) {
  body.premium-fullscreen .premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  body.premium-fullscreen .premium-card {
    grid-template-rows: 150px minmax(128px, 1fr) 42px !important;
    min-height: 320px !important;
    height: 100% !important;
    padding-bottom: 7px !important;
  }

  body.premium-fullscreen .premium-card-img {
    height: 116px !important;
    min-height: 116px !important;
    padding: 0 !important;
  }

  body.premium-fullscreen .premium-card-body {
    grid-template-rows: auto auto auto auto auto !important;
    min-height: 128px !important;
    gap: 6px !important;
    padding-top: 8px !important;
  }

  body.premium-fullscreen .premium-card-body strong,
  body.premium-fullscreen .premium-card-name {
    min-height: 38px !important;
    font-size: 13px !important;
    line-height: 1.28 !important;
  }

  body.premium-fullscreen .premium-card-price {
    min-height: 24px !important;
  }

  body.premium-fullscreen .premium-card-bottom {
    grid-template-columns: minmax(0, 1fr) 42px !important;
    min-height: 38px !important;
    gap: 6px !important;
    padding: 0 7px !important;
  }

  body.premium-fullscreen .premium-stock-line,
  body.premium-fullscreen .premium-card-action {
    min-height: 28px !important;
  }
}

/* final premium mobile card lock */
@media (max-width: 760px) {
  body.premium-fullscreen .premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.premium-fullscreen .premium-card {
    display: grid !important;
    grid-template-rows: 150px minmax(138px, auto) 42px !important;
    min-height: 334px !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  body.premium-fullscreen .premium-card-img {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 150px !important;
    min-height: 150px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  body.premium-fullscreen .premium-card-img img,
  body.premium-fullscreen .premium-card-img .premium-img-fallback {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.premium-fullscreen .premium-card-body {
    position: relative !important;
    z-index: 3 !important;
    display: grid !important;
    grid-template-rows: auto auto auto auto auto !important;
    gap: 6px !important;
    min-height: 138px !important;
    padding: 9px 10px 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  body.premium-fullscreen .premium-card-name,
  body.premium-fullscreen .premium-card-body > strong {
    position: relative !important;
    z-index: 4 !important;
    display: block !important;
    min-height: 34px !important;
    margin: 0 !important;
    color: #102519 !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }

  body.premium-fullscreen .premium-detail-line {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 18px !important;
    color: #52665b !important;
    font-size: 10.5px !important;
  }
}

/* premium image final override: do not show hidden fallback over real images */
body.premium-fullscreen .premium-card-img img[hidden],
body.premium-fullscreen .premium-card-img .premium-img-fallback[hidden],
body.premium-fullscreen .premium-selected-img img[hidden],
body.premium-fullscreen .premium-selected-img .premium-img-fallback[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body.premium-fullscreen .premium-card-img img:not([hidden]) {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.premium-fullscreen .premium-card-img .premium-img-fallback:not([hidden]) {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #f8fafc !important;
  background:
    radial-gradient(circle at 68% 20%, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(135deg, #334155, #111827) !important;
}

/* admin tab icon cleanup */
#adminView .admin-tabs button .icon,
.admin-tabs button .icon {
  width: 16px !important;
  height: 16px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#adminView .admin-tabs button.active .icon,
#adminView .admin-tabs button:hover .icon,
.admin-tabs button.active .icon,
.admin-tabs button:hover .icon {
  color: currentColor !important;
  background: transparent !important;
}

/* loader logo centering */
.page-loader-card {
  grid-template-rows: 150px auto !important;
  align-content: center !important;
  gap: 18px !important;
  min-height: 230px !important;
}

.page-loader-orbit {
  top: 0 !important;
  left: 50% !important;
  margin-left: -75px !important;
}

.page-loader-logo {
  position: relative !important;
  z-index: 1 !important;
  grid-row: 1 !important;
  width: 150px !important;
  height: 150px !important;
  animation: loader-logo-breathe-centered 2.4s ease-in-out infinite !important;
}

.page-loader-logo .site-logo-image,
.page-loader-logo .logo-mark {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.page-loader-logo .site-logo-image {
  width: 88px !important;
  height: 88px !important;
}

.page-loader-logo .logo-mark {
  width: 78px !important;
  height: 78px !important;
}

.page-loader-logo strong {
  position: absolute !important;
  top: calc(50% + 48px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
}

.page-loader p {
  grid-row: 2 !important;
}

@keyframes loader-logo-breathe-centered {
  0%, 100% { opacity: .84; transform: scale(.985); }
  50% { opacity: 1; transform: scale(1.015); }
}

/* premium mobile detail final surface alignment */
@media (max-width: 760px) {
  body.premium-fullscreen.premium-detail-open {
    overflow-x: hidden !important;
    background: #f5fff8 !important;
  }

  body.premium-fullscreen.premium-detail-open main,
  body.premium-fullscreen.premium-detail-open #premiumAppsView,
  body.premium-fullscreen.premium-detail-open .premium-page,
  body.premium-fullscreen.premium-detail-open .premium-shell,
  body.premium-fullscreen.premium-detail-open .premium-layout {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-checkout-panel {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: calc(10px + env(safe-area-inset-top)) 8px calc(14px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #fbfffc 0%, #f4fff7 100%) !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-selected {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-buy-form {
    width: 100% !important;
    max-width: none !important;
    margin: 8px 0 0 !important;
    padding: 0 0 calc(10px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.premium-fullscreen.premium-detail-open .premium-mobile-detail-box,
  body.premium-fullscreen.premium-detail-open .premium-coupon-card,
  body.premium-fullscreen.premium-detail-open .premium-buy-form .gold-btn {
    box-sizing: border-box !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

/* premium products page breathing room */
body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
  box-sizing: border-box !important;
  width: min(100% - 96px, 1480px) !important;
  max-width: 1480px !important;
  margin-inline: auto !important;
}

body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
  box-sizing: border-box !important;
  padding: 24px 28px 30px !important;
  border-radius: 14px !important;
}

body.premium-fullscreen:not(.premium-detail-open) .premium-grid {
  gap: 18px !important;
}

@media (max-width: 900px) {
  body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
    width: min(100% - 56px, 720px) !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
    padding: 18px 18px 22px !important;
  }
}

@media (max-width: 560px) {
  body.premium-fullscreen:not(.premium-detail-open) .premium-shell {
    width: min(100% - 40px, 520px) !important;
  }

  body.premium-fullscreen:not(.premium-detail-open) .premium-products-panel {
    padding: 14px 14px 18px !important;
    border-radius: 16px !important;
  }
}
