/* ============================================================
   剑宗奇缘充值商城 — 样式表
   设计还原: jzqycharge.md9.cn
   适配: 320px ~ 540px 移动端 + 平板/桌面端居中
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #f5f0ea;
  color: #3a2a22;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body { min-height: 100%; margin: 0; }
button, input { font: inherit; }
button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus, button:focus-visible { outline: none; }

/* ============================================================
   Toast
   ============================================================ */
.app-toast {
  position: fixed; top: 24px; left: 50%; z-index: 80;
  display: inline-flex; align-items: center; gap: 8px;
  max-width: min(90vw, 480px);
  padding: 10px 18px; border-radius: 999px;
  color: #fff; background: rgba(34,24,20,.92);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  font-size: 14px; line-height: 1.2; letter-spacing: .02em;
  transform: translateX(-50%);
}
.app-toast__dot { width: 8px; height: 8px; border-radius: 999px; background: #5cc66c; }
.app-toast--error .app-toast__dot { background: #ff6a58; }

/* ============================================================
   Page Shell
   ============================================================ */
.page-shell {
  min-height: 100vh;
  display: flex; justify-content: center; align-items: stretch;
  padding: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(242,156,42,.16), transparent 28rem),
    linear-gradient(135deg, #f7efe8 0%, #fffaf6 48%, #edf4f1 100%);
}

/* ============================================================
   Store Container
   ============================================================ */
.store {
  width: min(100vw, 540px);
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 24px 80px rgba(61,38,16,.16);
  position: relative;
}

.payment-result {
  width: min(100vw, 540px);
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 24px 80px rgba(61,38,16,.07);
}
.payment-result__nav {
  height: 56px;
  display: grid; grid-template-columns: 54px minmax(0,1fr) 54px;
  align-items: center;
  background: #f6f6f6; color: #242424;
}
.payment-result__nav button {
  width: 54px; height: 56px;
  display: grid; place-items: center;
  background: transparent;
}
.payment-result__nav button::before {
  content: ""; width: 11px; height: 11px;
  border-left: 3px solid #3c3c3c; border-bottom: 3px solid #3c3c3c;
  transform: rotate(45deg);
}
.payment-result__nav strong { font-size: 18px; font-weight: 600; text-align: center; }
.payment-result__body {
  min-height: calc(100vh - 56px);
  display: flex; flex-direction: column; align-items: center;
  padding-top: min(31vh, 260px);
}
.payment-result__body img { width: 58px; height: 58px; object-fit: contain; }
.payment-result__body h1 { margin: 24px 0 0; color: #181818; font-size: 24px; font-weight: 400; line-height: 1.2; }
.payment-result__button {
  width: 152px; height: 44px; margin-top: 120px;
  border-radius: 4px; color: #fff; background: #f0504d;
  font-size: 19px; font-weight: 400;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 126px;
  background:
    url("../img/banner-main.png") center 20% / cover no-repeat,
    linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
}
.hero__shade {
  min-height: 126px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  padding: 14px 10px 0;
  background: linear-gradient(180deg, rgba(17,11,9,.1) 0%, rgba(19,12,11,.64) 100%);
}

.game-line {
  display: grid; grid-template-columns: 68px minmax(0,1fr) 64px;
  gap: 14px; align-items: center;
}
.game-line__icon {
  width: 68px; height: 68px; border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0,0,0,.24);
  background: linear-gradient(135deg, #d4a853, #f0d078);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.game-line__text {
  min-width: 0;
  display: flex; align-items: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.game-line__text strong {
  font-size: clamp(18px, 5.4vw, 25px);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-button {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  justify-self: end;
  background: transparent;
  transition: transform .16s ease;
}
.icon-button:active { transform: scale(.96); }

.logout-button {
  width: 100%; height: 36px; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  color: #fff; font-size: 13px;
  transition: background .2s ease;
}
.logout-button:active { background: rgba(255,255,255,.4); }

.role-bar {
  height: 46px;
  display: grid; grid-template-columns: 30px 1fr 16px;
  gap: 10px; align-items: center;
  position: relative;
  margin: 0; padding: 0 16px; overflow: hidden;
  color: rgba(255,255,255,.94);
  background: transparent;
  text-align: left;
  font-size: clamp(16px, 4.2vw, 20px); line-height: 1;
}
.role-bar::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(18,13,12,.66), rgba(17,12,11,.56));
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(0,0,0,.18);
}
.role-bar > * { position: relative; z-index: 1; }
.role-bar img, .role-bar svg { width: 28px; height: 28px; object-fit: contain; }
.role-bar span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.role-bar__arrow { width: 11px !important; height: 18px !important; }

/* ============================================================
   Category Tabs
   ============================================================ */
.tabs {
  position: sticky; top: 0; z-index: 5;
  height: 50px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 0 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(136,96,64,.1);
}
.tab {
  min-width: 0; height: 36px;
  display: grid; place-items: center;
  border-radius: 0;
  background: transparent;
  color: #79685c;
  font-size: clamp(15px, 4.1vw, 17px); line-height: 36px;
  white-space: nowrap;
  transition: background-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}
.tab--active {
  color: #fff;
  background: linear-gradient(180deg, #ffa62a 0%, #f48708 100%);
  border-radius: 18px 0;
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(239,126,7,.16);
}

/* ============================================================
   Content
   ============================================================ */
.content { padding: 12px 18px 42px; transition: padding-bottom .2s ease; }
.store--has-selection .content { padding-bottom: 116px; }

.section-title {
  min-height: 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
  color: #8f7a6a; font-size: 20px; font-weight: 400;
}

/* ============================================================
   Product Grid & Cards
   ============================================================ */
.product-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  animation: productFade .22s ease both;
}

.product-card {
  position: relative;
  height: 206px;
  display: grid; grid-template-rows: 90px 34px 20px 42px;
  justify-items: center; align-items: end;
  padding: 20px 10px 0; overflow: hidden;
  border: 1px solid #f1dcd0;
  border-radius: 8px 8px 22px 8px;
  color: #744b35;
  background: #fffaf7;
  box-shadow: 0 4px 10px rgba(130,71,32,.05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  cursor: pointer;
}
.product-card::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 42px; z-index: 0;
  border-radius: 0 0 22px 0;
  background: #fde9df;
}
.product-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 42px;
  height: 1px; z-index: 0;
  background: rgba(239,216,205,.88);
}
.product-card:hover,
.product-card--selected {
  border-color: #f39133;
  box-shadow: 0 8px 22px rgba(238,126,21,.2), inset 0 0 0 1px rgba(243,145,51,.34);
  transform: translateY(-2px);
}
.product-card--selected { animation: selectPulse .22s ease; }

/* Disabled state */
.product-card--disabled {
  opacity: .5; cursor: not-allowed;
  filter: grayscale(.6);
}
.product-card--disabled:hover {
  border-color: #f1dcd0;
  box-shadow: 0 4px 10px rgba(130,71,32,.05);
  transform: none;
}
.product-card__reason {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,250,247,.7);
  color: #c0392b; font-size: 14px; font-weight: 700;
  border-radius: 8px 8px 22px 8px;
}

/* Badges */
.product-card__badges {
  position: absolute; top: 0; left: 0; z-index: 1;
  display: flex; align-items: center; gap: 0;
  max-width: 100%;
  color: #eb6b24; font-size: 12px; font-weight: 700; line-height: 1.1;
  white-space: nowrap;
}
.product-card__badge-tag {
  min-width: 44px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; z-index: 0;
  padding: 0 10px 1px 8px;
  color: #fff9df; font-size: 11px; font-weight: 700;
  line-height: 1; white-space: nowrap;
  background: linear-gradient(135deg, #e84040, #c53030);
  border-radius: 0 0 6px 0;
}
.product-card__badge-tag--bonus {
  height: 26px;
  padding: 0 12px 1px 10px;
  font-size: 13px;
}
.product-card__badge-icon {
  width: 16px; height: 16px;
  margin: 0 2px 0 5px;
  flex-shrink: 0;
}
.product-card__badges em {
  max-width: 90px; overflow: hidden;
  font-style: normal; font-size: 13px;
  white-space: nowrap; text-overflow: ellipsis;
  margin-left: 4px;
}
.product-card__timer {
  position: absolute; top: 3px; right: 7px; z-index: 1;
  color: #60ae2c; font-size: 12px; font-weight: 700;
}

/* Product image placeholder */
.product-card__image {
  position: relative; z-index: 1;
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  transition: transform .18s ease;
  border-radius: 12px;
}
.product-card__image img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.product-card--selected .product-card__image { transform: scale(1.05); }

.product-card strong {
  position: relative; z-index: 1;
  max-width: 100%; align-self: center; margin-top: 0;
  overflow: hidden;
  color: #bc5f2c; font-size: 18px; font-weight: 400;
  line-height: 1.3; white-space: nowrap; text-overflow: ellipsis;
}
.product-card__price {
  position: relative; z-index: 1;
  width: calc(100% + 20px); height: 42px;
  display: flex; align-items: center; justify-content: center;
  align-self: center; justify-self: stretch;
  margin-inline: -10px;
  color: #d8502f; font-size: 24px; font-weight: 400;
  line-height: 1.2; text-align: center;
}
.product-card__count {
  position: relative; z-index: 1;
  color: #b9845e; font-size: 13px; text-align: center;
  margin-top: 2px;
}

/* ============================================================
   Recharge Bar
   ============================================================ */
.recharge-bar {
  position: fixed; left: 50%; bottom: 0; z-index: 24;
  width: min(100vw, 540px);
  display: grid; grid-template-columns: minmax(0, 1fr) 128px;
  gap: 12px; align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  box-shadow: 0 -8px 24px rgba(112,69,38,.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%);
}
.recharge-bar__info {
  min-width: 0;
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  gap: 7px; align-items: baseline;
  background: transparent; color: #8b796b; text-align: left;
}
/* 特惠商品显示数量选择器时扩展为 4 列 */
.recharge-bar--has-qty .recharge-bar__info {
  grid-template-columns: auto minmax(0,1fr) auto auto;
}
.recharge-bar__info strong {
  overflow: hidden; color: #51372a;
  white-space: nowrap; text-overflow: ellipsis;
}
.recharge-bar__info em { color: #e84f43; font-style: normal; font-weight: 700; }
.recharge-bar__button { width: 128px; }

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
  min-height: 260px;
  display: grid; place-items: center; align-content: center;
  gap: 10px; color: #b6aaa0;
}
.empty-state img { width: 44px; height: 44px; opacity: .55; }

/* ============================================================
   Overlay
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 30;
  display: flex; justify-content: center; align-items: flex-end;
  padding: 16px;
  background: rgba(0,0,0,.68);
}
.overlay--bottom { align-items: flex-end; }
.login-overlay { align-items: center; background: rgba(0,0,0,.55); }

/* ============================================================
   Sheet
   ============================================================ */
.sheet {
  width: min(100%, 520px); position: relative;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 -18px 60px rgba(0,0,0,.22);
  animation: sheetUp .22s cubic-bezier(.2,.8,.2,1) both;
}
.sheet h2, .qr-dialog h2 {
  margin: 0; color: #4b3528; font-size: 18px; font-weight: 600;
  line-height: 50px; text-align: center;
  border-bottom: 1px solid #eee7e1;
}
.sheet--compact { padding: 0 14px 14px; }
.sheet--picker { max-height: 62vh; overflow: auto; padding-bottom: 12px; }

.sheet--search {
  align-self: flex-start;
  display: flex; flex-direction: column;
  height: calc(100vh - 96px); max-height: calc(100vh - 96px);
  margin-top: 72px; padding: 0 18px; overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.close-button {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: transparent; color: #b9afa9;
  font-size: 32px; line-height: 1;
}
.selector-row {
  width: 100%; height: 52px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #f0e9e2;
  background: #fff; color: #6f5e52;
}
.selector-row strong { color: #b5aaa2; font-weight: 500; }
.sheet-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; margin-top: 18px;
}

.ghost-button, .primary-button, .danger-button {
  height: 42px; border-radius: 3px; font-weight: 700;
}
.ghost-button {
  color: #c47c24; background: #fff;
  box-shadow: inset 0 0 0 1px #f1a43d;
}
.primary-button {
  color: #fff;
  background: linear-gradient(180deg, #ffa51d, #f17e08);
}
.danger-button {
  min-width: 128px; color: #fff;
  background: linear-gradient(180deg, #ff6a58, #ef4237);
}
.danger-button:disabled { opacity: .65; }

.picker-option {
  width: 100%; min-height: 48px;
  padding: 0 22px;
  background: #fff; color: #958980;
  font-size: 16px;
}
.picker-option--active {
  color: #5b4030; background: #f6f7f8; font-weight: 700;
}

.search-box {
  flex: 0 0 auto; height: 48px;
  display: grid; grid-template-columns: 1fr 42px;
  align-items: center; margin-top: 18px;
  padding-left: 14px; border-radius: 24px;
  background: #f7f7f7;
}
.search-box input {
  min-width: 0; border: 0; outline: 0; background: transparent;
  color: #4f4037;
}
.search-box button {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: transparent;
}
.search-results {
  flex: 1 1 auto; align-content: start;
  grid-auto-rows: 190px; min-height: 0;
  margin: 14px -2px 0; padding: 0 2px 28px;
  overflow-y: auto; overscroll-behavior: contain;
}
.search-empty { flex: 1 1 auto; min-height: 280px; padding-bottom: 88px; }

.search-recharge-bar {
  flex: 0 0 auto; position: relative; z-index: 5;
  display: grid; grid-template-columns: minmax(0,1fr) 128px;
  gap: 12px; align-items: center;
  margin: 12px -18px 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  box-shadow: 0 -8px 24px rgba(112,69,38,.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ============================================================
   Payment Sheet
   ============================================================ */
.payment-sheet { padding: 0 14px 18px; }
.payment-header {
  min-height: 48px;
  display: flex; align-items: center; gap: 8px;
  padding-right: 36px;
  border-bottom: 1px solid #f2ece8;
}
.payment-header strong { flex: 0 0 auto; color: #181818; font-size: 22px; font-weight: 400; line-height: 1; }
.payment-header span {
  min-width: 0; overflow: hidden; color: #969696;
  font-size: 12px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis;
}
.order-summary { display: grid; gap: 8px; padding: 12px 0 14px; border-bottom: 1px solid #ececec; }
.order-summary p { margin: 0; }
.order-summary__product { color: #181818; font-size: 15px; line-height: 1.35; }
.order-summary__product span, .order-summary__product strong { font-weight: 400; }
.order-summary__reward { color: #666; font-size: 12px; line-height: 1.55; }
.order-summary__reward span { color: #666; }

/* ============================================================
   充值栏数量选择器（紧凑版）
   ============================================================ */
.recharge-bar__qty {
  display: inline-flex; align-items: center;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #d5c9bc;
  overflow: hidden;
  flex: 0 0 auto;
}
.recharge-bar__qty-btn {
  width: 28px; height: 26px;
  display: grid; place-items: center;
  padding: 0;
  background: #f9f6f3;
  color: #6b5544; font-size: 16px; font-weight: 500;
  line-height: 1;
  transition: background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.recharge-bar__qty-btn:hover { background: #ede6df; }
.recharge-bar__qty-btn:active { background: #e0d6ce; }
.recharge-bar__qty-btn:disabled {
  color: #ccc; background: #f9f6f3;
  cursor: not-allowed;
}
.recharge-bar__qty-val {
  min-width: 32px; height: 26px;
  display: grid; place-items: center;
  padding: 0 4px;
  background: #fff;
  color: #5b4030; font-size: 14px; font-weight: 600;
  text-align: center;
  border-left: 1px solid #d5c9bc;
  border-right: 1px solid #d5c9bc;
}

.pay-methods {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-top: 14px;
}
.pay-method {
  position: relative; min-height: 44px;
  display: grid; grid-template-columns: 24px 1fr;
  gap: 8px; align-items: center;
  padding: 8px; border-radius: 4px;
  background: #fff; color: #4f4037; text-align: left;
  box-shadow: inset 0 0 0 1px #eee4dc;
}
.pay-method--recommended { padding-top: 12px; }
.pay-method--active { background: #fbe6e8; box-shadow: inset 0 0 0 1px #f1c9cd; }
.pay-method--disabled { opacity: .4; cursor: not-allowed; background: #e8e3df; }
.pay-method img, .pay-method svg { width: 24px; height: 24px; object-fit: contain; }
.pay-method span { min-width: 0; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.pay-method em {
  position: absolute; top: 0; left: 0; z-index: 1;
  padding: 2px 6px; border-radius: 4px 0 4px 0;
  color: #fff; background: #fa3d2d;
  font-size: 10px; font-style: normal;
}

.pay-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 16px;
}
.pay-footer span { color: #89786d; }
.pay-footer strong { color: #e84f43; font-size: 18px; }
.error-text { margin: 12px 0 0; color: #df4b38; font-size: 13px; }

/* ============================================================
   QR Dialog
   ============================================================ */
.qr-dialog {
  width: min(86vw, 310px); position: relative;
  align-self: center; padding-bottom: 20px;
  border-radius: 4px; background: #fff;
  text-align: center;
  animation: popIn .2s ease both;
}
.qr-dialog strong { color: #e84f43; font-size: 20px; }
.qr-dialog__hint {
  margin: 0 16px 8px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; color: #8b7c72; font-size: 14px;
}
.qr-dialog__hint svg, .qr-dialog__hint img { width: 16px; height: 16px; }

.modal-qrcode {
  width: 160px; height: 160px;
  margin: 18px auto 10px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.modal-qrcode img, .modal-qrcode canvas { width: 100%; height: 100%; }

/* ============================================================
   Login Dialog (matches gm/wendaocharge LoginDialog.vue)
   ============================================================ */
.login-dialog {
  width: min(100%, 440px); position: relative;
  padding: 26px 28px 28px; border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
  animation: loginPop .22s ease both;
}
.login-dialog__close {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: transparent; color: #b9afa9;
  font-size: 28px; line-height: 1;
}
.login-dialog__header {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; margin-top: 4px;
}
.login-form {
  display: flex; flex-direction: column;
  gap: 0; margin-top: 18px;
}
.login-field {
  display: flex; align-items: center;
  height: 48px; padding: 0 16px;
  border-radius: 24px;
  background: #f7f7f7;
  transition: background-color .18s ease;
}
.login-field:focus-within { background: #f1f1f1; }
.login-field input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  color: #2f2520; font-size: 15px;
}
.login-field input::placeholder { color: #b8aea6; }
.login-field__eye {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  padding: 0; margin: 0 -8px 0 2px;
  border-radius: 999px;
  background: transparent;
  color: #b8aea6;
  transition: color .18s ease, background-color .18s ease;
  cursor: pointer;
}
.login-field__eye:hover,
.login-field__eye:active { color: #8b796b; background: rgba(0,0,0,.04); }
.eye-icon { transition: opacity .15s ease; }

.login-form__error {
  margin: 8px 0 0; color: #df4b38; font-size: 13px; text-align: center;
}
.login-submit {
  width: auto; min-width: 140px;
  align-self: center;
  height: 46px; padding: 0 36px; border-radius: 23px;
  color: #fff;
  background: linear-gradient(180deg, #ff7e3a, #f04e1f);
  font-size: 17px; font-weight: 600;
  letter-spacing: .2em;
  box-shadow: 0 8px 18px rgba(240,78,31,.22);
  transition: opacity .18s ease;
}
.login-submit:disabled { opacity: .55; box-shadow: none; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes loginPop {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes sheetUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes productFade {
  from { opacity: .72; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes selectPulse {
  0%   { transform: translateY(0) scale(1); }
  60%  { transform: translateY(-2px) scale(1.015); }
  100% { transform: translateY(-2px) scale(1); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 760px) {
  .page-shell { padding: 32px 0; align-items: flex-start; }
  .store, .payment-result {
    min-height: calc(100vh - 64px);
    border-radius: 12px; overflow: hidden;
  }
  .sheet { border-radius: 8px; }
}
@media (max-width: 360px) {
  .content { padding-inline: 12px; }
  .product-grid { gap: 10px; }
  .product-card {
    height: 186px;
    grid-template-rows: 80px 30px 18px 40px;
    padding-top: 18px;
  }
  .search-results { grid-auto-rows: 172px; }
  .recharge-bar, .search-recharge-bar {
    grid-template-columns: minmax(0,1fr) 112px;
    padding-inline: 12px;
  }
  .recharge-bar__button { width: 112px; }
  .sheet-actions { gap: 28px; }
  .pay-method span { font-size: 12px; }
  .login-dialog { padding: 22px 18px; }
}
