/* Paid download modal — shared by /user/orders and detail pages */
:root {
  --ord-ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --ord-accent: #ff5745;
}

.ord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.375rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  background: none;
  transition: transform 0.2s var(--ord-ease), background 0.2s var(--ord-ease), border-color 0.2s var(--ord-ease), color 0.2s var(--ord-ease);
}

.ord-btn:hover {
  transform: translateY(-1px);
}

.ord-btn-primary {
  color: #fff !important;
  background: var(--ord-accent);
  box-shadow: 0 10px 24px -14px rgba(255, 87, 69, 0.9);
}

.ord-btn-primary:hover {
  background: #ff6a5a;
  color: #fff !important;
}

/* 会员订单「联系支持」：占位主按钮但不抢色 */
.ord-btn-quiet {
  color: var(--ord-ink) !important;
  background: var(--ord-surface-2);
  border-color: var(--ord-line);
  box-shadow: none;
}

.ord-btn-quiet:hover {
  color: var(--ord-accent-2) !important;
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.08);
}

.ord-btn-ghost {
  color: var(--ord-ink) !important;
  background: transparent;
  border-color: var(--ord-line);
}

.ord-btn-ghost:hover {
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--ord-accent-2) !important;
}

.ord-hero .ord-btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.ord-btn-sm {
  min-height: 2rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.8125rem;
}

/* 注意：勿把 .ord-tab / .ord-chip 并入本规则，否则订单页筛选胶囊会被 display:none 隐藏 */
.ord-modal {
  --ord-accent: #ff5745;
  --ord-accent-2: #0f766e;
  --ord-ink: #15202b;
  --ord-muted: #667085;
  --ord-line: rgba(21, 32, 43, 0.1);
  --ord-surface: #ffffff;
  --ord-surface-2: #f3f6f8;
  --ord-ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.nice-dark-mode .ord-modal {
  --ord-ink: #f2f4f7;
  --ord-muted: #a8b0bd;
  --ord-line: rgba(255, 255, 255, 0.12);
  --ord-surface: #23272e;
  --ord-surface-2: #2c313a;
}

.ord-modal.is-open {
  display: flex !important;
  pointer-events: auto;
}

.ord-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.52);
  opacity: 0;
  transition: opacity 0.22s var(--ord-ease);
}

.ord-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(88vh, 640px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  color: #15202b;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.45);
  transform: translate3d(0, 16px, 0) scale(0.98);
  opacity: 0;
  transition: transform 0.24s var(--ord-ease), opacity 0.24s var(--ord-ease);
}

.nice-dark-mode .ord-modal-panel {
  background: #23272e;
  color: #f2f4f7;
}

.ord-modal.is-open .ord-modal-backdrop {
  opacity: 1;
}

.ord-modal.is-open .ord-modal-panel {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.ord-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.65rem;
}

.ord-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 720;
}

.ord-modal-panel.is-blocked .ord-modal-head h3 {
  color: #b45309;
}

.nice-dark-mode .ord-modal-panel.is-blocked .ord-modal-head h3 {
  color: #fdba74;
}

.ord-modal-x {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f6f8;
  color: #667085;
  font-size: 0;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.ord-modal-x svg {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ord-modal-x:hover {
  background: #e8eef2;
  color: #344054;
}

.nice-dark-mode .ord-modal-x {
  background: #2c313a;
  color: #a8b0bd;
}

.nice-dark-mode .ord-modal-x:hover {
  background: #363c47;
  color: #f2f4f7;
}


body.ord-modal-open {
  overflow: hidden !important;
}

/* —— 专属下载进度弹窗 —— */
.ord-dl-modal {
  --dl-ink: #15202b;
  --dl-muted: #667085;
  --dl-line: rgba(21, 32, 43, 0.1);
  --dl-panel: #ffffff;
  --dl-panel-2: #f3f6f8;
  --dl-accent: #0f766e;
  --dl-accent-soft: rgba(15, 118, 110, 0.12);
  --dl-warn: #be123c;
  --dl-ring: #0d9488;
  --dl-ring-track: rgba(15, 118, 110, 0.14);
  --dl-thanks-bg: rgba(15, 118, 110, 0.07);
  --dl-pct: #15202b;
  --dl-pct-unit: #667085;
  --dl-x-bg: #f3f6f8;
  --dl-x-fg: #667085;
  z-index: 10070;
}

.nice-dark-mode .ord-dl-modal {
  --dl-ink: #f2f4f7;
  --dl-muted: #a8b0bd;
  --dl-line: rgba(255, 255, 255, 0.1);
  --dl-panel: #1a222a;
  --dl-panel-2: #232b34;
  --dl-accent: #2dd4bf;
  --dl-accent-soft: rgba(45, 212, 191, 0.14);
  --dl-warn: #fda4af;
  --dl-ring: #2dd4bf;
  --dl-ring-track: rgba(255, 255, 255, 0.1);
  --dl-thanks-bg: rgba(45, 212, 191, 0.1);
  --dl-pct: #ffffff;
  --dl-pct-unit: rgba(255, 255, 255, 0.55);
  --dl-x-bg: rgba(255, 255, 255, 0.08);
  --dl-x-fg: rgba(255, 255, 255, 0.72);
}

.ord-dl-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  min-height: 318px;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.45rem 1.35rem 1.2rem;
  text-align: left;
  color: var(--dl-ink);
  background:
    radial-gradient(120% 90% at 10% -8%, rgba(15, 118, 110, 0.12), transparent 52%),
    radial-gradient(100% 80% at 94% 0%, rgba(255, 87, 69, 0.08), transparent 48%),
    linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
  box-shadow:
    0 28px 70px -30px rgba(15, 32, 43, 0.35),
    0 0 0 1px rgba(21, 32, 43, 0.06);
  transform: translate3d(0, 18px, 0) scale(0.97);
  opacity: 0;
  transition: transform 0.28s var(--ord-ease), opacity 0.28s var(--ord-ease);
}

.nice-dark-mode .ord-dl-panel {
  background:
    radial-gradient(120% 90% at 12% -10%, rgba(45, 212, 191, 0.2), transparent 52%),
    radial-gradient(100% 80% at 92% 8%, rgba(255, 87, 69, 0.16), transparent 48%),
    linear-gradient(165deg, #152028 0%, #1a242c 48%, #12181e 100%);
  box-shadow:
    0 28px 70px -30px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  color: #f4f7f8;
}

.ord-dl-modal.is-open .ord-dl-panel {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.ord-dl-aura {
  position: absolute;
  inset: auto;
  right: -40px;
  top: 18%;
  left: auto;
  width: 240px;
  height: 240px;
  margin: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12), transparent 68%);
  pointer-events: none;
  animation: ordDlPulse 2.8s var(--ord-ease) infinite;
}

.nice-dark-mode .ord-dl-aura {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 68%);
}

@keyframes ordDlPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.ord-dl-x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--dl-x-bg) !important;
  color: var(--dl-x-fg) !important;
}

.ord-dl-x:hover {
  filter: brightness(0.96);
}

.nice-dark-mode .ord-dl-x:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  filter: none;
}

.ord-dl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.55rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dl-accent);
  background: var(--dl-accent-soft);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.nice-dark-mode .ord-dl-badge {
  border-color: rgba(45, 212, 191, 0.22);
}

.ord-dl-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--dl-ink);
}

.nice-dark-mode .ord-dl-title {
  color: #f7fafb;
}

.ord-dl-sub {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--dl-muted);
}

.ord-dl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  gap: 1.15rem 1.35rem;
  align-items: center;
  margin: 0.15rem 0 0;
  text-align: left;
}

.ord-dl-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ord-dl-side .ord-dl-badge {
  margin-bottom: 0.5rem;
}

.ord-dl-side .ord-dl-sub {
  margin-bottom: 0.85rem;
}

.ord-dl-side .ord-dl-sub[hidden] + .ord-dl-meta:not([hidden]) {
  margin-top: 0.85rem;
}

.ord-dl-side .ord-dl-sub[hidden],
.ord-dl-status[hidden],
.ord-dl-thanks[hidden],
.ord-dl-meta-xfer[hidden] {
  display: none !important;
}

.ord-dl-meta {
  list-style: none;
  width: 100%;
  margin: 0 0 0.7rem;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: var(--dl-panel-2);
  border: 1px solid var(--dl-line);
  display: grid;
  gap: 0.5rem;
}

.ord-dl-meta[hidden] {
  display: none !important;
}

.ord-dl-meta li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.ord-dl-meta-k {
  font-size: 0.75rem;
  color: var(--dl-muted);
  flex: 0 0 auto;
}

.ord-dl-meta-v {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dl-ink);
  text-align: right;
  word-break: break-all;
}

.ord-dl-ring-wrap {
  --dl-p: 0;
  position: relative;
  width: 152px;
  height: 152px;
  margin: 0;
  justify-self: end;
  flex-shrink: 0;
}

.ord-dl-wave-orb {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  filter: drop-shadow(0 10px 22px rgba(15, 118, 110, 0.18));
}

.nice-dark-mode .ord-dl-wave-orb {
  filter: drop-shadow(0 12px 26px rgba(45, 212, 191, 0.22));
}

.ord-dl-wave-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ord-dl-wave-rim {
  stroke: rgba(15, 118, 110, 0.22);
  stroke-width: 2.5;
}

.nice-dark-mode .ord-dl-wave-rim {
  stroke: rgba(45, 212, 191, 0.28);
}

.ord-dl-wave-glass {
  fill: rgba(15, 118, 110, 0.05);
}

.nice-dark-mode .ord-dl-wave-glass {
  fill: rgba(255, 255, 255, 0.04);
}

.ord-dl-wave-group {
  transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.28, 1);
  will-change: transform;
}

.ord-dl-wave-drift {
  transform-box: fill-box;
  transform-origin: center;
}

.ord-dl-wave-drift-a {
  animation: ordDlWaveDrift 4.8s linear infinite;
}

.ord-dl-wave-drift-b {
  animation: ordDlWaveDrift 3.2s linear infinite reverse;
}

.ord-dl-wave-path.is-front {
  opacity: 0.96;
}

.ord-dl-wave-path.is-back {
  opacity: 0.9;
}

@keyframes ordDlWaveDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-60px); }
}

.ord-dl-modal.is-paused .ord-dl-wave-path.is-front {
  fill: #f59e0b;
}

.ord-dl-modal.is-paused .ord-dl-wave-path.is-back {
  fill: rgba(245, 158, 11, 0.45);
}

.ord-dl-modal.is-paused .ord-dl-wave-drift-a,
.ord-dl-modal.is-paused .ord-dl-wave-drift-b {
  animation-play-state: paused;
}

.ord-dl-modal.is-done .ord-dl-wave-group {
  transform: translate(0, 0) !important;
}

.ord-dl-modal.is-done .ord-dl-wave-drift-a,
.ord-dl-modal.is-done .ord-dl-wave-drift-b {
  animation-duration: 6s;
}

.ord-dl-modal.is-error .ord-dl-wave-path.is-front {
  fill: #e11d48;
}

.ord-dl-modal.is-error .ord-dl-wave-path.is-back {
  fill: rgba(225, 29, 72, 0.4);
}

.ord-dl-modal.is-error .ord-dl-wave-drift-a,
.ord-dl-modal.is-error .ord-dl-wave-drift-b {
  animation-play-state: paused;
}

.ord-dl-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s var(--ord-ease), transform 0.25s var(--ord-ease);
}

.ord-dl-spinner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  position: absolute;
  inset: 0;
  margin: auto;
}

.ord-dl-spinner i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--dl-accent);
  opacity: 0.35;
  animation: ordDlDot 1s ease-in-out infinite;
}

.ord-dl-spinner i:nth-child(2) {
  animation-delay: 0.15s;
}

.ord-dl-spinner i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes ordDlDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.ord-dl-skel {
  display: inline-block;
  width: 4.6rem;
  height: 0.72rem;
  border-radius: 6px;
  vertical-align: middle;
  background: linear-gradient(
    90deg,
    rgba(15, 118, 110, 0.08) 0%,
    rgba(15, 118, 110, 0.18) 45%,
    rgba(15, 118, 110, 0.08) 90%
  );
  background-size: 200% 100%;
  animation: ordDlShimmer 1.15s ease-in-out infinite;
}

.nice-dark-mode .ord-dl-skel {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(255, 255, 255, 0.06) 90%
  );
  background-size: 200% 100%;
}

.ord-dl-foot-skel {
  display: block;
  width: 100%;
  min-height: 2.7rem;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(15, 118, 110, 0.06) 0%,
    rgba(15, 118, 110, 0.14) 45%,
    rgba(15, 118, 110, 0.06) 90%
  );
  background-size: 200% 100%;
  animation: ordDlShimmer 1.15s ease-in-out infinite;
}

.nice-dark-mode .ord-dl-foot-skel {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.05) 90%
  );
  background-size: 200% 100%;
}

@keyframes ordDlShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* 校验/准备阶段：框架与确认态同宽同高，仅内容为加载态 */
.ord-dl-modal.is-checking .ord-dl-pct-row {
  opacity: 0;
  visibility: hidden;
}

.ord-dl-modal.is-checking .ord-dl-spinner {
  display: inline-flex;
}

.ord-dl-modal.is-checking .ord-dl-wave-group {
  transition: none;
  animation: ordDlPrepWave 1.6s ease-in-out infinite;
}

.ord-dl-modal.is-checking .ord-dl-meta-v {
  min-height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

@keyframes ordDlPrepWave {
  0%, 100% { transform: translate(0, 102px); }
  50% { transform: translate(0, 88px); }
}

.ord-dl-pct-row {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.06rem;
  line-height: 1;
  transform: translateY(1px);
}

.ord-dl-pct {
  font-size: 1.85rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--dl-pct);
  line-height: 1;
  transition: color 0.25s ease;
}

.ord-dl-pct-unit {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--dl-pct-unit);
  line-height: 1;
  transition: color 0.25s ease;
}

/* 水位过半时文字改为浅色，保证可读 */
.ord-dl-ring-wrap.is-deep .ord-dl-pct {
  color: #fff;
  text-shadow: 0 1px 8px rgba(15, 118, 110, 0.35);
}

.ord-dl-ring-wrap.is-deep .ord-dl-pct-unit {
  color: rgba(255, 255, 255, 0.82);
}

.ord-dl-done {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.28s var(--ord-ease), transform 0.28s var(--ord-ease);
}

.nice-dark-mode .ord-dl-done {
  color: #34d399;
}

.ord-dl-modal.is-done .ord-dl-ring-center {
  opacity: 0;
  transform: scale(0.85);
}

.ord-dl-modal.is-done .ord-dl-done {
  opacity: 1;
  transform: scale(1);
}

.ord-dl-modal.is-done .ord-dl-done[hidden] {
  display: flex !important;
}

.ord-dl-status {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--dl-muted);
  line-height: 1.5;
}

.ord-dl-modal.is-confirm .ord-dl-ring-wrap {
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .ord-dl-wave-drift-a,
  .ord-dl-wave-drift-b,
  .ord-dl-wave-group,
  .ord-dl-skel,
  .ord-dl-foot-skel,
  .ord-dl-spinner i,
  .ord-dl-modal.is-checking .ord-dl-wave-group {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 576px) {
  .ord-dl-layout {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: left;
    gap: 1rem;
  }

  .ord-dl-ring-wrap {
    order: -1;
    justify-self: center;
    margin: 0.15rem auto 0.25rem;
  }

  .ord-dl-side {
    width: 100%;
    align-items: flex-start;
  }

  .ord-dl-meta li {
    justify-content: space-between;
  }
}

.ord-dl-modal.is-error .ord-dl-status {
  color: var(--dl-warn);
}

.ord-dl-thanks {
  margin: 0.7rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.ord-dl-thanks p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--dl-muted);
}

.nice-dark-mode .ord-dl-thanks p {
  color: rgba(226, 232, 240, 0.72);
}

.ord-dl-foot {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  min-height: 2.7rem;
}

.ord-dl-foot:empty,
.ord-dl-foot[hidden] {
  display: none !important;
}

.ord-dl-foot.is-row {
  grid-template-columns: 1fr 1fr;
}

.ord-dl-foot.is-skel {
  pointer-events: none;
}

.ord-dl-foot .ord-btn {
  width: 100%;
  min-height: 2.7rem;
  margin: 0;
  border-radius: 12px;
  transform: none;
  box-sizing: border-box;
}

.ord-dl-foot .ord-btn:hover {
  transform: none;
}

.ord-dl-foot .ord-btn-primary {
  color: #fff !important;
  background: #ff5745;
  border-color: transparent;
  box-shadow: 0 12px 28px -16px rgba(255, 87, 69, 0.85);
}

.ord-dl-foot .ord-btn-quiet {
  color: var(--dl-ink) !important;
  background: var(--dl-panel-2);
  border-color: transparent;
}

.ord-dl-foot .ord-btn-ghost {
  color: var(--dl-accent) !important;
  background: var(--dl-accent-soft);
  border-color: transparent;
}

.ord-dl-modal.is-busy .js-ord-dl-close.ord-dl-x {
  opacity: 0.45;
}

/* —— 未购买引导态 —— */
.ord-dl-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2410c;
  pointer-events: none;
  z-index: 3;
  animation: ord-dl-lock-in 0.45s var(--ord-ease) both;
}

.ord-dl-lock[hidden] {
  display: none !important;
}

.nice-dark-mode .ord-dl-lock {
  color: #fdba74;
}

@keyframes ord-dl-lock-in {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ord-dl-purchase-hint {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 87, 69, 0.08), rgba(251, 146, 60, 0.1));
  border: 1px solid rgba(255, 87, 69, 0.14);
  color: var(--dl-muted, #667085);
  font-size: 0.75rem;
  line-height: 1.55;
}

.ord-dl-purchase-hint p {
  margin: 0;
}

.ord-dl-purchase-hint[hidden] {
  display: none !important;
}

.nice-dark-mode .ord-dl-purchase-hint {
  background: linear-gradient(135deg, rgba(255, 87, 69, 0.14), rgba(251, 146, 60, 0.1));
  border-color: rgba(251, 146, 60, 0.22);
  color: #cbd5e1;
}

.ord-dl-modal.is-purchase {
  --dl-accent: #ff5745;
  --dl-accent-soft: rgba(255, 87, 69, 0.12);
}

.ord-dl-modal.is-purchase .ord-dl-badge {
  color: #c2410c;
  background: rgba(255, 87, 69, 0.12);
  border-color: rgba(255, 87, 69, 0.22);
  letter-spacing: 0.06em;
}

.nice-dark-mode .ord-dl-modal.is-purchase .ord-dl-badge {
  color: #fdba74;
  background: rgba(255, 87, 69, 0.18);
  border-color: rgba(251, 146, 60, 0.28);
}

.ord-dl-modal.is-purchase .ord-dl-pct-row,
.ord-dl-modal.is-purchase .ord-dl-spinner {
  display: none !important;
}

.ord-dl-modal.is-purchase .ord-dl-wave-orb {
  opacity: 0.35;
  filter: saturate(0.55);
}

.ord-dl-modal.is-purchase .ord-dl-wave-group {
  transform: translate(0, 78px) !important;
}

.ord-dl-modal.is-purchase .ord-dl-wave-path.is-front {
  fill: url(#ordDlWaveGrad);
  opacity: 0.55;
}

.ord-dl-modal.is-purchase .ord-dl-ring-wrap {
  --dl-p: 12;
}

.ord-dl-modal.is-purchase .ord-btn-buy {
  gap: 0.4rem;
  min-width: 8.5rem;
  box-shadow: 0 12px 28px -14px rgba(255, 87, 69, 0.95);
}

.ord-dl-modal.is-purchase .ord-btn-buy svg {
  flex-shrink: 0;
}

.ord-dl-modal.is-purchase .ord-dl-aura {
  background:
    radial-gradient(ellipse 70% 55% at 85% 18%, rgba(255, 87, 69, 0.22), transparent 58%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(251, 146, 60, 0.16), transparent 60%);
}

@media (max-width: 576px) {
  .ord-dl-modal {
    align-items: flex-end;
    padding: 0;
  }

  .ord-dl-panel {
    width: 100%;
    max-width: none;
    min-height: 380px;
    border-radius: 22px 22px 0 0;
    padding-bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
    transform: translate3d(0, 32px, 0);
  }

  .ord-dl-modal.is-open .ord-dl-panel {
    transform: translate3d(0, 0, 0);
  }

  .ord-dl-modal.is-purchase .ord-dl-panel {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ord-hero-bg,
  .ord-card,
  .ord-btn,
  .ord-sheet-panel,
  .ord-sheet-backdrop,
  .ord-modal-panel,
  .ord-modal-backdrop,
  .ord-dl-panel,
  .ord-dl-aura,
  .ord-dl-wave-drift-a,
  .ord-dl-wave-drift-b,
  .ord-dl-wave-group {
    animation: none !important;
    transition: none !important;
  }
}
