/* 1.2.7: readable course prices + native benefit status. No price overrides. */
body.xhc-cosmos .posts-item .item-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  white-space: normal;
  overflow: visible;
  margin-block: 13px 12px;
}
body.xhc-cosmos .posts-item .item-tags > a.but { margin: 0; }
body.xhc-cosmos .posts-item .item-tags > a.meta-pay.xhc-price-chip {
  min-height: 38px;
  padding: 7px 12px;
  gap: 5px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 10px rgba(167,78,38,.07);
  line-height: 1;
}
body.xhc-cosmos .posts-item .item-tags .xhc-resource-kind { font-size: 10px; opacity: .85; }
body.xhc-cosmos .posts-item .item-tags .xhc-price-currency { font-size: 11px; font-weight: 700; }
body.xhc-cosmos .posts-item .meta-pay .xhc-price-value { font-size: 23px; font-weight: 800; letter-spacing: -.6px; line-height: 1; }
body.xhc-cosmos .posts-item .item-tags > a.meta-pay.xhc-free {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--xhc-download-border) !important;
  border-radius: 12px;
  background: var(--xhc-download-bg) !important;
  color: var(--xhc-download) !important;
  font-size: 14px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 3px 10px rgba(8,121,105,.07);
}
body.xhc-cosmos .xhc-benefit-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body.xhc-cosmos .posts-item .xhc-free .xhc-benefit-icon { width: 22px; height: 22px; }
body.xhc-cosmos .xcn-price-main strong { font-size: 30px; letter-spacing: -.7px; font-weight: 800; }
body.xhc-cosmos .xcn-price .xcn-price-main.xhc-course-free strong { color: var(--xhc-download) !important; background: var(--xhc-download-bg); border: 1px solid var(--xhc-download-border); border-radius: 10px; padding: 5px 10px; font-size: 23px; letter-spacing: 0; }
body.xhc-cosmos .xcn-members > div { position: relative; padding: 14px 11px !important; }
body.xhc-cosmos .xcn-members > div > .xhc-benefit-icon { position: absolute; top: 11px; right: 10px; width: 18px; height: 18px; opacity: .75; }
body.xhc-cosmos .xcn-members small { font-size: 11px; padding-right: 20px; }
body.xhc-cosmos .xcn-members b { font-size: 21px; line-height: 1.35; font-weight: 750; }
body.xhc-cosmos .xcn-members .xhc-member-free b { font-size: 23px; }
body.xhc-cosmos .pay-box .vip-price-text { font-size: 22px; font-weight: 750; }
body.xhc-cosmos .pay-box .vip-price img.img-icon { width: 24px; height: 24px; }
body.xhc-cosmos .pay-box .vip-price > .xhc-benefit-icon { margin-right: 7px; vertical-align: middle; }
body.xhc-cosmos :is(.pay-box,.xcn-members) .xhc-saving { font-size: 11px !important; }
body.xhc-cosmos .pay-box > .payvip-icon > .flex0 { padding: 12px 17px; }
body.xhc-cosmos .pay-box > .payvip-icon > .flex0 b.xhc-benefit-free { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; line-height: 1.3; }
body.xhc-cosmos .pay-box > .payvip-icon .xhc-benefit-free img { width: 32px; height: 32px; margin: 0; filter: drop-shadow(0 2px 5px rgba(143,100,200,.25)); }
body.xhc-cosmos .pay-widget .xhc-benefit-free { font-size: 21px; line-height: 1.4; color: var(--xhc-vip-ink); }
body.xhc-cosmos .pay-widget .xhc-benefit-emblem::before { display: none; }
body.xhc-cosmos .pay-widget .xhc-benefit-emblem { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 21px; border: 1px solid var(--xhc-vip-border); background: var(--xhc-vip-bg); box-shadow: 0 0 22px rgba(157,115,214,.12); }
body.xhc-cosmos .pay-widget .xhc-benefit-emblem .xhc-benefit-icon { width: 42px; height: 42px; stroke-width: 1.2; }

/* Distinct golden star / supreme orbital crystal, not a generic shopping bag. */
body.xhc-cosmos .xhc-tier-medallion { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; flex: 0 0 auto; margin-right: 9px; border-radius: 14px; background: var(--xhc-gold-bg); border: 1px solid var(--xhc-gold-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 0 18px rgba(199,155,67,.09); }
body.xhc-cosmos .xhc-plan-card[data-xhc-card-tier="2"] .xhc-tier-medallion { background: var(--xhc-vip-bg); border-color: var(--xhc-vip-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 18px rgba(167,123,221,.13); }
body.xhc-cosmos .xhc-tier-symbol { width: 32px; height: 32px; margin: 0; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
body.xhc-cosmos .xhc-icon-orbit { opacity: .55; transform-origin: 16px 16px; }
body.xhc-cosmos .xhc-icon-core { fill: currentColor; fill-opacity: .12; }
body.xhc-cosmos .xhc-plan-top { font-size: 12px; }
body.xhc-cosmos .xhc-plan-price strong { font-size: 42px; font-weight: 800; }
body.xhc-cosmos .xhc-plan-card h3 { font-size: 20px; }
body.xhc-cosmos .xhc-plan-price small { font-size: 11px; }
body.xhc-cosmos .xhc-plan-card[data-xhc-card-tier="1"] .xhc-plan-price strong { color: var(--xhc-gold-ink) !important; }
body.xhc-cosmos .xhc-plan-card[data-xhc-card-tier="2"] .xhc-plan-price strong { color: var(--xhc-vip-ink) !important; }
body.xhc-cosmos .xhc-plan-action { font-size: 13px; min-height: 42px; }
body.xhc-cosmos .xhc-plan-action:disabled { color: var(--xhc-muted); opacity: .8; }
body.xhc-cosmos .header :is(.fa,.icon) { transition: color .2s, filter .2s; }
body.xhc-cosmos :is(.header,.payvip-modal) img.img-icon[alt$="会员"] { min-width: 24px; height: 24px; filter: drop-shadow(0 2px 5px rgba(151,115,211,.2)); }
@media (hover:hover) {
  body.xhc-cosmos:not(.xhc-still) .xhc-plan-card:hover .xhc-icon-orbit { animation: xhc-orbit-reveal .85s ease-out 1; }
  body.xhc-cosmos:not(.xhc-still) .posts-item.card:hover .xhc-free { box-shadow: 0 0 18px rgba(32,174,139,.17); }
  body.xhc-cosmos:not(.xhc-still) .posts-item.card:hover .xhc-price-chip { box-shadow: 0 0 18px rgba(222,128,75,.16); }
  body.xhc-cosmos .header a:hover :is(.fa,.icon) { filter: drop-shadow(0 0 6px currentColor); }
}
@keyframes xhc-orbit-reveal { from { transform: rotate(-30deg); opacity: .3; } to { transform: rotate(330deg); opacity: .55; } }
@media (min-width:1200px) and (max-width:1399px) {
  body.xhc-cosmos .xhc-tier-medallion { width: 36px; height: 36px; margin-right: 6px; border-radius: 11px; }
  body.xhc-cosmos .xhc-tier-symbol { width: 28px; height: 28px; }
  body.xhc-cosmos .xhc-plan-top { font-size: 11px; }
  body.xhc-cosmos .xhc-plan-price strong { font-size: 38px; }
}
@media (max-width:767px) {
  body.xhc-cosmos .posts-item .item-tags { gap: 6px; margin-block: 10px; }
  body.xhc-cosmos .posts-item .item-tags > a.meta-pay.xhc-price-chip { min-height: 35px; padding: 6px 10px; }
  body.xhc-cosmos .posts-item .meta-pay .xhc-price-value { font-size: 21px; }
  body.xhc-cosmos .posts-item .item-tags > a.meta-pay.xhc-free { min-height: 35px; font-size: 13px; padding: 6px 10px; }
  body.xhc-cosmos .xcn-price-main strong { font-size: 27px; }
  body.xhc-cosmos .xcn-members b { font-size: 19px; }
  body.xhc-cosmos .xcn-members .xhc-member-free b { font-size: 21px; }
  body.xhc-cosmos .pay-box > .payvip-icon > .flex0 { padding: 9px 10px; }
  body.xhc-cosmos .pay-box > .payvip-icon > .flex0 b.xhc-benefit-free { gap: 5px; font-size: 14px; }
  body.xhc-cosmos .pay-box > .payvip-icon .xhc-benefit-free img { width: 25px; height: 25px; }
  body.xhc-cosmos .xhc-plan-price strong { font-size: 38px; }
}
body.xhc-cosmos.xhc-still :is(.xhc-icon-orbit,.xhc-benefit-icon) { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion:reduce) {
  body.xhc-cosmos :is(.xhc-icon-orbit,.xhc-benefit-icon) { animation: none !important; transition: none !important; }
}
