:root {
  --shopee-orange: #EE4D2D;
  --light-orange: #FFF1EE;
  --light-gray: #f7f8fa;
  --text-primary: #2c3e50;
  --text-secondary: #576574;
  --border-color: #e8e8e8;
  --green-start: #2ecc71;
  --green-end: #28a745;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-gray);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  background-color: var(--white);
  min-height: 100vh;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--white);
  border-bottom: 1px solid #d7d7d7;
  box-shadow: 0px 7px 22px -5px rgba(0, 0, 0, 0.179);
}

.logo-full {
  height: 32px;
}

.balance-container {
  background-color: var(--shopee-orange);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.3);
}

.main-content {
  padding: 25px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.product-card {
  width: 100%;
  border-radius: 16px;
  background-color: var(--light-orange);
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

#product-image {
  max-width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
}

.questions-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 35px;
}

.question-block p {
  text-align: center;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.5;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.option-btn {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background-color: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.option-btn:hover {
  border-color: var(--shopee-orange);
  color: var(--shopee-orange);
}

.option-btn.active {
  background-color: var(--shopee-orange);
  border-color: var(--shopee-orange);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.25);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 30px;
  background-image: linear-gradient(45deg, var(--green-start), var(--green-end));
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
  transition: all 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  background-image: none;
  background-color: #bdc3c7;
}

.hidden {
  display: none;
}

#loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: var(--shopee-orange);
  border-radius: 50%;
  animation: dot-animation 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
  animation-delay: -0.32s;
}

.dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes dot-animation {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1.0);
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--white);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.show .modal-box {
  transform: scale(1);
}

.modal-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px auto;
  background-color: var(--green-start);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
}

.modal-box h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-box p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.modal-box p span {
  font-weight: 700;
  color: var(--text-primary);
}

.modal-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background-color: var(--shopee-orange);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, opacity 0.3s;
}

.modal-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.final-modal-logo {
  height: 35px;
  margin-bottom: 20px;
}

.final-modal-title {
  color: var(--shopee-orange);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

#final-modal-text-gain {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.final-modal-text-instruction {
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.final-modal-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 25px;
  padding: 16px;
}

#watch-screen {
  padding: 20px;
  text-align: center;
}

.watch-title {
  font-size: 1.378rem;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 25px;
}

.watch-title span {
  color: var(--shopee-orange);
}

.container-video {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 25px;
  overflow: hidden;
}

.watch-footer {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}


@media (min-width: 768px) {
  .container {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    min-height: auto;
  }

  .watch-title {
    font-size: 1.8rem;
  }

  .watch-footer {
    font-size: 1.1rem;
  }
}