@keyframes circularGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes spinHalo {
  to {
    transform: rotate(360deg);
  }
}
@keyframes smoothAppear {
  0% {
    opacity: 0;
    top: 20px;
  }
  100% {
    opacity: 1;
    top: 0;
  }
}
@keyframes successPop {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  40% {
    transform: scale(1.12);
    filter: brightness(1.3);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 15px rgb(255 255 255 / 0.15),
      0 0 30px rgb(255 255 255 / 0.05);
  }
  50% {
    box-shadow: 0 0 25px rgb(255 255 255 / 0.25),
      0 0 50px rgb(255 255 255 / 0.1);
  }
  100% {
    box-shadow: 0 0 15px rgb(255 255 255 / 0.15),
      0 0 30px rgb(255 255 255 / 0.05);
  }
}
@keyframes glowPulseGreen {
  0% {
    box-shadow: 0 0 15px rgb(0 255 0 / 0.3), 0 0 30px rgb(0 255 0 / 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgb(0 255 0 / 0.6), 0 0 60px rgb(0 255 0 / 0.2);
  }
  100% {
    box-shadow: 0 0 15px rgb(0 255 0 / 0.3), 0 0 30px rgb(0 255 0 / 0.1);
  }
}
@keyframes glowPulseRed {
  0% {
    box-shadow: 0 0 15px rgb(255 0 0 / 0.3), 0 0 30px rgb(255 0 0 / 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgb(255 0 0 / 0.6), 0 0 60px rgb(255 0 0 / 0.2);
  }
  100% {
    box-shadow: 0 0 15px rgb(255 0 0 / 0.3), 0 0 30px rgb(255 0 0 / 0.1);
  }
}
@keyframes glowPulseGold {
  0% {
    box-shadow: 0 0 15px rgb(255 215 0 / 0.3), 0 0 30px rgb(255 215 0 / 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgb(255 215 0 / 0.6), 0 0 60px rgb(255 215 0 / 0.2);
  }
  100% {
    box-shadow: 0 0 15px rgb(255 215 0 / 0.3), 0 0 30px rgb(255 215 0 / 0.1);
  }
}
.step-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}
.step-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.step-modal-container {
  background-color: rgb(15 15 15 / 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  padding: 20px 35px 30px 35px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.7);
  transform: scale(0.95);
  transition: transform 0.3s ease-in-out;
  position: relative;
  color: #fff;
  font-family: "Poppins", sans-serif;
}
.step-modal-overlay.active .step-modal-container {
  transform: scale(1);
}
.modal-header,
.modal-divider,
.modal-content-wrapper,
.close-modal-main-btn {
  position: relative;
  z-index: 2;
}
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  border-radius: 20px;
}
.close-modal-main-btn {
  position: absolute;
  top: -45px;
  right: -40px;
  background: none;
  border: none;
  font-size: 35px;
  color: #fff0;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.5s ease, color 0.3s ease, text-shadow 0.3s ease;
  animation: pausedRotate 6s ease-in-out infinite, colorSwap 3s linear infinite,
    constantGlow 2s ease-in-out infinite;
}
.close-modal-main-btn:hover {
  animation: none;
  transform: rotate(0deg) scale(1.1);
  color: #f44;
  text-shadow: 0 0 10px rgb(255 68 68 / 0.8), 0 0 20px rgb(255 68 68 / 0.6);
}
.close-modal-main-btn:active {
  transform: scale(0.95);
  color: #f77;
}
@media (max-width: 768px) {
  .close-modal-main-btn {
    top: 10px;
    right: 15px;
    font-size: 28px;
  }
}
@keyframes pausedRotate {
  0% {
    transform: rotate(0deg);
    color: #fff;
  }
  25% {
    transform: rotate(360deg);
    color: #f44;
  }
  50% {
    transform: rotate(360deg);
    color: #f44;
  }
  75% {
    transform: rotate(0deg);
    color: #fff;
  }
  100% {
    transform: rotate(0deg);
    color: #fff;
  }
}
@keyframes colorSwap {
  0% {
    color: #fff;
  }
  50% {
    color: #f44;
  }
  100% {
    color: #fff;
  }
}
@keyframes constantGlow {
  0% {
    text-shadow: 0 0 10px rgb(255 255 255 / 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgb(255 255 255 / 0.9);
  }
  100% {
    text-shadow: 0 0 10px rgb(255 255 255 / 0.5);
  }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 5px;
}
.step-indicator {
  display: flex;
  align-items: center;
  flex-grow: 1;
  position: relative;
}
.step-indicator:last-child {
  flex-grow: 0;
}
.step-bubble {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #222;
  color: #555;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  font-size: 18px;
  border: 2px solid #444;
  transition: all 0.4s;
}
.step-indicator.locked .step-bubble {
  border-color: #444;
  color: #555;
}
.step-indicator.current .step-bubble {
  background-color: gold;
  border-color: gold;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgb(255 215 0 / 0.5);
}
.step-indicator.completed .step-bubble {
  background-color: lime;
  border-color: lime;
  color: #000;
  box-shadow: 0 0 15px rgb(0 255 0 / 0.6);
}
.step-line {
  flex-grow: 1;
  height: 4px;
  background-color: #333;
  margin: 0 5px;
  border-radius: 2px;
  transition: background-color 0.4s ease;
}
.step-indicator.current .step-line {
  background-color: gold;
}
.step-indicator.completed .step-line {
  background-color: lime;
}
.modal-divider {
  border: 0;
  height: 1px;
  background-image: linear-gradient(
    to right,
    #fff0,
    rgb(255 255 255 / 0.2),
    #fff0
  );
  margin: 5px 0 15px 0;
}
.modal-content-wrapper {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.modal-step {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 0;
}
.modal-step.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 100;
}
.step-title {
  font-size: 1.2em;
  font-weight: 700;
  margin: 0 0 15px 0;
  text-align: center;
  color: #fff;
}
.fixed-media-wrapper {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 15px auto;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.5);
  border: 1px solid rgb(255 255 255 / 0.05);
}
.fixed-media-wrapper img,
.fixed-media-wrapper #youtube-player,
.fixed-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.step1-progress-bar-container {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 20px;
}
.prog-segment {
  flex: 1;
  height: 6px;
  background-color: #333;
  border-radius: 3px;
  transition: background-color 0.3s;
}
.prog-segment.active {
  background-color: gold;
  box-shadow: 0 0 8px gold;
}
.prog-segment.completed {
  background-color: lime;
  box-shadow: 0 0 8px lime;
}
.prog-segment.active.red-active {
  background-color: red;
  box-shadow: 0 0 8px red;
}
.action-buttons-inline {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.action-btn {
  flex: 1;
  height: 45px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  font-size: 1.1em;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: color 0.4s ease, border-color 0.4s ease,
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease;
  animation: smoothAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.action-btn::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  filter: blur(10px);
  opacity: 0.6;
  animation: spinHalo 3s linear infinite;
  transition: opacity 0.5s ease, background 0.5s ease;
}
.action-btn.active-seq {
  background: radial-gradient(circle at center, #ff0000, #cc0000, #990000);
  background-size: 200% 200%;
  animation: smoothAppear 0.6s forwards, glowPulseRed 2s infinite;
}
.action-btn.active-seq::before {
  background: conic-gradient(
    from 0deg,
    #fff0,
    rgb(255 0 0 / 0.8),
    #fff0 30%,
    #fff0 70%,
    rgb(255 0 0 / 0.8),
    #fff0
  );
}
.action-btn.locked-seq {
  background: radial-gradient(circle at center, #333, #222, #111);
  color: #777;
  cursor: not-allowed !important;
  border: 1px solid rgb(255 255 255 / 0.05);
}
.action-btn.locked-seq::before {
  background: conic-gradient(from 0deg, #fff0, rgb(100 100 100 / 0.3), #fff0);
  opacity: 0.3;
}
.action-btn.pending-seq {
  background: radial-gradient(circle at center, #ffd700, #daa520);
  color: #000;
  cursor: not-allowed !important;
  animation: glowPulseGold 2s infinite;
}
.action-btn.pending-seq::before {
  background: conic-gradient(from 0deg, #fff0, rgb(255 215 0 / 0.8), #fff0);
}
.action-btn.completed-seq {
  background: radial-gradient(circle at center, #00ff00, #00cc00);
  color: #000;
  cursor: default !important;
  pointer-events: none !important;
  opacity: 1;
  animation: glowPulseGreen 3s infinite;
}
.action-btn.completed-seq::before {
  background: conic-gradient(from 0deg, #fff0, rgb(0 255 0 / 0.8), #fff0);
}
#step1-advance-container {
  text-align: center;
  width: 100%;
  margin-top: 25px;
  display: block;
}
.large-advance-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  width: 100%;
  max-width: 300px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  color: inherit;
}
.advance-style-btn {
  position: relative;
  isolation: isolate;
  gap: 10px;
  background: radial-gradient(circle at center, #1c1c1c, #0f0f0f, #0a0a0a);
  background-size: 300% 300%;
  animation: circularGradient 6s ease-in-out infinite,
    glowPulse 4s ease-in-out infinite, smoothAppear 0.8s forwards;
  color: #fff;
  font-family: "Poppins";
  font-size: 20px;
  font-weight: 700;
  padding: 12px 28px;
  height: 50px;
  border-radius: 50px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.advance-style-btn:hover {
  transform: scale(1.02);
}
.advance-style-btn::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    #fff0,
    rgb(255 255 255 / 0.45),
    #fff0 30%,
    #fff0 70%,
    rgb(255 255 255 / 0.45),
    #fff0
  );
  filter: blur(18px);
  opacity: 0.45;
  animation: spinHalo 8s linear infinite;
}
.advance-arrow {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-width: 1.5;
  margin-left: 8px;
  transition: transform 0.3s ease;
}
.advance-style-btn:hover .advance-arrow {
  transform: translateX(3px);
}
.step2-controls-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  width: 100%;
}
.large-progress-btn {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 60px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.5);
  cursor: not-allowed;
  display: block;
}
.progress-fill-btn {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 0 25px rgb(255 255 255 / 0.8);
  z-index: 1;
  transition: width 0.1s linear;
}
.btn-center-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  mix-blend-mode: difference;
}
.btn-center-content span {
  font-size: 1.1em;
  font-weight: 800;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
}
.btn-center-content i {
  font-size: 1.1em;
  color: #ffffff !important;
}
.timer-side-external {
  font-family: "Poppins", sans-serif;
  width: 80px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-size: 1.2em;
  font-weight: 700;
  color: rgb(255 255 255 / 0.6);
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.9);
  text-align: center;
  white-space: nowrap;
}
.ad-badge-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgb(0 0 0 / 0.8);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  pointer-events: none;
  border: 1px solid rgb(255 255 255 / 0.1);
}
.ad-progress-container {
  width: 100%;
  max-width: 400px;
  height: 6px;
  background-color: #222;
  border-radius: 3px;
  margin: 23px auto 0 auto;
  overflow: visible;
}
.ad-progress-bar {
  height: 100%;
  width: 0%;
  background-color: gold;
  box-shadow: 0 0 10px #ffd700, 0 0 20px rgb(255 215 0 / 0.5);
  border-radius: 3px;
  transition: width 1s linear;
}
#step3-action-area {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 0;
  padding-top: 15px;
  box-sizing: border-box;
  min-height: 80px;
}
#step3-action-area .large-advance-btn {
  flex: 0 1 240px;
  width: 100%;
  max-width: 240px;
  margin: 0;
  font-size: 19px;
  padding: 0 15px;
}
@media (max-width: 550px) {
  #step3-action-area {
    flex-direction: column;
    gap: 15px;
  }
  #step3-action-area .large-advance-btn {
    max-width: 100%;
  }
}
.green-success-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  height: 50px;
  background: radial-gradient(circle at center, #00ff00, #00cc00, #006600);
  background-size: 300% 300%;
  color: #000;
  font-family: "Poppins", sans-serif;
  font-size: 1.2em;
  font-weight: 800;
  text-decoration: none;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: circularGradient 4s ease-in-out infinite,
    smoothAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    glowPulseGreen 3s infinite;
  border: none;
  cursor: pointer;
  margin: 0 auto;
  box-shadow: inset 0 0 10px rgb(255 255 255 / 0.4);
}
.green-success-btn::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    #fff0,
    rgb(255 255 255 / 0.8),
    #fff0 30%,
    #fff0 70%,
    rgb(255 255 255 / 0.8),
    #fff0
  );
  filter: blur(12px);
  opacity: 0.7;
  animation: spinHalo 4s linear infinite;
}
.green-success-btn:hover .advance-arrow {
  transform: translateX(3px);
}
.download-spacer {
  height: 5px;
}
.large-download-btn {
  width: 100%;
  max-width: 350px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  color: #000;
  font-family: "Poppins", sans-serif;
  font-size: 1.4em;
  font-weight: 800;
  background: radial-gradient(circle at center, #00ff00, #00cc00, #006600);
  background-size: 300% 300%;
  border: none;
  border-radius: 50px;
  box-shadow: inset 0 0 10px rgb(255 255 255 / 0.4);
  cursor: pointer;
  position: relative;
  z-index: 9999;
  overflow: hidden;
  isolation: isolate;
  animation: circularGradient 4s ease-in-out infinite,
    glowPulseGreen 3s infinite;
}
.large-download-btn::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    #fff0,
    rgb(255 255 255 / 0.8),
    #fff0 30%,
    #fff0 70%,
    rgb(255 255 255 / 0.8),
    #fff0
  );
  filter: blur(12px);
  opacity: 0.7;
  animation: spinHalo 4s linear infinite;
}
.ad-timer-text {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgb(0 0 0 / 0.8);
  padding: 5px 10px;
  border-radius: 4px;
}
.small-icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgb(30 30 30 / 0.8);
  border: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15),
    0 5px 15px rgb(0 0 0 / 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateZ(0) perspective(1px);
  -webkit-font-smoothing: subpixel-antialiased;
  backface-visibility: hidden;
  will-change: transform, box-shadow;
}
.small-icon-btn i {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateZ(0);
}
.small-icon-btn:hover {
  transform: scale(1.12) translateZ(0);
  background: #fff;
  color: #000;
  box-shadow: inset 0 0 0 1px #fff, 0 8px 30px rgb(255 255 255 / 0.4);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s ease-out, color 0.3s ease-out, box-shadow 0.3s ease-out;
}
.small-icon-btn:hover i {
  transform: scale(1.05) translateZ(0);
}
#step3-action-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
  margin-top: 0;
}
#step3-action-area .green-success-btn {
  margin: 0 !important;
  flex-grow: 0 !important;
}
