/* PAYATHON 2026 · 纯净 AI 短视频工作流 SaaS 商业视觉增强层
 * 严格遵循 docs/DESIGN_SYSTEM.md：柔雾丁香象牙白 + 深李子墨 + 紫粉珊瑚渐变 + 曜石黑主按钮
 */

/* 隐藏与 AI 视频赛道无关的电商 ERP / 商品 / 缺失画布模块入口 */
.nx-erp-group,
[data-nav-group="growth"],
[data-page="canvas"],
[data-page="products"],
[data-page="orders"],
[data-page="inventory"],
[data-page="integrations"],
[data-page="listings"],
[data-page="marketing"],
[data-page="insights"],
[data-page="campaigns"],
#nx-workspace-mode-bar,
#global-search {
  display: none !important;
}

/* 修复顶部栏防挤压与文字重叠问题 */
.topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}

.topbar-left {
  flex: 1 1 auto !important;
  min-width: 140px !important;
  align-items: flex-start !important;
  text-align: left !important;
  overflow: hidden !important;
}

.topbar-left > div {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.topbar-left h1,
.topbar-left p {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.topbar-actions {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.nx-payathon-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nx-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid #e9dbf4;
  background: #f4ecfa;
  color: #5d39bd;
  text-decoration: none;
  transition: .2s cubic-bezier(.22, 1, .36, 1);
}

.nx-sub-pill.active-pro {
  background: linear-gradient(135deg, #7d3aef, #d84fa8 70%, #ff917d);
  color: #fff;
  border-color: transparent;
}

.nx-sub-pill:hover {
  transform: translateY(-1px);
  background: #ede1f9;
  box-shadow: 0 8px 18px rgba(75, 45, 110, .12);
}
.nx-sub-pill.active-pro:hover {
  background: linear-gradient(135deg, #7228bd, #d84fa8 70%, #ff917d);
}

.nx-demo-sample-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: #11131b;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(41, 28, 54, .12);
  transition: .2s cubic-bezier(.22, 1, .36, 1);
}

.nx-demo-sample-btn:hover { background: #231c2e; transform: translateY(-1px); }
.nx-demo-sample-btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

@media (max-width: 1120px) {
  .nx-demo-sample-btn span.nx-hide-md { display: none; }
}

/* 402 商业升级弹窗（严格遵循 L3 纯白实体 + 柔紫遮罩） */
.nx-upgrade-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(38, 29, 53, 0.34);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.nx-upgrade-card {
  width: min(500px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  border: 1px solid #ece3f2;
  box-shadow: 0 30px 90px rgba(44, 25, 61, 0.22);
}

.nx-upgrade-card h3 { margin: 12px 0 8px; font-size: 20px; color: #1b1823; letter-spacing: -.4px; }
.nx-upgrade-card p { margin: 0 0 14px; font-size: 13px; color: #685e74; line-height: 1.75; }
.nx-upgrade-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* 右下角可折叠 PAYATHON 评委演示向导浮球（曜石黑 + 品牌渐变光点） */
.nx-launchpad-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 8800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(145deg, #1a1621, #2a1d35 65%, #3d2442);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(41, 28, 54, .24);
  transition: .2s cubic-bezier(.22, 1, .36, 1);
}
.nx-launchpad-fab::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ba7cf4 35%, #e567c2 70%, #ff9a85);
  box-shadow: 0 0 10px rgba(212, 103, 206, .7);
}
.nx-launchpad-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(41, 28, 54, .32); }

.nx-launchpad-panel {
  position: fixed;
  right: 18px;
  bottom: 68px;
  z-index: 8801;
  width: min(350px, calc(100vw - 36px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px);
  border-radius: 20px;
  border: 1px solid #ece3f2;
  box-shadow: 0 24px 60px rgba(57, 38, 79, 0.16);
  padding: 18px;
  color: #1b1823;
}
.nx-launchpad-panel[hidden] { display: none !important; }
.nx-launchpad-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.nx-launchpad-head strong { font-size: 14px; display: block; color: #1b1823; }
.nx-launchpad-head small { font-size: 11.5px; color: #685e74; }
.nx-lp-close {
  border: none;
  background: #f4f1f8;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: #5b5266;
}
.nx-lp-steps { display: grid; gap: 8px; }
.nx-lp-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #faf8fc;
  border: 1px solid #eee8f2;
  text-decoration: none;
  color: #1b1823;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: .16s ease;
}
.nx-lp-step:hover { background: #f4ecfa; border-color: #d3bfdc; }
.nx-lp-step small { display: block; font-weight: 400; font-size: 11px; color: #685e74; margin-top: 2px; }
.nx-lp-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4ecfa;
  color: #5d39bd;
  white-space: nowrap;
}
.nx-lp-matrix {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eee8f2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nx-lp-matrix a {
  font-size: 11px;
  color: #623791;
  text-decoration: none;
  background: #f4ecfa;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.nx-lp-matrix a:hover { background: #eadcf6; }
