#sakura-new-user-offer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.72), rgba(17, 24, 39, 0.62)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 36px);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
}

#sakura-new-user-offer-overlay[hidden] {
  display: none !important;
}

.sakura-new-user-offer-card {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.96) 42%, rgba(49, 46, 129, 0.92) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 44px rgba(250, 204, 21, 0.24);
  color: #f8fafc;
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  animation: sakura-new-user-offer-glow 2.9s ease-in-out infinite;
}

.sakura-new-user-offer-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(from 120deg, transparent 0 18%, rgba(34, 211, 238, 0.5) 28%, rgba(250, 204, 21, 0.64) 39%, transparent 52% 100%);
  opacity: 0.58;
  filter: blur(18px);
  animation: sakura-new-user-offer-ring 4.2s linear infinite;
}

.sakura-new-user-offer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0%, transparent 32%, rgba(255, 255, 255, 0.2) 44%, transparent 58%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%);
  background-size: 230% 100%, 100% 100%;
  mix-blend-mode: screen;
  animation: sakura-new-user-offer-scan 3.2s linear infinite;
}

.sakura-new-user-offer-body {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.sakura-new-user-offer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.sakura-new-user-offer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border: 1px solid rgba(250, 204, 21, 0.86);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.98), rgba(245, 158, 11, 0.94));
  color: #3d1200;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow:
    0 10px 24px rgba(245, 158, 11, 0.24),
    0 0 22px rgba(250, 204, 21, 0.28);
  animation: sakura-new-user-offer-badge 1.9s ease-in-out infinite;
}

.sakura-new-user-offer-title {
  max-width: 430px;
  margin: 18px 0 10px;
  color: #fff7ed;
  font-size: 42px;
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: 0;
  text-shadow:
    0 3px 18px rgba(0, 0, 0, 0.48),
    0 0 22px rgba(250, 204, 21, 0.18);
}

.sakura-new-user-offer-copy {
  max-width: 420px;
  margin: 0;
  color: #dbeafe;
  font-size: 15px;
}

.sakura-new-user-offer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.sakura-new-user-offer-stat {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.56);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.sakura-new-user-offer-label {
  display: block;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}

.sakura-new-user-offer-value {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;
}

.sakura-new-user-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sakura-new-user-offer-primary,
.sakura-new-user-offer-secondary {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
}

.sakura-new-user-offer-primary {
  border: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 48%, #ec4899 100%);
  color: #fff;
  box-shadow:
    0 16px 34px rgba(239, 68, 68, 0.34),
    0 0 26px rgba(236, 72, 153, 0.18);
  animation: sakura-new-user-offer-button 2.1s ease-in-out infinite;
}

.sakura-new-user-offer-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.62);
  color: #e2e8f0;
}

.sakura-new-user-plan-card {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  border-color: rgba(250, 204, 21, 0.74) !important;
  background-color: #020617 !important;
  background-image:
    radial-gradient(circle at 10% 8%, rgba(34, 211, 238, 0.45), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(236, 72, 153, 0.42), transparent 30%),
    radial-gradient(circle at 50% 96%, rgba(250, 204, 21, 0.34), transparent 36%),
    linear-gradient(135deg, #020617 0%, #111827 44%, #312e81 100%) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  box-shadow:
    0 22px 52px rgba(2, 6, 23, 0.3),
    0 0 0 1px rgba(250, 204, 21, 0.34),
    0 0 36px rgba(250, 204, 21, 0.2) !important;
  animation: sakura-new-user-plan-glow 2.6s ease-in-out infinite !important;
}

.sakura-new-user-plan-card::before {
  content: '新用户专享';
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 3px 10px;
  border: 1px solid rgba(250, 204, 21, 0.86);
  border-radius: 999px;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%);
  color: #3d1200;
  font-size: 12px;
  font-weight: 850;
  line-height: 18px;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.26);
  animation: sakura-new-user-badge-flash 1.8s ease-in-out infinite;
}

.sakura-new-user-plan-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 10%, rgba(255, 255, 255, 0.18) 24%, transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
  background-size: 220% 100%, 100% 100%;
  animation: sakura-new-user-plan-shine 2.8s linear infinite;
}

.sakura-new-user-plan-card > .semi-card-body {
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
}

.sakura-new-user-plan-card .semi-typography,
.sakura-new-user-plan-card .semi-typography *,
.sakura-new-user-plan-card .text-gray-500,
.sakura-new-user-plan-card .text-gray-400,
.sakura-new-user-plan-card span,
.sakura-new-user-plan-card div {
  color: #f8fafc !important;
}

.sakura-new-user-plan-card .text-purple-600 {
  color: #ffe38a !important;
  text-shadow: 0 2px 12px rgba(250, 204, 21, 0.24);
}

.sakura-new-user-plan-card .semi-divider {
  border-color: rgba(250, 204, 21, 0.35) !important;
}

.sakura-new-user-plan-card button.semi-button:not([disabled]):not(.semi-button-disabled) {
  border-color: transparent !important;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 48%, #ec4899 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.32) !important;
  animation: sakura-new-user-button-glow 1.9s ease-in-out infinite !important;
}

.sakura-new-user-plan-card button.semi-button:not([disabled]):not(.semi-button-disabled) * {
  color: #ffffff !important;
}

.sakura-new-user-plan-pulse {
  animation: sakura-new-user-pulse 1.4s ease-in-out 0s 3;
}

@keyframes sakura-new-user-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.015);
  }
}

@keyframes sakura-new-user-plan-glow {
  0%,
  100% {
    box-shadow:
      0 22px 52px rgba(2, 6, 23, 0.3),
      0 0 0 1px rgba(250, 204, 21, 0.34),
      0 0 30px rgba(250, 204, 21, 0.22) !important;
  }
  50% {
    box-shadow:
      0 26px 58px rgba(2, 6, 23, 0.34),
      0 0 0 1px rgba(250, 204, 21, 0.64),
      0 0 54px rgba(250, 204, 21, 0.44),
      0 0 76px rgba(34, 211, 238, 0.16) !important;
  }
}

@keyframes sakura-new-user-plan-shine {
  0% {
    background-position: 180% 0, center;
    opacity: 0.6;
  }
  50% {
    opacity: 0.95;
  }
  100% {
    background-position: -80% 0, center;
    opacity: 0.6;
  }
}

@keyframes sakura-new-user-badge-flash {
  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.26);
  }
  50% {
    filter: brightness(1.18);
    box-shadow:
      0 8px 22px rgba(245, 158, 11, 0.42),
      0 0 22px rgba(250, 204, 21, 0.38);
  }
}

@keyframes sakura-new-user-button-glow {
  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 16px 34px rgba(239, 68, 68, 0.32) !important;
  }
  50% {
    filter: brightness(1.1);
    box-shadow:
      0 18px 38px rgba(239, 68, 68, 0.44),
      0 0 26px rgba(236, 72, 153, 0.28) !important;
  }
}

@keyframes sakura-new-user-offer-glow {
  0%,
  100% {
    transform: translateY(0);
    border-color: rgba(250, 204, 21, 0.5);
    box-shadow:
      0 28px 80px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset,
      0 0 38px rgba(250, 204, 21, 0.22),
      0 0 62px rgba(34, 211, 238, 0.1);
  }
  50% {
    transform: translateY(-2px);
    border-color: rgba(250, 204, 21, 0.88);
    box-shadow:
      0 34px 92px rgba(0, 0, 0, 0.52),
      0 0 0 1px rgba(255, 255, 255, 0.16) inset,
      0 0 58px rgba(250, 204, 21, 0.44),
      0 0 92px rgba(34, 211, 238, 0.22);
  }
}

@keyframes sakura-new-user-offer-ring {
  0% {
    transform: rotate(0deg) scale(1.12);
    opacity: 0.46;
  }
  50% {
    opacity: 0.78;
  }
  100% {
    transform: rotate(360deg) scale(1.12);
    opacity: 0.46;
  }
}

@keyframes sakura-new-user-offer-scan {
  0% {
    background-position: 190% 0, center;
    opacity: 0.62;
  }
  45% {
    opacity: 0.96;
  }
  100% {
    background-position: -120% 0, center;
    opacity: 0.62;
  }
}

@keyframes sakura-new-user-offer-badge {
  0%,
  100% {
    filter: brightness(1);
    transform: translateY(0);
    box-shadow:
      0 10px 24px rgba(245, 158, 11, 0.24),
      0 0 22px rgba(250, 204, 21, 0.28);
  }
  50% {
    filter: brightness(1.2);
    transform: translateY(-1px);
    box-shadow:
      0 12px 28px rgba(245, 158, 11, 0.42),
      0 0 34px rgba(250, 204, 21, 0.46);
  }
}

@keyframes sakura-new-user-offer-button {
  0%,
  100% {
    filter: brightness(1);
    box-shadow:
      0 16px 34px rgba(239, 68, 68, 0.34),
      0 0 26px rgba(236, 72, 153, 0.18);
  }
  50% {
    filter: brightness(1.12);
    box-shadow:
      0 18px 40px rgba(239, 68, 68, 0.5),
      0 0 42px rgba(236, 72, 153, 0.34),
      0 0 22px rgba(250, 204, 21, 0.22);
  }
}

@media (max-width: 640px) {
  .sakura-new-user-offer-body {
    padding: 24px 18px 20px;
  }

  .sakura-new-user-offer-title {
    max-width: 310px;
    font-size: 34px;
  }

  .sakura-new-user-offer-stats {
    grid-template-columns: 1fr;
  }

  .sakura-new-user-offer-primary,
  .sakura-new-user-offer-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sakura-new-user-offer-card,
  .sakura-new-user-offer-card::before,
  .sakura-new-user-offer-card::after,
  .sakura-new-user-offer-eyebrow,
  .sakura-new-user-offer-primary,
  .sakura-new-user-plan-card,
  .sakura-new-user-plan-card::before,
  .sakura-new-user-plan-card::after,
  .sakura-new-user-plan-card button.semi-button,
  .sakura-new-user-plan-pulse {
    animation: none !important;
  }
}
