/* javml 试看：弹窗壳（黑底白字，与侧栏/全站暗色一致） */
.javml-trial-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.javml-trial-modal-backdrop.is-open {
  display: flex;
}
@media (min-width: 768px) {
  .javml-trial-modal-backdrop {
    align-items: center;
    padding: 16px;
  }
}
.javml-trial-modal {
  background: #07090e;
  color: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 12px 12px 0 0;
  border: 1px solid #222;
  padding: 24px 20px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  animation: javmlTrialSlide 0.2s ease-out;
}
@media (min-width: 768px) {
  .javml-trial-modal {
    border-radius: 12px;
  }
}
@keyframes javmlTrialSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .javml-trial-modal { animation: none; }
}
.javml-trial-modal h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #fff;
}
.javml-trial-modal p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #aaa;
  line-height: 1.5;
}
.javml-trial-modal .cta-primary {
  display: block;
  width: 100%;
  padding: 12px;
  background: #ff4081;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
}
.javml-trial-modal .cta-secondary {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #ff9ec0;
  border: 1px solid #ff4081;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 10px;
}
.javml-trial-modal .cta-secondary:last-child {
  margin-bottom: 0;
}
.javml-trial-modal .cta-secondary:hover {
  color: #fff;
  background: rgba(255, 64, 129, 0.12);
}
.javml-trial-modal .footnote {
  margin-top: 14px;
  font-size: 12px;
  color: #777;
  text-align: center;
}
.javml-trial-modal .step-email input,
.javml-trial-modal .step-login input,
.javml-trial-modal #javml-trial-reset-login,
.javml-trial-modal #javml-trial-reset-code,
.javml-trial-modal #javml-trial-reset-password,
.javml-trial-modal #javml-trial-reset-password2 {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #12151c;
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.javml-trial-modal .step-email input::placeholder,
.javml-trial-modal .step-login input::placeholder,
.javml-trial-modal #javml-trial-reset-login::placeholder,
.javml-trial-modal #javml-trial-reset-code::placeholder,
.javml-trial-modal #javml-trial-reset-password::placeholder,
.javml-trial-modal #javml-trial-reset-password2::placeholder {
  color: #666;
}
.javml-trial-modal .step-email input:focus,
.javml-trial-modal .step-login input:focus,
.javml-trial-modal #javml-trial-reset-login:focus,
.javml-trial-modal #javml-trial-reset-code:focus,
.javml-trial-modal #javml-trial-reset-password:focus,
.javml-trial-modal #javml-trial-reset-password2:focus {
  outline: none;
  border-color: #ff4081;
}
.javml-trial-modal .step-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}
.javml-trial-modal .step-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}
.javml-trial-modal .step-dots span.is-active {
  background: #ff4081;
}
.javml-trial-modal .cta-primary.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

/* 弹窗内套餐卡：暗色 */
.javml-trial-modal .javml-trial-plan-card {
  background: #12151c;
  border-color: #2a2a2a;
  color: #fff;
}
.javml-trial-modal .javml-trial-plan-card.is-selected {
  border-color: #ff4081;
  box-shadow: 0 0 0 2px rgba(255, 64, 129, 0.35);
}
.javml-trial-modal .javml-trial-plan-name {
  color: #fff;
}
.javml-trial-modal .javml-trial-plan-duration {
  color: #aaa;
}
.javml-trial-modal .javml-trial-plan-renew {
  color: #ff4081;
}

/* 弹窗套餐 meta 一行；移动端选中才出确认按钮，减少割裂感 */
.javml-trial-modal .javml-trial-plan-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
}
@media (max-width: 767px) {
  .javml-trial-modal .javml-trial-plan-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    text-align: left;
  }
  .javml-trial-modal .javml-trial-plan-meta {
    justify-content: flex-start;
    width: 100%;
    gap: 6px 12px;
  }
  .javml-trial-modal .javml-trial-plan-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
  }
  .javml-trial-modal .javml-trial-plan-price {
    font-size: 17px;
    white-space: nowrap;
  }
  .javml-trial-modal .javml-trial-plan-duration {
    white-space: nowrap;
    opacity: 0.9;
  }
  .javml-trial-modal .javml-trial-plan-renew {
    margin: 0;
  }
  .javml-trial-modal .javml-trial-plan-btn {
    margin-top: 0;
  }
}

.javml-trial-form-error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 64, 129, 0.12);
  border: 1px solid #ff4081;
  color: #ff9ec0;
  font-size: 13px;
  line-height: 1.45;
}
.javml-trial-form-error.is-visible {
  display: block;
}

.javml-trial-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 10001;
  display: none;
}
.javml-trial-toast.is-visible {
  display: block;
}

/* 登录后侧栏会员卡（不依赖页内 critical 内联） */
.javml-trial-member-card {
  padding: 4px 0 2px;
  color: #eee;
}
.javml-trial-member-title {
  font-size: 14px;
  font-weight: 700;
  color: #ff9ec0;
  margin-bottom: 6px;
}
.javml-trial-member-email {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}
.javml-trial-member-meta {
  font-size: 12px;
  color: #aaa;
  line-height: 1.4;
  margin-bottom: 10px;
}
.javml-trial-member-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.javml-trial-member-renew {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ff4081;
  border-radius: 4px;
  background: transparent;
  color: #ff9ec0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.javml-trial-member-renew:hover {
  background: rgba(255, 64, 129, 0.15);
  color: #fff;
}
.javml-trial-member-logout {
  padding: 8px 6px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.javml-trial-member-logout:hover {
  color: #ff9ec0;
}
.javml-trial-sticky.is-member [data-trial-sticky-label] {
  opacity: 0.85;
}

.javml-trial-uuu-hint {
  font-size: 13px;
  opacity: 0.85;
  margin: 0 0 12px;
}
