/* Design System Variables */
:root {
  /* Font Families */
  --font-primary: Arial, Helvetica, sans-serif;
  --font-bold: Arial Black, Arial, sans-serif;
  
  /* Colors */
  --color-primary: #0071ce;
  --color-primary-dark: #005a9c;
  --color-secondary: #ffd600;
  --color-secondary-dark: #bfa800;
  --color-text: #222;
  --color-text-light: #666;
  --color-text-muted: #888;
  --color-text-subtle: #555;
  --color-danger: #d32f2f;
  --color-success: #4caf50;
  
  --color-bg: #f7f7f7;
  --color-bg-light: #f9f9f9;
  --color-bg-white: #fff;
  --color-bg-section: #ededed;
  --color-bg-highlight: #fffbe6;
  --color-bg-info: #f0f6ff;
  
  --color-border: #e0e0e0;
  --color-border-light: #bdbdbd;
  --color-border-dark: #d1d5db;
  
  /* Typography Scale */
  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 0.9rem;
  --text-md: 1rem;
  --text-lg: 1.1rem;
  --text-xl: 1.2rem;
  --text-2xl: 1.4rem;
  --text-3xl: 1.8rem;
  --text-4xl: 2.2rem;
  
  /* Spacing Scale */
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-8: 15px;
  --space-10: 20px;
  --space-12: 25px;
  
  /* Borders & Radius */
  --border-radius: 4px;
  --border-radius-lg: 6px;
  --border-radius-xl: 8px;
  --border-width: 2px;
  
  /* Transitions */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.6s;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  font-size: var(--text-base);
  line-height: 1.4;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Typography Classes */
.text-heading-primary {
  font-family: var(--font-bold);
  font-size: var(--text-4xl);
  color: var(--color-primary);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-5);
}

.text-heading-secondary {
  font-family: var(--font-bold);
  font-size: var(--text-3xl);
  color: var(--color-text);
  letter-spacing: 0.3px;
  margin-bottom: var(--space-4);
}

.text-heading-tertiary {
  font-family: var(--font-bold);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.text-body-large {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  line-height: 1.4;
}

.text-body {
  font-family: var(--font-primary);
  font-size: var(--text-md);
  line-height: 1.3;
}

.text-body-small {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  line-height: 1.2;
}

.text-accent {
  font-family: var(--font-bold);
  font-weight: bold;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-primary);
  color: var(--color-bg-white);
  padding: var(--space-4) var(--space-6);
  border-bottom: 3px solid var(--color-border-dark);
  border-radius: 0;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header__logo img {
  filter: none;
  height: 28px;
}

.header__amount {
  font-size: 1.3rem;
  font-family: var(--font-bold);
  background: var(--color-secondary);
  border-radius: var(--border-radius);
  padding: var(--space-1) var(--space-4);
  margin-left: var(--space-3);
  border: var(--border-width) solid var(--color-secondary-dark);
  color: var(--color-text);
}

.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header__timer {
  font-size: var(--text-lg);
  font-family: var(--font-bold);
  border-radius: var(--border-radius);
  padding: var(--space-1) var(--space-3);
  min-width: 50px;
  text-align: center;
  border: var(--border-width) solid var(--color-danger);
  background: var(--color-bg-white);
  color: var(--color-danger);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-4);
  padding: 0 var(--space-5);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.congrats {
  background: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  box-shadow: none;
  border: none;
  padding: var(--space-6) var(--space-4);
  max-width: 400px;
  width: calc(100% - var(--space-4));
  text-align: center;
  margin: 0 auto var(--space-4) auto;
  box-sizing: border-box;
}

.congrats h1 {
  font-size: var(--text-4xl);
  font-family: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  letter-spacing: 0.5px;
}

.special-offer {
  text-align: center;
  margin-bottom: var(--space-8);
}

.offer-text {
  font-size: 1.3rem;
  font-family: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.prize-image {
  display: block;
  margin: var(--space-6) auto;
  max-width: 280px;
  width: 100%;
  height: auto;
}

.offer-desc {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: var(--color-text);
  line-height: 1.4;
}

.offer-simple {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: var(--color-text);
  line-height: 1.4;
}

.offer-urgency {
  font-size: var(--text-md);
  color: var(--color-danger);
  font-family: var(--font-bold);
  margin-bottom: var(--space-4);
  background: var(--color-bg-highlight);
  border: var(--border-width) dashed var(--color-secondary);
  border-radius: var(--border-radius);
  padding: var(--space-3) var(--space-4);
}

.offer-cta {
  font-size: var(--text-lg);
  font-family: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.highlight {
  color: var(--color-danger);
  font-family: var(--font-bold);
  background: var(--color-bg-highlight);
  border-bottom: var(--border-width) dashed var(--color-secondary);
}

.cta-btn {
  background: var(--color-secondary);
  color: var(--color-text);
  font-size: var(--text-2xl);
  font-family: var(--font-bold);
  border: var(--border-width) solid var(--color-secondary-dark);
  border-radius: var(--border-radius);
  padding: 16px 0;
  width: 100%;
  margin-top: var(--space-3);
  cursor: pointer;
  box-shadow: none;
  letter-spacing: 0.5px;
  transition: background var(--transition-fast), border var(--transition-fast), transform 0.1s;
  position: sticky;
  bottom: var(--space-4);
  z-index: 50;
}

.cta-btn:active {
  background: #ffe066;
  border-color: var(--color-secondary-dark);
  transform: scale(0.97);
}

.comments-block {
  background: var(--color-bg-section);
  border-radius: var(--border-radius-lg);
  box-shadow: none;
  border: var(--border-width) solid var(--color-border-light);
  margin: var(--space-3) auto 0 auto;
  max-width: 400px;
  width: calc(100% - var(--space-4));
  padding: var(--space-4) var(--space-2) var(--space-6) var(--space-2);
  transition: transform var(--transition-slow) ease, margin-top var(--transition-slow) ease;
  box-sizing: border-box;
}

.comments-block.pushed-down {
  transform: translateY(0);
  margin-top: var(--space-10);
}

.comments-title {
  font-size: var(--text-base);
  font-family: var(--font-bold);
  margin-bottom: var(--space-3);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.comments-count {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  font-weight: normal;
}

.comment {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  background: var(--color-bg-white);
  border-radius: var(--border-radius);
  border: var(--border-width) solid var(--color-border);
  box-shadow: none;
  padding: 5px 5px 5px 3px;
}

.comment__avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--border-radius);
  object-fit: cover;
  border: var(--border-width) solid var(--color-border-light);
}

.comment__avatar--emoji {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  background: #f5f5f5;
}

.comment__body {
  flex: 1;
}

.comment__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

.comment__name {
  font-family: var(--font-bold);
  color: var(--color-text);
  font-size: 0.85rem;
}

.comment__date {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.comment__text {
  font-size: var(--text-sm);
  margin-bottom: 3px;
  color: var(--color-text);
  font-family: var(--font-primary);
  line-height: 1.2;
}

.comment__footer {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.comment__like {
  cursor: pointer;
  user-select: none;
  color: var(--color-danger);
  font-family: var(--font-bold);
}

.comment__reply {
  color: var(--color-primary);
  cursor: pointer;
  user-select: none;
  font-family: var(--font-bold);
}

.show-more-btn {
  display: block;
  margin: 0 auto;
  margin-top: var(--space-3);
  background: var(--color-bg-white);
  color: var(--color-primary);
  font-size: 0.95rem;
  font-family: var(--font-bold);
  border: var(--border-width) solid var(--color-border-light);
  border-radius: var(--border-radius);
  padding: var(--space-4) 0;
  width: 80%;
  cursor: pointer;
  transition: background var(--transition-fast), border var(--transition-fast);
}

.show-more-btn:active {
  background: #e3eaf6;
  border-color: var(--color-primary);
}

.comment__reply-block {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 5px;
  margin-left: 24px;
  background: var(--color-bg-info);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: 3px 5px 3px 3px;
  max-width: 95%;
}

.comment__avatar--walmart {
  width: 20px;
  height: 20px;
  border-radius: var(--border-radius);
  border: none;
  background: var(--color-bg-white);
  object-fit: contain;
}

.comment__name--walmart {
  color: var(--color-primary);
  font-family: var(--font-bold);
  font-size: var(--text-sm);
}

.comment--hidden {
  display: none;
}

.emoji {
  font-size: 1.1em;
  vertical-align: middle;
  margin-left: var(--space-1);
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 500px) {
  .header {
    padding: var(--space-3) var(--space-2);
  }
  .header__logo img {
    height: 24px;
  }
  .header__amount {
    font-size: var(--text-lg);
    padding: 1px var(--space-3);
  }
  .header__timer {
    font-size: 0.95rem;
    padding: 1px var(--space-2);
    min-width: 45px;
  }
  .congrats {
    padding: var(--space-4) var(--space-2);
    max-width: 98vw;
  }
  .congrats h1 {
    font-size: var(--text-3xl);
  }
  .prize-image {
    max-width: 250px;
    margin: var(--space-4) auto;
  }
  .offer-text {
    font-size: var(--text-lg);
  }
  .offer-desc {
    font-size: var(--text-md);
    line-height: 1.3;
  }
  .offer-simple {
    font-size: 0.95rem;
    line-height: 1.3;
  }
  .offer-urgency {
    font-size: var(--text-base);
    padding: 5px var(--space-3);
  }
  .offer-cta {
    font-size: var(--text-md);
  }
  .cta-btn {
    font-size: 1.25rem;
    padding: 14px 0;
  }
  .comments-block {
    padding: 6px 2px 8px 2px;
    max-width: 98vw;
  }
  .comment__avatar {
    width: 24px;
    height: 24px;
  }
  .comment__avatar--walmart {
    width: 18px;
    height: 18px;
  }
  .comment__reply-block {
    margin-left: 20px;
  }
  .show-more-btn {
    font-size: 0.85rem;
    padding: 6px 0;
  }
  .comments-title {
    font-size: 0.8rem;
  }
  .comments-count {
    font-size: 0.7rem;
  }
  .comment__name {
    font-size: 0.75rem;
  }
  .comment__date {
    font-size: 0.7rem;
  }
  .comment__text {
    font-size: 0.75rem;
  }
  .comment__footer {
    font-size: 0.7rem;
  }
  .comment__name--walmart {
    font-size: 0.7rem;
  }
}

/* Дополнительная адаптивность для очень малых экранов */
@media (max-width: 380px) {
  .prize-image {
    max-width: 220px;
    margin: 6px auto;
  }
  .offer-text {
    font-size: 1.05rem;
  }
  .offer-desc {
    font-size: 0.95rem;
  }
  .offer-simple {
    font-size: 0.9rem;
  }
  .offer-urgency {
    font-size: 0.85rem;
    padding: 4px 5px;
  }
  .offer-cta {
    font-size: 0.95rem;
  }
}

/* Специальная оптимизация для WebView */
@media (max-height: 600px) {
  .prize-image {
    max-width: 200px;
    margin: 4px auto;
  }
  .congrats h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }
  .special-offer {
    margin-bottom: 8px;
  }
  .offer-text {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  .offer-desc {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
  .offer-simple {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }
  .offer-urgency {
    font-size: 0.8rem;
    margin-bottom: 6px;
    padding: 4px 6px;
  }
  .offer-cta {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
}

/* Quiz Section Styles */
.quiz-section {
  background: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  box-shadow: none;
  border: none;
  padding: var(--space-10) var(--space-6);
  max-width: 400px;
  width: calc(100% - var(--space-4));
  margin: 0 auto var(--space-8) auto;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.quiz-header {
  text-align: center;
  margin-bottom: var(--space-12);
  border-bottom: var(--border-width) solid var(--color-border);
  padding-bottom: var(--space-8);
}

.quiz-header h2 {
  font-size: var(--text-4xl);
  font-family: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  letter-spacing: 0.5px;
}

.quiz-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-8);
  line-height: 1.3;
}

.quiz-progress {
  margin-bottom: 0;
}

.progress-text {
  font-size: var(--text-base);
  font-family: var(--font-bold);
  color: var(--color-text-subtle);
  display: block;
  margin-bottom: 5px;
}

.progress-bar {
  background: var(--color-border);
  border: none;
  border-radius: var(--border-radius);
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  background: var(--color-secondary);
  height: 100%;
  width: 33.33%;
  border-radius: var(--space-1);
  transition: width var(--transition-normal) ease;
}

.quiz-question {
  animation: fadeIn 0.3s ease-in;
}

.quiz-question h3 {
  font-size: 1.6rem;
  font-family: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-12);
  text-align: center;
  line-height: 1.2;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  flex: 1;
}

.quiz-option {
  background: var(--color-primary);
  border: var(--border-width) solid var(--color-primary-dark);
  border-radius: var(--border-radius);
  padding: 18px var(--space-6);
  font-size: var(--text-lg);
  font-family: var(--font-bold);
  color: var(--color-bg-white);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  text-align: left;
  box-shadow: none;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.quiz-option:hover {
  background: var(--color-primary-dark);
  border-color: #004080;
  transform: translateY(-1px);
}

.quiz-option:active {
  background: var(--color-secondary);
  color: var(--color-text);
  border-color: var(--color-secondary-dark);
  transform: scale(0.98);
}

/* Checking Answers Screen */
.checking-screen {
  background: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  box-shadow: none;
  border: none;
  padding: var(--space-10) var(--space-6);
  max-width: 400px;
  width: calc(100% - var(--space-4));
  margin: 0 auto var(--space-8) auto;
  min-height: 400px;
  text-align: center;
  animation: fadeIn 0.5s ease-in;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.checking-content {
  position: relative;
}

.shopping-carts {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  opacity: 0.3;
}

.cart-icon {
  font-size: 2rem;
  color: #bdbdbd;
  animation: float 3s ease-in-out infinite;
}

.cart-icon:nth-child(1) { animation-delay: 0s; }
.cart-icon:nth-child(2) { animation-delay: 0.5s; }
.cart-icon:nth-child(3) { animation-delay: 1s; }
.cart-icon:nth-child(4) { animation-delay: 1.5s; }
.cart-icon:nth-child(5) { animation-delay: 2s; }
.cart-icon:nth-child(6) { animation-delay: 2.5s; }

.checking-screen h2 {
  font-size: var(--text-3xl);
  font-family: var(--font-bold);
  color: var(--color-text);
  margin: var(--space-10) 0;
  letter-spacing: 0.5px;
}

.loading-spinner {
  margin: var(--space-12) 0;
  display: flex;
  justify-content: center;
}

.spinner-circle {
  width: 80px;
  height: 80px;
  border: 4px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  font-size: 2.5rem;
  font-family: var(--font-bold);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 1.5s linear infinite;
}

.checking-stats {
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--color-bg-info);
  border: var(--border-width) solid var(--color-primary);
  border-radius: var(--border-radius);
}

.stats-line {
  font-size: var(--text-lg);
  margin: var(--space-4) 0;
  color: var(--color-text);
  line-height: 1.3;
  transition: opacity var(--transition-slow) ease-in;
}

.stats-line:first-child {
  font-family: var(--font-bold);
  color: var(--color-primary);
}

.stats-line.show {
  opacity: 1 !important;
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-in;
  padding: 15px;
  box-sizing: border-box;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  border: none;
  padding: 25px 20px;
  max-width: 400px;
  width: 100%;
  max-height: calc(100vh - 30px);
  text-align: center;
  position: relative;
  animation: slideIn 0.4s ease-out;
  box-sizing: border-box;
  overflow-y: auto;
}

.gift-container {
  position: relative;
  margin-bottom: 20px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gift-box {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: giftPulse 2s ease-in-out infinite;
}

.gift-box-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}



.floating-carts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-cart {
  position: absolute;
  font-size: 1.5rem;
  color: #bdbdbd;
  opacity: 0.4;
  animation: floatAround 4s ease-in-out infinite;
}

.floating-cart:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-cart:nth-child(2) {
  top: 15%;
  right: 10%;
  animation-delay: 0.8s;
}

.floating-cart:nth-child(3) {
  bottom: 10%;
  left: 15%;
  animation-delay: 1.6s;
}

.floating-cart:nth-child(4) {
  bottom: 20%;
  right: 20%;
  animation-delay: 2.4s;
}

.floating-cart:nth-child(5) {
  top: 50%;
  left: 5%;
  animation-delay: 3.2s;
}

.modal-content h2 {
  font-size: var(--text-2xl);
  font-family: var(--font-bold);
  color: var(--color-text);
  margin: var(--space-8) 0 var(--space-5) 0;
  line-height: 1.3;
}

.modal-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  margin: var(--space-4) 0;
  line-height: 1.3;
}

.modal-instruction {
  font-size: var(--text-md);
  color: var(--color-text-light);
  margin: var(--space-4) 0;
  line-height: 1.3;
}

.modal-tries {
  font-size: var(--text-md);
  color: var(--color-text);
  margin: var(--space-6) 0 var(--space-10) 0;
  font-family: var(--font-bold);
}

.modal-ok-btn {
  background: var(--color-secondary);
  color: var(--color-text);
  font-size: var(--text-xl);
  font-family: var(--font-bold);
  border: var(--border-width) solid var(--color-secondary-dark);
  border-radius: var(--border-radius);
  padding: var(--space-6) 40px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast) ease;
}

.modal-ok-btn:hover {
  background: #ffe066;
  transform: translateY(-1px);
}

.modal-ok-btn:active {
  background: #e6c200;
  transform: scale(0.98);
}

@keyframes slideIn {
  from {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes giftPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes floatAround {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(90deg);
  }
  50% {
    transform: translateY(-5px) rotate(180deg);
  }
  75% {
    transform: translateY(-15px) rotate(270deg);
  }
}

/* Empty Box Modal */
.empty-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-in;
  padding: 15px;
  box-sizing: border-box;
}

.empty-modal-content {
  background: #fff;
  border-radius: 8px;
  border: none;
  padding: 25px 20px;
  max-width: 400px;
  width: 100%;
  max-height: calc(100vh - 30px);
  text-align: center;
  position: relative;
  animation: slideIn 0.4s ease-out;
  box-sizing: border-box;
  overflow-y: auto;
}

.checkmark-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  border: 3px solid #4caf50;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  animation: checkmarkAppear 0.6s ease-out;
}

.checkmark {
  font-size: 2.5rem;
  color: #4caf50;
  font-weight: bold;
  animation: checkmarkPulse 0.8s ease-out;
}

.empty-modal-content h2 {
  font-size: var(--text-3xl);
  font-family: var(--font-bold);
  color: var(--color-text);
  margin: var(--space-8) 0 var(--space-5) 0;
  letter-spacing: 0.5px;
}

.empty-message {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  margin: var(--space-6) 0 var(--space-4) 0;
  line-height: 1.4;
}

.good-luck {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  margin: var(--space-4) 0 var(--space-10) 0;
  font-family: var(--font-bold);
}

.empty-ok-btn {
  background: var(--color-secondary);
  color: var(--color-text);
  font-size: var(--text-xl);
  font-family: var(--font-bold);
  border: var(--border-width) solid var(--color-secondary-dark);
  border-radius: var(--border-radius);
  padding: var(--space-6) 40px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast) ease;
}

.empty-ok-btn:hover {
  background: #ffe066;
  transform: translateY(-1px);
}

.empty-ok-btn:active {
  background: #e6c200;
  transform: scale(0.98);
}

@keyframes checkmarkAppear {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkmarkPulse {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* Box Game Section */
.box-game-section {
  background: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  box-shadow: none;
  border: none;
  padding: var(--space-10) var(--space-6);
  max-width: 400px;
  width: calc(100% - var(--space-4));
  margin: 0 auto var(--space-8) auto;
  animation: fadeIn 0.5s ease-in;
  box-sizing: border-box;
}

.game-container {
  position: relative;
  text-align: center;
}

.floating-carts-bg {
  display: none;
}

.bg-cart {
  display: none;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 380px;
  margin: 0 auto var(--space-10) auto;
  position: relative;
  z-index: 10;
}

.game-box {
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  animation: boxFloat 4s ease-in-out infinite;
}

.game-box:nth-child(odd) {
  animation-delay: 0.2s;
}

.game-box:nth-child(even) {
  animation-delay: 0.4s;
}

.game-box:hover {
  transform: scale(1.05);
}

.game-box.opened {
  cursor: default;
}

.game-box.opened:hover {
  transform: scale(1);
}

.box-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box-body {
  width: 95%;
  height: 95%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.box-head {
  width: 95%;
  height: 95%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: transform 1.2s ease-out;
  transform-origin: bottom center;
}

.box-head.opened {
  transform: translate(-50%, -50%) translateY(-40px) rotateX(-60deg);
}

.box-container.opened .mini-prize {
  animation: prizeRiseWithLid 1.5s ease-out;
}

.box-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 70%;
  height: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mini-prize {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: prizeAppear 1.5s ease-out;
}

@keyframes prizeAppear {
  0% {
    opacity: 0;
    transform: scale(0.2) translateY(30px);
  }
  40% {
    opacity: 0.5;
    transform: scale(0.8) translateY(10px);
  }
  70% {
    opacity: 0.8;
    transform: scale(1.1) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes prizeRiseWithLid {
  0% {
    opacity: 0;
    transform: scale(0.2) translateY(20px);
  }
  30% {
    opacity: 0.3;
    transform: scale(0.5) translateY(0px);
  }
  60% {
    opacity: 0.7;
    transform: scale(0.8) translateY(-10px);
  }
  80% {
    opacity: 0.9;
    transform: scale(1.0) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: scale(1.1) translateY(-25px);
  }
}

.game-status {
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(var(--space-10));
  transition: opacity var(--transition-slow) ease-out, transform var(--transition-slow) ease-out;
}

.game-status.show {
  opacity: 1;
  transform: translateY(0);
}

.game-status.hide {
  opacity: 0;
  transform: translateY(calc(-1 * var(--space-10)));
}

.tries-left {
  font-size: var(--text-lg);
  font-family: var(--font-bold);
  color: var(--color-primary);
  margin: var(--space-5) 0 5px 0;
  transition: all var(--transition-normal) ease;
}

.game-instruction {
  font-size: var(--text-md);
  transition: all var(--transition-normal) ease;
  color: var(--color-text-light);
  margin: 5px 0;
  line-height: 1.3;
}

.text-updating {
  opacity: 0.3;
  transform: scale(0.95);
}

.text-celebration {
  color: var(--color-primary);
  font-family: var(--font-bold);
  transform: scale(1.02);
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Quiz Styles */
@media (max-width: 500px) {
  .quiz-section {
    padding: 15px 8px;
    max-width: 98vw;
    min-height: 350px;
  }
  
  .quiz-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
  }
  
  .quiz-header h2 {
    font-size: 1.8rem;
  }
  
  .quiz-subtitle {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .progress-text {
    font-size: 0.85rem;
  }
  
  .quiz-question h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .quiz-options {
    gap: 10px;
  }
  
  .quiz-option {
    padding: 15px 10px;
    font-size: 1rem;
    min-height: 55px;
  }
  

  
  /* Mobile Checking Screen */
  .checking-screen {
    padding: 15px 0;
  }
  
  .checking-screen h2 {
    font-size: 1.5rem;
    margin: 15px 0;
  }
  
  .shopping-carts {
    margin-bottom: 15px;
  }
  
  .cart-icon {
    font-size: 1.5rem;
  }
  
  .spinner-circle {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .checking-stats {
    margin-top: 20px;
    padding: 12px;
  }
  
  .stats-line {
    font-size: 1rem;
    margin: 6px 0;
  }
}

@media (max-width: 380px) {
  .quiz-section {
    padding: 12px 6px;
    min-height: 320px;
  }
  
  .quiz-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
  
  .quiz-header h2 {
    font-size: 1.5rem;
  }
  
  .quiz-subtitle {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .quiz-question h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
  }
  
  .quiz-options {
    gap: 8px;
  }
  
  .quiz-option {
    font-size: 0.9rem;
    padding: 12px 8px;
    min-height: 50px;
  }
  

  
  /* Small Screen Checking */
  .checking-screen h2 {
    font-size: 1.3rem;
    margin: 12px 0;
  }
  
  .cart-icon {
    font-size: 1.3rem;
  }
  
  .spinner-circle {
    width: 50px;
    height: 50px;
    font-size: 1.7rem;
  }
  
  .stats-line {
    font-size: 0.9rem;
  }
  
  /* Mobile Modal Styles */
  .modal-content {
    max-width: 95vw;
    padding: 15px;
  }
  
  .gift-container {
    height: 180px;
    margin-bottom: 15px;
  }
  
  .gift-box {
    width: 140px;
    height: 140px;
  }
  
  .floating-cart {
    font-size: 1.2rem;
  }
  
  .modal-content h2 {
    font-size: 1.2rem;
    margin: 12px 0 8px 0;
  }
  
  .modal-subtitle {
    font-size: 1rem;
    margin: 6px 0;
  }
  
  .modal-instruction {
    font-size: 0.9rem;
    margin: 6px 0;
  }
  
  .modal-tries {
    font-size: 0.9rem;
    margin: 10px 0 15px 0;
  }
  
  .modal-ok-btn {
    font-size: 1.1rem;
    padding: 10px 30px;
  }
  
  /* Mobile Game Styles */
  .box-game-section {
    padding: 15px 8px;
    max-width: 98vw;
  }
  
  .game-grid {
    max-width: 340px;
    gap: 6px;
    margin-bottom: 15px;
    padding: 10px !important;
  }
  
  .bg-cart {
    font-size: 1.2rem;
  }
  
  .tries-left {
    font-size: 1rem;
    margin: 8px 0 4px 0;
  }
  
  .game-instruction {
    font-size: 0.9rem;
    margin: 4px 0;
  }
  
    /* Mobile Empty Modal */
  .empty-modal-content {
    max-width: 95vw;
    padding: 20px 15px;
  }

  .checkmark-circle {
    width: 60px;
    height: 60px;
  }

  .checkmark {
    font-size: 2rem;
  }

  .empty-modal-content h2 {
    font-size: 1.7rem;
    margin: 12px 0 8px 0;
  }

  .empty-message {
    font-size: 1rem;
    margin: 10px 0 6px 0;
  }

  .good-luck {
    font-size: 1rem;
    margin: 6px 0 15px 0;
  }

  .empty-ok-btn {
    font-size: 1.1rem;
    padding: 10px 30px;
  }

  /* Mobile Game Status */
  .game-status {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  .tries-left {
    font-size: 1rem;
    transition: all 0.25s ease;
  }

  .game-instruction {
    font-size: 0.95rem;
    transition: all 0.25s ease;
  }

  /* Mobile Winner Modal */
  .winner-modal-content {
    max-width: 95vw;
    padding: 20px 15px;
  }

  .main-prize-container {
    height: 150px;
    margin-bottom: 15px;
  }

  .main-prize-image {
    max-width: 220px;
    max-height: 130px;
  }

  .winner-modal-content h2 {
    font-size: 1.8rem;
    margin: 12px 0 8px 0;
  }

  .winner-description {
    font-size: 1rem;
    margin: 10px 0 12px 0;
  }

  .winner-offer {
    margin: 12px 0 18px 0;
  }

  .congratulations-text {
    font-size: 1.05rem;
    margin: 6px 0;
  }

  .urgency-text {
    font-size: 1rem;
    margin: 6px 0 12px 0;
  }

  .winner-claim-btn {
    font-size: 1.15rem;
    padding: 12px 20px;
    min-width: 250px;
  }
}

/* Enhanced Winner Modal */
.winner-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: modalFadeIn 0.5s ease-out;
}

.winner-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2rem;
  border-radius: 20px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.5s ease-out;
}

/* Confetti Animation */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 20px;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4, #45b7d1);
  animation: confetti-fall 3s linear infinite;
}

.confetti:nth-child(1) { left: 10%; animation-delay: 0s; background: #ffd700; }
.confetti:nth-child(2) { left: 20%; animation-delay: 0.5s; background: #ff6b6b; }
.confetti:nth-child(3) { left: 30%; animation-delay: 1s; background: #4ecdc4; }
.confetti:nth-child(4) { left: 40%; animation-delay: 1.5s; background: #45b7d1; }
.confetti:nth-child(5) { left: 60%; animation-delay: 0.25s; background: #96e6a1; }
.confetti:nth-child(6) { left: 70%; animation-delay: 0.75s; background: #ffa726; }
.confetti:nth-child(7) { left: 80%; animation-delay: 1.25s; background: #ab47bc; }
.confetti:nth-child(8) { left: 90%; animation-delay: 1.75s; background: #ef5350; }

@keyframes confetti-fall {
  0% {
    top: -10px;
    transform: rotateZ(0deg);
    opacity: 1;
  }
  100% {
    top: 100%;
    transform: rotateZ(360deg);
    opacity: 0;
  }
}

/* Winner Badge */
.winner-badge {
  margin-bottom: 1.5rem;
  animation: bounceIn 0.8s ease-out;
}

.badge-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: trophy-glow 2s ease-in-out infinite;
}

.badge-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

@keyframes trophy-glow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Prize Display */
.main-prize-container {
  position: relative;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prize-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 2s ease-in-out infinite;
}

.main-prize-image {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  animation: prize-float 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.prize-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #22c55e;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin-top: 1rem;
  animation: amount-pulse 1.5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

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

@keyframes amount-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Winner Message */
.winner-message {
  margin: 2rem 0;
}

.winner-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.winner-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Validation Info */
.validation-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 15px;
  border: 2px solid #22c55e;
}

.validation-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: #166534;
}

.validation-icon {
  font-size: 1.2rem;
  margin-right: 0.8rem;
  animation: checkmark-pop 0.5s ease-out;
}

.validation-text {
  flex: 1;
}

@keyframes checkmark-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Urgency Section */
.urgency-section {
  margin: 1.5rem 0;
}

.urgency-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  font-size: 1rem;
  color: #92400e;
  animation: urgency-blink 2s ease-in-out infinite;
}

.timer-icon {
  font-size: 1.3rem;
  margin-right: 0.8rem;
  animation: timer-tick 1s ease-in-out infinite;
}

@keyframes urgency-blink {
  0%, 100% { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
  50% { background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%); }
}

@keyframes timer-tick {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* CTA Section */
.winner-cta-container {
  margin-top: 2rem;
}

.winner-claim-btn {
  display: inline-flex;
  align-items: center;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  transition: all 0.3s ease;
  animation: cta-glow 2s ease-in-out infinite;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.winner-claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
}

.btn-icon, .btn-arrow {
  font-size: 1.2rem;
}

.btn-icon {
  margin-right: 0.8rem;
}

.btn-arrow {
  margin-left: 0.8rem;
  transition: transform 0.3s ease;
}

.winner-claim-btn:hover .btn-arrow {
  transform: translateX(5px);
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 6px 30px rgba(34, 197, 94, 0.6); }
}

.secure-note {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-top: 1rem;
  opacity: 0.8;
}

/* Modal Animations */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Responsive */
@media (max-width: 500px) {
  .winner-modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .winner-title {
    font-size: 1.5rem;
  }
  
  .prize-amount {
    font-size: 2rem;
  }
  
  .main-prize-image {
    max-width: 150px;
  }
  
  .validation-info {
    padding: 1rem;
  }
  
  .winner-claim-btn {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
} 

/* Emotional Triggers & Mobile-First Enhancements */

/* Top Urgency Banner */
.top-urgency-banner {
  margin-bottom: 1.5rem;
  animation: slideInDown 0.8s ease-out;
}

.top-urgency-banner .urgency-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  animation: urgency-pulse-strong 1.5s ease-in-out infinite;
}

.top-urgency-banner .urgency-icon {
  font-size: 1.2rem;
  animation: flame-flicker 0.8s ease-in-out infinite alternate;
}

.top-urgency-banner .urgency-text {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.urgency-timer-mini {
  font-size: 1rem;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  animation: timer-flash 1s ease-in-out infinite;
}

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

@keyframes urgency-pulse-strong {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3); }
  50% { transform: scale(1.01); box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5); }
}

@keyframes flame-flicker {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}

@keyframes timer-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Social Proof Notification */
.social-proof-notification {
  margin: 1rem 0;
  opacity: 0;
  animation: socialProofSlide 0.8s ease-out 2s forwards;
}

.notification-content {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.notification-avatar {
  font-size: 1.5rem;
  margin-right: 0.8rem;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.notification-text {
  flex: 1;
  font-size: 0.9rem;
  color: #166534;
  font-weight: 600;
}

.notification-time {
  font-size: 0.8rem;
  color: #22c55e;
  font-weight: 500;
}

@keyframes socialProofSlide {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced Value Proposition */
.value-proposition {
  margin: 1.5rem 0;
}

.value-points {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  border: 2px solid var(--color-primary);
}

.value-point {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 600;
}

.value-icon {
  font-size: 1.3rem;
  margin-right: 0.8rem;
  width: 2rem;
  text-align: center;
}

.value-text {
  flex: 1;
}

/* Scarcity Information */
.scarcity-info {
  display: flex;
  justify-content: space-around;
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  border: 2px solid #f59e0b;
  animation: scarcity-glow 2s ease-in-out infinite;
}

.scarcity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scarcity-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: #dc2626;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.scarcity-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

@keyframes scarcity-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5); }
}

/* Enhanced CTA Button */
.cta-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1.2rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  animation: cta-pulse 2s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  display: block;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
}

.cta-btn:active {
  transform: translateY(-1px);
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 6px 30px rgba(34, 197, 94, 0.6), 0 0 0 4px rgba(34, 197, 94, 0.2); }
}

/* Enhanced Mobile Optimizations */
@media (max-width: 500px) {
  .top-urgency-banner .urgency-content {
    padding: 0.7rem 0.8rem;
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .top-urgency-banner .urgency-text {
    font-size: 0.85rem;
    text-align: center;
  }
  
  .urgency-timer-mini {
    font-size: 0.9rem;
  }
  
  .notification-content {
    padding: 0.6rem 0.8rem;
  }
  
  .notification-avatar {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }
  
  .notification-text {
    font-size: 0.85rem;
  }
  
  .value-points {
    padding: 0.8rem;
    gap: 0.6rem;
  }
  
  .value-point {
    font-size: 0.85rem;
  }
  
  .value-icon {
    font-size: 1.1rem;
    width: 1.5rem;
  }
  
  .scarcity-info {
    padding: 0.8rem;
  }
  
  .scarcity-number {
    font-size: 1.5rem;
  }
  
  .scarcity-label {
    font-size: 0.7rem;
  }
  
  .cta-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* High contrast for weak internet/slow loading */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Enhanced touch targets for mobile */
@media (pointer: coarse) {
  .quiz-option, .cta-btn, .winner-claim-btn {
    min-height: 48px;
    padding: 0.8rem 1rem;
  }
  
  .quiz-option {
    font-size: 1rem;
  }
} 

/* Scarcity Info on Quiz Screen */
.quiz-section .scarcity-info {
  margin-bottom: 1.5rem;
  margin-top: 0;
  animation: slideInDown 0.8s ease-out 0.3s both;
}

/* Responsive adjustments for quiz scarcity */
@media (max-width: 500px) {
  .quiz-section .scarcity-info {
    margin-bottom: 1rem;
    padding: 0.6rem;
  }
  
  .quiz-section .scarcity-item {
    gap: 0.1rem;
  }
  
  .quiz-section .scarcity-number {
    font-size: 1.4rem;
  }
  
  .quiz-section .scarcity-label {
    font-size: 0.65rem;
  }
} 

/* Value Proposition after CTA */
.cta-btn + .value-proposition {
  margin-top: 2rem;
  opacity: 0.9;
}

.cta-btn + .value-proposition .value-points {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  border: 1px solid rgba(0, 113, 206, 0.2);
  box-shadow: 0 2px 8px rgba(0, 113, 206, 0.08);
}

.cta-btn + .value-proposition .value-point {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.cta-btn + .value-proposition .value-icon {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Mobile adjustments for value-proposition after CTA */
@media (max-width: 500px) {
  .cta-btn + .value-proposition {
    margin-top: 1.5rem;
  }
  
  .cta-btn + .value-proposition .value-points {
    padding: 0.8rem;
    gap: 0.6rem;
  }
  
  .cta-btn + .value-proposition .value-point {
    font-size: 0.85rem;
  }
  
  .cta-btn + .value-proposition .value-icon {
    font-size: 1.1rem;
    width: 1.5rem;
  }
} 

/* Enhanced Checking Screen Styles */
.checking-stages {
  margin: 2rem 0;
  padding: 0 1rem;
}

.stage-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin: 0.8rem 0;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 113, 206, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.4;
  transform: translateX(-10px);
}

.stage-item.active {
  opacity: 1 !important;
  background: linear-gradient(135deg, #e3f2fd 0%, #f8f9ff 100%);
  border-left: 4px solid var(--color-primary);
  transform: translateX(0);
  box-shadow: 0 4px 12px rgba(0, 113, 206, 0.15);
}

.stage-item.completed {
  opacity: 1 !important;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0fdf4 100%);
  border-left: 4px solid #22c55e;
  transform: translateX(0);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.stage-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  min-width: 2rem;
  transition: all 0.3s ease;
}

.stage-item.active .stage-icon {
  animation: icon-pulse 1.5s ease-in-out infinite;
}

.stage-item.completed .stage-icon {
  animation: icon-success 0.6s ease-out;
  transform: scale(1.1);
}

.stage-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.stage-item.completed .stage-text {
  color: #166534;
  font-weight: 600;
}

.stage-status {
  font-size: 0.8rem;
  color: var(--color-primary);
  animation: checking-dots 1.5s infinite;
  transition: all 0.3s ease;
  min-width: 2rem;
  text-align: center;
}

.stage-status.success {
  color: #22c55e;
  animation: none;
  font-size: 1.2rem;
}

.stage-status.success::after {
  content: "✅";
  animation: checkmark-bounce 0.6s ease-out;
  display: inline-block;
}

/* Enhanced Animations */
@keyframes checking-dots {
  0%, 20% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes icon-success {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1.1); }
}

@keyframes checkmark-bounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Location Info - Enhanced */
.location-info {
  margin: 1.5rem 0;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out;
}

.location-info.show {
  opacity: 1;
  transform: translateY(0);
}

.location-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  animation: location-glow 2s ease-in-out infinite;
}

@keyframes location-glow {
  0%, 100% { box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4); }
}

.location-icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  animation: location-bounce 1s ease-in-out infinite;
}

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

/* Urgency Banner - Enhanced */
.urgency-banner {
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out;
}

.urgency-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.urgency-content {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  animation: urgency-pulse-enhanced 2s ease-in-out infinite;
}

@keyframes urgency-pulse-enhanced {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); 
  }
  50% { 
    transform: scale(1.02); 
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5); 
  }
}

.urgency-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  animation: urgency-shake 0.8s ease-in-out infinite alternate;
}

@keyframes urgency-shake {
  0% { transform: translateX(-2px) rotate(-1deg); }
  100% { transform: translateX(2px) rotate(1deg); }
}

/* Overall checking screen improvements */
.checking-screen {
  animation: checking-screen-enter 0.8s ease-out;
}

@keyframes checking-screen-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 

/* Enhanced Modal After Quiz */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: modalFadeIn 0.5s ease-out;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2rem;
  border-radius: 20px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalBounceIn 0.8s ease-out;
}

/* Confetti for Modal */
.modal .confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 20px;
}

.modal .confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.confetti-1 { left: 10%; background: #ffd700; animation: confetti-fall 3s linear infinite 0s; }
.confetti-2 { left: 20%; background: #ff6b6b; animation: confetti-fall 3s linear infinite 0.3s; }
.confetti-3 { left: 30%; background: #4ecdc4; animation: confetti-fall 3s linear infinite 0.6s; }
.confetti-4 { left: 40%; background: #45b7d1; animation: confetti-fall 3s linear infinite 0.9s; }
.confetti-5 { left: 50%; background: #96e6a1; animation: confetti-fall 3s linear infinite 1.2s; }
.confetti-6 { left: 60%; background: #ffa726; animation: confetti-fall 3s linear infinite 1.5s; }
.confetti-7 { left: 70%; background: #ab47bc; animation: confetti-fall 3s linear infinite 1.8s; }
.confetti-8 { left: 80%; background: #ef5350; animation: confetti-fall 3s linear infinite 2.1s; }
.confetti-9 { left: 85%; background: #26c6da; animation: confetti-fall 3s linear infinite 2.4s; }
.confetti-10 { left: 90%; background: #66bb6a; animation: confetti-fall 3s linear infinite 2.7s; }

/* Success Badge */
.success-badge {
  margin-bottom: 1.5rem;
  animation: badgeBounce 1s ease-out;
}

.badge-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: celebration-bounce 1.5s ease-in-out infinite;
}

.badge-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: #22c55e;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}

/* Enhanced Gift Container */
.gift-container {
  position: relative;
  margin: 1.5rem 0;
}

.gift-box {
  position: relative;
  display: inline-block;
}

.gift-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: gift-glow-pulse 2s ease-in-out infinite;
}

.gift-box-image {
  max-width: 120px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  animation: gift-float 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

/* Progress Celebration */
.encouragement-section {
  margin: 2rem 0;
}

.progress-celebration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 15px;
  border: 2px solid #0284c7;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
  padding: 0.5rem;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-indicator.completed .step-number {
  background: #22c55e;
  color: white;
  animation: step-success 0.8s ease-out;
}

.step-indicator.current .step-number {
  background: #3b82f6;
  color: white;
  animation: step-current 1.5s ease-in-out infinite;
}

.step-indicator.upcoming .step-number {
  background: #e5e7eb;
  color: #6b7280;
}

.step-text {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-check {
  font-size: 1.2rem;
  animation: checkmark-bounce 0.6s ease-out 0.5s both;
}

.step-arrow {
  font-size: 1.2rem;
  animation: arrow-point 1s ease-in-out infinite;
}

.step-gift {
  font-size: 1.2rem;
  animation: gift-anticipation 2s ease-in-out infinite;
}

.step-connector {
  width: 1rem;
  height: 2px;
  background: linear-gradient(90deg, #22c55e 0%, #3b82f6 50%, #e5e7eb 100%);
  margin: 0 0.3rem;
  flex-shrink: 0;
}

/* Motivational Message */
.motivational-message {
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  border: 2px solid #f59e0b;
}

.modal-subtitle {
  font-size: 1.1rem;
  color: #92400e;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.modal-instruction {
  font-size: 1rem;
  color: #78350f;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.tries-info {
  font-size: 0.95rem;
  color: #92400e;
  font-weight: 600;
  margin-bottom: 0;
}

/* Enhanced Button */
.modal-ok-btn.enhanced {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  transition: all 0.3s ease;
  animation: btn-glow 2s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

.modal-ok-btn.enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
}

.btn-icon, .btn-arrow {
  font-size: 1.2rem;
}

.btn-icon {
  margin-right: 0.8rem;
}

.btn-arrow {
  margin-left: 0.8rem;
  transition: transform 0.3s ease;
}

.modal-ok-btn.enhanced:hover .btn-arrow {
  transform: translateX(5px);
}

@keyframes modalBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes badgeBounce {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes celebration-bounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(5deg); }
  75% { transform: scale(1.1) rotate(-5deg); }
}

@keyframes gift-glow-pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes gift-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes step-success {
  0% { transform: scale(0); background: #e5e7eb; }
  50% { transform: scale(1.2); background: #22c55e; }
  100% { transform: scale(1); background: #22c55e; }
}

@keyframes step-current {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

@keyframes checkmark-bounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes arrow-point {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes gift-anticipation {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 6px 30px rgba(34, 197, 94, 0.6), 0 0 0 4px rgba(34, 197, 94, 0.2); }
}

/* Mobile Responsive */
@media (max-width: 500px) {
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .progress-celebration {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .step-connector {
    width: 2px;
    height: 1rem;
    margin: 0;
  }
  
  .step-indicator {
    min-width: auto;
  }
  
  .gift-box-image {
    max-width: 100px;
  }
  
  .modal-ok-btn.enhanced {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Compact Progress Celebration */
.progress-celebration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  border: 2px solid #0284c7;
  max-width: 100%;
  overflow: hidden;
}

.step-indicator {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  flex: 1;
  padding: 0.2rem;
  min-width: 0; /* Allow shrinking */
}

.step-number {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.step-indicator.completed .step-number {
  background: #22c55e;
  color: white;
  animation: step-success 0.8s ease-out;
}

.step-indicator.current .step-number {
  background: #3b82f6;
  color: white;
  animation: step-current 1.5s ease-in-out infinite;
}

.step-indicator.upcoming .step-number {
  background: #e5e7eb;
  color: #6b7280;
}

.step-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.step-text {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-status {
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.8rem;
}

.step-check {
  color: #22c55e;
  animation: checkmark-bounce 0.6s ease-out 0.5s both;
}

.step-arrow {
  color: #3b82f6;
  animation: arrow-point 1s ease-in-out infinite;
}

.step-gift {
  color: #f59e0b;
  animation: gift-anticipation 2s ease-in-out infinite;
}

.step-connector {
  width: 1rem;
  height: 2px;
  background: linear-gradient(90deg, #22c55e 0%, #3b82f6 50%, #e5e7eb 100%);
  margin: 0 0.3rem;
  flex-shrink: 0;
}

/* Compact Motivational Message */
.motivational-message {
  margin: 1rem 0;
  padding: 0.8rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 10px;
  border: 2px solid #f59e0b;
}

.modal-subtitle {
  font-size: 1rem;
  color: #92400e;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.modal-instruction {
  font-size: 0.9rem;
  color: #78350f;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.tries-info {
  font-size: 0.85rem;
  color: #92400e;
  font-weight: 600;
  margin-bottom: 0;
}

/* Enhanced Button - Higher Priority */
.modal-ok-btn.enhanced {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
  transition: all 0.3s ease;
  animation: btn-glow-strong 1.5s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

@keyframes btn-glow-strong {
  0%, 100% { 
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 10px 35px rgba(34, 197, 94, 0.7), 0 0 0 6px rgba(34, 197, 94, 0.3);
    transform: scale(1.02);
  }
}

/* Mobile First Optimizations */
@media (max-width: 500px) {
  .modal-content {
    padding: 1.2rem;
    margin: 0.5rem;
    max-height: 95vh;
  }
  
  .success-badge {
    margin-bottom: 1rem;
  }
  
  .badge-icon {
    font-size: 2rem;
  }
  
  .badge-text {
    font-size: 1rem;
  }
  
  .motivational-message {
    padding: 0.6rem;
    margin: 0.8rem 0;
  }
  
  .modal-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }
  
  .modal-instruction {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }
  
  .tries-info {
    font-size: 0.75rem;
  }
  
  .modal-ok-btn.enhanced {
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
    margin-top: 0.3rem;
    width: 100%;
    max-width: none;
  }
  
  .btn-icon, .btn-arrow {
    font-size: 1rem;
  }
  
  .btn-icon {
    margin-right: 0.6rem;
  }
  
  .btn-arrow {
    margin-left: 0.6rem;
  }
  
  /* Ensure modal height doesn't exceed viewport */
  .modal-content h2 {
    font-size: 1.4rem;
    margin: 0.8rem 0;
  }
}

/* Extra small screens - WebView optimization */
@media (max-width: 400px) {
  .modal-content {
    padding: 1rem;
    margin: 0.25rem;
  }
}

/* Landscape mobile optimization */
@media (max-height: 600px) {
  .modal-content {
    padding: 0.8rem;
    max-height: 95vh;
  }
  
  .success-badge {
    margin-bottom: 0.5rem;
  }
  
  .encouragement-section {
    margin: 1rem 0;
  }
  
  .modal-ok-btn.enhanced {
    margin-top: 0.3rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Always Horizontal Progress Celebration */
.progress-celebration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  border: 2px solid #0284c7;
  max-width: 100%;
  overflow: hidden;
}

.step-indicator {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  flex: 1;
  padding: 0.2rem;
  min-width: 0;
}

.step-number {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.step-text {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-status {
  font-size: 0.9rem;
  line-height: 1;
}

.step-connector {
  width: 1rem;
  height: 2px;
  background: linear-gradient(90deg, #22c55e 0%, #3b82f6 50%, #e5e7eb 100%);
  margin: 0 0.3rem;
  flex-shrink: 0;
}

/* Optimized Gift Container */
.gift-container {
  position: relative;
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px; /* Fixed height for consistency */
}

.gift-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gift-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: gift-glow-pulse 2s ease-in-out infinite;
}

.gift-box-image {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  animation: gift-float 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

/* Floating carts - more compact */
.floating-carts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-cart {
  position: absolute;
  font-size: 1.2rem;
  animation: float-around 4s ease-in-out infinite;
  opacity: 0.7;
}

.floating-cart:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-cart:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 0.8s;
}

.floating-cart:nth-child(3) {
  bottom: 15%;
  left: 20%;
  animation-delay: 1.6s;
}

.floating-cart:nth-child(4) {
  bottom: 20%;
  right: 10%;
  animation-delay: 2.4s;
}

.floating-cart:nth-child(5) {
  top: 50%;
  left: 5%;
  animation-delay: 3.2s;
}

@keyframes float-around {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
  75% { transform: translateY(-5px) rotate(-5deg); }
}

/* Mobile Optimizations - Keep Horizontal */
@media (max-width: 500px) {
  .progress-celebration {
    padding: 0.6rem 0.8rem;
    margin: 0.8rem 0;
  }
  
  .step-number {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
    margin-right: 0.3rem;
  }
  
  .step-text {
    font-size: 0.6rem;
  }
  
  .step-status {
    font-size: 0.8rem;
    height: 1.5rem;
  }
  
  .step-connector {
    width: 0.8rem;
    margin: 0 0.2rem;
  }
  
  .gift-container {
    height: 120px;
    margin: 0.8rem 0;
  }
  
  .gift-glow {
    width: 140px;
    height: 140px;
  }
  
  .gift-box-image {
    width: 100px;
  }
  
  .floating-cart {
    font-size: 1rem;
  }
}

/* Extra Small Screens - Still Horizontal */
@media (max-width: 400px) {
  .progress-celebration {
    padding: 0.5rem 0.6rem;
  }
  
  .step-number {
    width: 1.3rem;
    height: 1.3rem;
    font-size: 0.6rem;
    margin-right: 0.2rem;
  }
  
  .step-text {
    font-size: 0.55rem;
  }
  
  .step-status {
    font-size: 0.7rem;
    height: 1.3rem;
  }
  
  .step-connector {
    width: 0.6rem;
    margin: 0 0.1rem;
  }
  
  .gift-container {
    height: 100px;
    margin: 0.6rem 0;
  }
  
  .gift-glow {
    width: 120px;
    height: 120px;
  }
  
  .gift-box-image {
    width: 80px;
  }
  
  .floating-cart {
    font-size: 0.9rem;
  }
}

/* Very Small Text for Tiny Screens */
@media (max-width: 350px) {
  .step-text {
    font-size: 0.5rem;
  }
  
  .step-number {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.55rem;
  }
  
  .step-status {
    height: 1.2rem;
  }
  
  .step-connector {
    width: 0.5rem;
  }
}

/* Landscape Mobile - Horizontal Always */
@media (max-height: 600px) {
  .gift-container {
    height: 80px;
    margin: 0.5rem 0;
  }
  
  .gift-glow {
    width: 100px;
    height: 100px;
  }
  
  .gift-box-image {
    width: 70px;
  }
  
  .progress-celebration {
    padding: 0.4rem 0.6rem;
    margin: 0.5rem 0;
  }
  
  .floating-cart {
    font-size: 0.8rem;
  }
}

/* Compact Horizontal Progress Bar */
.progress-celebration {
  margin: 1rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  border: 2px solid #0284c7;
}

.progress-bar-container {
  position: relative;
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #3b82f6 50%, #f59e0b 100%);
  border-radius: 4px;
  width: 33.33%; /* Quiz completed = 1/3 */
  transition: width 0.5s ease;
  animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.8); }
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
}

.step-icon {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

/* Progress Step States */
.progress-step.completed .step-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  animation: checkmark-bounce 0.6s ease-out;
}

.progress-step.current .step-icon {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  animation: current-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.progress-step.upcoming .step-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  animation: gift-anticipation 2s ease-in-out infinite;
}

.progress-step.completed .step-label {
  color: #22c55e;
  font-weight: 700;
}

.progress-step.current .step-label {
  color: #3b82f6;
  font-weight: 700;
}

.progress-step.upcoming .step-label {
  color: #f59e0b;
  font-weight: 600;
}

@keyframes current-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes gift-anticipation {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}

/* Mobile Optimizations */
@media (max-width: 500px) {
  .progress-celebration {
    margin: 0.8rem 0;
    padding: 0.8rem;
  }
  
  .progress-bar {
    height: 6px;
    margin-bottom: 0.8rem;
  }
  
  .step-icon {
    font-size: 1rem;
    width: 1.6rem;
    height: 1.6rem;
    margin-bottom: 0.2rem;
  }
  
  .step-label {
    font-size: 0.65rem;
  }
}

@media (max-width: 400px) {
  .progress-celebration {
    padding: 0.6rem;
  }
  
  .progress-bar {
    height: 5px;
    margin-bottom: 0.6rem;
  }
  
  .step-icon {
    font-size: 0.9rem;
    width: 1.4rem;
    height: 1.4rem;
  }
  
  .step-label {
    font-size: 0.6rem;
  }
}

@media (max-width: 350px) {
  .step-icon {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.8rem;
  }
  
  .step-label {
    font-size: 0.55rem;
  }
}