/* 魔法水印 账户页面样式：只补充表单与卡片，品牌变量与基础类来自 ../styles.css */

[hidden] { display: none !important; }

.acct-page { min-height: 100vh; padding: 128px 0 90px; background: linear-gradient(180deg, #f8f6ff 0%, var(--white) 420px); }
.acct-page .shell { max-width: 960px; }
.acct-page--narrow .shell { max-width: 460px; }
.acct-page--wide .shell { max-width: 1180px; }
.acct-head { margin-bottom: 26px; }
.acct-head h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.2; letter-spacing: -.04em; }
.acct-head p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.acct-head .section-kicker { margin-bottom: 10px; }

.acct-card { position: relative; margin-bottom: 20px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 14px 40px rgba(63, 43, 131, .07); }
.acct-card h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.acct-card > p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.acct-card--status { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; border-color: #ddd5ff; background: linear-gradient(135deg, #fff, var(--purple-soft)); }
.acct-card--status .acct-status-main { flex: 1 1 260px; }
.acct-status-phone { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.acct-status-text { display: block; margin-top: 8px; color: #4f4b61; font-size: 15px; }
.acct-status-sub { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.acct-status-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.acct-form { display: grid; gap: 16px; }
.acct-field { display: grid; gap: 7px; }
.acct-field label, .acct-field > span:first-child { color: #4f4b61; font-size: 13px; font-weight: 700; }
.acct-input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #d9d4e8; border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease; }
.acct-input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(104, 71, 239, .14); }
.acct-input:disabled { background: var(--cream); color: var(--muted); }
textarea.acct-input { min-height: 84px; padding: 12px 14px; resize: vertical; }
select.acct-input { appearance: auto; }
.acct-input-row { display: flex; gap: 10px; }
.acct-input-row .acct-input { flex: 1 1 auto; min-width: 0; }
.acct-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.acct-error { margin: 0; min-height: 0; color: #d0405b; font-size: 13px; line-height: 1.6; }
.acct-error:empty { display: none; }
.acct-notice { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #ffe2b3; border-radius: 12px; background: #fff8ec; color: #8a5a12; font-size: 13px; line-height: 1.6; }
.acct-notice--info { border-color: #cfe5ff; background: #eef6ff; color: #23508a; }
.acct-notice--ok { border-color: #bfe9d8; background: #ecfbf4; color: #196d4b; }
.acct-notice a { color: inherit; font-weight: 700; text-decoration: underline; }

.button.acct-btn { min-height: 48px; padding: 0 20px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.button-primary.acct-btn { border: 0; }
.button.acct-btn--small { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 12px; }
.button.acct-btn--block { width: 100%; }
.button.acct-btn--ghost { border: 1px solid #ded9ea; background: var(--white); color: #4f4b61; box-shadow: none; }
.button.acct-btn--ghost:hover { border-color: #bcb0e5; color: var(--purple); }
.button.acct-btn--danger { border: 1px solid #f3c2cc; background: #fff4f6; color: #c0304b; box-shadow: none; }
.button.acct-btn--danger:hover { background: #ffe9ee; }
.button:disabled, .button[disabled] { cursor: not-allowed; opacity: .55; transform: none !important; box-shadow: none !important; }
.acct-link { background: none; border: 0; padding: 0; color: var(--purple); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.acct-link:hover { text-decoration: underline; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.acct-tabs { display: flex; gap: 6px; margin-bottom: 22px; padding: 5px; border-radius: 13px; background: #f1eef9; }
.acct-tabs button { flex: 1 1 0; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: #6b6680; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s ease, color .2s ease; }
.acct-tabs button[aria-selected="true"] { background: var(--white); color: var(--purple); box-shadow: 0 4px 14px rgba(63, 43, 131, .1); }
.acct-tabs--admin { flex-wrap: wrap; }
.acct-tabs--admin button { flex: 1 1 120px; }

.acct-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.acct-pill--vip { background: #efe9ff; color: #5b35df; }
.acct-pill--free { background: #eef0f4; color: #5d5a6b; }
.acct-pill--expired { background: #fff0e6; color: #b0571b; }
.acct-pill--pending { background: #fff5dc; color: #8a5a12; }
.acct-pill--paid { background: #e5f8ef; color: #1c7a52; }
.acct-pill--cancelled, .acct-pill--refunded { background: #f0eff3; color: #7a7688; }
.acct-pill--recommended { position: absolute; top: -12px; right: 18px; background: var(--purple); color: #fff; box-shadow: 0 6px 16px rgba(104, 71, 239, .3); }

.acct-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 18px; }
.acct-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 18px; border: 2px solid var(--line); border-radius: 18px; background: var(--white); text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.acct-plan:hover { transform: translateY(-3px); border-color: #c8bcf4; }
.acct-plan--recommended { border-color: #c8bcf4; background: linear-gradient(180deg, #fbfaff, #fff); }
.acct-plan[aria-checked="true"] { border-color: var(--purple); box-shadow: 0 12px 30px rgba(104, 71, 239, .16); }
.acct-plan-name { font-size: 15px; font-weight: 800; }
.acct-plan-price { font-size: 30px; font-weight: 900; letter-spacing: -.04em; color: var(--purple-dark); }
.acct-plan-price small { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.acct-plan-desc { color: var(--muted); font-size: 12px; line-height: 1.6; }
.acct-plan-days { color: #4f4b61; font-size: 12px; }

.acct-providers { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.acct-provider { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #d9d4e8; border-radius: 12px; background: var(--white); font-size: 13px; font-weight: 700; cursor: pointer; }
.acct-provider input { margin: 0; accent-color: var(--purple); }
.acct-provider--disabled { cursor: not-allowed; opacity: .55; }
.acct-provider--disabled small { color: var(--muted); font-weight: 600; }

.acct-table-wrap { overflow-x: auto; }
.acct-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.acct-table th, .acct-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.acct-table th { color: var(--muted); font-size: 12px; font-weight: 700; }
.acct-table td.acct-wrap { white-space: normal; min-width: 180px; max-width: 360px; overflow-wrap: anywhere; }
.acct-table .acct-mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; }
.acct-table-empty { padding: 26px 0; color: var(--muted); font-size: 13px; text-align: center; }
.acct-table-actions { display: flex; gap: 6px; }
.acct-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.acct-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.acct-filters .acct-input { width: auto; min-width: 150px; min-height: 40px; font-size: 13px; }
.acct-filters .acct-input--grow { flex: 1 1 220px; }

.acct-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.acct-stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.acct-stat b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.03em; color: var(--purple-dark); }
.acct-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.acct-toast-wrap { position: fixed; z-index: 60; left: 50%; bottom: 28px; display: flex; flex-direction: column; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.acct-toast { padding: 12px 18px; border-radius: 12px; background: #221c3d; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 14px 34px rgba(22, 18, 46, .28); animation: acct-toast-in .22s ease; }
.acct-toast--error { background: #b62e48; }
.acct-toast--ok { background: #1f8a5b; }
@keyframes acct-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.acct-modal { position: fixed; z-index: 50; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(23, 20, 43, .55); backdrop-filter: blur(4px); }
.acct-modal-box { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px 28px; border-radius: 18px; background: var(--white); box-shadow: 0 30px 80px rgba(22, 18, 46, .35); }
.acct-modal-box h3 { margin: 0 0 6px; font-size: 18px; }
.acct-modal-box > p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.acct-pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.acct-pay-summary dl { display: grid; grid-template-columns: 90px 1fr; gap: 10px 12px; margin: 0; font-size: 14px; }
.acct-pay-summary dt { color: var(--muted); }
.acct-pay-summary dd { margin: 0; font-weight: 700; }
.acct-remark { margin: 14px 0; padding: 16px 18px; border: 1px dashed #c8bcf4; border-radius: 14px; background: var(--purple-soft); text-align: center; }
.acct-remark span { display: block; color: #4f4b61; font-size: 12px; }
.acct-remark b { display: block; margin-top: 4px; font-size: 34px; font-weight: 900; letter-spacing: .16em; color: var(--purple-dark); font-family: Consolas, "Courier New", monospace; }
.acct-qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); font-size: 12px; font-weight: 700; color: #4f4b61; }
.acct-qr img { display: block; width: 100%; max-width: 200px; aspect-ratio: 1; border-radius: 8px; object-fit: contain; background: var(--cream); }
.acct-qr-missing { display: grid; place-items: center; width: 100%; max-width: 200px; aspect-ratio: 1; border: 1px dashed #d9d4e8; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.acct-amount { font-size: 28px; font-weight: 900; color: var(--purple-dark); letter-spacing: -.03em; }
.acct-code-url { display: block; padding: 12px; border-radius: 10px; background: var(--cream); font-family: Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }

.acct-footer-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.7; }
.acct-footer-note a { color: var(--purple); font-weight: 700; }
.acct-inline-list { margin: 0; padding-left: 18px; color: #4f4b61; font-size: 13px; line-height: 1.8; }

@media (max-width: 820px) {
  .acct-page { padding-top: 100px; }
  .acct-plan-grid { grid-template-columns: 1fr; }
  .acct-stats { grid-template-columns: repeat(2, 1fr); }
  .acct-pay-grid { grid-template-columns: 1fr; }
  .acct-card { padding: 22px 20px; }
}
@media (max-width: 560px) {
  .acct-page { padding-top: 88px; padding-bottom: 60px; }
  .acct-page .shell { width: calc(100% - 28px); }
  .acct-card { padding: 20px 16px; border-radius: 16px; }
  .acct-card--status { gap: 14px; }
  .acct-status-actions .button { flex: 1 1 auto; }
  .acct-input-row { flex-direction: column; }
  .acct-qr-grid { grid-template-columns: 1fr; }
  .acct-stats { grid-template-columns: 1fr 1fr; }
  .acct-filters .acct-input { flex: 1 1 100%; }
  .acct-modal { padding: 12px; align-items: flex-end; }
  .acct-modal-box { padding: 20px 18px; }
}
