body { background: #030712; }
.grid-bg { display: none; }

#particles-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 100%;
  background: radial-gradient(ellipse at 25% 40%, rgba(124, 58, 237, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 70%, rgba(245, 158, 11, 0.06) 0%, transparent 45%);
  animation: auroraShift 12s ease-in-out infinite alternate;
}
.aurora::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse at 30% 60%, rgba(0, 180, 216, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 40%, rgba(167, 139, 250, 0.08) 0%, transparent 45%);
  animation: auroraShift 15s ease-in-out 3s infinite alternate-reverse;
}

@keyframes auroraShift {
  0% { transform: translateX(-3%) translateY(0); opacity: 0.7; }
  50% { transform: translateX(2%) translateY(-2%); opacity: 1; }
  100% { transform: translateX(3%) translateY(-1%); opacity: 0.9; }
}

.unlock-page {
  min-height: calc(100vh - 64px - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}
.unlock-container {
  width: 100%;
  max-width: 460px;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.unlock-header { text-align: center; margin-bottom: 28px; }
.unlock-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(167, 139, 250, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.2rem;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.12), 0 0 80px rgba(167, 139, 250, 0.06);
  animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.unlock-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f5f5f5, #a78bfa, #fbbf24, #f5f5f5);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 6s ease infinite;
}

@keyframes titleShimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.unlock-header p { color: var(--text-secondary); font-size: 0.92rem; }

.unlock-status {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.unlock-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.35);
  animation: statusPulse 1.8s ease-in-out infinite;
}
.unlock-status-online { color: var(--green); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.unlock-status-online .unlock-status-dot { background: var(--green); box-shadow: 0 0 14px rgba(52, 211, 153, 0.5); }
.unlock-status-degraded { color: var(--gold); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.unlock-status-degraded .unlock-status-dot { background: var(--gold); box-shadow: 0 0 14px rgba(251, 191, 36, 0.5); }
.unlock-status-offline { color: var(--red); border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }
.unlock-status-offline .unlock-status-dot { background: var(--red); box-shadow: 0 0 14px rgba(248, 113, 113, 0.5); }
.unlock-status-checking { color: var(--cyan); border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.08); }
.unlock-status-checking .unlock-status-dot { background: var(--cyan); box-shadow: 0 0 14px rgba(34, 211, 238, 0.5); }

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

.unlock-card-wrap {
  position: relative;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(167, 139, 250, 0.3), rgba(34, 211, 238, 0.3), rgba(251, 191, 36, 0.4));
  background-size: 300% 300%;
  animation: borderRotate 6s ease infinite;
}

@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.unlock-card {
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.unlock-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.015) 45%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.015) 55%, transparent 65%);
  animation: holoSheen 8s ease-in-out infinite;
}

@keyframes holoSheen {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

.code-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.code-input {
  width: 100%;
  background: rgba(6, 10, 19, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 16px;
  text-align: center;
  letter-spacing: 8px;
  outline: none;
  transition: all 0.3s;
  margin-bottom: 16px;
}
.code-input:focus { border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1), 0 0 30px rgba(251, 191, 36, 0.06); }
.code-input::placeholder { letter-spacing: 4px; font-size: 0.9rem; opacity: 0.4; }
.code-input.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12); }
.code-input.success { border-color: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12); }

.unlock-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #d97706, #a855f7);
  background-size: 200% auto;
  box-shadow: 3px 3px 0 rgba(217, 119, 6, 0.4), 0 0 24px rgba(251, 191, 36, 0.15);
  transition: all 0.3s;
  animation: btnShift 4s ease infinite;
}

@keyframes btnShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.unlock-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 4px 5px 0 rgba(217, 119, 6, 0.4), 0 0 40px rgba(251, 191, 36, 0.25); }
.unlock-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.unlock-msg {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  display: none;
}
.unlock-msg.visible { display: block; animation: msgFade 0.35s ease; }
.unlock-msg.success { background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.2); color: var(--success); }
.unlock-msg.error { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.2); color: var(--danger); }

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

.unlocked-state { text-align: center; padding: 44px 32px; position: relative; z-index: 1; }
.unlocked-check {
  width: 72px;
  height: 72px;
  background: rgba(52, 211, 153, 0.08);
  border: 2px solid rgba(52, 211, 153, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.12);
  animation: checkPulse 3s ease-in-out infinite;
}

@keyframes checkPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(52, 211, 153, 0.12); }
  50% { box-shadow: 0 0 50px rgba(52, 211, 153, 0.2); }
}

.no-code-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.04); text-align: center; }
.unlocked-title { font-size: 1.15rem; font-weight: 700; color: var(--success); margin-bottom: 8px; }
.unlocked-copy { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 20px; }
.unlocked-actions { justify-content: center; }
.unlock-footnote { margin-top: 20px; font-size: 0.7rem; color: rgba(255, 255, 255, 0.15); text-align: center; }
.no-code-section p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; }

.pro-preview {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 40px auto;
  padding: 0 24px;
}
.pro-preview-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-secondary);
}
.pro-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.pro-preview-item {
  padding: 18px;
  background: rgba(14, 20, 40, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.1);
  border-radius: 12px;
}
.pro-preview-icon { font-size: 1.3rem; margin-bottom: 8px; }
.pro-preview-item-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
.pro-preview-copy { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.unlock-status-meta { margin-top: 8px; font-size: 0.72rem; color: var(--text-muted); }

@media (max-width: 500px) {
  .unlock-card { padding: 28px 20px; }
  .code-input { font-size: 1.1rem; letter-spacing: 5px; }
}
