* { box-sizing: border-box; }

body {
  font-family: Arial;
  background: #f2f2f2;
  margin: 0;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  margin: 10px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* PROGRESSO */
.progress-box {
  background: rgba(255, 255, 255, 0.7); /* 🔥 transparente */
  backdrop-filter: blur(10px); /* 🔥 efeito vidro */
  -webkit-backdrop-filter: blur(10px);

  padding: 15px;
  border-radius: 14px;
  margin: 15px 0;

  border: 1px solid rgba(255,255,255,0.4);

  /* 🔥 SOMBRA DE SOBREPOSIÇÃO */
  box-shadow: 
    0 10px 25px rgba(0,0,0,0.15),
    0 5px 10px rgba(0,0,0,0.08);

  position: relative;
  z-index: 2;

  transition: all 0.3s ease;
}

.progress-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.3),
    rgba(255,255,255,0)
  );

  pointer-events: none;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.progress-bar {
  background: #ddd;
  height: 10px;
  border-radius: 10px;
  margin: 10px 0;
}

.progress-bar div {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  position: relative;
  overflow: hidden;

  background: linear-gradient(90deg, #ff4da6, #6a5cff);
  transition: width 0.5s ease, background 0.5s ease;
}

/* 🔥 brilho andando */
.progress-bar div::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: brilho 2s infinite;
}

@keyframes brilho {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* FIXO */
.progress-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 420px;
  margin: auto;
  z-index: 999;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* OFERTAS */
.oferta {
  border: 1px solid #f8bbd0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}

.oferta.clicado {
  border: 2px solid #2ecc71;
  background: #eafaf1;
}

.check {
  position: absolute;
  right: 10px;
  top: 10px;
  color: #2ecc71;
  font-size: 18px;
  display: none;
}

.oferta.clicado .check {
  display: block;
}

.btn {
  margin-top: 10px;
  width: 100%;
  padding: 14px;
  border: none;
  color: white;
  border-radius: 8px;
  background: linear-gradient(to right, #ff4da6, #6a5cff);
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn.clicado {
  background: #2ecc71;
}

/* POPUP */
.popup-final {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  animation: aparecer 0.3s ease;
}

.popup-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #ff4da6, #6a5cff);
  color: white;
  font-size: 16px;
}

@keyframes aparecer {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes aparecer {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}