.points-demo { --navy: #263247; --coral: #c54a58; background: #fffaf4; }
.vip-subscription {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f0f2f8;
}
.vip-subscription h3, .vip-subscription p, .vip-order h4, .vip-order p { margin: 0; }
.vip-subscription p, .vip-order .vip-order-meta { font-size: .9rem; }
.vip-order-list .vip-order { gap: 10px; padding: 13px; }
.vip-order-heading, .vip-order-actions, .vip-order-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vip-order-list .vip-order-details { min-width: min(100%, 235px); }
.vip-order-list .vip-order-actions { flex: 0 1 auto; }
.vip-order .vip-order-id { margin-top: 4px; font-size: .8rem; color: #625b63; }
.vip-order-state { padding: 3px 8px; border-radius: 8px; background: #f0f2f8; font-size: .875rem; }
.vip-order-state[data-state="paid"] { background: #e3f3e8; color: #245b39; }
.vip-order-state[data-state="open"] { background: #fff1df; color: #77450c; }
.vip-order-pages { justify-content: flex-end; }
.demo-strip { padding: 7px 12px; background: var(--navy); color: white; text-align: center; font-size: .78rem; }
.demo-top { gap: 12px; background: white; }
.demo-top nav, .demo-tabs, .demo-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.demo-top nav, .demo-heading > a { font-size: .9rem; }
.demo-top nav a:hover, .demo-heading > a { color: var(--coral); }
.points-demo button, .demo-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; padding: 9px 14px; min-height: 41px; background: var(--navy); color: white; font-size: .86rem; font-weight: 750; cursor: pointer; }
.points-demo button:disabled { opacity: .5; cursor: default; }
.points-demo .secondary, .points-demo .demo-tabs button { background: white; color: var(--navy); border-color: var(--line); }
.points-demo .demo-tabs button[aria-pressed=true] { background: var(--navy); color: white; }
.points-demo .pagination button { padding: 0; }
.demo-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 6vw, 90px); align-items: center; padding: clamp(44px, 8vw, 100px) 5%; }
.demo-hero h1 { margin: 0; font-size: clamp(37px, 6vw, 71px); letter-spacing: -.055em; line-height: 1.13; }
.demo-hero h1 em { color: var(--coral); font-style: normal; }
.demo-hero p:not(.eyebrow), .demo-box p { color: #6a6269; }
.demo-hero p:not(.eyebrow) { max-width: 400px; margin: 21px 0; }
.member-tile { display: grid; align-content: center; justify-items: start; min-height: 225px; padding: clamp(18px, 4vw, 42px); gap: 11px; border-radius: 28px; background: linear-gradient(150deg,#fddfb9,#f8c3c6); box-shadow: var(--shadow); }
.member-tile strong { font-size: clamp(1.5rem, 3vw, 2.7rem); }
.member-tile span { font-size: .9rem; }
.demo-box { margin: 0 0 28px; padding: clamp(16px, 4vw, 45px); border: 1px solid var(--line); border-radius: 24px; background: white; scroll-margin-top: 15px; }
.demo-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.demo-box h2, .demo-heading h1 { margin: 0 0 8px; font-size: clamp(1.45rem, 3vw, 2.2rem); }
#card-total { margin-left: 4px; padding: 4px 8px; border-radius: 8px; background: var(--soft); color: #9f3e43; font-size: .8rem; white-space: nowrap; }
.points-demo input, .points-demo select { min-width: 0; max-width: 100%; border: 1px solid #d9ccc4; border-radius: 10px; padding: 8px 10px; box-sizing: border-box; background: white; color: var(--ink); }
.points-demo label:not(.check) { display: grid; gap: 4px; font-size: .88rem; }
.points-demo .card-body { min-height: auto; }
.points-demo .playlist-card { width: 100%; max-width: none; margin: 0; }
.points-demo .card-body h3 { margin: 0; line-height: 1.33; }
.points-demo .card-body .add-button { background: var(--coral); color: #fff; }
.points-demo .card-description { height: 2.8em; }
.card-meta { margin-bottom: 12px; color: #625b63; font-size: .8rem; }
.demo-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 15px 0 28px; }
.demo-plans article, .demo-stats > div { padding: 16px; border: 1px solid var(--line); border-radius: 15px; }
.demo-plans h3 { margin: 0 0 8px; }
.demo-plans strong { font-size: 1.6rem; }
.demo-plans .plan-cny { margin: .2rem 0 .9rem; font-size: .95rem; }
.demo-plans .plan-discount { color: #263247; font-weight: 750; }
.demo-box .plan-price-note { font-size: .875rem; }
.vip-recharge { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; }
.vip-recharge fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.vip-recharge legend { margin-bottom: 10px; font-weight: 750; }
.recharge-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.points-demo label.recharge-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.recharge-option input { margin: 4px 0 0; accent-color: var(--navy); }
.recharge-option small { display: block; color: #625b63; font-size: .875rem; }
.recharge-option:has(input:checked) { border-color: var(--navy); background: #f0f2f8; }
.recharge-custom { margin-top: 12px; }
.recharge-custom input { width: min(100%, 165px); margin-top: 5px; }
.recharge-total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.recharge-total output { font-weight: 750; }
.recharge-total p { margin: 3px 0 0; font-size: .875rem; }
@media (max-width: 580px) { .recharge-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demo-plans .annual-plan { background: #fff1e7; }
.demo-plans .lifetime-plan { background: #f0f2f8; }
.demo-fields, .invite-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 12px; }
.demo-fields label { flex: 1 1 160px; }
.demo-fields p { margin: 0; align-self: center; }
.invite-row { align-items: center; }
.invite-row strong, .demo-stats strong { display: block; overflow-wrap: anywhere; }
.invite-row strong { font-size: 1.3rem; letter-spacing: .15em; }
.demo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; margin: 14px 0; }
.demo-stats > div { background: #faf6ef; }
.demo-tabs { margin-bottom: 16px; }
.demo-list { display: grid; gap: 6px; padding: 0; list-style: none; }
.demo-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.demo-list li > div { flex: 1 1 200px; min-width: 0; }
.demo-list li small { display: block; color: #615862; }
.demo-list .replacement-due { border-color: #c4414c; background: #fff0f0; }
.replacement-due span { color: #a32d37; font-weight: bold; font-size: .85rem; }
.check { display: inline-flex; gap: 5px; align-items: center; margin: 0 10px 10px 0; }
.points-demo .points-dialog[open] { display: block; width: min(480px, calc(100% - 24px)); max-height: 88dvh; padding: 26px; }
.points-demo .points-dialog > div { padding: 0; }
.points-dialog .close-demo { position: absolute; right: 8px; top: 8px; min-height: 33px; width: 33px; padding: 0; }
.points-dialog h2 { padding-right: 30px; font-size: 1.45rem; overflow-wrap: anywhere; }
.points-dialog form { display: grid; gap: 10px; }
.points-demo #verified-dialog:has(.vip-profile:not([hidden])) { width: min(560px, calc(100% - 24px)); }
.vip-profile { display: grid; gap: 14px; }
.profile-header {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 17px;
  border-radius: 15px;
  background: linear-gradient(135deg, #263247, #3e5270);
  color: #fff;
}
.profile-header[data-membership="plus"] { background: linear-gradient(135deg, #245667, #347185); }
.profile-header[data-membership="annual"] { background: linear-gradient(135deg, #3c3b67, #575386); }
.profile-header[data-membership="lifetime"],
.profile-header[data-membership="lifetime_diamond"] { background: linear-gradient(135deg, #382a59, #624577); }
.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  border-radius: 14px;
  background: #ffffff26;
  font-size: 1.25rem;
  font-weight: 800;
}
.profile-identity { min-width: 0; }
.profile-identity strong { display: block; overflow-wrap: anywhere; }
.profile-identity span { font-size: .875rem; color: #fff; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; }
.profile-stats > div { padding: 9px 7px; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.profile-stats dt { font-size: .875rem; color: #625b63; }
.profile-stats dd { margin: 4px 0 0; font-size: clamp(1rem, 4vw, 1.25rem); font-weight: 800; overflow-wrap: anywhere; }
.profile-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid #edc8c1;
  border-radius: 13px;
  background: #fff1eb;
}
.profile-invite h3, .profile-history summary { font-size: 1rem; font-weight: 750; }
.profile-invite h3, .profile-invite p, .profile-actions p { margin: 0; }
.profile-invite code { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: .14em; }
.profile-invite p, .profile-actions p { color: #625b63; font-size: .875rem; }
.profile-copy-fallback { flex: 1 1 100%; }
.profile-copy-fallback textarea {
  min-width: 0;
  width: 100%;
  padding: 8px;
  border: 1px solid #cdb7b4;
  border-radius: 8px;
  font: inherit;
}
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-actions p { flex-basis: 100%; }
.profile-history { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.profile-history summary { cursor: pointer; }
.profile-history ul { margin: 8px 0 0; padding-inline-start: 20px; font-size: .875rem; }
.profile-history li { margin: 6px 0; overflow-wrap: anywhere; }
.profile-history a { text-decoration: underline; }
.points-demo .profile-history .history-copy { min-height: 32px; margin-inline-start: 7px; padding: 4px 8px; }
.points-demo .profile-logout { justify-self: start; }
.demo-url { display: block; overflow-wrap: anywhere; }
.demo-toast { position: fixed; z-index: 10; bottom: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 92vw; border-radius: 12px; padding: 10px 17px; background: var(--navy); color: white; }
@media(max-width: 650px) {
  .demo-top nav { order: 3; flex-basis: 100%; justify-content: center; }
  .demo-top { flex-wrap: wrap; }
  .demo-hero, .demo-plans { grid-template-columns: 1fr; }
  .demo-controls { flex-wrap: nowrap; width: 100%; }
  .demo-controls input { flex: 1; }
  .demo-tabs { gap: 6px; }
}
