.entry-content,
.article-content,
.article-detail,
.single-post .post-content {
  container: qm-ae-article / inline-size;
}

.qm-ae-editor-shortcode-start,
.qm-ae-editor-shortcode-end,
.qm-ae-editor-hidden-box:empty {
  display: none !important;
}

.qm-ae-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  gap: 0;
  margin: 28px 0;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: #081426;
  box-shadow: 0 22px 56px rgba(2, 8, 23, 0.18);
  overflow: hidden;
  isolation: isolate;
}

.qm-ae-card-label {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  background: #ffea00;
  color: #081426;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 234, 0, 0.18);
}

.qm-ae-cover,
.qm-ae-resource-cover {
  position: relative;
  min-height: 320px;
  background: #10243a center / cover no-repeat;
  overflow: hidden;
}

.qm-ae-cover::before,
.qm-ae-resource-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 240, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.032) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, auto;
  opacity: 0.42;
}

.qm-ae-cover::after,
.qm-ae-resource-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 38, 0.01), rgba(8, 20, 38, 0.14)),
    linear-gradient(180deg, rgba(8, 20, 38, 0.01) 58%, rgba(8, 20, 38, 0.46) 100%);
}

.qm-ae-tech-badge {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  background: #ffea00;
  color: #081426;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 234, 0, 0.16);
}

.qm-ae-tech-cover-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 34px;
  text-align: center;
}

.qm-ae-tech-icon {
  display: inline-grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.88), rgba(0, 164, 190, 0.72));
  color: #e8feff;
  font: 900 30px/1 "JetBrains Mono", Consolas, monospace;
  box-shadow: 0 0 34px rgba(0, 240, 255, 0.28);
}

.qm-ae-tech-cover-center strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.1;
}

.qm-ae-tech-cover-center strong span {
  color: #00f0ff;
}

.qm-ae-tech-cover-center em {
  display: inline-flex;
  padding: 4px 20px;
  transform: skewX(-10deg);
  border-radius: 4px;
  background: #ffea00;
  color: #081426;
  font: 900 18px/1.3 "JetBrains Mono", Consolas, monospace;
}

.qm-ae-tech-cover-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 12, 24, 0.66);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 800;
}

.qm-ae-cover-icon {
  flex: 0 0 auto;
  color: #00f0ff;
}

.qm-ae-cover-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.qm-ae-cover-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qm-ae-cover-copy em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qm-ae-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 36px 36px 32px;
  color: rgba(255, 255, 255, 0.9);
}

.qm-ae-info-head,
.qm-ae-tech-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #00f0ff;
  font-size: 15px;
  font-weight: 900;
}

.qm-ae-tech-mark {
  width: 6px;
  height: 24px;
  border-radius: 999px;
  background: #00f0ff;
}

.qm-ae-info h3,
.entry-content .qm-ae-info h3,
.article-content .qm-ae-info h3 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0;
}

.qm-ae-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  line-height: 1.7;
}

.qm-ae-tech-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  width: 100%;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qm-ae-tech-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.qm-ae-tech-meta b {
  color: #00f0ff;
  font-size: 17px;
}

.qm-ae-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qm-ae-price-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.qm-ae-price-row strong {
  color: #00f0ff;
}

.qm-ae-purchase-panel {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(200px, 1fr);
  gap: 16px;
  width: 100%;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}

.qm-ae-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.qm-ae-old-price {
  color: rgba(255, 255, 255, 0.38);
  font-size: 16px;
  font-weight: 800;
  text-decoration: line-through;
}

.qm-ae-save-price {
  padding: 3px 8px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 7px;
  background: rgba(239, 68, 68, 0.12);
  color: #fb7185;
  font-size: 13px;
  font-weight: 800;
}

.qm-ae-price-block strong {
  flex-basis: 100%;
  color: #ffea00;
  font-size: 56px;
  line-height: 0.98;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(255, 234, 0, 0.34);
}

.qm-ae-price-block small {
  margin-right: 5px;
  font-size: 18px;
}

.qm-ae-price-block em {
  padding: 7px 12px;
  border: 1px solid rgba(255, 234, 0, 0.24);
  border-radius: 999px;
  background: rgba(255, 234, 0, 0.08);
  color: #ffea00;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.qm-ae-action-note {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.qm-ae-action-note span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.16);
  color: #00f0ff;
  font-size: 12px;
}

.qm-ae-actions {
  display: grid;
  width: 100%;
  gap: 14px;
}

.qm-ae-actions--two {
  grid-template-columns: 1fr 1fr;
}

.qm-ae-actions--one {
  grid-template-columns: 1fr;
}

.qm-ae-member-button,
.qm-ae-buy-button,
.qm-ae-primary,
.qm-ae-complete-button {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #00f0ff, #00c8ff);
  color: #06111f;
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qm-ae-member-button {
  border: 1px solid rgba(255, 234, 0, 0.26);
  background: rgba(255, 234, 0, 0.09);
  color: #ffea00;
}

.qm-ae-buy-button:hover,
.qm-ae-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.34);
}

.qm-ae-primary--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

.qm-ae-resource {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  gap: 0;
  margin: 28px 0;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: #081426;
  box-shadow: 0 22px 56px rgba(2, 8, 23, 0.18);
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.qm-ae-resource-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 36px 36px 32px;
}

.qm-ae-resource-head {
  display: grid;
  gap: 12px;
}

.qm-ae-resource-body h3,
.entry-content .qm-ae-resource-body h3,
.article-content .qm-ae-resource-body h3 {
  margin: 0;
  padding-left: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.23;
  font-weight: 950;
  letter-spacing: 0;
}

.qm-ae-resource-desc,
.entry-content .qm-ae-resource-desc,
.article-content .qm-ae-resource-desc {
  margin: 0;
  color: #6b7280;
  font-size: 17px;
  line-height: 1.55;
}

.qm-ae-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  font-size: 15px;
  font-weight: 950;
}

.qm-ae-download-box {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 5px;
  margin: 2px 0 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.qm-ae-download-box strong {
  font-weight: 400;
}

.qm-ae-resource .qm-ae-primary--small {
  min-width: min(280px, 100%);
  min-height: 56px;
  padding: 0 26px;
  color: #06111f;
  font-size: 18px;
}

.qm-ae-tech-safe {
  align-self: flex-end;
  margin: -2px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 800;
}

.qm-ae-copyright {
  margin: 26px 0 8px;
  color: #b5b5b5;
  font-size: 15px;
  line-height: 1.8;
}

.qm-ae-copyright h3 {
  margin: 0 0 6px;
  color: #a8a8a8;
  font-size: 18px;
}

.qm-ae-copyright p {
  margin: 0;
}

.qm-ae-unlocked--hidden {
  padding: 18px;
  border-radius: 8px;
  background: #fffdf5;
  border: 1px solid #f4d38e;
}

.qm-ae-hidden-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 10px;
  background: rgba(8, 20, 38, 0.04);
  color: #64748b;
}

.qm-ae-hidden-notice-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.11);
  font-size: 15px;
}

.qm-ae-hidden-notice-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.qm-ae-hidden-notice-copy strong {
  overflow: hidden;
  color: #334155;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qm-ae-hidden-notice-copy em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.qm-ae-modal[hidden] {
  display: none;
}

.qm-ae-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.qm-ae-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
}

.qm-ae-modal-panel {
  position: relative;
  width: min(430px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.28);
}

.qm-ae-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 22px;
  cursor: pointer;
}

.qm-ae-modal-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #ff6a24;
  font-weight: 800;
}

.qm-ae-modal-panel h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.qm-ae-modal-panel p {
  color: #6b7280;
}

.qm-ae-modal-main {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
}

.qm-ae-qr {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 3px;
  width: 150px;
  height: 150px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.qm-ae-qr span {
  background: #f4f4f5;
}

.qm-ae-qr span.is-on {
  background: #111827;
}

.qm-ae-qr.qm-wp-real-qr {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: center;
  gap: 0 !important;
  width: 196px;
  height: 196px;
  box-sizing: border-box;
}

.qm-ae-qr.qm-wp-real-qr img {
  display: block !important;
  width: 176px !important;
  height: 176px !important;
  min-width: 176px !important;
  max-width: 176px !important;
  max-height: 176px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  border: 0 !important;
}

.qm-ae-pay-summary strong {
  display: block;
  color: #ff6a24;
  font-size: 32px;
  line-height: 1.2;
}

.qm-ae-pay-summary span {
  color: #6b7280;
}

.qm-ae-pay-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.qm-ae-pay-methods button {
  min-height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.qm-ae-pay-methods button.is-active {
  border-color: #2b6cff;
  background: #eff6ff;
  color: #1d4ed8;
}

.qm-ae-complete-button {
  width: 100%;
}

.qm-ae-complete-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.qm-ae-modal-message {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 14px;
}

.qm-ae-modal-message.is-error {
  color: #dc2626;
}

.qm-ae-modal-message.is-success {
  color: #059669;
}

@container qm-ae-article (max-width: 880px) {
  .qm-ae-card,
  .qm-ae-resource {
    grid-template-columns: 1fr;
    margin: 22px 0;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(2, 8, 23, 0.16);
  }

  .qm-ae-cover,
  .qm-ae-resource-cover {
    min-height: 0;
    aspect-ratio: 16 / 7;
    background-position: center;
  }

  .qm-ae-card-label,
  .qm-ae-tech-badge {
    left: 18px;
    top: 18px;
    min-height: 32px;
    font-size: 13px;
  }

  .qm-ae-tech-cover-foot {
    justify-content: flex-start;
    min-height: 62px;
    padding: 8px 18px;
    background: rgba(4, 12, 24, 0.56);
    backdrop-filter: blur(14px);
    font-size: 12px;
  }

  .qm-ae-cover-copy strong {
    font-size: 16px;
  }

  .qm-ae-cover-copy em {
    font-size: 12px;
  }

  .qm-ae-info,
  .qm-ae-resource-body {
    gap: 8px;
    padding: 14px 18px 16px;
  }

  .qm-ae-resource-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: stretch;
    column-gap: 14px;
  }

  .qm-ae-resource-head {
    display: none;
  }

  .qm-ae-pill {
    padding: 5px 11px;
    font-size: 12px;
  }

  .qm-ae-info h3,
  .entry-content .qm-ae-info h3,
  .article-content .qm-ae-info h3,
  .qm-ae-resource-body h3,
  .entry-content .qm-ae-resource-body h3,
  .article-content .qm-ae-resource-body h3 {
    display: none;
  }

  .qm-ae-info-head,
  .qm-ae-tech-kicker {
    display: none;
    min-width: 0;
    font-size: 12px;
  }

  .qm-ae-tech-meta {
    grid-column: 1 / -1;
    gap: 7px 14px;
    padding-bottom: 8px;
  }

  .qm-ae-tech-meta span {
    font-size: 13px;
  }

  .qm-ae-download-box {
    align-self: stretch;
    margin: 0;
    padding: 11px 13px;
    font-size: 14px;
    line-height: 1.5;
  }

  .qm-ae-resource .qm-ae-download-box {
    grid-column: 1;
  }

  .qm-ae-resource .qm-ae-primary--small,
  .qm-ae-member-button,
  .qm-ae-buy-button,
  .qm-ae-primary,
  .qm-ae-complete-button {
    min-height: 48px;
    font-size: 15px;
  }

  .qm-ae-resource .qm-ae-primary--small {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .qm-ae-resource .qm-ae-tech-safe {
    display: none;
  }
}

@container qm-ae-article (max-width: 620px) {
  .qm-ae-resource-body {
    grid-template-columns: 1fr;
  }

  .qm-ae-resource .qm-ae-download-box,
  .qm-ae-resource .qm-ae-primary--small,
  .qm-ae-tech-safe {
    grid-column: 1;
  }
}

@media (max-width: 820px) {
  .qm-ae-card,
  .qm-ae-resource {
    grid-template-columns: 1fr;
  }

  .qm-ae-cover,
  .qm-ae-resource-cover {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .qm-ae-info,
  .qm-ae-resource-body {
    padding: 24px 24px 26px;
  }

  .qm-ae-purchase-panel {
    grid-template-columns: 1fr;
  }

  .qm-ae-action-note {
    align-self: stretch;
  }

  .qm-ae-actions--two {
    grid-template-columns: 1fr;
  }

  .qm-ae-modal-main {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 520px) {
  .qm-ae-card,
  .qm-ae-resource {
    border-radius: 14px;
  }

  .qm-ae-cover,
  .qm-ae-resource-cover {
    min-height: 0;
  }

  .qm-ae-info,
  .qm-ae-resource-body {
    padding: 22px 18px 24px;
  }

  .qm-ae-info h3,
  .entry-content .qm-ae-info h3,
  .article-content .qm-ae-info h3,
  .qm-ae-resource-body h3,
  .entry-content .qm-ae-resource-body h3,
  .article-content .qm-ae-resource-body h3 {
    font-size: 22px;
  }

  .qm-ae-tech-cover-center strong {
    font-size: 24px;
  }

  .qm-ae-tech-safe {
    align-self: flex-start;
  }
}
