/* 登录 / 支付弹窗 — 与编辑器深色风格一致 */
body.modal-open { overflow: hidden; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 10000;
}
.modal-backdrop[hidden] { display: none !important; }
.modal-backdrop.is-visible { opacity: 1; }

.modal-box {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: min(400px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #1a1a28 0%, #12121c 55%, #0e0e12 100%);
  border: 1px solid rgba(255, 0, 80, 0.25);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 30px rgba(255,0,80,0.08);
  padding: 24px 22px 20px;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  color: #e8e8ed;
}
.modal-box[hidden] { display: none !important; }
.modal-box.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #fff; border-color: #ff0050; }

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.modal-sub {
  font-size: 12px;
  color: #888;
  margin-bottom: 18px;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.auth-tabs button {
  flex: 1;
  padding: 8px;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  background: #0e0e12;
  color: #888;
  cursor: pointer;
  font-size: 13px;
}
.auth-tabs button.active {
  background: rgba(255,0,80,0.12);
  border-color: #ff0050;
  color: #ff0050;
  font-weight: 600;
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-form label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}
.auth-form input {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  background: #0e0e12;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  color: #e8e8ed;
  font-size: 14px;
}
.auth-form input:focus {
  outline: none;
  border-color: #ff0050;
}
.auth-form input.is-taken {
  border-color: #ff6b6b;
}
.auth-field-hint {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  font-size: 11px;
  color: #ff6b6b;
}

.btn-primary {
  width: 100%;
  padding: 11px;
  margin-top: 6px;
  border: none;
  border-radius: 8px;
  background: #ff0050;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { background: #ff3373; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-msg {
  min-height: 20px;
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 10px;
  text-align: center;
}

.auth-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #888;
  cursor: pointer;
  user-select: none;
}
.auth-agree-row input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #ff0050;
  cursor: pointer;
}
.auth-policy-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: #ff0050;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-policy-link:hover { color: #ff4d7a; }

.modal-box-policy {
  width: min(480px, calc(100vw - 32px));
  max-height: 85vh;
  padding-top: 18px;
}
.policy-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.policy-tab {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  background: #0e0e12;
  color: #888;
  cursor: pointer;
  font-size: 11px;
}
.policy-tab.active {
  background: rgba(255,0,80,0.12);
  border-color: #ff0050;
  color: #ff0050;
  font-weight: 600;
}
.policy-body {
  max-height: min(60vh, 520px);
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.65;
  color: #bbb;
  padding-right: 4px;
}
.policy-body h3 {
  font-size: 13px;
  color: #e8e8ed;
  margin: 14px 0 8px;
}
.policy-body h3:first-child { margin-top: 0; }
.policy-body p { margin: 0 0 8px; }
.policy-body ul.policy-list {
  margin: 0 0 10px 18px;
  padding: 0;
  color: #bbb;
  font-size: 12px;
  line-height: 1.65;
}
.policy-body ul.policy-list li { margin-bottom: 4px; }
.policy-body table.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  font-size: 11px;
  line-height: 1.5;
}
.policy-body table.policy-table th,
.policy-body table.policy-table td {
  border: 1px solid #2a2a38;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
.policy-body table.policy-table th {
  background: rgba(255,0,80,0.08);
  color: #ddd;
  font-weight: 600;
}
.policy-body table.policy-table td { color: #aaa; }
.policy-body table.policy-table td:last-child { white-space: nowrap; color: #ffd700; }
.policy-body strong { color: #ddd; }
.policy-operator {
  padding: 10px 12px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a38;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.65;
  color: #999;
}
.policy-operator a { color: #ff0050; }
.policy-contact {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #aaa;
}
.policy-contact a { color: #ff0050; }
.policy-meta {
  margin-top: 16px !important;
  color: #666 !important;
  font-size: 11px !important;
}

#btnAuthOpen[hidden],
.header-user-btn[hidden] {
  display: none !important;
}

.header-user-btn {
  padding: 5px 12px;
  border: 1px solid #2a2a38;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8e8ed;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user-btn:hover {
  border-color: #ff0050;
  color: #fff;
}

#btnAuthOpen {
  padding: 5px 12px;
  border: 1px solid #ff0050;
  border-radius: 6px;
  background: rgba(255,0,80,0.1);
  color: #ff0050;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.user-info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2a38;
  border-radius: 10px;
  padding: 4px 14px;
  margin-bottom: 18px;
}
.user-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.user-info-row:last-child { border-bottom: none; }
.user-info-row-balance-only {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-box-user {
  width: min(420px, calc(100vw - 32px));
}

.modal-sub-with-inbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-inbox-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #aaa;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.user-inbox-btn:hover {
  border-color: rgba(255, 0, 80, 0.45);
  color: #ff4d7a;
  background: rgba(255, 0, 80, 0.08);
}

.user-inbox-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff1744;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #16161d;
}

.modal-box-inbox {
  width: min(420px, calc(100vw - 32px));
  max-height: min(80vh, 560px);
  display: flex;
  flex-direction: column;
}

.inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 120px;
  max-height: 360px;
}

.inbox-empty {
  text-align: center;
  color: #666;
  font-size: 13px;
  padding: 24px 12px;
  margin: 0;
}

.inbox-item {
  padding: 12px;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #12121a;
}

.inbox-item.unread {
  border-color: rgba(255, 0, 80, 0.35);
  background: rgba(255, 0, 80, 0.05);
}

.inbox-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.inbox-kind {
  font-size: 10px;
  font-weight: 600;
  color: #ff4d7a;
  background: rgba(255, 0, 80, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.inbox-time {
  font-size: 10px;
  color: #666;
  flex-shrink: 0;
}

.inbox-title {
  font-size: 13px;
  font-weight: 600;
  color: #e8e8ed;
  margin-bottom: 4px;
}

.inbox-body {
  font-size: 12px;
  color: #999;
  line-height: 1.45;
  margin-bottom: 8px;
}

.inbox-delete-btn {
  border: none;
  background: none;
  padding: 0;
  font-size: 11px;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inbox-delete-btn:hover {
  color: #ff4d7a;
}

.user-recharge-section {
  margin-bottom: 16px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.user-recharge-section .recharge-amount-label {
  margin-top: 12px;
}
.user-info-label {
  font-size: 12px;
  color: #888;
  flex-shrink: 0;
}
.user-info-value {
  font-size: 14px;
  color: #e8e8ed;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.btn-logout {
  width: 100%;
  padding: 11px;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  background: transparent;
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
}
.btn-logout:hover {
  border-color: #ff0050;
  color: #ff6b6b;
  background: rgba(255, 0, 80, 0.08);
}

/* 支付弹窗 */
.pay-amount {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #ff0050;
  margin: 8px 0 4px;
}
.pay-format {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.pay-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.pay-channels button {
  padding: 10px;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  background: #0e0e12;
  color: #ccc;
  cursor: pointer;
  font-size: 13px;
}
.pay-channels button.active {
  border-color: #ff0050;
  color: #fff;
  background: rgba(255,0,80,0.1);
}

.pay-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 12px;
}
.pay-qr-wrap canvas { width: 180px !important; height: 180px !important; }
.pay-qr-tip { font-size: 11px; color: #666; text-align: center; }

.pay-status {
  text-align: center;
  font-size: 12px;
  color: #888;
  min-height: 18px;
}
.modal-policy-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: #666;
  text-align: center;
  line-height: 1.5;
}
.modal-policy-hint .auth-policy-link {
  color: #888;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}
.modal-policy-hint .auth-policy-link:hover { color: #ff0050; }

/* 充值弹窗 */
.recharge-amount-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}
.recharge-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.recharge-amount-btn {
  position: relative;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: linear-gradient(160deg, #1e1e28 0%, #14141a 100%);
  color: #b8b8c8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s, color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  line-height: 1.15;
  overflow: hidden;
}
.recharge-amount-btn .amt-unit {
  font-size: 10px;
  font-weight: 500;
  color: #666;
  margin-bottom: 1px;
}
.recharge-amount-btn .amt-value {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.recharge-amount-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(160deg, #262632 0%, #1a1a24 100%);
  color: #eee;
  transform: translateY(-1px);
}
.recharge-amount-btn:hover .amt-unit {
  color: #888;
}
.recharge-amount-btn.active {
  border-color: #ff0050;
  background: linear-gradient(160deg, rgba(255, 0, 80, 0.2) 0%, rgba(255, 0, 80, 0.06) 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 0, 80, 0.4), 0 4px 18px rgba(255, 0, 80, 0.18);
  transform: translateY(-1px);
}
.recharge-amount-btn.active .amt-unit {
  color: #ff88aa;
}
.recharge-amount-btn.active .amt-value {
  color: #ff4d7a;
}
.recharge-amount-btn.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  pointer-events: none;
}
.recharge-pay-section { margin-top: 4px; }
.recharge-selected {
  text-align: center;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 12px;
}
.recharge-selected strong {
  color: #ff0050;
  font-size: 18px;
}
.recharge-channels { margin-bottom: 12px; }

/* 用户名 + VIP 徽章 */
.header-user-combo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  padding: 5px 10px 5px 12px;
}
.header-user-name {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}
.vip-badge-text {
  position: relative;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* 未开通：灰色 + 光影流过 */
.vip-badge.vip-none {
  background: linear-gradient(135deg, #3a3a48 0%, #2a2a34 50%, #3a3a48 100%);
  border-color: rgba(255, 255, 255, 0.08);
}
.vip-badge.vip-none .vip-badge-text { color: #9a9aaa; }
.vip-badge.vip-none::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.35) 50%, transparent 65%);
  animation: vip-shine 2.8s ease-in-out infinite;
  z-index: 1;
}

/* 一级 VIP 红色流光 */
.vip-badge.tier-vip {
  background: rgba(255, 40, 60, 0.15);
  border-color: rgba(255, 60, 80, 0.45);
}
.vip-badge.tier-vip .vip-badge-text {
  background: linear-gradient(90deg, #ff3355, #ff8899, #ff2244, #ff6688, #ff3355);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vip-text-flow 2.2s linear infinite;
}

/* 二级 VVIP 橙色流光 */
.vip-badge.tier-vvip {
  background: rgba(255, 140, 0, 0.14);
  border-color: rgba(255, 160, 40, 0.45);
}
.vip-badge.tier-vvip .vip-badge-text {
  background: linear-gradient(90deg, #ff8800, #ffcc66, #ff7700, #ffaa44, #ff8800);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vip-text-flow 2.2s linear infinite;
}

/* 三级 SVIP 紫色流光 */
.vip-badge.tier-svip {
  background: rgba(160, 80, 255, 0.16);
  border-color: rgba(180, 100, 255, 0.5);
}
.vip-badge.tier-svip .vip-badge-text {
  background: linear-gradient(90deg, #a855f7, #e9d5ff, #9333ea, #c084fc, #a855f7);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vip-text-flow 2.2s linear infinite;
}

/* Ultra 超级会员 金紫流光 */
.vip-badge.tier-ultra {
  background: rgba(255, 200, 50, 0.18);
  border-color: rgba(255, 215, 80, 0.55);
}
.vip-badge.tier-ultra .vip-badge-text {
  background: linear-gradient(90deg, #ffd700, #fff8dc, #ff8c00, #ffe066, #ffd700);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vip-text-flow 2.2s linear infinite;
}

@keyframes vip-shine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes vip-text-flow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* 会员充值弹窗 */
.modal-box-membership {
  width: min(640px, calc(100vw - 32px));
}
.membership-plan-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 520px) {
  .membership-plan-cards { grid-template-columns: 1fr; }
}
.membership-plan-card {
  text-align: left;
  padding: 14px 12px;
  border: 1px solid #2a2a38;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #e8e8ed;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.membership-plan-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.membership-plan-card.active {
  border-color: #ff0050;
  box-shadow: 0 0 20px rgba(255, 0, 80, 0.12);
}
.membership-plan-card.is-current {
  outline: 1px dashed rgba(0, 230, 118, 0.35);
}
.membership-plan-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.vip-shimmer-vip {
  background: linear-gradient(90deg, #ff3355, #ff8899, #ff2244);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vip-text-flow 2.2s linear infinite;
}
.vip-shimmer-vvip {
  background: linear-gradient(90deg, #ff8800, #ffcc66, #ff7700);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vip-text-flow 2.2s linear infinite;
}
.vip-shimmer-svip {
  background: linear-gradient(90deg, #a855f7, #e9d5ff, #9333ea);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vip-text-flow 2.2s linear infinite;
}
.vip-shimmer-ultra {
  background: linear-gradient(90deg, #ffd700, #fff8dc, #ff8c00, #ffe066);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vip-text-flow 2.2s linear infinite;
}
.membership-plan-card.tier-ultra {
  border-color: rgba(255, 200, 50, 0.35);
  background: linear-gradient(145deg, rgba(255, 200, 50, 0.08), rgba(255, 0, 80, 0.04));
}
.membership-plan-card.tier-ultra.active {
  border-color: #ffc832;
  box-shadow: 0 0 24px rgba(255, 200, 50, 0.18);
}
.membership-plan-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #1a1200;
  background: linear-gradient(90deg, #ffd700, #ffb347);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.membership-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.membership-plan-original {
  font-size: 14px;
  color: #666;
  text-decoration: line-through;
}
.membership-plan-lifetime {
  font-size: 11px;
  color: #ffc832;
  font-weight: 700;
  margin: -4px 0 8px;
}
.membership-plan-period {
  font-size: 10px;
  color: #888;
  margin: -4px 0 8px;
  line-height: 1.4;
}
.membership-plan-price {
  font-size: 22px;
  font-weight: 800;
  color: #ff0050;
  margin-bottom: 10px;
}
.membership-plan-features {
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
  color: #999;
  line-height: 1.55;
}
.membership-pay-section { margin-top: 4px; }
.membership-selected {
  text-align: center;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 12px;
}
.membership-selected strong { color: #ff0050; font-size: 16px; }
.membership-channels { margin-bottom: 12px; }

.membership-ad-trial-banner {
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 215, 0, 0.35);
  background: linear-gradient(135deg, rgba(255, 0, 80, 0.08), rgba(255, 215, 0, 0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.membership-ad-trial-banner[hidden] {
  display: none !important;
}
.membership-ad-trial-banner.is-eligible { border-color: rgba(0, 230, 118, 0.45); }
.membership-ad-trial-banner.is-login { border-color: rgba(255, 0, 80, 0.35); }
.membership-ad-trial-banner.is-active { border-color: rgba(255, 215, 0, 0.55); opacity: 0.92; }
.membership-ad-trial-banner.is-cooldown { border-color: rgba(255, 152, 0, 0.45); opacity: 0.88; }
.membership-ad-trial-disclaimer {
  margin: 8px 0 0;
  font-size: 11px;
  color: #888;
  line-height: 1.4;
  text-align: center;
}
.modal-disclaimer { margin-top: 10px; margin-bottom: 0; }
.membership-ad-trial-msg {
  margin: 0;
  flex: 1;
  min-width: 180px;
  font-size: 12px;
  line-height: 1.5;
  color: #ccc;
}
.membership-ad-trial-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff0050, #ff6b00);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.membership-ad-trial-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.modal-box-ad-trial { max-width: 420px; }

.modal-box-follow-gift {
  max-width: 400px;
  text-align: center;
}
.follow-gift-qr-wrap {
  margin: 18px auto 10px;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
}
.follow-gift-qr {
  width: 200px;
  height: 200px;
  display: block;
  object-fit: contain;
}
.follow-gift-loading {
  color: #666;
  font-size: 14px;
  padding: 12px;
}
.follow-gift-err {
  min-height: 1.2em;
  margin: 6px 0 0;
  color: #ff6b6b;
  font-size: 13px;
}
.follow-gift-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}
.follow-gift-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}
.follow-gift-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
}
.follow-gift-steps {
  margin: 12px auto 0;
  padding-left: 1.3em;
  text-align: left;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.follow-gift-steps li { margin: 4px 0; }
.follow-gift-actions .btn-primary {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
}
.membership-ad-trial-screen {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
}
.membership-ad-trial-screen-inner {
  min-height: 160px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.membership-ad-trial-brand { font-size: 14px; font-weight: 700; color: #ffd700; }
.membership-ad-trial-tagline { margin: 8px 0 0; font-size: 13px; color: #fff; }
.membership-ad-trial-promo { margin: 10px 0 0; font-size: 11px; color: #aaa; line-height: 1.5; max-width: 280px; }
.membership-ad-trial-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}
.membership-ad-trial-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff0050, #ffd700);
  transition: width 0.35s linear;
}
.membership-ad-trial-watch-hint {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #888;
  min-height: 18px;
}
.membership-ad-trial-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.membership-ad-trial-claim { width: 100%; }
.membership-ad-trial-cancel {
  width: 100%;
  padding: 8px;
  border: 1px solid #444;
  border-radius: 8px;
  background: transparent;
  color: #aaa;
  cursor: pointer;
}

.user-info-label-with-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.user-inline-link,
.user-membership-open-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #ff0050;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.user-inline-link:hover,
.user-membership-open-link:hover { color: #ff4d7a; }
.user-info-membership { font-size: 12px; }
.user-membership-open-link { font-size: 13px; }

.user-info-membership-tier {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.user-info-refund-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.user-refund-pending {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 0, 80, 0.06);
  border: 1px solid rgba(255, 0, 80, 0.15);
}
.user-refund-pending-title {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}
.user-refund-pending-list { display: flex; flex-direction: column; gap: 8px; }
.refund-pending-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #bbb;
}
.refund-pending-main { flex: 1; min-width: 0; }
.refund-pending-kind { color: #e8e8ed; margin-right: 6px; }
.refund-pending-amt { color: #ffd700; }
.refund-pending-meta { font-size: 10px; color: #666; margin-top: 2px; word-break: break-all; }
.refund-cancel-btn {
  border: 1px solid #444;
  background: #1a1a22;
  color: #ccc;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
}
.refund-cancel-btn:hover { border-color: #ff0050; color: #ff0050; }
.refund-pending-tag {
  font-size: 10px;
  color: #888;
  flex-shrink: 0;
}
.modal-box-refund { max-width: 420px; }
.refund-field { margin-bottom: 12px; }
.refund-field-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.refund-select,
.refund-input,
.refund-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  background: #0e0e12;
  color: #e8e8ed;
  font-size: 13px;
  padding: 8px 10px;
}
.refund-textarea { resize: vertical; min-height: 72px; }
.refund-submit-btn { width: 100%; margin-top: 4px; }
.user-membership-tier-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}
.user-membership-upgrade-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
}
.user-membership-upgrade-link:hover { color: #ff0050; }
.user-membership-top-hint {
  font-size: 11px;
  color: #888;
  flex-shrink: 0;
  white-space: nowrap;
}
.user-membership-meta {
  font-size: 11px;
  color: #888;
  flex-basis: 100%;
  text-align: right;
  line-height: 1.3;
}
.vip-badge.vip-badge-inline {
  min-width: 36px;
  height: 20px;
  padding: 0 8px;
  cursor: default;
  flex-shrink: 0;
}
.vip-badge.vip-badge-inline .vip-badge-text {
  font-size: 9px;
}

.modal-box-recharge {
  width: min(420px, calc(100vw - 32px));
}
.recharge-modal-section {
  margin-bottom: 8px;
}
.recharge-mode-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 14px;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  overflow: hidden;
}
.recharge-mode-tab {
  flex: 1;
  padding: 9px 8px;
  border: none;
  background: #16161d;
  color: #888;
  font-size: 12px;
  cursor: pointer;
}
.recharge-mode-tab + .recharge-mode-tab {
  border-left: 1px solid #2a2a38;
}
.recharge-mode-tab.active {
  background: rgba(255, 0, 80, 0.14);
  color: #fff;
  font-weight: 600;
}
.voucher-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 12px 0 10px;
  flex-wrap: wrap;
}
.voucher-code-seg {
  width: 58px;
  padding: 8px 4px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #12121a;
  color: #eee;
  font-size: 13px;
  font-family: ui-monospace, Consolas, monospace;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.voucher-code-seg:focus {
  outline: none;
  border-color: #ff0050;
}
.voucher-code-dash {
  color: #555;
  font-size: 12px;
  user-select: none;
}
.voucher-benefit-hint {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: center;
}
.voucher-confirm-btn {
  width: 100%;
  margin-bottom: 8px;
}

.voucher-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 10050;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 40px));
  padding: 18px 20px 16px;
  border-radius: 12px;
  background: linear-gradient(165deg, #1e1e2a 0%, #12121a 100%);
  border: 1px solid rgba(255, 0, 80, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.voucher-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.voucher-toast.is-success { border-color: rgba(0, 230, 118, 0.45); }
.voucher-toast.is-error { border-color: rgba(255, 82, 82, 0.5); }
.voucher-toast-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.voucher-toast-msg {
  font-size: 12px;
  color: #aaa;
  line-height: 1.5;
}
.voucher-toast-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10049;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.voucher-toast-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== 温馨提示弹窗 ===== */
.tip-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 10100;
}
.tip-backdrop[hidden] { display: none !important; }
.tip-backdrop.is-visible { opacity: 1; }

.tip-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  width: min(380px, calc(100vw - 32px));
  background: linear-gradient(165deg, #1a1a28 0%, #12121c 55%, #0e0e12 100%);
  border: 1px solid rgba(255, 0, 80, 0.35);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 28px rgba(255,0,80,0.1);
  padding: 22px 22px 18px;
  z-index: 10101;
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  color: #e8e8ed;
}
.tip-modal[hidden] { display: none !important; }
.tip-modal.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.tip-modal.is-shake {
  animation: tipShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes tipShake {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  10%, 30%, 50%, 70%, 90% { transform: translate(calc(-50% - 7px), -50%) scale(1); }
  20%, 40%, 60%, 80% { transform: translate(calc(-50% + 7px), -50%) scale(1); }
}

.tip-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.tip-modal-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 0, 80, 0.12);
  border: 1px solid rgba(255, 0, 80, 0.28);
  font-size: 18px;
  flex-shrink: 0;
}
.tip-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.tip-modal-message {
  font-size: 14px;
  line-height: 1.65;
  color: #c8c8d4;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 20px;
  padding: 0 2px;
}
.tip-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.tip-btn {
  min-width: 88px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tip-btn-ok {
  background: linear-gradient(135deg, #ff0050, #e00048);
  color: #fff;
  border-color: rgba(255, 0, 80, 0.5);
  box-shadow: 0 4px 14px rgba(255, 0, 80, 0.25);
}
.tip-btn-ok:hover { filter: brightness(1.08); }
.tip-btn-cancel {
  background: rgba(255,255,255,0.04);
  color: #aaa;
  border-color: #2a2a38;
}
.tip-btn-cancel:hover {
  color: #fff;
  border-color: #444;
}

