/* v=016 qr-pay-modal */
/* v=008 */
/* idea-auth.css · 登录/账户页面专用样式 */

.auth-wrap {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; }
}

.auth-card,
.acct-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.auth-card h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  font-family: "Noto Serif SC", serif;
}

.auth-card .lead {
  color: #666;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
}

.tab {
  background: none;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab:hover { color: #c0392b; }

.tab.active {
  color: #c0392b;
  border-bottom-color: #c0392b;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
}

.auth-form.active { display: flex; }

.auth-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.auth-form label small {
  color: #999;
  font-weight: 400;
  font-size: 0.75rem;
}

.auth-form input {
  padding: 0.7rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: #c0392b;
}

.auth-form .btn.primary {
  margin-top: 0.5rem;
  padding: 0.85rem;
  background: #c0392b;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.auth-form .btn.primary:hover { background: #a93226; }

.auth-form .msg {
  font-size: 0.85rem;
  min-height: 1.2em;
  color: #999;
}

.auth-form .msg.err {
  color: #c0392b;
}

.auth-foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 0.8rem;
  text-align: center;
}

.auth-foot a { color: #c0392b; }

/* === 会员档位（侧栏） === */
.auth-side h3 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  font-family: "Noto Serif SC", serif;
}

.tiers-box,
.tiers-renew {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier,
.tier-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
  transition: all .4s ease;
}
.tier-card.highlight {
  background: #fff8e1;
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.2), 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.tier-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.tier-head strong {
  font-size: 1.05rem;
  color: #c0392b;
}

.tier-head .price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #c0392b;
  font-family: "IBM Plex Mono", monospace;
}

.tier-head .price small {
  font-size: 0.75rem;
  color: #999;
  font-weight: 400;
}

.tier-desc {
  color: #666;
  font-size: 0.85rem;
  margin: 0.3rem 0 0.6rem;
}

.tier ul,
.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: #555;
}

.tier li,
.tier-card li {
  padding: 0.2rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.tier li::before,
.tier-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: 700;
}

/* === 会员中心 === */
.acct-wrap {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.acct-card h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
  font-family: "Noto Serif SC", serif;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.profile-box,
#member-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kv {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #eee;
  font-size: 0.95rem;
}

.kv span { color: #888; }
.kv b { color: #222; }
.kv b.hi { color: #c0392b; font-weight: 700; }

/* === 账号信息里的 License Key 卡（突出位置） === */
.primary-key-card {
  margin-top: 1.2rem;
  background: linear-gradient(135deg, #fff8e1 0%, #fff3cc 100%);
  border: 2px solid #c0392b;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: 0 4px 12px rgba(192,57,43,0.08);
}
.primary-key-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.primary-key-head strong {
  color: #c0392b;
  font-size: 1.05rem;
}
.key-badge {
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.key-badge.pro {
  background: #27ae60;
  color: #fff;
}
.key-badge.free {
  background: #ddd;
  color: #555;
}
.primary-key-body {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.5rem;
}
.primary-key-val {
  flex: 1;
  font-family: "IBM Plex Mono", "SF Mono", "Menlo", monospace;
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  background: #fff;
  border: 1px solid #c0392b;
  border-radius: 4px;
  color: #c0392b;
  font-weight: 700;
  letter-spacing: 0.5px;
  user-select: all;
  word-break: break-all;
}
.copy-btn.primary {
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.copy-btn.primary:hover {
  background: #a93226;
}
.copy-btn.primary.copied {
  background: #27ae60;
}
.primary-key-meta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
  color: #888;
}
.primary-key-meta .sep { color: #ccc; }

.hint {
  color: #999;
  font-size: 0.9rem;
  font-style: italic;
}

.howto {
  padding-left: 1.5rem;
  color: #555;
  font-size: 0.95rem;
}

.howto li { margin: 0.4rem 0; }
.howto code {
  background: #f5f5f5;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85em;
  color: #c0392b;
}

.keys-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.key-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 4px;
}

.key-tier {
  flex: 0 0 200px;
  font-size: 0.85rem;
  color: #666;
}

.key-val {
  flex: 1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  color: #c0392b;
  font-weight: 600;
  letter-spacing: 1px;
}

.copy-btn {
  padding: 0.3rem 0.8rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
}

.copy-btn:hover { background: #f5f5f5; }

/* === Skill 安装命令行 === */
.skill-tagline {
  font-size: 0.9rem;
  color: #555;
  margin: 0.3rem 0 1.2rem;
  padding: 0.6rem 0.8rem;
  background: #fff8e1;
  border-left: 3px solid #c0392b;
  border-radius: 0 4px 4px 0;
}
.skill-locked {
  background: #fafafa;
  border: 1px dashed #ddd;
  padding: 1.2rem;
  border-radius: 6px;
  text-align: center;
}
.skill-locked .btn { margin-top: 0.8rem; }

.cmd-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #1a1a1a;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin: 0.6rem 0 0.8rem;
}
.cmd {
  flex: 1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: #4ade80;
  word-break: break-all;
  background: transparent;
  user-select: all;
}
.cmd-row .copy-btn {
  background: #333;
  color: #fff;
  border-color: #444;
  flex: 0 0 auto;
}
.cmd-row .copy-btn:hover { background: #555; }

.tiers-renew { margin-top: 1rem; }

.tier-card .btn.primary {
  width: 100%;
  padding: 0.7rem;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
}

.tier-card .btn.primary:hover { background: #a93226; }

/* === Site Footer (备案号) === */
.site-foot {
  max-width: 1400px;
  margin: 4rem auto 2rem;
  padding: 1.5rem 2rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  border-top: 1px solid #eee;
}
.site-foot a {
  color: #888;
  text-decoration: none;
  margin: 0 0.4rem;
}
.site-foot a:hover { color: #c0392b; }
.site-foot .sep { color: #ccc; }

/* === Top Nav (index.html) === */
.top-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: 2rem;
  font-size: 0.92rem;
}
.top-nav a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.top-nav a:hover {
  color: #c0392b;
  border-bottom-color: #c0392b;
}

/* === Stat Bar（6 个密度统计） === */
.statbar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-bottom: 1px solid #e6e6e6;
  background: #fafafa;
}
.stat-pill {
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid #e6e6e6;
}
.stat-pill:last-child { border-right: 0; }
.stat-pill .num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  font-family: "IBM Plex Mono", monospace;
  color: #1a7f37;
  line-height: 1;
}
.stat-pill .label {
  display: block;
  font-size: 0.82rem;
  color: #888;
  margin-top: 0.4rem;
}
.stat-pill.price .num { color: #c0392b; }
@media (max-width: 768px) {
  .statbar { grid-template-columns: repeat(3, 1fr); }
  .stat-pill:nth-child(3) { border-right: 0; }
}

/* === Hero Grid === */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-kicker {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: #fef5f4;
  border: 1px solid #fadcd8;
  border-radius: 4px;
  color: #c0392b;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: "Noto Serif SC", serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #1a1a1a;
}
.hero-title .hero-sub {
  font-size: 1.6rem;
  font-weight: 700;
  color: #c0392b;
  font-family: "Noto Sans SC", sans-serif;
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin: 1rem 0 1.5rem;
}
.hero-desc strong { color: #c0392b; }
.hero-buttons {
  display: flex;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
}
.hero-buttons .btn.primary {
  padding: 0.9rem 1.6rem;
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
}
.hero-buttons .btn.primary:hover { background: #a93226; }
.hero-buttons .btn.ghost {
  padding: 0.9rem 1.6rem;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #ddd;
  font-weight: 700;
  border-radius: 4px;
}
.hero-buttons .btn.ghost:hover { border-color: #c0392b; color: #c0392b; }
.hero-foot {
  font-size: 0.8rem;
  color: #999;
  margin: 0;
}
.hero-right {
  border-left: 1px solid #e6e6e6;
  padding-left: 2rem;
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.hero-stat {
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 1.5rem 1rem;
  text-align: center;
}
.hero-stat .num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  font-family: "IBM Plex Mono", monospace;
  color: #1a7f37;
  line-height: 1;
}
.hero-stat .label {
  display: block;
  font-size: 0.82rem;
  color: #888;
  margin-top: 0.4rem;
}
.hero-stat.price .num { color: #c0392b; }

/* === Board Grid (5 大板块 2x3) === */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .board-grid { grid-template-columns: 1fr; } }
.board-card {
  display: block;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 1.2rem;
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.2s;
}
.board-card:hover {
  border-color: #c0392b;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.08);
  transform: translateY(-2px);
}
.board-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.board-emoji { font-size: 1.4rem; }
.board-card-head strong { color: #c0392b; }
.vip-tag {
  margin-left: auto;
  background: #d4a017;
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
}
.board-card-desc {
  color: #555;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0.4rem 0 0.7rem;
}
.board-card-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  color: #777;
}
.board-card-tags li {
  padding: 0.15rem 0 0.15rem 1rem;
  position: relative;
}
.board-card-tags li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: 700;
}
.board-card-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.78rem;
  color: #999;
}
.board-card-foot .arrow {
  color: #c0392b;
  font-weight: 700;
}

/* === Scenario Grid (9 类) === */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
@media (max-width: 768px) { .scenario-grid { grid-template-columns: 1fr; } }
.scenario-card {
  display: flex;
  gap: 0.8rem;
  align-items: start;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 1rem;
  transition: all 0.2s;
}
.scenario-card:hover {
  border-color: #c0392b;
  background: #fef5f4;
}
.scenario-num {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
}
.scenario-card strong {
  font-size: 1rem;
  color: #1a1a1a;
  display: block;
  margin-bottom: 0.3rem;
}
.scenario-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.4;
}

/* === VIP Grid === */
.vip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) { .vip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .vip-grid { grid-template-columns: 1fr; } }
.vip-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.vip-card.popular {
  border-color: #c0392b;
  border-width: 2px;
  background: #fef5f4;
  transform: scale(1.04);
}
.popular-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #c0392b;
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
/* === 1日体验卡：金色高亮 + 脉冲标签 === */
.vip-card.trial {
  border-color: #e8a52d;
  border-width: 2px;
  background: linear-gradient(135deg, #fffbf0 0%, #fff5e0 100%);
}
.vip-card.trial .vip-price {
  color: #c97700;
  font-size: 2.8rem;
}
.trial-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f5a623 0%, #e8a52d 100%);
  color: #fff;
  padding: 0.25rem 0.9rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(232, 165, 45, 0.35);
  animation: pulse-tag 2s ease-in-out infinite;
}
@keyframes pulse-tag {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.04); }
}
.trial-hint {
  font-size: 0.78rem;
  color: #c97700;
  margin: 0.6rem 0 1rem;
  font-weight: 600;
}
.vip-card.trial .btn.primary {
  background: linear-gradient(135deg, #f5a623 0%, #e8a52d 100%);
  border-color: #e8a52d;
}
.vip-card.trial .btn.primary:hover {
  background: linear-gradient(135deg, #e8a52d 0%, #d4941d 100%);
}
.vip-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
}
.vip-price {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: "IBM Plex Mono", monospace;
  color: #c0392b;
  margin: 0.5rem 0 1.5rem;
  line-height: 1;
}
.vip-price span {
  font-size: 0.85rem;
  color: #999;
  font-weight: 400;
  margin-left: 0.3rem;
}
.vip-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}
.vip-card li {
  padding: 0.4rem 0 0.4rem 1.2rem;
  font-size: 0.85rem;
  color: #555;
  position: relative;
}
.vip-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: 700;
}
.vip-card .btn {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #ddd;
  background: #fff;
  color: #1a1a1a;
}
.vip-card .btn:hover { border-color: #c0392b; color: #c0392b; }
.vip-card .btn.primary {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}
.vip-card .btn.primary:hover { background: #a93226; }
.vip-foot {
  text-align: center;
  margin: 2rem 0 0;
  color: #888;
  font-size: 0.88rem;
}

/* === sect-more (右侧链接) === */
.sect-more {
  font-size: 0.88rem;
  color: #c0392b;
  text-decoration: none;
  font-weight: 600;
}
.sect-more:hover { text-decoration: underline; }

/* === inline 邮箱验证 · OTP 6 格风格 === */
#verify-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #c0392b;
  animation: slideIn .35s ease;
}
#verify-section hr { display: none; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.verify-status-ok {
  font-size: 14px;
  color: #27ae60;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* === OTP 6 格 === */
.otp-grid {
  display: flex;
  gap: 8px;
  margin: 0.6rem 0 0.4rem;
  justify-content: space-between;
}
.otp-cell {
  flex: 1 1 0;
  min-width: 0;
  height: 56px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  font-family: "IBM Plex Mono", monospace;
  color: #c0392b;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: all .15s ease;
  caret-color: #c0392b;
  -moz-appearance: textfield;
}
.otp-cell::-webkit-outer-spin-button,
.otp-cell::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.otp-cell:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
  background: #fff8e1;
}
.otp-cell.filled {
  border-color: #c0392b;
  background: #fff8e1;
}
.otp-cell.shake {
  animation: shake .35s;
  border-color: #e74c3c;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.otp-help {
  font-size: 12px;
  color: #999;
  margin: 0 0 1rem;
  text-align: center;
}

#verify-section button[type="button"] { flex: 1; transition: all .25s ease; }
#verify-section button[type="button"].counting,
#verify-section button[type="button"][disabled] {
  background: #fafafa;
  color: #999;
  cursor: not-allowed;
  border-color: #ddd;
  opacity: .85;
}
#verify-section button[type="button"].counting {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 1px;
}

.msg.ok { color: #27ae60; }
.msg.err { color: #c0392b; }
.msg { font-size: 13px; padding: 0.4rem 0; min-height: 1.4em; }

/* === 当面付二维码 Modal === */
.qr-pay-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  animation: qrFade 0.25s ease;
}
@keyframes qrFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.qr-pay-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.qr-pay-card h3 { margin: 0 0 0.3rem 0; color: #c0392b; font-size: 1.15rem; }
.qr-pay-card .amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: #c0392b;
  margin: 0.3rem 0 1.2rem 0;
  font-family: "SF Mono", monospace;
}
.qr-pay-card .qr-img {
  width: 240px; height: 240px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px;
  background: #fafafa;
}
.qr-pay-card .hint { color: #666; font-size: 0.85rem; margin-top: 1rem; line-height: 1.5; }
.qr-pay-card .status {
  color: #27ae60;
  font-weight: 600;
  margin: 0.8rem 0 1rem 0;
  font-size: 0.95rem;
}
.qr-pay-card .cancel-btn {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
}
.qr-pay-card .cancel-btn:hover { background: #eee; }