/* ---------- Floating WeChat pill + tip ---------- */
.wx-float { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: grid; justify-items: end; gap: 12px; }

.wx-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 11px 16px;
  border: 0;
  border-radius: 24px;
  background: var(--wx);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 22px rgba(7, 193, 96, 0.34);
  transform: translateX(140%);
  animation: pillIn 0.6s var(--ease-out) 0.9s forwards;
  transition: box-shadow 0.25s ease, background-color 0.2s ease;
}

.wx-pill .ico-wechat { width: 18px; height: 18px; }
.wx-pill:hover { background: #09cc66; box-shadow: 0 10px 30px rgba(7, 193, 96, 0.45); }
.wx-pill:active { filter: brightness(0.96); }

.wx-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(7, 193, 96, 0.5);
  animation: pillRing 2.8s ease-out 2s infinite;
  pointer-events: none;
}

.wx-pill { position: relative; }

@keyframes pillIn { to { transform: none; } }
@keyframes pillRing { 0% { box-shadow: 0 0 0 0 rgba(7, 193, 96, 0.45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(7, 193, 96, 0); } }

.wx-pop {
  position: relative;
  width: 304px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 14px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transform-origin: 100% 100%;
  transition: opacity 0.3s ease, transform 0.36s var(--ease-out);
}

.wx-pop[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.wx-pop.is-open { opacity: 1; transform: none; visibility: visible; }

.wx-pop-ico, .wx-card-ico {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(160deg, #1ee07a, #07b356);
  box-shadow: 0 6px 16px rgba(7, 193, 96, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.wx-pop-ico .ico-wechat { width: 20px; height: 20px; }
.wx-pop-title { margin: 1px 22px 4px 0; font-size: 13px; font-weight: 700; color: #fff; }
.wx-pop-text { margin: 0; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, 0.62); }
.wx-pop-actions { display: flex; gap: 8px; margin-top: 10px; }

.wx-pop-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wx-pop-btn:hover { background: rgba(255, 255, 255, 0.09); }
.wx-pop-btn.is-green { border-color: transparent; background: var(--wx); color: #fff; }
.wx-pop-btn.is-green:hover { background: #09cc66; }

.wx-pop-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.wx-pop-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
/* ---------- WeChat modal ---------- */
.sp-wechat .sp-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-wechat .sp-btn { min-width: 0; min-height: 40px; padding-inline: 8px; white-space: normal; line-height: 1.4; }
.wx-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 18px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.06); }
.wx-tab { min-width: 0; min-height: 40px; padding: 10px 12px; border: 0; border-radius: 11px; background: transparent; color: rgba(255,255,255,.55); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.wx-tab[aria-selected="true"] { background: rgba(255,255,255,.12); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.wx-tab:hover { color: #fff; }
@media (max-width: 400px) { .sp-wechat .sp-btn { font-size: 11px; padding-inline: 5px; } }
.wx-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.wx-modal[hidden] { display: none; }

.wx-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.42);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  animation: fadeIn 0.24s ease;
}

.wx-card {
  position: relative;
  width: min(352px, 100%);
  padding: 20px 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.96), rgba(24, 24, 24, 0.96));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: cardIn 0.34s var(--ease-out);
}

.wx-card-head { display: flex; align-items: center; gap: 10px; }
.wx-card-ico { width: 32px; height: 32px; border-radius: 9px; }
.wx-card-ico .ico-wechat { width: 19px; height: 19px; }
.wx-card-head h3 { margin: 0; flex: 1; font-size: 16px; font-weight: 700; }

.wx-close {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.wx-close:hover { background: rgba(255, 255, 255, 0.16); transform: rotate(90deg); }

.wx-context {
  margin: 14px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(7, 193, 96, 0.1);
  border: 1px solid rgba(7, 193, 96, 0.28);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.wx-context b { color: #fff; }
.wx-context small { display: block; color: rgba(255, 255, 255, 0.5); font-size: 11.5px; }

.wx-qr {
  position: relative;
  width: 228px;
  height: 228px;
  margin: 18px auto 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: qrReveal 0.5s var(--ease-out);
}

.wx-qr img { width: 100%; height: 100%; object-fit: cover; }

.wx-qr::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(7, 193, 96, 0.9), transparent);
  box-shadow: 0 0 12px rgba(7, 193, 96, 0.8);
  animation: qrScan 1.6s ease-in-out 0.15s 1 both;
}

.wx-qr-ph {
  position: absolute;
  inset: 14px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  border: 2px dashed rgba(17, 17, 17, 0.16);
  border-radius: 12px;
  color: rgba(17, 17, 17, 0.5);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.wx-qr-ph svg { width: 56px; height: 56px; color: rgba(17, 17, 17, 0.28); }

.wx-qr-label { margin: 12px 0 0; text-align: center; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.7); }

/* The official account has its own entry and never shares a QR panel with support. */
.sp-official-name { margin-left: auto; color: rgba(255,255,255,.62); font-size: 12px; }
.sp-official { border-color: rgba(7,193,96,.18); }
#wxModal .wx-card { width: min(380px,100%); padding: 24px; max-height: calc(100dvh - 40px); }
#wxModal .wx-card-head { position: sticky; top: 0; z-index: 2; padding-block: 3px; background: rgba(32,32,32,.98); }
#wxModal .wx-qr { width: min(256px,100%); height: auto; aspect-ratio: 1; }
#wxModal .wx-qr img { object-fit: contain; }
#wxModal .wx-id-row { margin-inline: 0; }
#wxModal .wx-hint { margin-inline: 0; }
#wxHint::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--wx); box-shadow: 0 0 0 2px rgba(7,193,96,.18); vertical-align: 1px; }

.wx-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 12px 0;
  padding: 7px 7px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.wx-id-k { font-size: 11px; color: rgba(255, 255, 255, 0.45); white-space: nowrap; }
.wx-id-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: #fff; }

.wx-copy {
  height: 26px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.18s ease, background-color 0.2s ease;
}

.wx-copy:hover { background: #ececea; }
.wx-copy:active { transform: scale(0.96); }
.wx-copy.is-done { background: var(--wx); color: #fff; }

.wx-hint { margin: 12px 12px 0; text-align: center; font-size: 11.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.45); }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes qrReveal { from { opacity: 0; transform: scale(0.94); filter: blur(5px); } }
@keyframes qrScan { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }

@media (max-width: 640px) {
  .wx-float { right: 16px; bottom: 16px; }
  .wx-pill { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; font-size: 0; gap: 0; }
  .wx-pill .ico-wechat { width: 24px; height: 24px; }
  .wx-pop { width: min(304px, calc(100vw - 32px)); }
}

/* Contact, Card and email dialogs share the storefront's dark glass surface. */
.wx-card { max-height: calc(100dvh - 32px); overflow-y: auto; }
.bin-card, .mail-card { width: min(460px, calc(100vw - 32px)); }
.bin-intro, .bin-hint, .mail-guide { color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.8; }
.bin-intro { margin: 18px 0; }
.bin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.bin-choice { display: flex; flex-direction: column; gap: 8px; padding: 15px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.03); text-align: left; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.bin-choice span { font-size: 10px; letter-spacing: .15em; color: var(--muted); }
.bin-choice strong { font: 600 17px var(--font-mono); }
.bin-choice:hover { border-color: rgba(211,163,119,.55); transform: translateY(-1px); }
.bin-choice.is-selected { border-color: #d3a377; background: rgba(211,163,119,.12); }
.bin-choice.is-selected strong { color: #efc895; }
.bin-card > .p-btn { width: 100%; }
.mail-card { border: 1px solid rgba(255,255,255,.16); background: linear-gradient(145deg,rgba(40,47,63,.98),rgba(18,20,26,.98)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 30px 90px rgba(0,0,0,.6); }
.mail-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(150,170,255,.25); background: rgba(110,140,255,.12); color: #bacbff; font: italic 25px var(--font-serif); }
.mail-intro { margin: 22px 0; font: italic 28px/1.4 var(--font-display); color: #eed2af; }
.mail-site { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.03); }
.mail-site > span, .mail-code-row div > span { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.mail-site a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; font-size: 17px; }
.mail-site a:hover { color: #bacbff; }
.mail-code-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 16px 18px; border: 1px solid rgba(211,163,119,.24); border-radius: 14px; background: rgba(211,163,119,.06); }
.mail-code-row > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mail-code-row code { font: 600 19px/1.4 var(--font-mono); color: #efc895; }
.mail-code-row button { flex: none; padding: 8px 10px; border: 1px solid rgba(211,163,119,.3); border-radius: 8px; background: rgba(211,163,119,.1); color: #efc895; font-size: 12px; cursor: pointer; transition: background .2s; }
.mail-code-row button:hover { background: rgba(211,163,119,.2); }
.mail-guide { margin: 18px 0; }
.mail-guide strong { color: #efc895; font-weight: 500; }
.mail-open { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 20px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; text-decoration: none; background: rgba(255,255,255,.07); box-shadow: inset 0 1px 6px rgba(255,255,255,.12); font-size: 14px; font-weight: 600; transition: background .2s, transform .2s; }
.mail-open:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
@media (max-width: 360px) { .bin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .mail-code-row { padding: 14px 12px; gap: 8px; } .mail-code-row code { font-size: 17px; } .mail-code-row button { font-size: 11px; } }
@media (max-width: 760px) { .mail-intro { font-size: 24px; text-wrap: balance; } }

/* Opening invitation: warm glass, editorial type, no countdown. */
.opening-entry-wrap { text-align: center; margin: 0 0 18px; }
.opening-entry { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border: 1px solid rgba(211,163,119,.3); border-radius: 999px; background: rgba(211,163,119,.06); color: #e9c395; font-size: 12px; cursor: pointer; transition: background .2s, border-color .2s; }
.opening-entry:hover { background: rgba(211,163,119,.13); border-color: #d3a377; }
.opening-entry i { width: 5px; height: 5px; background: #e9c395; border-radius: 50%; box-shadow: 0 0 10px rgba(233,195,149,.4); }
.opening-entry span:last-child { margin-left: 8px; }
.opening-card { width: min(600px, 100%); max-height: calc(100dvh - 40px); padding: 32px; overflow-y: auto; overscroll-behavior: contain; border-color: rgba(211,163,119,.3); background: radial-gradient(ellipse at 80% 0, rgba(158,111,60,.15), transparent 55%), linear-gradient(145deg,#292723,#1b1b1a 65%); box-shadow: 0 35px 120px rgba(0,0,0,.65), inset 0 1px rgba(255,235,211,.08); scrollbar-width: thin; scrollbar-color: #665443 transparent; }
.opening-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.opening-label { font-size: 11px; letter-spacing: .15em; color: #e9c395; }
.opening-card .wx-close { flex: none; }
.opening-serif { margin: 8px 0 2px; font-family: var(--font-display); font-size: clamp(32px,6vw,48px); font-style: italic; font-weight: 400; line-height: 1.25; color: #f0dfc7; }
.opening-title { margin: 8px 0; font-size: 21px; font-weight: 600; letter-spacing: .02em; }
.opening-intro { margin: 0 0 20px; color: #b9b4ab; font-size: 13px; line-height: 1.8; }
.opening-feature { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid rgba(211,163,119,.25); border-radius: 16px; background: linear-gradient(110deg,rgba(211,163,119,.1),rgba(211,163,119,.02)); }
.opening-feature-name { display: block; font-size: 16px; font-weight: 600; }
.opening-feature small { display: block; margin-top: 5px; color: #b9b4ab; font-size: 11px; }
.opening-feature-price { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.opening-feature-price del { color: #aaa6a0; font-size: 13px; }
.opening-feature-price strong { font-family: var(--font-serif); font-size: 46px; font-weight: 400; line-height: 1; color: #f0c998; }
.opening-feature-price strong small { display: inline; color: inherit; font-size: 20px; }
.opening-offers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; margin: 14px 0 16px; padding: 0; list-style: none; }
.opening-offers li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 11px; color: #dedbd6; }
.opening-offer-price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.opening-offer-price del { font-size: 10px; color: #928e86; }
.opening-offer-price strong { font-size: 14px; font-weight: 500; color: #f0c998; font-variant-numeric: tabular-nums; }
.opening-note { margin: 0 0 20px; font-size: 11px; line-height: 1.7; color: #aaa59b; }
.opening-cta { display: flex; gap: 12px; align-items: center; }
.opening-shop { flex: 1; display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 12px 18px; border: 1px solid #ecc995; border-radius: 999px; background: linear-gradient(110deg,#f1d7b3,#c9915d); color: #211a12; font-size: 13px; font-weight: 600; cursor: pointer; transition: filter .2s, transform .2s; }
.opening-shop:hover { filter: brightness(1.08); transform: translateY(-1px); }
.opening-later { border: none; background: none; padding: 12px 8px; color: #b9b4ab; font-size: 12px; cursor: pointer; }
@media (max-width: 620px) {
  .opening-modal { padding: 14px; }
  .opening-card { padding: 22px; max-height: calc(100dvh - 28px); border-radius: 22px; }
  .opening-title { font-size: 19px; }
  .opening-intro { font-size: 12px; margin-bottom: 15px; }
  .opening-feature { padding: 14px; gap: 10px; }
  .opening-feature-name { font-size: 14px; }
  .opening-feature-price { gap: 8px; }
  .opening-feature-price strong { font-size: 38px; }
  .opening-offers { grid-template-columns: 1fr; margin: 10px 0 14px; }
  .opening-offers li { font-size: 12px; padding: 8px 0; }
  .opening-note { margin-bottom: 14px; }
}
@media (max-width: 350px) {
  .opening-card { padding: 18px; }
  .opening-feature { padding: 12px; }
  .opening-feature-price { flex-direction: column; align-items: flex-end; gap: 3px; }
  .opening-feature-price strong { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .opening-card, .opening-modal .wx-modal-backdrop { animation: none; } }
.opening-gift { margin-top: 10px; padding: 16px 18px; border: 1px solid rgba(142,185,93,.23); border-radius: 16px; background: linear-gradient(110deg,rgba(105,148,67,.12),rgba(105,148,67,.025)); }
.opening-gift-head { display: flex; align-items: center; gap: 12px; }
.opening-gift-head img { flex: none; object-fit: contain; }
.opening-gift-kicker { color: #b9d295; font-size: 10px; letter-spacing: .12em; }
.opening-gift h3 { margin: 3px 0 0; color: #e5eddc; font-size: 15px; font-weight: 600; line-height: 1.5; }
.opening-gift-intro { margin: 10px 0 8px; color: #cbcfc1; font-size: 12px; line-height: 1.75; }
.opening-gift-limit { margin: 0 0 5px; color: #b9d295; font-size: 11px; line-height: 1.7; }
.opening-gift-terms { margin: 0; color: #aaa99d; font-size: 10px; line-height: 1.7; }
.opening-countdown-wrap { margin: 0 0 18px; }
.opening-countdown-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: #b9b4ab; margin-bottom: 7px; }
.opening-countdown-caption span:first-child { color: #e9c395; }
.opening-countdown { display: flex; align-items: center; gap: 9px; }
.opening-countdown > span { display: flex; flex: 1; align-items: baseline; justify-content: center; gap: 8px; padding: 8px; border: 1px solid rgba(211,163,119,.18); border-radius: 9px; background: rgba(0,0,0,.12); }
.opening-countdown b { font-size: 24px; font-weight: 500; color: #efd1aa; line-height: 1.2; font-variant-numeric: tabular-nums; }
.opening-countdown small { font-size: 10px; color: #b9b4ab; }
.opening-countdown i { font-size: 18px; font-style: normal; color: #9a8064; }
.opening-ends { display: block; margin-top: 6px; font-size: 10px; color: #aaa59b; }
.opening-stock-note { display: inline-block; margin-left: 4px; color: #b5a389; font-size: 9px; }
.wx-gift { display: block; margin: 8px 0; color: #bad899; font-size: 12px; line-height: 1.6; }
@media (max-width: 620px) {
  .opening-gift { padding: 14px; }
  .opening-gift-head { gap: 10px; }
  .opening-gift h3 { font-size: 14px; }
  .opening-countdown { gap: 5px; }
  .opening-countdown > span { gap: 4px; padding: 7px 5px; }
  .opening-countdown b { font-size: 21px; }
}
