:root {
  /* Cores Vibrantes TikTok Style - Moderno 2026 */
  --bg-dark: #010101;
  --primary-cyan: #00f2ea;
  --primary-pink: #ff0050;
  --text-white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --card-bg: #121212;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 0, 80, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 242, 234, 0.15) 0%, transparent 40%);
}

.app-container {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Custom Alert / Modal */
.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.custom-alert-box {
  background: #1a1a1a;
  border: 1px solid var(--primary-cyan);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 0 30px rgba(0, 242, 234, 0.3);
  transform: scale(0.9);
  animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
  to { transform: scale(1); }
}

.alert-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: bounce 1s infinite;
}

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

#alert-title {
  color: var(--primary-cyan);
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-family: var(--font-display);
}

#alert-message {
  color: #ccc;
  margin-bottom: 25px;
  line-height: 1.5;
}

.btn-primary-small {
  background: var(--primary-pink);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
  width: 100%;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.btn-primary-small:hover {
  transform: scale(1.05);
  background: #ff1f6d;
}

/* Utilitários */
.hidden { display: none !important; }
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Tipografia */
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--primary-cyan), #fff, var(--primary-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.small-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 500;
  display: block;
  letter-spacing: 0.5px;
}

/* Telas */
.screen {
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: fadeIn 0.5s forwards;
  width: 100%;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Tela Inicial */
.logo-container {
  text-align: center;
  margin-bottom: 40px;
}

.main-logo {
  max-width: 180px;
  filter: drop-shadow(0 0 15px rgba(0, 242, 234, 0.4));
}

.badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.badge {
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-highlight {
  background: rgba(0, 242, 234, 0.15);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 234, 0.3);
  animation: pulse-cyan 2s infinite;
  transform-origin: center;
}

@keyframes pulse-cyan {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 234, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 242, 234, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 234, 0); }
}

/* Botões */
.btn-primary {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(90deg, var(--primary-pink), #ff4d80);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(255, 0, 80, 0.5);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Quiz UI */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-cyan);
  width: 0%;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px var(--primary-cyan);
}

.question-number {
  display: block;
  text-align: center;
  color: var(--primary-cyan);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.options-grid {
  display: grid;
  gap: 12px;
}

.option-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 18px;
  border-radius: 16px;
  color: white;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.option-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--primary-cyan);
}

.option-btn.selected {
  background: var(--primary-cyan);
  color: #000;
  font-weight: 700;
  border-color: var(--primary-cyan);
}

/* Input text area */
textarea {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 15px;
  color: white;
  font-family: var(--font-body);
  resize: none;
  height: 100px;
  margin-bottom: 15px;
}

textarea:focus {
  outline: none;
  border-color: var(--primary-cyan);
}

/* Estrelas para avaliação */
.stars-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.star-btn {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
  color: rgba(255,255,255,0.2);
}

.star-btn.active {
  color: #FFD700;
  transform: scale(1.2);
}

/* Feedback Visual (Popups) */
.feedback-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  background: rgba(0, 0, 0, 0.95);
  color: var(--primary-cyan);
  padding: 20px 40px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  border: 3px solid var(--primary-pink);
  box-shadow: 0 0 50px rgba(255, 0, 80, 0.6);
  text-align: center;
  white-space: nowrap;
}

.feedback-popup.show {
  animation: popIn 0.8s ease-out forwards;
}

@keyframes popIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-10deg); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(0deg); }
  40% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8) translateY(-20px); }
}

/* Tela de Recompensas - TikTok Shop Style */
.rewards-header {
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-bottom: 80px;
}

.reward-card {
  background: #ffffff;
  color: #000;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.reward-card:hover {
  transform: translateY(-5px);
}

.discount-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #FE2C55;
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-bottom-right-radius: 8px;
  z-index: 2;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.reward-img-container {
  width: 100%;
  height: 140px;
  position: relative;
  background: white; /* Fundo branco para garantir visibilidade */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.reward-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.reward-info {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reward-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #161823;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.current-price {
  color: #FE2C55;
  font-weight: 800;
  font-size: 1.1rem;
}

.original-price {
  color: #8A8B91;
  text-decoration: line-through;
  font-size: 0.75rem;
}

.stock-bar {
  width: 100%;
  height: 4px;
  background: #E6E6E6;
  border-radius: 2px;
  margin-bottom: 4px;
  overflow: hidden;
}

.stock-fill {
  height: 100%;
  background: #FE2C55;
  width: 85%;
}

.stock-text {
  font-size: 0.7rem;
  color: #FE2C55;
  margin-bottom: 10px;
  font-weight: 600;
}

.btn-claim-reward {
  width: 100%;
  background: #FE2C55;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.1s;
}

.btn-claim-reward:active {
  transform: scale(0.95);
}

.btn-claim-reward:hover {
  background: #e61e45;
}

/* Timer Flash Sale */
.flash-timer {
  background: #FE2C55;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 15px;
  font-size: 0.9rem;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(254, 44, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0); }
}

.share-section {
  text-align: center;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.btn-share {
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.whatsapp { background: #25D366; }

/* Tela de Resultado */
.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--primary-cyan);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  background: rgba(0, 242, 234, 0.1);
}

#final-score {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.reward-unlock {
  background: rgba(0, 255, 100, 0.1);
  border: 1px solid #00ff64;
  padding: 15px;
  border-radius: 12px;
  margin: 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #00ff64;
  font-weight: 700;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  to { left: 100%; }
}

/* Testimonials Section */
.testimonials-section {
  margin-top: 5px; /* Reduzido de 30px */
  padding-bottom: 40px;
}

/* Notificações de Venda (Social Proof) */
.sale-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  font-family: var(--font-body);
  border-left: 4px solid #00ff64;
  animation: slideInRight 0.5s ease-out, fadeOut 0.5s ease-in 4.5s forwards;
  max-width: 300px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-20px); }
}

.sale-notif-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.sale-notif-text strong {
  display: block;
  font-size: 0.85rem;
  color: #333;
}

.sale-notif-text span {
  font-size: 0.75rem;
  color: #666;
}

.testimonials-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
}

.testimonial-card {
  padding: 15px !important; /* Override glass-effect padding */
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-cyan);
}

.user-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.user-rating {
  color: #FFD700;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.time-ago {
  font-size: 0.75rem;
  color: #888;
}

.testimonial-text {
  font-size: 0.9rem;
  color: #ddd;
  line-height: 1.4;
  font-style: italic;
  margin-bottom: 10px;
}

.verified-badge {
  font-size: 0.75rem;
  color: #00ff64;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Responsividade */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .rewards-grid { grid-template-columns: 1fr 1fr; }
  .reward-img { height: 120px; }
}
