/* ── style.css ── */

:root {
  --bg-primary: #07070a;
  --bg-card: rgba(15, 14, 23, 0.45);
  --border-card: rgba(255, 255, 255, 0.08);
  --accent-color: #7928ca;
  --accent-glow: #ff007f;
  --text-main: #ffffff;
  --text-sub: #b3b3cc;
  --success-color: #00f2fe;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* ── Glowing Background ── */
.glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.3) 0%, rgba(255, 0, 127, 0.15) 50%, rgba(0, 0, 0, 0) 100%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
  animation: bg-pulse 10s ease-in-out infinite alternate;
}

@keyframes bg-pulse {
  0% {
    width: 280px;
    height: 280px;
    opacity: 0.8;
  }
  100% {
    width: 380px;
    height: 380px;
    opacity: 1.2;
  }
}

/* ── Container ── */
.app-container {
  width: 90%;
  max-width: 380px;
  z-index: 2;
  padding: 20px 0;
}

/* ── Glassmorphic Step Card ── */
.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-card);
  border-radius: 28px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: card-appear 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes card-appear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.9);
}

/* ── Orb Animation ── */
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.logo-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-glow) 100%);
  position: relative;
  box-shadow: 0 0 35px rgba(255, 0, 127, 0.4);
}

.orb-pulse {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 127, 0.3);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* ── Typography ── */
.title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: linear-gradient(to right, #ffffff, #e1e1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-title {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 30px;
  font-weight: 400;
}

/* ── Progress Loader ── */
.loader-container {
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, var(--accent-color), var(--accent-glow));
  border-radius: 10px;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.1s linear;
}

.status-text {
  font-size: 12px;
  color: #7d7d9c;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ── Success badge ── */
.success-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.badge-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  border: 2px solid var(--success-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--success-color);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.25);
  animation: success-bounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes success-bounce {
  0% {
    transform: scale(0.3);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* ── Timer Box ── */
.timer-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 30px;
}

.timer-label {
  font-size: 11px;
  color: #7d7d9c;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.timer-countdown {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--success-color);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* ── Glowing Button ── */
.cta-wrapper {
  margin-bottom: 25px;
}

.btn-glowing {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 60px;
  border-radius: 20px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #000;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
  transition: all 0.3s ease;
  animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
  0% {
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
  }
  50% {
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.7);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
  }
}

.btn-glowing:active {
  transform: scale(0.97);
  box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.btn-text {
  z-index: 2;
  position: relative;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
  z-index: 1;
  animation: glare 2.5s infinite;
}

@keyframes glare {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ── Security Badge ── */
.security-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #555577;
  font-size: 11px;
  font-weight: 500;
}

.security-badge svg {
  flex-shrink: 0;
}
