/* QueenCloud media FX — 2026-09-14i badge-above + order-modal + planId CTA + crisp back + hover */

:root {
  --qc-bg-image: url('/theme/Xboard/assets/media/bg-queen.jpg');
  --qc-video-strength: 1;
  --qc-scrim: 0.55;
  --qc-gold: #F5D78A;
}

body.qc-has-bg {
  background-color: #07070f !important;
  background-image: none !important;
}

.qc-page-video {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: var(--qc-video-strength) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.qc-page-scrim {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(7, 7, 15, var(--qc-scrim)) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

body.qc-has-bg #app {
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
}

body.qc-has-bg .wh-full,
body.qc-has-bg .cus-scroll-y,
body.qc-has-bg .bg-hex-f5f6fb,
body.qc-has-bg .bg-\[\#f5f6fb\],
body.qc-has-bg .dark\:bg-hex-121212,
body.qc-has-bg .dark\:bg-hex-101014,
body.qc-has-bg .n-layout,
body.qc-has-bg .n-layout-scroll-container,
body.qc-has-bg .n-layout-content,
body.qc-has-bg .n-config-provider,
body.qc-has-bg .flex-1.overflow-hidden,
body.qc-has-bg [class*="bg-hex-121212"],
body.qc-has-bg [class*="bg-hex-101014"] {
  background: transparent !important;
  background-color: transparent !important;
}

body.qc-has-bg .wh-full.flex.items-center.justify-center {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* Remove old floating orbit if any leftover */
.qc-jewel-orbit { display: none !important; }

.qc-gold-flash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 248, 220, 0.95) 0%, rgba(245, 215, 138, 0.55) 28%, rgba(232, 184, 74, 0.18) 55%, transparent 72%),
    linear-gradient(180deg, rgba(255,255,255, 0.75), rgba(255,255,255,0));
  opacity: 0;
  animation: qcGoldFlash 1.15s ease-out forwards;
}
@keyframes qcGoldFlash {
  0% { opacity: 0; filter: brightness(1.2); }
  18% { opacity: 1; filter: brightness(1.35); }
  55% { opacity: 0.55; }
  100% { opacity: 0; visibility: hidden; }
}

/* Login: lighter page scrim */
body.qc-login .qc-page-scrim {
  background: rgba(7, 7, 15, 0.48) !important;
}

/* Push login panel to the right, 15px from viewport edge */
body.qc-login .wh-full.flex.items-center.justify-center {
  justify-content: flex-end !important;
  align-items: center !important;
  padding-right: 15px !important;
  padding-left: 15px !important;
  box-sizing: border-box !important;
}
body.qc-login .n-card.n-card--bordered.mx-auto.max-w-md.rounded-md,
body.qc-login div[class*="justify-center"] > .n-card {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline: 0 !important;
}

/* Login card glass + 背景.jpg (no logo hole) */
body.qc-login .n-card.n-card--bordered.mx-auto.max-w-md.rounded-md,
body.qc-login div[class*="justify-center"] > .n-card {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(165deg, rgba(28, 14, 22, 0.38) 0%, rgba(12, 8, 18, 0.34) 100%) !important;
  backdrop-filter: blur(22px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.25) !important;
  --n-color: rgba(28, 14, 22, 0.38) !important;
  --n-color-embedded: rgba(16, 10, 16, 0.3) !important;
}

body.qc-login .n-card.n-card--bordered.mx-auto.max-w-md.rounded-md::after,
body.qc-login div[class*="justify-center"] > .n-card::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-image: var(--qc-bg-image) !important;
  background-size: cover !important;
  background-position: center 28% !important;
  background-repeat: no-repeat !important;
  opacity: 0.34 !important;
  filter: saturate(1.08) contrast(1.05) !important;
}

body.qc-login .n-card.n-card--bordered.mx-auto.max-w-md.rounded-md > *,
body.qc-login div[class*="justify-center"] > .n-card > * {
  position: relative !important;
  z-index: 1 !important;
}

/* White logo: fully opaque; breathe = glow only (no opacity fade) */
body.qc-login .n-card .p-6 .text-center,
body.qc-login .n-card .text-center:has(img) {
  background: transparent !important;
}
body.qc-login .n-card .p-6 .text-center img,
body.qc-login .n-card img[src*="logo"],
body.qc-login .n-card .text-center img {
  position: relative !important;
  z-index: 2 !important;
  border-radius: 50% !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter:
    brightness(1.05)
    drop-shadow(0 0 12px rgba(245, 215, 138, 0.4))
    drop-shadow(0 4px 10px rgba(0,0,0,0.45)) !important;
  animation: qcLogoBreathe 3.8s ease-in-out infinite !important;
}

@keyframes qcLogoBreathe {
  0%, 100% {
    opacity: 1;
    filter:
      brightness(1)
      drop-shadow(0 0 10px rgba(245, 215, 138, 0.35))
      drop-shadow(0 3px 8px rgba(0,0,0,0.4));
    transform: scale(1);
  }
  50% {
    opacity: 1;
    filter:
      brightness(1.28)
      drop-shadow(0 0 18px rgba(255, 235, 180, 1))
      drop-shadow(0 0 36px rgba(245, 200, 90, 0.8))
      drop-shadow(0 0 56px rgba(232, 160, 60, 0.5));
    transform: scale(1.03);
  }
}

body.qc-login .n-card .n-input,
body.qc-login .n-card .n-input .n-input-wrapper {
  background: rgba(12, 8, 14, 0.45) !important;
  backdrop-filter: blur(8px);
}

/* —— onboarding chrome 2026-09-14 (modal; does not push layout) —— */
.qc-onboard.qc-onboard--modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 0;
  pointer-events: none;
}
.qc-onboard-mask {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 10, 0.55);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}
.qc-onboard-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(28,22,40,0.96), rgba(14,12,24,0.94));
  border: 1px solid rgba(245, 215, 138, 0.34);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(245,215,138,0.08);
  color: #f7f3ea;
  font-size: 13.5px;
  line-height: 1.55;
  pointer-events: auto;
}
.qc-onboard h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--qc-gold, #F5D78A);
  letter-spacing: 0.02em;
}
.qc-onboard ol {
  margin: 0;
  padding-left: 1.2em;
}
.qc-onboard li { margin: 5px 0; }
.qc-onboard .qc-sub-tip {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(245, 215, 138, 0.1);
  border: 1px dashed rgba(245, 215, 138, 0.35);
  color: #ffe9b0;
  font-size: 12.5px;
}
.qc-onboard-x {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #d8c9a8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.qc-onboard-x:hover { opacity: 1; color: #fff; }
.qc-onboard-ok {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #2a1c08;
  background: linear-gradient(135deg, #F5D78A, #e0b35a);
}
.qc-onboard-ok:hover { filter: brightness(1.05); }
.qc-onboard a, .qc-footer-bar a {
  color: var(--qc-gold, #F5D78A);
  text-decoration: none;
}
.qc-onboard a:hover, .qc-footer-bar a:hover { text-decoration: underline; }

.qc-footer-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(7,7,15,0.88) 35%);
  color: #e8e2d6;
  font-size: 12.5px;
  pointer-events: none;
}
.qc-footer-bar a, .qc-footer-bar span {
  pointer-events: auto;
  opacity: 0.92;
}
body.qc-login .qc-onboard,
body.qc-login .qc-footer-bar { display: none !important; }

/* leave room so sticky footer doesn't cover content */
body.qc-has-bg:not(.qc-login) #app {
  padding-bottom: 42px;
}

/* ===== Plan coverflow = purchase UI (#/plan) ===== */
.qc-plan-stage {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  pointer-events: auto;
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.qc-plan-stage--fallback {
  position: sticky;
  top: 56px;
  z-index: 30;
  margin-top: 0;
  min-height: calc(100dvh - 72px);
}

.qc-plan-stage-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0;
  padding: 44px 8px 10px; /* room for badges above video cards */
  min-height: calc(100dvh - 72px);
  overflow: visible;
  background:
    linear-gradient(160deg, rgba(32, 22, 40, 0.55), rgba(10, 10, 18, 0.62));
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}

/* Legacy kicker removed from DOM; hide if leftover */
.qc-plan-kicker { display: none !important; }

.qc-plan-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 18px);
  flex: 1 1 auto;
  min-height: 0;
}

.qc-plan-hint {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: rgba(232, 226, 214, 0.68);
  flex: 0 0 auto;
}

/* Premium gold glass nav pills */
.qc-plan-nav {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(245, 215, 138, 0.55);
  background:
    linear-gradient(145deg, rgba(245, 215, 138, 0.18), rgba(20, 14, 28, 0.55));
  color: #F5D78A;
  cursor: pointer;
  box-shadow:
    0 0 18px rgba(245, 200, 90, 0.28),
    inset 0 1px 0 rgba(255, 245, 220, 0.22);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  padding: 0;
  z-index: 4;
}
.qc-plan-nav:hover {
  transform: scale(1.06);
  border-color: rgba(255, 230, 170, 0.9);
  box-shadow:
    0 0 26px rgba(245, 200, 90, 0.5),
    inset 0 1px 0 rgba(255, 245, 220, 0.35);
  filter: brightness(1.08);
  color: #fff6d4;
}
.qc-plan-nav:active { transform: scale(0.96); }
.qc-plan-nav svg { display: block; pointer-events: none; }

.qc-plan-track {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 28px);
  min-height: calc(100dvh - 140px);
  perspective: 1600px;
  touch-action: pan-y;
  user-select: none;
  overflow: visible;
  padding-top: 8px;
}

.qc-plan-card {
  position: relative;
  flex: 0 0 auto;
  width: min(34vw, 260px);
  aspect-ratio: 9 / 16;
  max-height: min(80vh, 640px);
  border: 0;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    filter 0.35s ease,
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  outline: none;
  overflow: visible; /* badges sit above the video rectangle */
}

/* Side cards: smaller, blurred, soft fade — but still playing */
.qc-plan-card.is-left {
  transform: translateX(-2%) scale(0.9) rotateY(12deg);
  opacity: 0.72;
  filter: blur(2px) brightness(0.68) saturate(0.88);
  z-index: 1;
}

.qc-plan-card.is-right {
  transform: translateX(2%) scale(0.9) rotateY(-12deg);
  opacity: 0.72;
  filter: blur(2px) brightness(0.68) saturate(0.88);
  z-index: 1;
}

.qc-plan-card.is-center {
  width: min(50vw, 370px);
  max-height: min(86vh, 760px);
  transform: translateY(-6px) scale(1.06);
  opacity: 1;
  filter: brightness(1.05) saturate(1.08);
  z-index: 3;
}

/* Hover: sides grow more; center slightly — don't touch .qc-plan-flip so flip stays intact */
.qc-plan-card.is-left:hover {
  transform: translateX(-2%) scale(1.02) rotateY(10deg);
  opacity: 0.88;
  filter: blur(0.6px) brightness(0.82) saturate(0.95);
  z-index: 4;
}

.qc-plan-card.is-right:hover {
  transform: translateX(2%) scale(1.02) rotateY(-10deg);
  opacity: 0.88;
  filter: blur(0.6px) brightness(0.82) saturate(0.95);
  z-index: 4;
}

.qc-plan-card.is-center:hover {
  transform: translateY(-8px) scale(1.1);
  z-index: 5;
}

/* Flipped center: kill any filter so back text stays crisp; mild hover only */
.qc-plan-card.is-flipped,
.qc-plan-card.is-center.is-flipped {
  filter: none !important;
  -webkit-filter: none !important;
}
.qc-plan-card.is-center.is-flipped:hover {
  transform: translateY(-6px) scale(1.06);
}

.qc-plan-card.is-center .qc-plan-flip {
  transform-style: preserve-3d;
  box-shadow:
    0 0 0 1.5px rgba(245, 215, 138, 0.7),
    0 0 36px rgba(245, 200, 90, 0.55),
    0 0 64px rgba(232, 170, 60, 0.28),
    0 20px 44px rgba(0, 0, 0, 0.5);
}

.qc-plan-flip {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.4);
  overflow: visible; /* MUST be visible — hidden flattens 3D flip in Chromium */
  background: #120e18;
}

.qc-plan-card.is-flipped .qc-plan-flip {
  transform: rotateY(180deg);
}

.qc-plan-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
}

.qc-plan-face--front {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #0c0a12;
}

.qc-plan-face--back {
  transform: rotateY(180deg);
  background: #16101f;
  background-image: linear-gradient(168deg, #2a1e38 0%, #100c18 55%, #0a0810 100%);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.qc-plan-video {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.qc-plan-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(6, 4, 10, 0.88) 55%);
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.qc-plan-tier {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(255, 245, 220, 0.88);
  margin-bottom: 4px;
}

.qc-plan-price {
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  background: linear-gradient(180deg, #fff6d4 0%, #F5D78A 42%, #d4a84a 78%, #b8872e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 10px rgba(245, 200, 90, 0.55))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

.qc-plan-price-unit {
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-left: 2px;
  opacity: 0.9;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .qc-plan-price {
    color: #F5D78A;
    -webkit-text-fill-color: #F5D78A;
    text-shadow: 0 0 12px rgba(245, 200, 90, 0.55);
  }
}

.qc-plan-badge {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #2a1c08;
  background: linear-gradient(135deg, #fff0c4, #F5D78A 45%, #e0b35a);
  box-shadow:
    0 8px 18px rgba(245, 200, 90, 0.45),
    0 0 0 1px rgba(255, 245, 220, 0.35);
  pointer-events: none;
  white-space: nowrap;
}
.qc-plan-card.is-flipped > .qc-plan-badge {
  opacity: 0;
  visibility: hidden;
}

/* —— Back face: elegant 9:16 hierarchy —— */
.qc-plan-back {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: clamp(18px, 3.2vh, 28px) clamp(14px, 2.4vw, 20px) clamp(12px, 2vh, 16px);
  color: #f7f3ea;
  letter-spacing: 0.02em;
  filter: none !important;
  opacity: 1 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.qc-plan-back-head {
  text-align: center;
  flex: 0 0 auto;
  padding-top: clamp(2px, 0.8vh, 8px);
}

/* Small gold tier eyebrow */
.qc-plan-back-tier {
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #F5D78A;
  margin-bottom: 6px;
  text-transform: none;
  filter: none;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
}

/* Plan name — primary title */
.qc-plan-back-name {
  font-size: clamp(18px, 3.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.25;
  color: #fff8e8;
  text-shadow: none;
  filter: none;
  -webkit-font-smoothing: antialiased;
  margin-bottom: clamp(10px, 1.6vh, 14px);
}

/* Big price */
.qc-plan-back-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  margin-bottom: 0;
}

.qc-plan-back-price-num {
  font-size: clamp(36px, 7vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #F5D78A;
  -webkit-text-fill-color: #F5D78A;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  filter: none !important;
  -webkit-filter: none !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  -webkit-font-smoothing: antialiased;
}

.qc-plan-back-price-unit {
  font-size: clamp(11px, 1.6vw, 13px);
  font-weight: 600;
  color: rgba(245, 215, 138, 0.82);
  letter-spacing: 0.06em;
  padding-bottom: 4px;
}

/* Gold divider */
.qc-plan-back-rule {
  flex: 0 0 auto;
  height: 1px;
  margin: clamp(14px, 2.2vh, 20px) 10% clamp(14px, 2.2vh, 18px);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 215, 138, 0.12) 10%,
    rgba(245, 215, 138, 0.75) 50%,
    rgba(245, 215, 138, 0.12) 90%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(245, 200, 90, 0.25);
}

/* Spec rows — breathing room */
.qc-plan-back-list {
  list-style: none;
  margin: 0;
  padding: 0 2px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(11px, 1.8vh, 16px);
  min-height: 0;
}

.qc-plan-back-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(12px, 1.7vw, 13.5px);
  line-height: 1.5;
}

.qc-plan-back-label {
  flex: 0 0 auto;
  min-width: 2.6em;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: clamp(10px, 1.4vw, 11px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2a1c08;
  background: linear-gradient(135deg, rgba(245, 215, 138, 0.98), rgba(212, 168, 74, 0.92));
  box-shadow:
    0 2px 8px rgba(245, 200, 90, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-align: center;
}

.qc-plan-back-val {
  flex: 1 1 auto;
  color: rgba(247, 243, 234, 0.94);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.qc-plan-back-warn {
  flex: 0 0 auto;
  margin: clamp(10px, 1.6vh, 14px) 0 0;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: clamp(10px, 1.4vw, 11px);
  line-height: 1.5;
  color: #ffe9b0;
  background: rgba(245, 180, 80, 0.1);
  border: 1px dashed rgba(245, 200, 90, 0.42);
  text-align: center;
}

/* CTAs pinned to bottom of tall card */
.qc-plan-back-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: clamp(14px, 2.2vh, 20px);
}

.qc-plan-cta {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: clamp(12.5px, 1.8vw, 14px);
  color: #2a1c08;
  background: linear-gradient(135deg, #fff0c4 0%, #F5D78A 45%, #e0b35a 100%);
  box-shadow:
    0 10px 22px rgba(245, 200, 90, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.qc-plan-cta:hover { filter: brightness(1.06); }

.qc-plan-flipback {
  width: 100%;
  border: 1px solid rgba(245, 215, 138, 0.38);
  border-radius: 13px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: clamp(11px, 1.5vw, 12.5px);
  letter-spacing: 0.08em;
  color: #e8dcc0;
  background: rgba(255, 255, 255, 0.03);
}
.qc-plan-flipback:hover {
  border-color: rgba(245, 215, 138, 0.75);
  color: #fff;
  background: rgba(245, 215, 138, 0.08);
}

.qc-plan-native-pulse {
  outline: 2px solid rgba(245, 215, 138, 0.85) !important;
  box-shadow: 0 0 0 4px rgba(245, 200, 90, 0.25), 0 0 24px rgba(245, 200, 90, 0.35) !important;
  transition: box-shadow 0.25s ease, outline-color 0.25s ease !important;
}

/* Hide original text plan list + 按周期/按流量 while coverflow is the purchase entry */
body.qc-on-plan .qc-plan-native-slot:not(.qc-plan-native-peek),
body.qc-on-plan .qc-plan-native-host:not(.qc-plan-native-peek),
body.qc-on-plan .qc-plan-period-hide {
  display: none !important;
}

body.qc-on-plan .qc-plan-native-peek {
  position: fixed !important;
  left: 8px !important;
  bottom: 8px !important;
  top: auto !important;
  right: auto !important;
  width: min(420px, 94vw) !important;
  height: auto !important;
  max-height: 46vh !important;
  opacity: 0.03 !important;
  pointer-events: auto !important;
  display: block !important;
  overflow: auto !important;
  z-index: 2147483000 !important;
  transform: none !important;
  visibility: visible !important;
  clip: auto !important;
}

@media (max-width: 720px) {
  .qc-plan-stage {
    margin: 0;
    padding: 0;
    min-height: calc(100dvh - 64px);
  }
  .qc-plan-stage-inner {
    padding: 8px 4px 8px;
    min-height: calc(100dvh - 64px);
  }
  .qc-plan-nav {
    width: 34px;
    height: 34px;
  }
  .qc-plan-nav svg { width: 18px; height: 18px; }
  .qc-plan-track {
    min-height: calc(100dvh - 120px);
    gap: 4px;
  }
  .qc-plan-card {
    width: min(34vw, 180px);
    max-height: min(68vh, 480px);
  }
  .qc-plan-card.is-center {
    width: min(58vw, 260px);
    max-height: min(78vh, 580px);
  }
  .qc-plan-card.is-left {
    transform: translateX(-1%) scale(0.86) rotateY(10deg);
    filter: blur(1.5px) brightness(0.62) saturate(0.88);
  }
  .qc-plan-card.is-right {
    transform: translateX(1%) scale(0.86) rotateY(-10deg);
    filter: blur(1.5px) brightness(0.62) saturate(0.88);
  }
  .qc-plan-card.is-left:hover {
    transform: translateX(-1%) scale(0.98) rotateY(8deg);
  }
  .qc-plan-card.is-right:hover {
    transform: translateX(1%) scale(0.98) rotateY(-8deg);
  }
  .qc-plan-card.is-center:hover {
    transform: translateY(-6px) scale(1.08);
  }
  .qc-plan-back { padding: 14px 11px 11px; }
  .qc-plan-back-name { font-size: 17px; letter-spacing: 0.1em; }
  .qc-plan-back-price-num { font-size: 34px; }
  .qc-plan-back-list { gap: 10px; }
  .qc-plan-back-row { font-size: 12px; gap: 9px; }
  .qc-plan-price { font-size: 14px; }
}

@media (max-width: 420px) {
  .qc-plan-card.is-left,
  .qc-plan-card.is-right {
    opacity: 0.5;
  }
  .qc-plan-hint { font-size: 11px; }
}


/* FLIP_FALLBACK_START — do not rely only on 3D backface (Chromium flattens) */
.qc-plan-card.is-flipped .qc-plan-face--front {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.qc-plan-card.is-flipped .qc-plan-face--back {
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 5 !important;
  pointer-events: auto !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.qc-plan-card.is-flipped .qc-plan-flip {
  transform: none !important; /* skip mirrored rotate when showing docs */
}
/* FLIP_FALLBACK_END */


/* PLAN_LTR_FORCE */
body.qc-on-plan,
body.qc-on-plan #app,
body.qc-on-plan .qc-plan-stage,
body.qc-on-plan .qc-plan-stage * {
  direction: ltr !important;
  unicode-bidi: isolate;
}
body.qc-on-plan .n-layout-header,
body.qc-on-plan .n-breadcrumb,
body.qc-on-plan h1, body.qc-on-plan h2, body.qc-on-plan h3 {
  direction: ltr !important;
}

/* PLAN_HIDE_NATIVE_TITLE — JS marks「选择最适合您的计划」(+ reversed) */
body.qc-on-plan .qc-plan-native-title-hide {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Fill purchase-subscription scroll host so stage owns the viewport */
body.qc-on-plan .n-layout-content > .cus-scroll-y,
body.qc-on-plan .n-layout-content > .n-scrollbar-container,
body.qc-on-plan .n-layout-content {
  min-height: calc(100dvh - 64px);
}


/* ===== Order modal (stay on #/plan) ===== */
body.qc-order-modal-open {
  overflow: hidden;
}
.qc-plan-order-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
.qc-plan-order-mask {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 12, 0.62);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
}
.qc-plan-order-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 94vw);
  border-radius: 18px;
  padding: 28px 24px 20px;
  box-sizing: border-box;
  color: #f7f3ea;
  background:
    linear-gradient(165deg, rgba(48, 34, 58, 0.96) 0%, rgba(18, 12, 26, 0.98) 55%, rgba(10, 8, 16, 0.99) 100%);
  border: 1px solid rgba(245, 215, 138, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 245, 220, 0.08),
    0 0 40px rgba(245, 200, 90, 0.22),
    0 28px 64px rgba(0, 0, 0, 0.55);
}
.qc-plan-order-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #F5D78A;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.qc-plan-order-x:hover { background: rgba(245, 215, 138, 0.16); }
.qc-plan-order-eyebrow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #F5D78A;
  margin-bottom: 8px;
}
.qc-plan-order-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff8e8;
  margin-bottom: 6px;
}
.qc-plan-order-sub {
  text-align: center;
  font-size: 12px;
  color: rgba(232, 226, 214, 0.62);
  margin-bottom: 18px;
}
.qc-plan-order-periods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.qc-plan-order-period {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 215, 138, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #f7f3ea;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.qc-plan-order-period:hover {
  border-color: rgba(245, 215, 138, 0.55);
  background: rgba(245, 215, 138, 0.08);
}
.qc-plan-order-period.is-on {
  border-color: rgba(245, 215, 138, 0.85);
  background: linear-gradient(145deg, rgba(245, 215, 138, 0.18), rgba(20, 14, 28, 0.35));
  box-shadow: 0 0 18px rgba(245, 200, 90, 0.25);
}
.qc-plan-order-period-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(245, 215, 138, 0.9);
}
.qc-plan-order-period-price {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff6d4 0%, #F5D78A 50%, #d4a84a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.qc-plan-order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 4px 16px;
  font-size: 13px;
  color: rgba(232, 226, 214, 0.7);
}
.qc-plan-order-total-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff6d4 0%, #F5D78A 45%, #d4a84a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.qc-plan-order-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qc-plan-order-submit {
  height: 46px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: #2a1c08;
  cursor: pointer;
  background: linear-gradient(135deg, #fff0c4, #F5D78A 45%, #e0b35a);
  box-shadow: 0 10px 24px rgba(245, 200, 90, 0.35);
}
.qc-plan-order-submit:hover { filter: brightness(1.06); }
.qc-plan-order-submit[data-busy="1"] { opacity: 0.7; pointer-events: none; }
.qc-plan-order-cancel {
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(245, 215, 138, 0.28);
  background: transparent;
  color: rgba(245, 215, 138, 0.85);
  font-size: 13px;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.qc-plan-order-cancel:hover { background: rgba(245, 215, 138, 0.08); }
.qc-plan-order-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: rgba(232, 226, 214, 0.42);
}


/* ORDER_PERIOD_STRIKE */
.qc-plan-order-period-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.15;
}
.qc-plan-order-period-orig,
.qc-plan-order-total-orig {
  font-size: 12px;
  font-weight: 500;
  color: rgba(232, 226, 214, 0.45);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  letter-spacing: 0.02em;
}
.qc-plan-order-period-price {
  font-weight: 800;
}
.qc-plan-order-period-save {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #F5D78A;
  opacity: 0.92;
}
.qc-plan-order-period.has-deal .qc-plan-order-period-price {
  font-size: 16px;
}
.qc-plan-order-total-num {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.qc-plan-order-total-now {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* ===== Traffic top-up packs (流量加油包) — #/plan, below .qc-plan-stage =====
 * Drop-in for queen-fx.css. All classes use the qc-pack- prefix.
 * Re-uses the queen-fx palette: gold #F5D78A / #fff0c4 / #e0b35a / #d4a84a,
 * ink #2a1c08, cream #f7f3ea / #fff8e8, plum glass #2a1e38 → #100c18 → #0a0810,
 * and the theme's royal red #b02a2a / #cc3530 for the 「人气」 accent.
 * No font-family here: inherits the theme stack (PingFang SC / YaHei / Noto Sans CJK SC).
 */

.qc-pack {
  position: relative;
  z-index: 5;
  width: 100%;
  box-sizing: border-box;
  pointer-events: auto;
  direction: ltr;
}

/* Same glass slab as .qc-plan-stage-inner so the two blocks read as one page */
.qc-pack-inner {
  box-sizing: border-box;
  padding: 36px clamp(12px, 3vw, 40px) 56px;
  background: linear-gradient(160deg, rgba(32, 22, 40, 0.55), rgba(10, 10, 18, 0.62));
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-top: 1px solid rgba(245, 215, 138, 0.14);
}

.qc-pack-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

/* —— Current usage strip (real data from /user/plan/traffic-packs) —— */
.qc-pack-usage {
  max-width: 640px;
  margin: 0 auto 30px;
  padding: 14px 18px 16px;
  box-sizing: border-box;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(28, 22, 40, 0.82), rgba(14, 12, 24, 0.78));
  border: 1px solid rgba(245, 215, 138, 0.26);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(245, 215, 138, 0.06);
  color: #f7f3ea;
}

.qc-pack-usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.qc-pack-usage-text {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 234, 0.94);
}

.qc-pack-usage-text b {
  font-weight: 800;
  color: #F5D78A;
}


.qc-pack-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.qc-pack-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--qc-pack-used, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #e0b35a 0%, #F5D78A 55%, #cc3530 100%);
  box-shadow: 0 0 12px rgba(245, 200, 90, 0.45);
}

/* ≥ 80% used: the bar turns urgent (JS toggles .is-low) */
.qc-pack-usage.is-low {
  border-color: rgba(204, 53, 48, 0.45);
}
.qc-pack-usage.is-low .qc-pack-bar-fill {
  background: linear-gradient(90deg, #F5D78A 0%, #e0b35a 45%, #cc3530 85%, #b02a2a 100%);
  box-shadow: 0 0 14px rgba(204, 53, 48, 0.55);
}

/* —— Heading —— */
.qc-pack-head {
  text-align: center;
  margin-bottom: 40px;
}

.qc-pack-title {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  background: linear-gradient(180deg, #fff6d4 0%, #F5D78A 42%, #d4a84a 78%, #b8872e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(245, 200, 90, 0.4)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

/* Gold hairline — same recipe as .qc-plan-back-rule */
.qc-pack-head-rule {
  width: min(320px, 60%);
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 215, 138, 0.12) 10%, rgba(245, 215, 138, 0.75) 50%, rgba(245, 215, 138, 0.12) 90%, transparent 100%);
  box-shadow: 0 0 10px rgba(245, 200, 90, 0.25);
}

/* —— Cards —— */
.qc-pack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  padding-top: 14px; /* room for badges above cards */
}

.qc-pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  min-width: 0;
  padding: 26px 16px 18px;
  border-radius: 18px;
  color: #f7f3ea;
  background: #16101f;
  background-image: linear-gradient(168deg, #2a1e38 0%, #100c18 55%, #0a0810 100%);
  box-shadow:
    0 0 0 1px rgba(245, 215, 138, 0.18),
    0 14px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

.qc-pack-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(245, 215, 138, 0.45),
    0 0 26px rgba(245, 200, 90, 0.22),
    0 18px 34px rgba(0, 0, 0, 0.45);
}

.qc-pack-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.qc-pack-size {
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff8e8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.qc-pack-size-unit {
  font-size: 0.5em;
  font-weight: 700;
  margin-left: 2px;
  color: rgba(255, 248, 232, 0.86);
}

.qc-pack-dot {
  /* the「·」separator of the copy: kept in DOM (screen readers / copy fidelity),
     replaced visually by the stacked size-over-price layout */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.qc-pack-price {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.qc-pack-price-num {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff6d4 0%, #F5D78A 42%, #d4a84a 78%, #b8872e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(245, 200, 90, 0.45));
}

.qc-pack-price-unit {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 215, 138, 0.82);
  letter-spacing: 0.06em;
}

.qc-pack-rule {
  align-self: stretch;
  height: 1px;
  margin: 16px 12% 14px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 215, 138, 0.12) 10%, rgba(245, 215, 138, 0.6) 50%, rgba(245, 215, 138, 0.12) 90%, transparent 100%);
}

.qc-pack-desc {
  flex: 1 1 auto;
  margin: 0 0 16px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: rgba(247, 243, 234, 0.9);
}

 /* keeps a clause on one line; lines break only between clauses */
.qc-pack-nb {
  white-space: nowrap;
}

.qc-pack-save {
  font-weight: 800;
  color: #F5D78A;
}

/* CTA — same gold pill family as .qc-plan-cta */
.qc-pack-cta {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: #2a1c08;
  background: linear-gradient(135deg, #fff0c4 0%, #F5D78A 45%, #e0b35a 100%);
  box-shadow: 0 10px 22px rgba(245, 200, 90, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.qc-pack-cta:hover { filter: brightness(1.06); }
.qc-pack-cta:active { transform: scale(0.97); }

/* Badge — pill above the card, like .qc-plan-badge */
.qc-pack-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  white-space: nowrap;
  pointer-events: none;
  color: #2a1c08;
  background: linear-gradient(135deg, #fff0c4, #F5D78A 45%, #e0b35a);
  box-shadow: 0 8px 18px rgba(245, 200, 90, 0.45), 0 0 0 1px rgba(255, 245, 220, 0.35);
}

/* 「人气」: royal red → gold (theme --rq-gradient-btn) */
.qc-pack-card.is-hot {
  box-shadow:
    0 0 0 1px rgba(204, 53, 48, 0.45),
    0 0 22px rgba(204, 53, 48, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.4);
}
.qc-pack-card.is-hot .qc-pack-badge {
  color: #fff8e8;
  background: linear-gradient(135deg, #9e2525 0%, #cc3530 50%, #c89030 100%);
  box-shadow: 0 8px 18px rgba(204, 53, 48, 0.4), 0 0 0 1px rgba(255, 220, 180, 0.3);
}

/* 「最划算」: the hero card — same gold halo as the centered plan card */
.qc-pack-card.is-best {
  z-index: 2;
  transform: translateY(-6px) scale(1.04);
  background-image:
    radial-gradient(120% 70% at 50% 0%, rgba(245, 215, 138, 0.22) 0%, transparent 60%),
    linear-gradient(168deg, #3a2a40 0%, #160f1e 55%, #0a0810 100%);
  box-shadow:
    0 0 0 1.5px rgba(245, 215, 138, 0.7),
    0 0 36px rgba(245, 200, 90, 0.45),
    0 0 64px rgba(232, 170, 60, 0.22),
    0 20px 44px rgba(0, 0, 0, 0.5);
}
.qc-pack-card.is-best:hover {
  transform: translateY(-9px) scale(1.05);
}
.qc-pack-card.is-best .qc-pack-badge {
  font-size: 12px;
  padding: 5px 14px;
}
.qc-pack-card.is-best .qc-pack-size {
  background: linear-gradient(180deg, #fff6d4 0%, #F5D78A 50%, #d4a84a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(245, 200, 90, 0.5));
}
.qc-pack-card.is-best .qc-pack-size-unit { color: inherit; }
.qc-pack-card.is-best .qc-pack-cta {
  box-shadow:
    0 0 0 1px rgba(255, 245, 220, 0.5),
    0 10px 26px rgba(245, 200, 90, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.qc-pack-foot {
  margin: 34px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: rgba(232, 226, 214, 0.78);
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .qc-pack-title,
  .qc-pack-price-num,
  .qc-pack-card.is-best .qc-pack-size {
    color: #F5D78A;
    -webkit-text-fill-color: #F5D78A;
  }
}

/* Tablet: 2 × 2 */
@media (max-width: 900px) {
  .qc-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 26px;
  }
}

/* Phone: tight 2 × 2, hero card keeps its halo but no scale (avoids overlap) */
@media (max-width: 720px) {
  .qc-pack-inner { padding: 26px 12px 64px; }
  .qc-pack-usage { margin-bottom: 24px; padding: 12px 14px 14px; }
  .qc-pack-usage-extra { font-size: 11.5px; }
  .qc-pack-usage-text { font-size: 13px; }
  .qc-pack-head { margin-bottom: 26px; }
  .qc-pack-title { font-size: 21px; letter-spacing: 0.04em; }
  .qc-pack-grid { gap: 12px; row-gap: 24px; }
  .qc-pack-card { padding: 22px 10px 12px; border-radius: 16px; }
  .qc-pack-card.is-best,
  .qc-pack-card.is-best:hover { transform: none; }
  .qc-pack-card:hover { transform: none; }
  .qc-pack-size { font-size: 32px; }
  .qc-pack-price-num { font-size: 24px; }
  .qc-pack-rule { margin: 12px 10% 10px; }
  .qc-pack-desc { font-size: 12.5px; line-height: 1.55; margin-bottom: 12px; }
  .qc-pack-cta { min-height: 40px; font-size: 13.5px; letter-spacing: 0.1em; text-indent: 0.1em; }
  .qc-pack-foot { margin-top: 26px; font-size: 13px; }
}

/* ===== 2026-10-06 流量加油包 — production additions (collapse / toggle / locked) ===== */
.qc-pack-usage-extra {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2a1c08;
  background: linear-gradient(135deg, #fff0c4, #F5D78A 45%, #e0b35a);
  box-shadow: 0 0 10px rgba(245, 200, 90, 0.35);
}

/* Collapsed by default: grows from below (height via grid rows + opacity), cards rise one by one */
.qc-pack {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
.qc-pack.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.qc-pack-collapse {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.7s;
}
.qc-pack.is-open .qc-pack-collapse {
  visibility: visible;
  transition-delay: 0s;
}
.qc-pack.is-open.is-settled .qc-pack-collapse { overflow: visible; }
.qc-pack-inner { position: relative; }

.qc-pack .qc-pack-usage,
.qc-pack .qc-pack-head,
.qc-pack .qc-pack-locked,
.qc-pack .qc-pack-card,
.qc-pack .qc-pack-foot {
  opacity: 0;
}
.qc-pack.is-open .qc-pack-usage { animation: qcPackRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.qc-pack.is-open .qc-pack-head { animation: qcPackRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both; }
.qc-pack.is-open .qc-pack-locked { animation: qcPackRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both; }
.qc-pack.is-open .qc-pack-card {
  animation: qcPackRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.26s + var(--i, 0) * 0.1s);
}
.qc-pack.is-open .qc-pack-foot { animation: qcPackRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both; }
@keyframes qcPackRise {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

/* In-section「收起」 */
.qc-pack-close {
  position: absolute;
  top: 10px;
  right: clamp(10px, 2.4vw, 28px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 215, 138, 0.35);
  background: rgba(20, 14, 28, 0.55);
  color: rgba(245, 215, 138, 0.92);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.qc-pack-close:hover { background: rgba(245, 215, 138, 0.12); border-color: rgba(245, 215, 138, 0.65); }

/* Not eligible (trial / expired / no plan): grey CTAs + hint */
.qc-pack-locked {
  max-width: 640px;
  margin: -18px auto 26px;
  padding: 10px 14px;
  box-sizing: border-box;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #ffe9b0;
  border-radius: 12px;
  background: rgba(245, 180, 80, 0.08);
  border: 1px dashed rgba(245, 200, 90, 0.45);
}
.qc-pack-cta:disabled,
.qc-pack-cta[aria-disabled="true"] {
  cursor: not-allowed;
  color: rgba(247, 243, 234, 0.55);
  background: linear-gradient(135deg, rgba(120, 112, 128, 0.55), rgba(70, 64, 80, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  filter: none;
  transform: none;
}
.qc-pack-card.is-best .qc-pack-cta:disabled { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.qc-pack-grid.is-locked .qc-pack-card { filter: saturate(0.75); }

/* 「我要流量包」 gold pill on the coverflow (top-right) */
.qc-pack-toggle {
  position: absolute;
  top: 18px;
  right: clamp(14px, 2.6vw, 36px);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 7px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #2a1c08;
  background: linear-gradient(135deg, #fff0c4 0%, #F5D78A 45%, #e0b35a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 245, 220, 0.55),
    0 10px 26px rgba(245, 200, 90, 0.42),
    0 0 34px rgba(245, 200, 90, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.qc-pack-toggle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1.5px solid rgba(245, 215, 138, 0.6);
  opacity: 0;
  pointer-events: none;
  animation: qcPackPulse 2.6s ease-out infinite;
}
.qc-pack-toggle[aria-expanded="true"]::after { animation: none; }
.qc-pack-toggle:hover { filter: brightness(1.06); transform: translateY(-1px); }
.qc-pack-toggle:active { transform: scale(0.97); }
.qc-pack-toggle:focus-visible { outline: 2px solid #fff0c4; outline-offset: 3px; }
.qc-pack-toggle-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #F5D78A;
  background: radial-gradient(circle at 35% 30%, #4a3418, #1d1308 70%);
  box-shadow: inset 0 0 0 1px rgba(245, 215, 138, 0.45);
}
.qc-pack-toggle-chev { flex: 0 0 auto; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.qc-pack-toggle[aria-expanded="true"] .qc-pack-toggle-chev { transform: rotate(180deg); }
@keyframes qcPackPulse {
  0% { opacity: 0.85; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.18); }
}

/* Order modal opened from a pack: single「一次性」option */
.qc-plan-order-modal.is-pack .qc-plan-order-periods { grid-template-columns: 1fr; }

@media (max-width: 720px) {
  .qc-pack-toggle {
    top: 10px;
    right: 10px;
    gap: 6px;
    padding: 5px 12px 5px 5px;
    font-size: 13px;
    letter-spacing: 0.08em;
  }
  .qc-pack-toggle-icon { width: 24px; height: 24px; }
  .qc-pack-close { top: 6px; right: 8px; font-size: 11.5px; padding: 3px 8px 3px 10px; }
  .qc-pack-inner { padding-top: 40px; }
  .qc-pack-locked { margin: -10px auto 22px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .qc-pack,
  .qc-pack-collapse { transition: none !important; }
  .qc-pack .qc-pack-usage,
  .qc-pack .qc-pack-head,
  .qc-pack .qc-pack-locked,
  .qc-pack .qc-pack-card,
  .qc-pack .qc-pack-foot { opacity: 1; animation: none !important; }
  .qc-pack-toggle::after { animation: none !important; }
  .qc-pack-toggle-chev { transition: none; }
}

/* ===== 2026-10-06 mobile coverflow fix: arrows stay on screen, side cards tuck behind center ===== */
@media (max-width: 720px) {
  .qc-plan-row {
    position: relative;
    gap: 0;
  }
  .qc-plan-nav {
    position: absolute;
    top: calc(50% - 17px);
    z-index: 6;
  }
  .qc-plan-nav--prev { left: 6px; }
  .qc-plan-nav--next { right: 6px; }
  .qc-plan-track {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .qc-plan-card { width: min(30vw, 170px); }
  .qc-plan-card.is-left { margin-right: -12vw; }
  .qc-plan-card.is-right { margin-left: -12vw; }
}

/* ===== 2026-10-06（二）两色流量条：套餐（金）+ 加油包（青蓝） ===== */
.qc-tbar {
  display: flex;
  gap: 3px;
  height: 10px;
  margin: 2px 0 10px;
}
.qc-tbar-seg {
  position: relative;
  flex: 1 1 0;
  min-width: 14%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
.qc-tbar-seg > i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.qc-tbar-seg.is-base { background: rgba(245, 215, 138, 0.16); }
.qc-tbar-seg.is-base > i {
  background: linear-gradient(90deg, #c9973f 0%, #e0b35a 45%, #F5D78A 100%);
  box-shadow: 0 0 10px rgba(245, 200, 90, 0.45);
}
.qc-tbar-seg.is-pack { background: rgba(103, 232, 249, 0.14); }
.qc-tbar-seg.is-pack > i {
  background: linear-gradient(90deg, #1fa2d6 0%, #38bdf8 45%, #7ae9f8 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}
.qc-tleg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(247, 243, 234, 0.82);
  letter-spacing: 0.02em;
}
.qc-tleg-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.qc-tleg-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  transform: translateY(1px);
}
.qc-tleg-row.is-base .qc-tleg-dot { background: linear-gradient(135deg, #F5D78A, #c9973f); box-shadow: 0 0 6px rgba(245, 200, 90, 0.5); }
.qc-tleg-row.is-pack .qc-tleg-dot { background: linear-gradient(135deg, #7ae9f8, #1fa2d6); box-shadow: 0 0 6px rgba(56, 189, 248, 0.55); }
.qc-tleg-v { flex: 1 1 auto; min-width: 0; }
.qc-tleg-k { font-weight: 700; }
.qc-tleg-row.is-base .qc-tleg-k, .qc-tleg-row.is-base b { color: #F5D78A; }
.qc-tleg-row.is-pack .qc-tleg-k, .qc-tleg-row.is-pack b { color: #7ae9f8; }
.qc-tleg b { font-weight: 800; }
.qc-tleg-r {
  flex: 0 0 auto;
  font-size: 12px;
  color: rgba(247, 243, 234, 0.55);
  font-variant-numeric: tabular-nums;
}

/* 购买页加油包区顶部流量条：沿用原卡片，只换成两色条 */
.qc-pack-usage .qc-tbar { margin-top: 0; }
.qc-pack-usage.is-low .qc-tbar { filter: drop-shadow(0 0 6px rgba(204, 53, 48, 0.35)); }

/* 仪表盘「我的订阅」：有加油包时替换原生进度条和「已用 / 总计」 */
.n-card[data-qc-sub="pack"] > .n-card__content > .n-progress,
.n-card[data-qc-sub="pack"] > .n-card__content > .n-progress + div { display: none !important; }
.qc-subpack {
  margin: 2px 0 4px;
  padding: 12px 14px 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(28, 22, 40, 0.55), rgba(14, 12, 24, 0.45));
  border: 1px solid rgba(245, 215, 138, 0.18);
}
.qc-subpack-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(247, 243, 234, 0.9);
}
.qc-subpack-total b { color: #fff; font-weight: 800; }
.qc-subpack-pct { font-size: 12px; color: rgba(247, 243, 234, 0.55); font-variant-numeric: tabular-nums; }
.qc-subpack-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #F5D78A !important;
  text-decoration: none !important;
  background: rgba(245, 215, 138, 0.08);
  border: 1px solid rgba(245, 215, 138, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.qc-subpack-cta:hover { background: rgba(245, 215, 138, 0.16); border-color: rgba(245, 215, 138, 0.6); transform: translateY(-1px); }
.qc-subpack-cta span { transition: transform 0.2s ease; }
.qc-subpack-cta:hover span { transform: translateX(2px); }
.n-card[data-qc-sub] > .n-card__content > .qc-subpack-cta { display: inline-flex; }

@media (max-width: 720px) {
  .qc-tleg { font-size: 12px; }
  .qc-tleg-row { flex-wrap: wrap; row-gap: 0; }
  .qc-tleg-r { margin-left: auto; }
  .qc-subpack { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .qc-tbar-seg > i, .qc-subpack-cta, .qc-subpack-cta span { transition: none; }
}

/* 2026-10-06（二）修复：加油包区在 sticky 的方案 stage 之后，展开后会被 stage 盖住 → 有加油包区时 stage 不再吸顶 */
.qc-plan-stage.qc-plan-stage--with-pack {
  position: relative;
  top: auto;
  margin-top: 56px; /* 保持与原 sticky top:56px 相同的初始位置，收起状态外观不变 */
}
/* stage 不再吸顶后，原生套餐列表（原本被吸顶 stage 挡住）会露出来：加油包区后面的原生内容一律隐藏 */
.qc-plan-stage.qc-plan-stage--with-pack ~ :not(.qc-pack) {
  display: none !important;
}
