/* =====================================================================
   Link3 数字名片 —— 后台样式（配合 Bootstrap 5）
   ===================================================================== */

:root {
  --sidebar-w: 232px;
  --brand: #4f46e5;
  --brand-2: #0ea5e9;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6fb;
  color: #1f2937;
}

/* ---------- 布局 ---------- */
.admin-layout { min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #312e81 0%, #4338ca 60%, #0369a1 100%);
  color: #fff;
  display: flex; flex-direction: column;
  padding: 22px 16px;
  z-index: 1030;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700;
  padding: 4px 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  margin-bottom: 16px;
}
.brand-icon { font-size: 22px; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 15px;
  transition: background .15s, color .15s, transform .15s;
}
.nav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-item.active {
  background: rgba(255,255,255,.95);
  color: #4338ca; font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.nav-icon { width: 22px; text-align: center; }
.sidebar-footer { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); }
.sidebar-user {
  margin-top: 12px; font-size: 13px;
  color: rgba(255,255,255,.75);
  text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.admin-main {
  margin-left: var(--sidebar-w);
  padding: 28px 30px 60px;
  max-width: 1180px;
}

.mobile-topbar, .mobile-nav { display: none; }

/* ---------- 页面标题 / 面板 ---------- */
.page-head { margin-bottom: 20px; }
.page-head h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }

.panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(17,24,39,.06);
  border: 1px solid rgba(17,24,39,.05);
}
.panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f6;
}
.panel-head h5 { margin: 0; font-size: 16px; font-weight: 700; }
.panel-body { padding: 20px; }

/* ---------- 统计卡片 ---------- */
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 18px rgba(17,24,39,.06);
  border: 1px solid rgba(17,24,39,.05);
  height: 100%;
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; margin-bottom: 12px;
}
.stat-blue   .stat-icon { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.stat-green  .stat-icon { background: linear-gradient(135deg,#34d399,#059669); }
.stat-orange .stat-icon { background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.stat-purple .stat-icon { background: linear-gradient(135deg,#a78bfa,#7c3aed); }
.stat-num { font-size: 26px; font-weight: 800; line-height: 1.2; }
.stat-sub { font-size: 15px; font-weight: 600; color: #9ca3af; }
.stat-label { font-size: 13px; color: #6b7280; margin-top: 2px; }

/* ---------- 表格 ---------- */
.type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #eef2ff; color: #4338ca;
  border-radius: 8px; padding: 4px 9px;
  font-size: 12.5px; font-weight: 600;
  white-space: nowrap;
}
.thumb {
  width: 64px; height: 44px; object-fit: cover;
  border-radius: 8px; border: 1px solid #e5e7eb;
}
.thumb-sm {
  width: 40px; height: 40px; object-fit: cover;
  border-radius: 6px; border: 1px solid #e5e7eb;
}
.img-thumb {
  max-width: 220px; max-height: 160px;
  border-radius: 10px; border: 1px solid #e5e7eb;
}

/* ---------- 主题选择 ---------- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.theme-item { cursor: pointer; text-align: center; }
.theme-radio { position: absolute; opacity: 0; }
.theme-swatch {
  display: flex; align-items: center; justify-content: center;
  height: 64px; border-radius: 12px;
  border: 2px solid transparent;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.theme-item:hover .theme-swatch { transform: translateY(-2px); }
.theme-item.selected .theme-swatch {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.18);
}
.swatch-btn {
  width: 46px; height: 18px; border-radius: 99px;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.theme-name { display: block; margin-top: 6px; font-size: 13px; color: #4b5563; }
.theme-item.selected .theme-name { color: var(--brand); font-weight: 600; }

/* ---------- 头像预览 ---------- */
.avatar-preview {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; flex: 0 0 auto;
  background: #eef2ff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #e0e7ff;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { font-size: 30px; color: #a5b4fc; }

/* ---------- 轮播幻灯片卡片 ---------- */
.slide-card {
  border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 8px; background: #fafbfd;
}
.slide-card img {
  width: 100%; height: 110px; object-fit: cover; border-radius: 8px;
}

.share-box { border-top: 1px dashed #e5e7eb; padding-top: 12px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border: none;
}
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

/* ---------- 登录 / 注册 ---------- */
.auth-body {
  background: linear-gradient(150deg, #312e81 0%, #4338ca 45%, #0369a1 100%);
  min-height: 100vh;
}
.auth-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 34px 30px 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
  animation: pop .4s ease both;
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.auth-logo { font-size: 44px; text-align: center; }
.auth-title { text-align: center; font-size: 24px; font-weight: 800; margin: 10px 0 2px; }
.auth-sub { text-align: center; color: #9ca3af; font-size: 14px; margin-bottom: 8px; }
.auth-tabs .nav-link { color: #6b7280; font-weight: 600; border-radius: 10px; }
.auth-tabs .nav-link.active { background: var(--brand); color: #fff; }
.auth-footer { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 18px; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 991.98px) {
  .sidebar { display: none; }
  .admin-main {
    margin-left: 0;
    padding: 76px 16px 90px;
  }
  .mobile-topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; top: 0; left: 0; right: 0;
    height: 56px; padding: 0 16px;
    background: linear-gradient(90deg,#312e81,#0369a1);
    color: #fff; font-weight: 700; z-index: 1030;
  }
  .mobile-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid #e5e7eb;
    z-index: 1030; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-nav-item {
    flex: 1; text-align: center; font-size: 11.5px;
    color: #6b7280; text-decoration: none; padding: 4px 2px;
  }
  .mobile-nav-item.active { color: var(--brand); font-weight: 700; }
  .stat-num { font-size: 22px; }
  /* 手机端：预览悬浮按钮抬到底部导航栏上方，避免遮挡 */
  .preview-fab {
    bottom: calc(66px + env(safe-area-inset-bottom));
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* =====================================================================
   v2 新增样式：图标选择器 / 组件分类 / 联系方式行 / 排行榜 / 新统计色
   ===================================================================== */

/* ---------- 新增统计卡配色 ---------- */
.stat-cyan   .stat-icon { background: linear-gradient(135deg,#22d3ee,#0891b2); }
.stat-indigo .stat-icon { background: linear-gradient(135deg,#818cf8,#4f46e5); }
.stat-teal   .stat-icon { background: linear-gradient(135deg,#2dd4bf,#0d9488); }
.stat-pink   .stat-icon { background: linear-gradient(135deg,#f9a8d4,#db2777); }

/* ---------- 品牌图标选择器（链接组件） ---------- */
.icon-picker-wrap {
  border: 1px dashed #cbd5e1; border-radius: 10px;
  padding: 10px 12px; background: #f8fafc;
}
.icon-preview {
  min-width: 46px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 0 10px; font-size: 18px; color: #475569;
}
.icon-preview img,
.ic-preview-img {
  width: 20px; height: 20px; display: block;
}
.ic-preview-emoji { font-size: 18px; line-height: 1; }
.icon-picker-wrap .form-control-sm { max-width: 130px; }

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding: 4px 2px;
}
.icon-pick-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px 8px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  background: #fff;
  cursor: pointer; text-align: center;
  transition: border-color .15s, background .15s, transform .12s;
}
.icon-pick-item:hover { border-color: #a5b4fc; background: #f5f3ff; transform: translateY(-1px); }
.icon-pick-item.selected {
  border-color: var(--brand);
  background: #eef2ff;
  box-shadow: 0 0 0 2px rgba(79,70,229,.15);
}
.icon-pick-item img,
.icon-pick-item .ic-img {
  width: 24px; height: 24px; object-fit: contain;
}
.icon-pick-emoji { font-size: 22px; line-height: 1; }
.icon-pick-none { color: #94a3b8; font-weight: 700; }

/* 组件列表中 link 行的品牌图标（render_icon_html 输出） */
.fw-semibold .comp-icon {
  display: inline-flex;
  width: 22px; height: 22px;
  vertical-align: middle;
  margin-right: 4px;
}
.fw-semibold .comp-icon .ic-img { width: 18px; height: 18px; display: block; }
.fw-semibold .comp-icon.ic-emoji { font-size: 17px; }
.icon-pick-label {
  font-size: 11px; color: #6b7280; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}

/* ---------- 添加组件分类弹窗 ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.catalog-cat-title {
  grid-column: 1 / -1;
  font-size: 13px; font-weight: 700; color: #94a3b8;
  margin: 6px 0 0;
  display: flex; align-items: center; gap: 8px;
}
.catalog-cat-title::after {
  content: ''; flex: 1; height: 1px; background: #e5e7eb;
}
.catalog-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 10px 14px;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  background: #fff;
  text-decoration: none; color: inherit;
  text-align: center;
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
.catalog-item:hover {
  border-color: var(--brand);
  background: #f5f3ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,70,229,.12);
  text-decoration: none; color: inherit;
}
.catalog-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}
.catalog-name { font-size: 14px; font-weight: 700; color: #1f2937; }
.catalog-desc { font-size: 11.5px; color: #9ca3af; line-height: 1.4; }

/* ---------- 名片设置：联系方式动态行 ---------- */
.contact-row-edit {
  background: #fafbfd;
  transition: border-color .15s, box-shadow .15s;
}
.contact-row-edit:focus-within {
  border-color: #a5b4fc !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,.10);
}
.contact-row-edit .contact-type { max-width: 130px; }
.contact-qr-field { transition: opacity .2s; }

/* 设置分区标题 */
.settings-section {
  border: 1px solid #eef0f5; border-radius: 14px;
  padding: 4px 18px 18px; margin-bottom: 18px;
  background: #fff;
}
.settings-section > .section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: #312e81;
  padding: 14px 0 10px;
  border-bottom: 1px dashed #e5e7eb;
  margin-bottom: 14px;
}
.settings-section .section-title i { font-size: 17px; }

/* ---------- 链接点击排行榜 ---------- */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .15s;
}
.rank-item:hover { background: #f8fafc; }
.rank-no {
  flex: 0 0 28px; width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  background: #eef2f7; color: #94a3b8;
}
.rank-no-1, .rank-no-2, .rank-no-3 {
  background: transparent;
  font-size: 20px;
  line-height: 1;
}
.rank-no-n { background: #eef2f7; color: #94a3b8; }
.rank-ic {
  flex: 0 0 34px; width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; color: #475569; font-size: 16px;
}
.rank-ic img { width: 18px; height: 18px; }
.rank-ic .ic-img { width: 20px; height: 20px; }
.rank-main { flex: 1; min-width: 0; }
.rank-title {
  font-size: 14px; font-weight: 600; color: #1f2937;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.rank-type-tag {
  display: inline-block;
  font-size: 11px; font-weight: 500; color: #6366f1;
  background: #eef2ff; border-radius: 6px;
  padding: 1px 7px; margin-left: 6px;
  vertical-align: 1px;
}
.rank-bar-wrap {
  height: 6px; border-radius: 99px; background: #eef2f7; overflow: hidden;
}
.rank-bar {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  transition: width .4s ease;
}
.rank-clicks {
  flex: 0 0 auto; text-align: right; line-height: 1.15;
}
.rank-clicks strong { font-size: 17px; font-weight: 800; color: #1f2937; }
.rank-clicks span { display: block; font-size: 11px; color: #9ca3af; }

/* ---------- 九宫格/轮播图片行（后台表单） ---------- */
.slide-row, .grid-row {
  border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 10px; background: #fafbfd; margin-bottom: 10px;
}
.grid-thumb img {
  width: 100%; height: 70px; object-fit: cover; border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* ---------- 移动端微调 ---------- */
@media (max-width: 575.98px) {
  .icon-picker-grid { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-item { gap: 8px; padding: 6px 4px; }
  .rank-ic { width: 30px; height: 30px; flex-basis: 30px; }
  .rank-clicks strong { font-size: 15px; }
  .rank-type-tag { display: none; }
}

/* ---------- 右侧名片实时预览 ---------- */
.preview-pane {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 340px;
  padding: 24px 20px 20px;
  background: #f1f0f8;
  border-left: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow-y: auto;
  z-index: 1050;
}
.preview-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: #4b5563;
}
.preview-head-actions { display: flex; align-items: center; gap: 8px; }
.preview-refresh,
.preview-close {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  width: 32px; height: 32px;
  font-size: 15px;
  color: #6366f1;
  cursor: pointer;
  transition: transform .4s, background .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.preview-refresh:hover { background: #eef2ff; transform: rotate(180deg); }
.preview-close { color: #6b7280; }
.preview-close:hover { background: #fee2e2; color: #dc2626; }
.phone-frame {
  width: 290px;
  max-width: 100%;
  height: 600px;
  background: #111827;
  border-radius: 38px;
  padding: 14px 10px;
  box-shadow: 0 20px 48px rgba(17,24,39,.28);
  position: relative;
  flex: none;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 18px;
  background: #111827;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-frame iframe {
  width: 100%; height: 100%;
  border: 0;
  border-radius: 28px;
  background: #fff;
}
.preview-link {
  font-size: 13px;
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
}
.preview-link:hover { text-decoration: underline; }

/* 窄屏悬浮「实时预览」按钮（默认隐藏，<1400px 出现） */
.preview-fab {
  display: none;
  position: fixed;
  right: 18px; bottom: 22px;
  z-index: 1040;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(79,70,229,.42);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.preview-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79,70,229,.5); }

/* 抽屉遮罩（窄屏弹出预览时） */
.preview-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 1045;
}
.preview-backdrop.show { display: block; }

/* ===== 宽屏（>=1400px）：预览栏停靠，主内容区让位，绝不遮挡 ===== */
@media (min-width: 1400px) {
  .admin-main { max-width: none; margin-right: 360px; }
  .preview-pane { transform: translateX(0); }
  .preview-close { display: none; }
}
/* ===== 窄屏（<1400px）：预览栏变右侧抽屉，默认收起 ===== */
@media (max-width: 1399.98px) {
  .preview-fab { display: inline-flex; align-items: center; gap: 6px; }
  .preview-pane {
    transform: translateX(110%);
    transition: transform .28s ease;
    box-shadow: -12px 0 40px rgba(17,24,39,.25);
    width: 340px;
    max-width: 88vw;
  }
  .preview-pane.open { transform: translateX(0); }
  .phone-frame { height: min(600px, calc(100vh - 190px)); }
}

/* =====================================================================
   会员中心 / 套餐 / 卡密 / 用户管理（v8）
   ===================================================================== */

/* ---------- 会员身份条 ---------- */
.vip-status .vip-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 8px 20px rgba(79, 70, 229, .35);
}
.vip-identity { font-size: 18px; font-weight: 700; }
.vip-identity.vip-on { color: #b45309; }
.vip-identity.vip-off { color: #6b7280; }

/* ---------- 套餐卡片 ---------- */
.plan-card {
  position: relative;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 26px 24px;
  height: 100%;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(79, 70, 229, .16);
}
.plan-hot {
  border-color: #6366f1;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 45%);
  box-shadow: 0 12px 34px rgba(99, 102, 241, .22);
}
.plan-ribbon {
  position: absolute; top: 14px; right: -34px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.plan-name { font-size: 17px; font-weight: 700; color: #374151; }
.plan-price {
  margin: 10px 0 4px;
  font-size: 40px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan-currency { font-size: 22px; margin-right: 2px; }
.plan-period { font-size: 14px; font-weight: 500; color: #9ca3af; -webkit-text-fill-color: #9ca3af; }
.plan-tag {
  display: inline-block; margin: 6px 0 14px;
  font-size: 12.5px; font-weight: 600; color: #6d28d9;
  background: #ede9fe; border-radius: 999px; padding: 4px 12px;
}
.plan-benefits {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 9px;
}
.plan-benefits li { font-size: 14px; color: #4b5563; }
.plan-benefits i { color: #6366f1; margin-right: 6px; }
.plan-pay-tip {
  margin-top: 10px; font-size: 12.5px; text-align: center; line-height: 1.6;
}

/* ---------- VIP 按钮 ---------- */
.btn-vip {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border: none; color: #fff; font-weight: 600;
  border-radius: 10px; padding: 10px 20px;
  transition: filter .2s, transform .2s, box-shadow .2s;
}
.btn-vip:hover, .btn-vip:focus {
  color: #fff; filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(79, 70, 229, .38);
}
.btn-vip:disabled { opacity: .55; }
.btn-vip-hot {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: none; color: #fff; font-weight: 700;
  border-radius: 10px; padding: 10px 20px;
  box-shadow: 0 8px 22px rgba(249, 115, 22, .35);
  transition: filter .2s, transform .2s;
}
.btn-vip-hot:hover, .btn-vip-hot:focus { color: #fff; filter: brightness(1.06); }
.btn-outline-vip {
  color: #4f46e5; border-color: #c7d2fe; background: #fff;
  border-radius: 8px; font-weight: 600;
}
.btn-outline-vip:hover { background: #eef2ff; color: #4338ca; border-color: #a5b4fc; }

/* ---------- 订单号 / 卡密单元格 ---------- */
.order-no, .code-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: #374151;
  background: #f3f4f6; border-radius: 6px; padding: 2px 8px;
  letter-spacing: .3px;
}
.code-input {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 2px; text-transform: uppercase;
}
.codes-once {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px; letter-spacing: 1px; line-height: 1.9;
  background: #fffbeb;
}
