:root {
  --primary-gradient: linear-gradient(45deg, #ff00ff, #ff6b6b);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  margin-top: -2rem;
  flex-grow: 1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 29px;
  border-bottom: 1px solid #ccc;
  box-shadow: 0px 7px 22px -5px rgba(0, 0, 0, 0.271);
  margin-bottom: 2.3rem;

}

.logo {
  font-size: 1.7rem;
  font-weight: bold;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

.reward {
  background: var(--primary-gradient);
  color: white;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 18px;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.photo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.story-container {
  width: 100%;
  margin-bottom: -10px;
}

.story-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-photo {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  padding: 3px;
  background-clip: padding-box;
  border: solid 2px #fff;
  position: relative;
}

.story-photo::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: #f09433;
  background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f09433', endColorstr='#bc1888', GradientType=1);
  border-radius: 50%;
  z-index: -1;
}

.influencer-name {
  font-size: 17px;
  font-weight: 600;
  color: #262626;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.photo {
  width: 100%;
  height: 300px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}

.question {
  text-align: center;
  margin: 20px 0;
  margin-top: -0.3rem;
}

.question h2 {
  font-size: 1.3rem;
  color: #333;
}

.buttons {
  display: flex;
  gap: 20px;
  width: 90%;
  margin-top: -0.9rem;
}

.buttons button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-like,
.btn-dislike {
  background-color: #a1a1a1;
}

.btn-like.selected,
.btn-dislike.selected {
  background: var(--primary-gradient);
  transform: scale(0.95);
}

.btn-submit {
  width: 90%;
  padding: 15px;
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--primary-gradient);
  opacity: 0.5;
  pointer-events: none;
}

.btn-submit.active {
  opacity: 1;
  pointer-events: auto;
}

.btn-submit.active:hover {
  transform: scale(1.0);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  background: white;
  border-radius: 30px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: var(--primary-gradient);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.success-icon {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.2);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: iconPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes iconPop {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.modal-body {
  padding: 30px;
}

.modal-content h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 2.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal-content p {
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.modal-reward {
  font-size: 3.5rem;
  font-weight: bold;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin: 20px 0;
  animation: rewardPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

@keyframes rewardPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 15px 50px;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Confetti Animation */
.confetti-container {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  opacity: 0.6;
  animation: confetti 3s ease-in-out infinite;
}

.confetti:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.confetti:nth-child(2) {
  left: 30%;
  animation-delay: 0.2s;
}

.confetti:nth-child(3) {
  left: 50%;
  animation-delay: 0.4s;
}

.confetti:nth-child(4) {
  left: 70%;
  animation-delay: 0.6s;
}

.confetti:nth-child(5) {
  left: 90%;
  animation-delay: 0.8s;
}

.confetti:nth-child(6) {
  left: 20%;
  animation-delay: 1s;
}

.confetti:nth-child(7) {
  left: 40%;
  animation-delay: 1.2s;
}

.confetti:nth-child(8) {
  left: 60%;
  animation-delay: 1.4s;
}

.final-message {
  padding: 1rem;
  margin: 2rem auto;
  margin-top: -0.6rem;
  max-width: 600px;
  text-align: left;
}

.final-message h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 1rem;
  text-align: center;
}

.final-message h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.final-message p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #636e72;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.final-message-saldo {
  font-weight: 400;
  text-align: center;
  font-size: 1.3rem;
  color: #2d3436;
  position: relative;
}

.final-message-saldo .valor-total {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  transition: all 0.3s ease;
}

.btn-pix {
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(255, 0, 153, 0.15);
  display: block;
  width: 90%;
  margin: 2rem auto 0;
  margin-top: -0.6em;
  position: relative;
  overflow: hidden;
}

.btn-pix:hover {
  box-shadow: 0 6px 20px rgba(255, 0, 153, 0.25);
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 11px;
}

.btn-pix.processing {
  background: #b0b0b0;
  color: #fff;
  pointer-events: none;
  box-shadow: none;
}


.pix-screen {
  margin: 0 auto;
  text-align: center;
}

.pix-screen h2 {
  font-size: 1.8rem;
  color: #2d3436;
  margin-bottom: 1.5rem;
}

.pix-info {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
  border-right: 3px solid #dadadb;
}

.pix-info p {
  font-size: 0.95rem;
  color: #636e72;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.pix-screen h1 {
  font-size: 1.3rem;
  color: #2d3436;
  margin-bottom: 2rem;
  text-align: center;
}

.pix-form {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pix-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.pix-type {
  padding: 0.8rem 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #000000;
  font-size: 0.9rem;
}

.pix-type.active {
  border-color: #ff6bdc;
  background: rgba(255, 107, 243, 0.1);
  color: #ff6bdf;
}

.pix-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 1rem;
}

.btn-validar {
  background: var(--primary-gradient);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.btn-validar:disabled {
  background: #a5a5a5;
  color: #ffffff;
  cursor: not-allowed;
}

.modal-pix-validation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.modal-pix-validation.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.validation-content {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 420px;
  width: 90%;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-pix-validation.active .validation-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.validation-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}

.checkmark {
  width: 100%;
  height: 100%;
  stroke: #ff0b7d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck 0.8s ease forwards 0.3s;
}

.success-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #ff0b7d;
  opacity: 0;
  transform: scale(1.4);
  animation: ringPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.liberando-acesso {
  color: #4b5563;
  font-size: 1.1rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.text-animated {
  opacity: 0.9;
  animation: pulse 2s infinite;
}

.spinner-validation {
  border: 2.5px solid rgba(244, 63, 94, 0.2);
  border-top: 2.5px solid #f43f5e;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.spinner-validation.small {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

footer {
  text-align: center;
  padding: 25px 20px;
  background-color: #f9f9f9;
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
  color: #555;
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer p {
  margin: 0;
}

footer a {
  color: #ff6b6b;
  text-decoration: none;
  margin: 0 10px;
  padding: -13px 0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

footer a:hover {
  text-decoration: underline;
}

@keyframes confetti {
  0% {
    transform: translateY(-100%) rotate(0deg);
  }

  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 468px) {
  header {
    margin-bottom: 3.8rem;
  }

  .photo {
    height: 400px;
  }

  .buttons {
    width: 60%;
  }

  .btn-submit {
    width: 60%;
  }

}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.attention-screen {
  margin: 2rem auto;
  text-align: center;
}

.attention-title {
  font-size: 2rem;
  color: #f43f5e;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.attention-subtitle {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 2rem;
  font-weight: 600;
}

.attention-content {
  text-align: left;
  color: #4b5563;
  line-height: 1.6;
}

.attention-content p {
  margin-bottom: 1.5rem;
}

.btn-proceed {
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: var(--primary-gradient);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .validation-content {
    padding: 2rem;
  }

  .liberando-acesso {
    font-size: 1rem;
  }

}
@keyframes pulse {

  0%,
  100% {
    opacity: 0.9;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ringPop {
  0% {
    opacity: 0;
    transform: scale(1.4);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}