/**
 * 积分引导弹窗样式 - 天机量化系统 V9.0
 */

/* ═══════════════ 弹窗容器 ═══════════════ */
.pg-overlay {
  z-index: 10000 !important;
}

.pg-dialog {
  text-align: center;
  max-width: 380px;
  animation: pgSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pgSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════ 通用元素 ═══════════════ */
.pg-icon-row {
  margin-bottom: 8px;
}

.pg-big-icon {
  font-size: 36px;
  display: inline-block;
  animation: pgPulse 2s ease-in-out infinite;
}

@keyframes pgPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.pg-title {
  font-size: 18px;
  font-weight: 700;
  color: #F1F5F9;
  margin: 0 0 8px 0;
}

.pg-title-warn {
  color: #F59E0B;
}

.pg-title-vip {
  color: #EC4899;
  background: linear-gradient(135deg, #EC4899, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pg-desc {
  color: #94A3B8;
  font-size: 14px;
  margin: 8px 0;
  line-height: 1.6;
}

.pg-desc-sub {
  color: #64748B;
  font-size: 12px;
  margin: 4px 0;
}

.pg-cost-hint {
  color: #F59E0B;
  font-size: 13px;
  margin-top: 8px;
}

.pg-vip-hint {
  color: #EC4899;
  font-size: 13px;
  margin-top: 4px;
  font-weight: 600;
}

/* ═══════════════ 按钮 ═══════════════ */
.pg-btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.pg-btn-row-vert {
  flex-direction: column;
}

.pg-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.pg-btn:active {
  transform: scale(0.97);
}

.pg-btn-primary {
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
  flex: 1;
}

.pg-btn-primary:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.pg-btn-outline {
  background: transparent;
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
  flex: 0.6;
}

.pg-btn-gold {
  background: linear-gradient(135deg, #F59E0B, #DC2626);
  color: #fff;
  flex: 1;
  margin-top: 4px;
}

.pg-btn-gold:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.pg-btn-text {
  background: none;
  border: none;
  color: #64748B;
  font-size: 13px;
  cursor: pointer;
  margin-top: 12px;
  padding: 4px 12px;
}

/* ═══════════════ 未登录引导 ═══════════════ */
.pg-benefit-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
  text-align: left;
}

.pg-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: #CBD5E1;
}

.pg-bf-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* ═══════════════ 确认弹窗 ═══════════════ */
.pg-confirm-info {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  text-align: left;
}

.pg-ci-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
}

.pg-ci-label {
  color: #94A3B8;
}

.pg-ci-val {
  color: #F1F5F9;
  font-weight: 600;
}

.pg-ci-cost {
  color: #F59E0B;
}

.pg-ci-warn {
  color: #EF4444;
}

/* ═══════════════ 积分不足引导 ═══════════════ */
.pg-insuf-info {
  margin: 12px 0;
  font-size: 14px;
  color: #CBD5E1;
  line-height: 1.8;
}

.pg-earn-ways {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
  text-align: left;
}

.pg-earn-title {
  font-size: 12px;
  font-weight: 700;
  color: #10B981;
  margin-bottom: 8px;
}

.pg-earn-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pg-earn-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: #CBD5E1;
  cursor: pointer;
  transition: background 0.2s;
}

.pg-earn-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pg-earn-item.pg-earn-used {
  opacity: 0.5;
  cursor: default;
}

.pg-earn-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.pg-earn-pts {
  color: #10B981;
  font-weight: 700;
  font-size: 13px;
  margin-left: auto;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 6px;
}

.pg-earn-action {
  color: #60A5FA;
  font-size: 12px;
  margin-left: 4px;
}

.pg-earn-cap {
  font-size: 11px;
  color: #64748B;
  margin-top: 8px;
  text-align: center;
}

/* ═══════════════ VIP专属 ═══════════════ */
.pg-vip-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 12px 0;
}

.pg-vf-item {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ═══════════════ 分享弹窗 ═══════════════ */
.pg-share-tiers {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pg-share-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s;
}

.pg-share-tier:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.pg-st-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg-st-icon {
  font-size: 18px;
}

.pg-st-label {
  font-size: 13px;
  color: #CBD5E1;
}

.pg-st-pts {
  font-size: 16px;
  font-weight: 700;
  color: #10B981;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 8px;
}

.pg-share-preview {
  background: #0F172A;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0;
  text-align: left;
  max-height: 100px;
  overflow: hidden;
}

.pg-sp-title {
  font-size: 13px;
  font-weight: 700;
  color: #F1F5F9;
}

.pg-sp-text {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 4px;
  line-height: 1.5;
}

.pg-sp-url {
  font-size: 11px;
  color: #3B82F6;
  margin-top: 4px;
  word-break: break-all;
}

/* ═══════════════ Toast ═══════════════ */
.pg-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #1E293B;
  color: #F1F5F9;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 99999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.pg-toast.show {
  opacity: 1;
}
