/* Account, quota, paywall, pricing, admin */
.account-slot { display: flex; align-items: center; }
.acct-login { height: 36px; padding: 0 14px; font-size: 13.5px; }
.acct-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 4px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 13px; color: var(--text-2); }
.acct-chip:hover { border-color: var(--text); color: var(--text); }
.acct-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: var(--surface-3); color: var(--text); font-weight: 800; }
.acct-mail { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-pro { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 3px; background: var(--amber); color: #1a1206; }
.is-home .acct-chip { color: #ece8e1; border-color: rgba(236,232,225,.25); }
.is-home .acct-login { background: #ece8e1; color: #0a0a0b; }

.quota { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.quota svg { width: 14px; height: 14px; color: var(--amber); }
.quota.pro { color: var(--amber); font-weight: 700; }
.quota.out { color: var(--text-2); }
.quota a { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cine-quota { margin-top: 18px; text-align: center; }
.cine-quota .quota, .cine-quota .quota.out { color: rgba(236,232,225,.75); }
.cine-quota .quota a { color: #ece8e1; }
.cine-quota .muted { color: rgba(236,232,225,.5); }
.palette-quota { margin-top: 8px; }

/* Login */
.login-panel { width: min(440px, 100%); }
.login-form { display: grid; gap: 14px; }
.lf { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.lf input { height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font-size: 16px; outline: 0; }
.lf input:focus { border-color: var(--text); }
.lf-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.lf-row .btn { height: 46px; min-width: 112px; }
.login-form > .btn { height: 46px; }
.login-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.login-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* Paywall */
.paywall { max-width: 640px; margin: 0 auto; padding: 90px 0 40px; text-align: center; }
.pw-art { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); }
.pw-art svg { width: 30px; height: 30px; }
.paywall h1 { margin: 0; font: 900 clamp(30px, 4.6vw, 46px)/1.1 var(--display); letter-spacing: -.02em; }
.pw-lead { margin: 16px 0 0; font-size: 16px; color: var(--text-2); line-height: 1.8; }
.pw-next { margin: 10px 0 0; font-size: 14px; color: var(--amber); }
.pw-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pw-actions .btn { height: 46px; padding: 0 22px; }
.pw-small { margin-top: 26px; font-size: 12.5px; line-height: 1.8; }

/* Pricing */
.plan-status { margin: 4px 0 18px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 18px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; background: var(--bg); }
.plan.hot { background: var(--surface); box-shadow: inset 0 2px 0 var(--amber); }
.plan-note { position: absolute; top: 14px; right: 16px; font-size: 11.5px; font-weight: 800; color: var(--amber); letter-spacing: .06em; }
.plan-name { font: 800 18px/1 var(--display); letter-spacing: .08em; }
.plan-price { font: 900 54px/1 var(--display); letter-spacing: -.04em; }
.plan-price small { font-size: 22px; margin-right: 2px; vertical-align: 20px; }
.plan-price span { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 8px; font-size: 14px; color: var(--text-2); }
.plan li svg { width: 16px; height: 16px; flex: none; color: var(--win); margin-top: 3px; }
.plan .btn { height: 44px; }
.plan .btn:disabled { opacity: .6; cursor: not-allowed; }
.plan-free { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line); }
.plan-free b { font: 800 16px/1 var(--display); margin-right: 14px; }
.plan-free span { color: var(--text-2); font-size: 14px; }
.plan-foot { margin-top: 18px; font-size: 13px; }

/* My account */
.acct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 18px; }
.acct-card { background: var(--bg); padding: 20px; display: grid; gap: 8px; }
.acct-card label { font-size: 12.5px; color: var(--muted); }
.acct-card b { font: 800 22px/1.2 var(--display); word-break: break-all; }
.acct-card small { color: var(--text-2); font-size: 13px; }
.acct-card a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.acct-actions { margin-top: 22px; }

/* Admin */
.adm-sum { margin-top: 10px; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-head h2 { margin: 0; }
.adm-table td { white-space: nowrap; font-size: 13.5px; }
.adm-acts { display: flex; gap: 6px; align-items: center; }
.adm-days { width: 64px; height: 30px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-2); color: var(--text); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.danger { color: var(--loss); border-color: color-mix(in srgb, var(--loss) 45%, transparent); }

/* Locked follow card */
.fc.locked { opacity: .85; }
.fc-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.fc-lock svg { width: 14px; height: 14px; }

@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .plans, .acct-grid { grid-template-columns: 1fr; }
  .acct-mail { display: none; }
}
@media (max-width: 560px) {
  .acct-login { padding: 0 10px; font-size: 12.5px; }
}

/* Notify toggle on follow cards */
.fc-notify {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; height: 28px; padding: 0 10px;
  border-radius: 4px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  font-size: 12.5px; cursor: pointer;
}
.fc-notify svg { width: 14px; height: 14px; }
.fc-notify:hover { color: var(--text); border-color: var(--text); }
.fc-notify.on { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 50%, transparent); background: var(--amber-soft); }
.notify-card .btn.sm { flex: none; }

/* Match alerts: included in the season pass, an add-on elsewhere */
.plan li.plan-plus { color: var(--text); font-weight: 600; }
.plan li.plan-no { color: var(--muted); }
.plan li.plan-no svg { color: var(--muted); }
.plan-addon { border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }
.plan-addon b { color: var(--amber); }
.adm-plan { width: auto; min-width: 150px; }

/* ---- Checkout dialog ---- */
.checkout-panel { width: min(420px, 100%); }
.co-people { display: flex; gap: 8px; margin-top: 16px; }
.co-chip { flex: 1; height: 40px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font-weight: 700; cursor: pointer; }
.co-chip.on { border-color: var(--text); color: var(--text); background: var(--surface-2); }
.co-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.co-sum span { color: var(--muted); font-size: 14px; }
.co-total { font: 900 34px/1 var(--display); letter-spacing: -.02em; }
.co-actions { display: grid; gap: 10px; margin-top: 16px; }
.co-pay { height: 48px; justify-content: center; font-size: 15px; }
.co-pay .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.co-dot { width: 10px; height: 10px; border-radius: 50%; }
.co-dot.ali { background: #1677ff; }
.co-dot.wx { background: #07c160; }
.co-note { margin: 14px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.co-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Payment result ---- */
.pay-art .spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.pay-art.ok { color: var(--win); border-color: color-mix(in srgb, var(--win) 50%, transparent); background: var(--win-soft); }
.co-off { opacity: .55; cursor: not-allowed; }
.co-soon { margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: var(--surface-3); color: var(--muted); font-size: 11.5px; font-weight: 600; }

/* 保持登录 */
.lf-remember { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--text); }
.lf-remember input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--text); flex: none; cursor: pointer; }
.lf-remember b { display: block; font-weight: 700; }
.lf-remember small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.acct-session { margin-top: 18px; font-size: 13px; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============ Password sign-in ============ */
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; gap: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.login-tabs button { height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.login-tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.lf[hidden], .lf-row[hidden] { display: none; }
.lf-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.lf-link { font-size: 12px; color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 64px; box-sizing: border-box; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.pw-eye:hover { color: var(--text); background: var(--surface); }

/* Strength meter: four segments that fill and change colour with the score. */
.pw-meter { --pw: var(--line-strong); display: grid; gap: 7px; margin-top: -4px; }
.pw-meter[data-score="1"] { --pw: var(--loss); }
.pw-meter[data-score="2"] { --pw: var(--amber); }
.pw-meter[data-score="3"] { --pw: #4fb3ff; }
.pw-meter[data-score="4"] { --pw: var(--win); }
.pw-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.pw-bars i { height: 5px; border-radius: 3px; background: var(--line); transition: background .25s ease; }
.pw-meter[data-score="1"] .pw-bars i:nth-child(-n+1),
.pw-meter[data-score="2"] .pw-bars i:nth-child(-n+2),
.pw-meter[data-score="3"] .pw-bars i:nth-child(-n+3),
.pw-meter[data-score="4"] .pw-bars i { background: var(--pw); }
.pw-meter-text { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.pw-meter-text b { color: var(--pw); font-weight: 700; }
.pw-meter[data-score="0"] .pw-meter-text b { color: var(--muted); }
.pw-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.pw-rules li::before { content: "○"; margin-right: 5px; font-size: 11px; }
.pw-rules li.ok { color: var(--win); }
.pw-rules li.ok::before { content: "✓"; }

/* ============ 卡密 ============ */
.rd-box { max-width: 560px; padding: 22px; margin-top: 8px; }
.rd-form { display: grid; gap: 14px; }
.rd-input { height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--text);
  font: 600 17px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; width: 100%; box-sizing: border-box; }
.rd-input:focus { border-color: var(--text); outline: none; }
.rd-form .btn { height: 46px; }
.rd-login { display: grid; gap: 14px; justify-items: start; }
.rd-login p { margin: 0; }
.rd-done { text-align: center; display: grid; gap: 8px; justify-items: center; }
.rd-done h2 { margin: 4px 0 0; }
.rd-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff; background: var(--win); animation: ld-in .3s ease both; }
.rd-help ul { margin: 0; padding-left: 20px; line-height: 1.9; color: var(--text-2); }
.adm-note { height: 30px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-2); color: var(--text); min-width: 0; flex: 1 1 180px; }
.adm-acts select.adm-days { width: auto; max-width: 100%; }
.adm-acts { flex-wrap: wrap; }
.adm-gen { padding: 16px; margin: 14px 0; display: grid; gap: 10px; }
.adm-gen p { margin: 0; }
.adm-codes { width: 100%; box-sizing: border-box; font: 13px/1.6 var(--mono); padding: 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-2); color: var(--text); resize: vertical; }
.adm-tpl { margin: 0; padding: 10px 12px; white-space: pre-wrap; font: 12.5px/1.7 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; }
