/* ==========================================================================
   牛来API · 赛博皇家黑金流光 3D 老虎机舞台样式 (v5 Cyber-Royal Deluxe)
   - 全息深空黑曜石 + 3D 透视激光网格 + 双束动态体积聚光灯，酷炫度拉满
   - 左上角一体式紧凑悬浮组：活动规则 + 正下方紧贴抽奖资格与蓄力舱
   - 右上角：流光控制胶囊 + 默认折叠的中奖记录抽屉 | 右下角净空无干扰
   - 底部中央：动态扫光三档街机摇奖主控台，严格一屏零溢出
   ========================================================================== */

:root {
  /* 管理员页面与全局弹窗跟随系统浅色/深色主题 */
  --nll-adm-surface: #ffffff;
  --nll-adm-surface-2: #f8fafc;
  --nll-adm-border: #e2e8f0;
  --nll-adm-text: #0f172a;
  --nll-adm-text-sec: #475569;
  --nll-adm-text-muted: #64748b;

  --nll-modal-bg: #121624;
  --nll-modal-text: #f8fafc;
  --nll-modal-sec: #cbd5e1;
  --nll-modal-card-item: #1a2035;
}

html.dark {
  --nll-adm-surface: #131926;
  --nll-adm-surface-2: #0d121c;
  --nll-adm-border: rgba(255, 255, 255, 0.10);
  --nll-adm-text: #f8fafc;
  --nll-adm-text-sec: #cbd5e1;
  --nll-adm-text-muted: #94a3b8;
}

body.nll-route-active main {
  padding: 12px 16px !important;
  height: calc(100vh - 64px);
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
@media (min-width: 1150px) {
  body.nll-route-active.nll-mode-user main {
    overflow: hidden !important;
  }
}
@media (max-width: 768px) {
  body.nll-route-active main {
    padding: 10px !important;
    height: auto;
  }
}

#nl-native-lottery-root {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: var(--nll-adm-text);
  animation: nllEnter 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes nllEnter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= 赛博皇家黑金流光 3D 游戏巨幕舱 (.nll-arena) ================= */
.nll-arena {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 580px;
  height: 100%;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 68% 54% at 54% 44%, rgba(190, 18, 60, 0.36) 0%, rgba(88, 28, 135, 0.22) 36%, rgba(12, 15, 28, 0.96) 74%, #070912 100%);
  border: 1px solid rgba(251, 113, 133, 0.42);
  box-shadow:
    0 20px 50px -10px rgba(15, 23, 42, 0.38),
    0 0 0 1px rgba(251, 191, 36, 0.16) inset,
    0 0 60px rgba(225, 29, 72, 0.14) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f8fafc;
}

/* 顶部外框霓虹流光金红能量条 */
.nll-arena::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, #fb7185, #fde047, #fb7185, transparent);
  z-index: 8;
  opacity: 0.9;
}

/* 双束体积聚光灯 (GPU 静态合成层，消除大面积重绘开销) */
.nll-arena-spotlights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    conic-gradient(from 156deg at 34% -8%, transparent 0deg, rgba(251, 113, 133, 0.14) 16deg, transparent 34deg),
    conic-gradient(from 172deg at 72% -8%, transparent 0deg, rgba(251, 191, 36, 0.15) 16deg, transparent 34deg),
    radial-gradient(ellipse 46% 20% at 54% 78%, rgba(244, 63, 94, 0.28), transparent 74%);
  transform: translateZ(0);
}

/* 3D 透视赛博霓虹激光地平线网格 (纯硬件合成，不触发 background-position CPU 重绘) */
.nll-cyber-floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -18%;
  height: 54%;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(251, 113, 133, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(251, 191, 36, 0.14) 1px, transparent 1px);
  background-size: 64px 44px;
  transform: perspective(520px) rotateX(66deg) translateZ(0);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.88) 10%, transparent 92%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.88) 10%, transparent 92%);
}

/* 顶部正中：全息状态呼吸灯胶囊 */
.nll-center-status {
  position: absolute;
  top: 16px;
  left: 54%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(15, 20, 35, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(251, 191, 36, 0.42);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.18), 0 8px 20px rgba(0, 0, 0, 0.45);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fef08a;
  white-space: nowrap;
  pointer-events: none;
}
.nll-status-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}
.nll-status-led.spinning {
  background: #f59e0b;
  box-shadow: 0 0 12px #f59e0b;
}

/* 全画幅 WebGL 真 3D 视口 */
.nll-webgl-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}
#nll-slot3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ================= 赛博黑金全息毛玻璃 HUD 卡片 ================= */
.nll-cyber-card {
  position: relative;
  background: linear-gradient(155deg, rgba(20, 25, 42, 0.84) 0%, rgba(12, 15, 26, 0.90) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 15px 17px;
  box-shadow:
    0 16px 38px -8px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(251, 113, 133, 0.10) inset;
  color: #f8fafc;
}

/* ↖ 左上角一体式紧凑悬浮栈：活动规则 + 紧贴正下方的抽奖资格舱 */
.nll-hud-leftstack {
  position: absolute;
  top: 16px;
  left: 16px;
  width: clamp(280px, 21.5vw, 324px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nll-card-rules {
  border-color: rgba(251, 113, 133, 0.36);
  overflow: hidden;
}
.nll-card-rules::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #f43f5e, #fbbf24, #a855f7);
}

.nll-card-quota {
  border-color: rgba(251, 191, 36, 0.34);
  overflow: hidden;
}
.nll-card-quota::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #fbbf24, #f43f5e, transparent);
}

/* ↗ 右上角：流光工具胶囊 + 默认折叠的「我的中奖记录」抽屉 */
.nll-hud-topright {
  position: absolute;
  top: 16px;
  right: 16px;
  width: clamp(268px, 20.5vw, 308px);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.nll-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nll-cyber-chip-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(17, 23, 39, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.18s ease;
  white-space: nowrap;
}
.nll-cyber-chip-btn:hover {
  border-color: #fb7185;
  color: #fda4af;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.30);
}
.nll-cyber-chip-btn.accent {
  border-color: rgba(251, 191, 36, 0.48);
  color: #fde047;
}

.nll-sandbox-pop {
  padding: 11px 13px;
  border-radius: 15px;
  background: rgba(15, 20, 34, 0.92);
  backdrop-filter: blur(18px);
  border: 1px dashed rgba(251, 113, 133, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  display: none;
  flex-direction: column;
  gap: 8px;
}
.nll-sandbox-pop.open {
  display: flex;
}

/* ⬇ 正中央底部赛博流光主控台：单次抽奖 / 5抽连摇 / 10抽暴击 */
.nll-console-dock {
  position: absolute;
  bottom: 18px;
  left: 54%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(640px, calc(100% - 380px));
  min-width: 480px;
  padding: 11px 13px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22, 28, 46, 0.88) 0%, rgba(10, 13, 24, 0.94) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(225, 29, 72, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.nll-spin-console {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

/* ================= 窄屏 / 平板 / 手机流式自适应 (< 1150px) ================= */
@media (max-width: 1149px) {
  .nll-arena {
    height: auto;
    min-height: 0;
    padding: 14px;
    gap: 12px;
    overflow: visible;
  }
  .nll-center-status {
    position: static;
    transform: none;
    align-self: center;
    order: 1;
  }
  .nll-hud-topright {
    position: static;
    width: 100%;
    order: 2;
  }
  .nll-webgl-stage {
    position: relative;
    height: 440px;
    order: 3;
  }
  .nll-console-dock {
    position: static;
    transform: none;
    width: 100%;
    min-width: 0;
    order: 4;
  }
  .nll-hud-leftstack {
    position: static;
    width: 100%;
    order: 5;
  }
}
@media (max-width: 640px) {
  .nll-spin-console {
    grid-template-columns: 1fr;
  }
  .nll-webgl-stage {
    height: 360px;
  }
}

/* ================= 赛博卡片内部排版细节 ================= */
.nll-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.nll-panel-title {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  letter-spacing: 0.3px;
}
.nll-cyber-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.25), rgba(245, 158, 11, 0.22));
  border: 1px solid rgba(251, 113, 133, 0.42);
  color: #fda4af;
}

.nll-rule-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.52;
}
.nll-rule-items strong {
  color: #fde047;
}
.nll-rule-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.nll-rule-badge {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.32), rgba(245, 158, 11, 0.28));
  border: 1px solid rgba(251, 113, 133, 0.45);
  color: #fde047;
  font-size: 10.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 抽奖资格与能量蓄力舱 */
.nll-quota-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(159, 18, 57, 0.38) 0%, rgba(120, 53, 15, 0.32) 100%);
  border: 1px solid rgba(251, 113, 133, 0.42);
  box-shadow: 0 0 24px rgba(225, 29, 72, 0.16) inset;
  margin-bottom: 10px;
}
.nll-quota-num {
  font-size: 30px;
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.55);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.nll-recharge-glow-btn {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 11px;
  border: 1px solid rgba(254, 240, 138, 0.50);
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 55%, #d97706 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.45);
  transition: all 0.18s ease;
  white-space: nowrap;
}
.nll-recharge-glow-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.55);
  filter: brightness(1.08);
}

.nll-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.nll-mini-cell {
  padding: 8px 9px;
  border-radius: 11px;
  background: rgba(9, 13, 24, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.nll-mini-lbl {
  font-size: 10.5px;
  color: #94a3b8;
}
.nll-mini-val {
  font-size: 13.5px;
  font-weight: 800;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}

.nll-energy-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
  margin-top: 6px;
}
.nll-energy-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f43f5e, #fbbf24, #fde047);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.65);
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 右上：默认折叠收起的「我的中奖记录」全息抽屉 */
.nll-fold-card {
  padding: 0;
  overflow: hidden;
}
.nll-fold-trigger {
  width: 100%;
  cursor: pointer;
  padding: 12px 15px;
  background: transparent;
  border: none;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  transition: background 0.16s;
}
.nll-fold-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}
.nll-fold-chevron {
  transition: transform 0.22s ease;
  color: #94a3b8;
  font-size: 11px;
}
.nll-fold-card.expanded .nll-fold-chevron {
  transform: rotate(180deg);
}
.nll-fold-body {
  display: none;
  padding: 0 14px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.nll-fold-card.expanded .nll-fold-body {
  display: block;
}
.nll-record-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.nll-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(9, 13, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

/* ================= 底部三档赛博流光摇奖发射键 ================= */
.nll-3d-btn {
  position: relative;
  cursor: pointer;
  border-radius: 15px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
  overflow: hidden;
}
/* 按钮顶部玻璃棱光 + 动态流光扫掠 */
.nll-3d-btn::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.nll-3d-btn::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; width: 45%;
  left: -65%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-24deg);
  animation: nllBtnSweep 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes nllBtnSweep {
  0%, 65% { left: -65%; }
  100% { left: 135%; }
}

.nll-3d-btn.tier-1 {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 55%, #9f1239 100%);
  box-shadow: 0 4px 0 #6b0f2a, 0 8px 22px rgba(225, 29, 72, 0.42);
}
.nll-3d-btn.tier-5 {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 52%, #7e22ce 100%);
  box-shadow: 0 4px 0 #4c1d95, 0 8px 22px rgba(147, 51, 234, 0.42);
}
.nll-3d-btn.tier-10 {
  background: linear-gradient(135deg, #fbbf24 0%, #ea580c 52%, #dc2626 100%);
  box-shadow: 0 4px 0 #7c2d12, 0 8px 26px rgba(234, 88, 12, 0.48);
}
.nll-3d-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.10);
}
.nll-3d-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.nll-3d-btn:disabled {
  background: linear-gradient(135deg, #273248 0%, #182032 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(203, 213, 225, 0.55) !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 3px 0 #0b0f19;
}
.nll-3d-btn:disabled::after {
  display: none;
}

.nll-b-main { font-size: 14.5px; font-weight: 900; letter-spacing: 0.3px; white-space: nowrap; }
.nll-b-sub { font-size: 10.5px; opacity: 0.90; font-weight: 600; margin-top: 1px; white-space: nowrap; }
.nll-b-cost {
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

/* ================= 管理后台视图样式 ================= */
.nll-full-screen {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nll-sandbox-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--nll-adm-surface);
  border: 1px dashed rgba(244, 63, 94, 0.45);
  font-size: 12px;
}

.nll-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(225, 29, 72, 0.14);
  color: #e11d48;
}
html.dark .nll-pill { color: #fda4af; }

.nll-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--nll-adm-border);
  background: var(--nll-adm-surface);
  color: var(--nll-adm-text);
  transition: all 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}
.nll-btn:hover:not(:disabled) {
  border-color: #fb7185;
  color: #e11d48;
}
.nll-btn.primary {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 60%, #be123c 100%);
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.28);
}
.nll-btn.primary:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.nll-btn-xs { padding: 5px 10px; font-size: 11.5px; border-radius: 9px; }

.nll-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 800px) { .nll-kpi-row { grid-template-columns: repeat(2, 1fr); } }
.nll-kpi-tile {
  position: relative;
  background: var(--nll-adm-surface);
  border: 1px solid var(--nll-adm-border);
  border-radius: 16px;
  padding: 15px 18px;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
}

/* ================= 累计派发美刀总额 · 日期范围筛选下拉浮层 ================= */
.nll-date-filter-wrap {
  position: relative;
  display: inline-block;
}
.nll-date-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  background: var(--nll-adm-surface);
  color: var(--nll-adm-text);
  border: 1.5px solid #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
  transition: all 0.16s ease;
  white-space: nowrap;
}
.nll-date-trigger:hover {
  background: rgba(16, 185, 129, 0.06);
}
.nll-date-trigger .nll-dt-arrow {
  font-size: 10px;
  color: var(--nll-adm-text-muted);
  transition: transform 0.2s ease;
}
.nll-date-filter-wrap.open .nll-date-trigger .nll-dt-arrow {
  transform: rotate(180deg);
}

.nll-date-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 316px;
  padding: 14px;
  border-radius: 16px;
  background: var(--nll-adm-surface);
  border: 1px solid var(--nll-adm-border);
  box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(15, 23, 42, 0.08);
  z-index: 80;
  display: none;
  animation: nllEnter 0.16s ease-out;
}
html.dark .nll-date-popover {
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.65);
}
.nll-date-filter-wrap.open .nll-date-popover {
  display: block;
}
@media (max-width: 640px) {
  .nll-date-popover {
    right: auto;
    left: 0;
    width: min(308px, 88vw);
  }
}

.nll-date-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}
.nll-date-preset-btn {
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--nll-adm-text-sec);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s ease;
}
.nll-date-preset-btn:hover {
  background: var(--nll-adm-surface-2);
  color: var(--nll-adm-text);
}
.nll-date-preset-btn.active {
  background: rgba(16, 185, 129, 0.16);
  color: #059669;
  font-weight: 800;
}
html.dark .nll-date-preset-btn.active {
  background: rgba(16, 185, 129, 0.24);
  color: #34d399;
}
.nll-date-preset-btn.span-2 {
  grid-column: span 2;
  background: var(--nll-adm-surface-2);
}
.nll-date-preset-btn.span-2.active {
  background: rgba(16, 185, 129, 0.16);
}
html.dark .nll-date-preset-btn.span-2.active {
  background: rgba(16, 185, 129, 0.24);
}

.nll-date-custom-sec {
  padding-top: 12px;
  border-top: 1px solid var(--nll-adm-border);
}
.nll-date-inputs-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: end;
}
.nll-date-inp-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nll-date-inp-col span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--nll-adm-text-sec);
}
.nll-date-input {
  width: 100%;
  padding: 6px 7px;
  border-radius: 8px;
  border: 1px solid var(--nll-adm-border);
  background: var(--nll-adm-surface-2);
  color: var(--nll-adm-text);
  font-size: 12px;
  font-family: inherit;
  outline: none;
}
.nll-date-input:focus {
  border-color: #10b981;
}
.nll-date-apply-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 11px;
}
.nll-date-apply-btn {
  cursor: pointer;
  padding: 6px 18px;
  border-radius: 9px;
  border: none;
  background: #0d9488;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  transition: all 0.16s ease;
}
.nll-date-apply-btn:hover {
  background: #0f766e;
  transform: translateY(-1px);
}
.nll-kpi-label { font-size: 12px; font-weight: 600; color: var(--nll-adm-text-sec); }
.nll-kpi-value { font-size: 24px; font-weight: 900; margin-top: 4px; font-variant-numeric: tabular-nums; color: var(--nll-adm-text); }
.nll-kpi-meta { font-size: 11.5px; color: var(--nll-adm-text-muted); margin-top: 3px; }

.nll-admin-card {
  background: var(--nll-adm-surface);
  border: 1px solid var(--nll-adm-border);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
  flex: 1;
}
.nll-admin-card .nll-panel-title { color: var(--nll-adm-text); }

.nll-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.nll-tab {
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--nll-adm-border);
  background: var(--nll-adm-surface);
  color: var(--nll-adm-text-sec);
  transition: all 0.18s;
}
.nll-tab.active {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  color: #ffffff;
  border-color: transparent;
}
.nll-table-wrap { overflow-x: auto; }
.nll-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nll-table th, .nll-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--nll-adm-border);
  text-align: left;
  vertical-align: middle;
}
.nll-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--nll-adm-text-sec);
  background: var(--nll-adm-surface-2);
  white-space: nowrap;
}
.nll-input, .nll-select {
  width: 100%;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid var(--nll-adm-border);
  background: var(--nll-adm-surface-2);
  color: var(--nll-adm-text);
  font-size: 13px;
  outline: none;
}
.nll-input:focus, .nll-select:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}
.nll-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 768px) { .nll-form-grid { grid-template-columns: 1fr; } }
.nll-field { display: flex; flex-direction: column; gap: 6px; }
.nll-field label { font-size: 13px; font-weight: 700; color: var(--nll-adm-text); }
.nll-field small { font-size: 11.5px; color: var(--nll-adm-text-muted); }

/* ================= 赛博黑金高对比度实色中奖结算弹窗 ================= */
.nll-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(5, 8, 18, 0.78);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.nll-modal-mask.open { display: flex; }

.nll-modal {
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  padding: 30px 28px;
  background: linear-gradient(160deg, #171d32 0%, #0d1120 100%) !important;
  color: var(--nll-modal-text) !important;
  border: 2px solid rgba(251, 191, 36, 0.72);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.75),
    0 0 40px rgba(245, 158, 11, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  text-align: center;
  animation: nllPopModal 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes nllPopModal {
  from { opacity: 0; transform: scale(0.90) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.nll-modal.wide-modal { max-width: 680px; }

.nll-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22), rgba(225, 29, 72, 0.22));
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fde047;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 12px;
}

.nll-modal-title {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff !important;
}

.nll-modal-amt {
  font-size: 50px;
  font-weight: 900;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 45%, #fb7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 8px 0;
  line-height: 1.1;
  filter: drop-shadow(0 4px 16px rgba(245, 158, 11, 0.35));
}

.nll-modal-desc {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--nll-modal-sec) !important;
  margin-bottom: 20px;
}

.nll-multi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
}
@media (max-width: 580px) {
  .nll-multi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.nll-multi-item {
  padding: 11px 8px;
  border-radius: 13px;
  background: var(--nll-modal-card-item);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.nll-multi-item.best-hit {
  border-color: rgba(251, 191, 36, 0.85);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.24), rgba(225, 29, 72, 0.16));
}

.nll-modal-close-btn {
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  transition: all 0.18s;
}
.nll-modal-close-btn:hover {
  border-color: #fb7185;
  color: #fda4af !important;
}

#nll-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9995;
}
