/* ============================================================
   muooy 授权中心 · 前端用户门户（整页接管，参考 S03 现代SaaS-Bento风）
   布局：固定 232px 侧栏 + 64px 顶栏 + 8 页 SPA；组件类名沿用 moolp-*
   ============================================================ */
html, body { margin: 0; padding: 0; }
.moolp-body { background: #f4f6fb; color: #0f172a; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; }
.moolp-body * { box-sizing: border-box; }
.moolp-body ::-webkit-scrollbar { width: 6px; height: 6px; }
.moolp-body ::-webkit-scrollbar-thumb { background: rgba(15,23,42,.15); border-radius: 3px; }
.moolp-body a { text-decoration: none; }
@keyframes moolpFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes moolpPop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }

/* ================= 布局壳（嵌入模式：保留主题头尾，应用区自适应主题内容宽度） ================= */
.moolp-body { background: transparent; }
.moolp-app { display: flex; width: 100%; max-width: 100%; margin: 0; min-height: 560px; background: #f4f6fb; color: #0f172a; text-align: left; animation: moolpFade .3s ease; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.moolp-side { width: 232px; background: #fff; border-right: 1px solid rgba(15,23,42,.06); padding: 16px 14px; display: flex; flex-direction: column; overflow-y: auto; flex-shrink: 0; }
.moolp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.moolp-topbar { height: 64px; background: #fff; border-bottom: 1px solid rgba(15,23,42,.06); padding: 0 24px; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.moolp-content { flex: 1; padding: 24px; }

/* ---------- 侧栏：logo / 分组 / 导航 / 促销卡 ---------- */
.moolp-side .logo { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 12px; }
.moolp-logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #4f6bff, #2b4eff); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 4px 12px rgba(79,107,255,.35); flex-shrink: 0; }
.moolp-logo-mark svg { width: 18px; height: 18px; }
.moolp-side .logo .t1 { font-weight: 700; font-size: 15px; line-height: 1.2; }
.moolp-side .logo .t2 { font-size: 11px; color: #94a3b8; margin-top: -2px; }
.moolp-nav-group { font-size: 11px; color: #94a3b8; font-weight: 600; letter-spacing: .06em; padding: 10px 12px 6px; }
.moolp-nav-group.push { margin-top: auto; }
.moolp-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: #475569; cursor: pointer; margin-bottom: 2px; transition: all .15s; font-weight: 500; }
.moolp-nav-item:hover { background: #f1f5f9; color: #0f172a; }
.moolp-nav-item.active { background: linear-gradient(135deg, #4f6bff, #2b4eff); color: #fff !important; box-shadow: 0 4px 12px rgba(79,107,255,.25); }
.moolp-nav-item .fa { width: 16px; text-align: center; font-size: 14px; }
.moolp-nav-item .badge { margin-left: auto; background: #ef4444; color: #fff; font-size: 10px; padding: 1px 7px; border-radius: 10px; font-weight: 600; display: none; }
.moolp-nav-item .badge.show { display: inline-block; }
.moolp-nav-item.active .badge { background: rgba(255,255,255,.25); }
.moolp-nav-item.exit { color: #94a3b8; }
.moolp-nav-item.exit:hover { background: rgba(239,68,68,.08); color: #ef4444; }
.moolp-promo { background: linear-gradient(135deg, #4f6bff, #2b4eff); color: #fff; border-radius: 16px; padding: 14px; margin-top: 12px; }
.moolp-promo .p1 { font-size: 11px; opacity: .8; font-weight: 500; }
.moolp-promo .p2 { font-size: 13px; font-weight: 700; margin-top: 3px; line-height: 1.4; }
.moolp-promo button { display: block; width: 100%; margin-top: 9px; background: rgba(255,255,255,.2); border: 0; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 600; padding: 6px 0; cursor: pointer; font-family: inherit; }
.moolp-promo button:hover { background: rgba(255,255,255,.3); }

/* ---------- 顶栏：搜索 / 铃铛 / 用户 ---------- */
.moolp-search { background: #f1f5f9; border-radius: 12px; padding: 0 14px; display: flex; align-items: center; gap: 8px; height: 38px; flex: 1; max-width: 400px; transition: all .15s; }
.moolp-search:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(79,107,255,.15); }
.moolp-search .fa { color: #94a3b8; font-size: 13px; }
.moolp-search input { border: 0; background: transparent; outline: none; flex: 1; font-size: 13px; font-family: inherit; color: #0f172a; }
.moolp-search .kbd { font-size: 10px; color: #94a3b8; border: 1px solid #e2e8f0; border-radius: 5px; padding: 1px 6px; }
.moolp-topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.moolp-iconbtn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #475569; cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; font-size: 14px; }
.moolp-iconbtn:hover { background: #f1f5f9; }
.moolp-iconbtn .badge { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: none; }
.moolp-iconbtn .badge.show { display: block; }
.moolp-user { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; cursor: pointer; }
.moolp-user:hover { background: #f1f5f9; }
.moolp-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.moolp-user .un { font-size: 13px; font-weight: 600; line-height: 1.2; }
.moolp-user .ur { font-size: 10px; color: #64748b; }

/* ================= Bento 卡体系 ================= */
.mb-card { background: #fff; border-radius: 20px; padding: 20px; border: 1px solid rgba(15,23,42,.06); transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.mb-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15,23,42,.08); }
.mb-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.mb-grid + .mb-grid { margin-top: 16px; }
.c5 { grid-column: span 5; } .c4 { grid-column: span 4; } .c3 { grid-column: span 3; } .c2 { grid-column: span 2; } .c6 { grid-column: span 6; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.grad-blue { background: linear-gradient(135deg, #4f6bff 0%, #2b4eff 60%, #1e36c7 100%); color: #fff; border: 0; }
.grad-orange { background: linear-gradient(135deg, #ff9966, #ff5e62); color: #fff; border: 0; }
.grad-dark { background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; border: 0; }
.grad-soft-blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 0; }
.grad-soft-orange { background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 0; }
.grad-soft-green { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 0; }
.grad-soft-purple { background: linear-gradient(135deg, #faf5ff, #f3e8ff); border: 0; }
.grad-soft-pink { background: linear-gradient(135deg, #fdf2f8, #fce7f3); border: 0; }
.mb-hover0:hover { transform: none; }
.mini-stat-num { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: #0f172a; }
.mini-stat-label { font-size: 12px; opacity: .75; margin-top: 6px; font-weight: 500; color: #475569; }
.current-mark { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.22); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 600; }
.mb-deco { position: absolute; right: -32px; bottom: -32px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.1); }
.mb-deco.b { right: -64px; bottom: -64px; width: 224px; height: 224px; background: rgba(255,255,255,.05); }
.mb-bar { height: 8px; background: rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; margin-top: 20px; }
.mb-bar i { display: block; height: 100%; background: #fff; border-radius: 999px; }
.mb-bar.gray { background: #e2e8f0; }
.mb-bar.gray i { background: linear-gradient(90deg, #4ade80, #10b981); }
.mb-actions-white { background: rgba(255,255,255,.2); backdrop-filter: blur(4px); border: 0; color: #fff; border-radius: 12px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.mb-actions-white:hover { background: rgba(255,255,255,.32); }
.mb-actions-solid { background: #fff; border: 0; color: #2563eb; border-radius: 12px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.mb-actions-solid:hover { background: #f0f6ff; }

/* 快捷操作宫格 */
.mb-qgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mb-qact { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; cursor: pointer; border: 0; background: transparent; font-family: inherit; }
.mb-qact:hover { background: #f8fafc; }
.mb-qact .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.mb-qact span { font-size: 11px; color: #475569; white-space: nowrap; }
.ic-blue { background: #eff6ff; color: #2563eb; } .ic-green { background: #f0fdf4; color: #16a34a; } .ic-purple { background: #faf5ff; color: #9333ea; }
.ic-orange { background: #fff7ed; color: #ea580c; } .ic-pink { background: #fdf2f8; color: #db2777; } .ic-cyan { background: #ecfeff; color: #0891b2; }
.ic-yellow { background: #fefce8; color: #ca8a04; } .ic-slate { background: #f1f5f9; color: #475569; }

/* 胶囊 tag / dot */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag.green { background: #f0fdf4; color: #16a34a; } .tag.orange { background: #fff7ed; color: #ea580c; }
.tag.gray { background: #f1f5f9; color: #64748b; } .tag.blue { background: #eff6ff; color: #2563eb; }
.tag.red { background: #fef2f2; color: #dc2626; } .tag.purple { background: #faf5ff; color: #9333ea; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.on { background: #10b981; } .dot.off { background: #cbd5e1; }

/* 页头与筛选 */
.mb-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.mb-pagehead h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.mb-pagehead .sub { font-size: 13px; color: #64748b; margin-top: 6px; }
.mb-tabs { display: flex; gap: 8px; margin-bottom: 20px; padding: 4px; background: #fff; border-radius: 12px; width: fit-content; border: 1px solid rgba(15,23,42,.06); }
.page-tab { padding: 8px 14px; font-size: 13px; color: #64748b; cursor: pointer; border-radius: 10px; font-weight: 500; border: 0; background: transparent; font-family: inherit; }
.page-tab.active { background: #0f172a; color: #fff; }
.page-tab .n { color: #94a3b8; font-size: 11px; }
.page-tab.active .n { color: rgba(255,255,255,.7); }
.pill-btn { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid rgba(15,23,42,.08); background: #fff; cursor: pointer; transition: all .15s; font-family: inherit; color: #475569; }
.pill-btn:hover { background: #f1f5f9; }
.pill-btn.active { background: #0f172a; color: #fff; border-color: #0f172a; }

/* bento 表格 */
table.bento { width: 100%; border-collapse: collapse; }
table.bento th { font-size: 11px; color: #64748b; font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid #f1f5f9; letter-spacing: .04em; white-space: nowrap; }
table.bento td { padding: 14px 12px; border-bottom: 1px solid #f8fafc; font-size: 13px; color: #334155; }
table.bento tr:hover td { background: #f8fafc; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* 授权卡网格 */
.lic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.license-tile { background: #fff; border-radius: 16px; padding: 16px; cursor: pointer; transition: all .2s; border: 2px solid transparent; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.license-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.license-tile.warn { border-color: #fb923c; }
.lic-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.lic-row { display: flex; gap: 12px; margin-top: 14px; font-size: 12px; color: #475569; flex-wrap: wrap; }
.lic-foot { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f5f9; }

/* 域名卡（设备卡样式） */
.dom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.device-card { border-radius: 16px; padding: 16px; background: #fff; border: 1px solid rgba(15,23,42,.06); transition: all .2s; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.device-card:hover { border-color: #4f6bff; box-shadow: 0 8px 20px rgba(79,107,255,.1); }
.dom-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; flex-shrink: 0; }

/* 消息流 */
.msg-item { background: #fff; border-radius: 16px; padding: 16px; display: flex; gap: 16px; border: 1px solid rgba(15,23,42,.06); margin-bottom: 12px; }
.msg-item.readed { opacity: .6; }
.msg-ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }

/* 提示条（规则说明） */
.mb-note { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 0; display: flex; align-items: center; gap: 14px; padding: 13px 16px; margin: 4px 0 16px; position: relative; z-index: 1; }
.mb-note .nic { width: 38px; height: 38px; border-radius: 11px; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.mb-note .nt { font-weight: 600; color: #0f172a; font-size: 13.5px; }
.mb-note .nd { font-size: 12.5px; color: #475569; margin-top: 2px; line-height: 1.6; }

/* ================= 既有组件（兼容 JS/PHP，外观升级） ================= */
.moolp-panel { display: none; animation: moolpFade .3s ease; }
.moolp-panel.active { display: block; }
.moolp-greet { font-size: 14px; color: #64748b; }
.mb-title { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 4px 0 0; }

.moolp-card { background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.moolp-product-head h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.moolp-muted { color: #94a3b8; font-size: 12px; }
.moolp-empty { background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; padding: 48px 20px; text-align: center; color: #94a3b8; font-size: 14px; }

.moolp-plan-list { display: grid; gap: 10px; }
.moolp-plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f8fafc; border: 1px solid rgba(15,23,42,.06); border-radius: 12px; padding: 12px 16px; font-size: 13px; transition: all .2s; }
.moolp-plan-row:hover { border-color: #c7d7f5; background: #f3f7ff; }

.moolp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; border: 1px solid transparent; background: linear-gradient(135deg, #4f6bff, #2b4eff); color: #fff; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; box-shadow: 0 4px 12px rgba(79,107,255,.25); text-decoration: none !important; }
.moolp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79,107,255,.35); color: #fff; }
.moolp-btn .fa { font-size: 12px; }
.moolp-btn.ghost { background: #fff; color: #475569; border: 1px solid #e2e8f0; box-shadow: none; }
.moolp-btn.ghost:hover { border-color: #cbd5e1; background: #f8fafc; color: #0f172a; transform: none; }
.moolp-btn.sm { padding: 6px 12px; font-size: 12px; border-radius: 9px; }
.moolp-btn.danger { background: #fff; color: #ef4444; border-color: #fecaca; box-shadow: none; }
.moolp-btn.danger:hover { background: #fef2f2; color: #dc2626; transform: none; }
.moolp-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.moolp-mini { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; color: #475569; font-family: inherit; font-size: 12px; cursor: pointer; transition: all .15s; }
.moolp-mini:hover { border-color: #4f6bff; color: #4f6bff; }
.moolp-mini.danger:hover { border-color: #ef4444; color: #ef4444; }

.moolp-key { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: #f1f5f9; padding: 4px 10px; border-radius: 7px; letter-spacing: .5px; color: #0f172a; }
.moolp-quotas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.moolp-quota-l { display: block; font-size: 12px; color: #64748b; margin-bottom: 6px; }
.moolp-quota-l b { color: #0f172a; }
.moolp-bar2 { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.moolp-bar2 i { display: block; height: 100%; background: linear-gradient(90deg, #4f6bff, #2b4eff); border-radius: 999px; transition: width .4s; }
.moolp-domains { border-top: 1px solid #f1f5f9; padding-top: 12px; margin-bottom: 12px; }
.moolp-dom-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; flex-wrap: wrap; }
.moolp-lic-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid #f1f5f9; padding-top: 12px; }
.moolp-logbox { margin-top: 12px; background: #f8fafc; border: 1px solid rgba(15,23,42,.06); border-radius: 12px; padding: 12px; overflow-x: auto; }
.moolp-logbox table { width: 100%; border-collapse: collapse; font-size: 12px; }
.moolp-logbox th { text-align: left; padding: 5px 8px; color: #64748b; font-weight: 600; border-bottom: 1px solid #e2e8f0; }
.moolp-logbox td { padding: 5px 8px; border-bottom: 1px solid #f8fafc; color: #475569; }

.moolp-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.moolp-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.moolp-pill.on { background: #f0fdf4; color: #059669; }
.moolp-pill.off { background: #f1f5f9; color: #94a3b8; }
.moolp-pill.warn { background: #fff7ed; color: #b45309; }
.moolp-pill.danger { background: #fef2f2; color: #dc2626; }

.moolp-table-card { overflow-x: auto; }
.moolp-table-card table { width: 100%; border-collapse: collapse; font-size: 13px; }
.moolp-table-card th { text-align: left; padding: 10px 12px; background: #f8fafc; color: #64748b; font-weight: 600; border-bottom: 1px solid #f1f5f9; white-space: nowrap; font-size: 11px; letter-spacing: .04em; }
.moolp-table-card td { padding: 12px; border-bottom: 1px solid #f8fafc; color: #334155; }

/* 弹窗 / Toast（沿用类名，升级质感） */
.moolp-mask { position: fixed; inset: 0; background: rgba(15,23,42,.4); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; z-index: 2147483000; padding: 9vh 16px 16px; }
.moolp-mask.show { display: flex; }
.moolp-modal { width: 480px; max-width: 94vw; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 20px 60px rgba(15,23,42,.2); animation: moolpPop .22s cubic-bezier(.34,1.3,.64,1); }
.moolp-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 15px; }
.moolp-modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.moolp-modal-head .x { width: 30px; height: 30px; border: none; background: transparent; border-radius: 8px; color: #94a3b8; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.moolp-modal-head .x:hover { background: #f1f5f9; color: #0f172a; }
.moolp-modal-body { padding: 0 0 6px; display: grid; gap: 12px; }
.moolp-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0 0; }
.moolp-buy-row { display: flex; justify-content: space-between; font-size: 13px; color: #475569; }
.moolp-buy-row b { color: #0f172a; }

.moolp-field label { display: block; font-size: 13px; color: #0f172a; font-weight: 500; margin-bottom: 7px; }
.moolp-input { width: 100%; height: 40px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13px; font-family: inherit; background: #fff; color: #0f172a; outline: none; transition: all .15s; box-sizing: border-box; }
.moolp-input:focus { border-color: #4f6bff; box-shadow: 0 0 0 3px rgba(79,107,255,.1); }
.moolp-input:disabled { background: #f8fafc; color: #94a3b8; }

.moolp-bigkey { font-family: ui-monospace, Consolas, monospace; font-size: 17px; font-weight: 700; letter-spacing: 2px; background: #0f172a; color: #93c5fd; padding: 15px 16px; border-radius: 12px; text-align: center; word-break: break-all; user-select: all; }
.moolp-okrow { display: flex; justify-content: center; }

.moolp-toast { position: fixed; top: 18px; right: 20px; background: #0f172a; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 13px; box-shadow: 0 4px 16px rgba(15,23,42,.25); z-index: 2147483001; display: flex; align-items: center; gap: 9px; opacity: 0; transform: translateY(-10px); transition: all .25s cubic-bezier(.34,1.3,.64,1); pointer-events: none; max-width: 82vw; }
.moolp-toast.show { opacity: 1; transform: none; }
.moolp-toast.err { background: #b91c1c; }

/* 登录引导（未登录整页） */
.moolp-login { background: #fff; border-radius: 20px; padding: 48px 28px; text-align: center; max-width: 420px; margin: 10vh auto; box-shadow: 0 20px 60px rgba(15,23,42,.08); }
.moolp-login .lg-ic { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, #4f6bff, #2b4eff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 16px; box-shadow: 0 8px 20px rgba(79,107,255,.35); }
.moolp-login h2 { margin: 0 0 8px; font-size: 20px; }
.moolp-login p { color: #64748b; font-size: 13px; margin: 0 0 20px; line-height: 1.7; }

/* 帮助 FAQ */
.faq details { background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; cursor: pointer; }
.faq details summary { font-size: 13px; font-weight: 600; color: #0f172a; }
.faq details p { font-size: 13px; color: #64748b; line-height: 1.8; margin: 10px 0 2px; }
.help-card { text-align: center; }
.help-card .hic { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 12px; }

/* ================= 移动端 ================= */
@media (max-width: 900px) {
    .c5, .c4, .c3, .c2, .c6, .c8 { grid-column: span 12; }
    .lic-grid { grid-template-columns: repeat(2, 1fr); }
    .dom-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .moolp-quotas { grid-template-columns: 1fr; }
    .moolp-app { flex-direction: column; border-radius: 12px; }
    /* 小屏：侧栏转顶条（应用区已随主题内容流 100% 宽） */
    .moolp-side { width: 100%; height: 54px; flex-direction: row; align-items: center; overflow-x: auto; overflow-y: hidden; border-right: none; border-bottom: 1px solid rgba(15,23,42,.06); padding: 6px 8px; gap: 2px; }
    .moolp-side .logo, .moolp-nav-group, .moolp-promo { display: none; }
    .moolp-nav-item { height: 40px; padding: 0 12px; gap: 7px; white-space: nowrap; margin-bottom: 0; flex-shrink: 0; font-size: 12.5px; }
    .moolp-topbar { padding: 0 14px; }
    .moolp-search .kbd { display: none; }
    .moolp-content { padding: 16px 14px 32px; }
    .lic-grid, .dom-grid { grid-template-columns: 1fr; }
    .mb-pagehead h1 { font-size: 20px; }
}

/* 授权全宽平铺卡（B2 修正：详情直接显示在卡上） */
.license-card { background: #fff; border-radius: 16px; padding: 18px 20px; border: 1px solid rgba(15,23,42,.06); box-shadow: 0 1px 3px rgba(15,23,42,.04); transition: all .2s; margin-bottom: 16px; }
.license-card:hover { border-color: #c7d2fe; box-shadow: 0 8px 20px rgba(79,107,255,.08); }
.license-card.warn { border-color: #fb923c; }
.lc-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.lc-info { flex: 1; min-width: 200px; }
.lc-name { font-weight: 700; font-size: 15px; color: #0f172a; }
.lc-keyrow { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.lc-side { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.lc-exp { font-size: 12px; color: #475569; }

/* 商店套餐卡（2 列，与授权卡同风格） */
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .store-grid { grid-template-columns: 1fr; } }

/* 产品商店 / 我的授权：统一两列网格 */
.cards-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.cards-2col .license-card { margin-bottom: 0; height: 100%; }
@media (max-width: 960px) { .cards-2col { grid-template-columns: 1fr; } }

/* 产品卡内套餐选择器 */
.plan-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-top: 16px; }
.plan-chip { position: relative; border: 1.5px solid #e5e9f2; border-radius: 14px; padding: 13px 14px 12px; background: #f8fafc; cursor: pointer; text-align: left; font-family: inherit; display: flex; flex-direction: column; gap: 4px; transition: all .18s; overflow: visible; }
.plan-chip b { font-size: 13.5px; color: #0f172a; font-weight: 700; letter-spacing: .2px; }
.plan-chip span { font-size: 12px; color: #64748b; line-height: 1.35; }
.plan-chip span b { font-size: 12px; }
.plan-chip:hover { border-color: #b9c6f8; background: #f5f7ff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(79, 107, 255, .1); }
.plan-chip.selected { background: linear-gradient(150deg, #eef2ff 0%, #e4ebff 100%); border-color: #4f6bff; box-shadow: 0 6px 18px rgba(79, 107, 255, .18); }
.plan-chip.selected b { color: #2b4eff; }
.plan-chip.selected span { color: #3d55d8; font-weight: 600; }
.plan-chip.selected::after { content: '✓'; position: absolute; top: 7px; right: 7px; width: 19px; height: 19px; border-radius: 50%; background: linear-gradient(135deg, #4f6bff, #6366f1); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(79, 107, 255, .4); }
.pc-price b { font-size: 17px; font-weight: 800; color: #0f172a; font-family: ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: -.3px; }
.plan-chip.selected .pc-price b { color: #2b4eff; }
.pc-price small { font-size: 11px; font-weight: 500; margin-left: 2px; }
.plan-detail { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px; background: #f8fafc; border-radius: 10px; }
.pd-item { font-size: 13px; color: #475569; }
.pd-item .fa { color: #94a3b8; width: 16px; }


/* ---------- 主题穿透免疫（B2: .entry-content a{color:#ff6000} 等染橙） ---------- */
.moolp-app a { text-decoration: none !important; }
.moolp-app .moolp-side a.moolp-nav-item { color: #475569 !important; background: transparent !important; }
.moolp-app .moolp-side a.moolp-nav-item:hover { color: #0f172a !important; background: #f1f5f9 !important; }
.moolp-app .moolp-side a.moolp-nav-item.active { color: #fff !important; background: linear-gradient(135deg, #4f6bff, #2b4eff) !important; }
.moolp-app .moolp-side a.moolp-nav-item.exit { color: #94a3b8 !important; }
.moolp-app .moolp-side a.moolp-nav-item.exit:hover { color: #ef4444 !important; background: rgba(239,68,68,.08) !important; }
.moolp-app .moolp-user .un { color: #0f172a !important; }
.moolp-app .moolp-user .ur { color: #64748b !important; }
.moolp-app a.moolp-btn:not(.ghost):not(.danger) { color: #fff !important; background: linear-gradient(135deg, #4f6bff, #2b4eff) !important; border-color: transparent !important; }
.moolp-app a.moolp-btn:not(.ghost):not(.danger):hover { color: #fff !important; }
.moolp-app a.moolp-btn.ghost { color: #475569 !important; background: #fff !important; border: 1px solid #e2e8f0 !important; }
.moolp-app a.moolp-btn.ghost:hover { color: #0f172a !important; background: #f8fafc !important; }
.moolp-app a.moolp-btn.danger { color: #ef4444 !important; background: #fff !important; }

/* ---------- 双向授权 · 三步引导卡（替代旧提示条） ---------- */
.mb-guide { background: linear-gradient(135deg, #f0f5ff, #e9efff); border: 1px solid #dbe6ff; border-radius: 20px; padding: 20px 22px; margin-top: 18px; container-type: inline-size; }
.mg-head { display: flex; align-items: center; gap: 12px; }
.mg-ic { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #4f6bff, #2b4eff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; box-shadow: 0 6px 16px rgba(79,107,255,.3); }
.mg-t { font-weight: 700; font-size: 15px; color: #0f172a; }
.mg-d { font-size: 12.5px; color: #64748b; margin-top: 2px; }
.mg-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; margin-top: 16px; }
.mg-step { background: #fff; border: 1px solid rgba(15,23,42,.05); border-radius: 14px; padding: 13px 14px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.mg-b { flex: 1; min-width: 0; }
.mg-n { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #4f6bff, #2b4eff); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.mg-b b { display: block; font-size: 13px; color: #0f172a; }
.mg-b span { display: block; font-size: 11.5px; color: #64748b; margin-top: 3px; line-height: 1.5; }
.mg-arrow { display: flex; align-items: center; color: #93b4ff; font-size: 20px; }
.mg-foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #c9d9ff; font-size: 12px; color: #475569; display: flex; align-items: center; gap: 7px; }
.mg-foot .fa { color: #4f6bff; }
@container (max-width: 820px) { .mg-steps { grid-template-columns: 1fr; } .mg-arrow { display: none; } }

/* ---------- 购买弹窗支付通道选择 ---------- */
.moolp-paychips { display: inline-flex; gap: 8px; }
.pchip { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 5px 13px; font-size: 12px; cursor: pointer; font-family: inherit; color: #475569; transition: all .15s; }
.pchip .fa { font-size: 11px; }
.pchip:hover { border-color: #c7d2fe; }
.pchip.active { border-color: #4f6bff; background: #f0f4ff; color: #2b4eff; font-weight: 600; }
