html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-feature-settings: normal;
  font-variation-settings: normal;
}

body {
  background: #f8f7fa;
  color: #1d1d1f;
}

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

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

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

#page-container {
  padding: 0;
}

.header-wrapper {
  background: #232F3E;
  padding: 20px 30px 72px;
  position: relative;
}

.header {
  color: #fff;
  margin: 0 auto;
  max-width: 760px;
  padding: 4px 0 0;
  text-align: center;
  width: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  font-family: "Amazon Ember", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  margin-bottom: 22px;
}

.brand-logo .brand-earn {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.brand-logo .brand-prime {
  color: #00A8E1;
  font-size: 24px;
  font-weight: 800;
  position: relative;
}

.brand-logo .brand-prime::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 5px;
  background: #FF9900;
  border-radius: 0 0 6px 6px;
  transform: skewX(-12deg) scaleY(0.6);
  opacity: 0.95;
}

.brand-logo .brand-wifi {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.header h1 {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 auto 12px;
  max-width: 660px;
}

.header h1 span {
  color: #FF9900;
}

.header p {
  color: #f4f4f5;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.main-wrapper {
  background: #fff;
  border-radius: 25px 25px 0 0;
  margin-top: -50px;
  padding: 30px;
  position: relative;
  z-index: 3;
}

.chatbot-bot-name {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.chatbot-is-online {
  display: inline-flex;
  position: relative;
  color: #3f3f46;
  font-size: 15px;
}

.chatbot-is-online span.circle {
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 16px;
  display: inline-flex;
  position: relative;
  margin-right: 10px;
  top: 4px;
}

.chatbot-is-online span.circle.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  position: absolute;
}

#chatbox-app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0 30px;
}

#chatbox-content .chatbox {
  margin-bottom: 8px;
}

.chatbox {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  row-gap: 8px;
  padding-left: 44px;
  padding-right: 44px;
}

.chatbox.bot-reply {
  justify-content: flex-start;
  align-items: flex-start;
}

.chatbox.user-reply {
  justify-content: flex-start;
  align-items: flex-end;
  align-content: flex-end;
}

.chatbox.bot-reply::after {
  width: 32px;
  height: 32px;
  border-radius: 100%;
  background: url(callcenter-1.jpg) no-repeat center;
  background-size: 100%;
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 4px;
}

.chatbox.user-reply::after {
  width: 32px;
  height: 32px;
  border-radius: 100%;
  background: url(profile.png) no-repeat center;
  background-size: 100%;
  content: "";
  display: block;
  position: absolute;
  right: 0;
  bottom: 4px;
}

.chatbox-message {
  padding: 12px;
  background: #f3f4f6;
  border: 1px solid #e5e5e5;
  display: inline-flex;
  border-radius: 10px;
  min-height: 48px;
  min-width: 48px;
  flex-wrap: wrap;
  row-gap: 8px;
  max-width: 100%;
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.45;
}

.chatbox-message strong {
  color: #C7511F;
}

.chatbox-message.btns {
  column-gap: 8px;
}

.chatbox-message.btns-row {
  display: inline-flex;
  flex-direction: column;
  row-gap: 8px;
  width: 100%;
}

.chatbox-message.btns-row .chat-button {
  min-width: 100%;
}

.chatbox.user-reply .chatbox-message {
  background: #FF9900;
  border-color: #E47911;
  color: #0F1111;
  font-weight: 700;
}

.question-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 4px;
  width: 100%;
}

.chatbox-message.reply {
  min-width: 58px;
  align-items: flex-end;
  justify-content: center;
}

.chatbox-message.reply span {
  width: 8px;
  height: 8px;
  display: inline-flex;
  background: #a7a7a7;
  border-radius: 8px;
  margin-right: 3px;
  animation: typing 1s infinite;
}

.chatbox-message.reply span:last-of-type {
  margin-right: 0;
}

.chat-button,
.quiz-results-cta {
  font-family: inherit;
  background: #FF9900;
  border: 1px solid #E47911;
  border-radius: 9999px;
  padding: 14px 24px;
  font-weight: 800;
  color: #0F1111;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.chat-button:hover,
.quiz-results-cta:hover {
  background: #E47911;
}

.chat-button:active,
.quiz-results-cta:active {
  transform: scale(0.99);
}

.quiz-panel {
  animation: quizFade 0.35s ease;
  margin: 26px auto 0;
  padding: 24px 18px;
  background: #fff;
  border: 1px solid #FFE0B3;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 17, 17, 0.08);
}

.quiz-panel h2 {
  color: #1d1d1f;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px;
  text-align: center;
}

.quiz-panel h2 span {
  color: #A14017;
}

.quiz-panel p {
  color: #555;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.quiz-loading-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #FEF6E6;
  color: #C7511F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
}

.quiz-loading-stats {
  background: #f8f7fa;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0 20px;
}

.quiz-loading-stat {
  font-size: 15px;
  color: #1d1d1f;
  padding: 6px 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.quiz-loading-stat.visible {
  opacity: 1;
  transform: translateX(0);
}

.quiz-loading-stat strong {
  color: #C7511F;
  font-weight: 700;
}

.quiz-loading-stat .check,
.quiz-profile-row .check {
  color: #16a34a;
  font-weight: 800;
  margin-left: 4px;
}

.quiz-progress {
  height: 6px;
  background: #FEF6E6;
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: #FF9900;
  border-radius: 999px;
  transition: width 0.12s linear;
}

.quiz-loading-pct {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #C7511F;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}

.quiz-results-center {
  text-align: center;
}

.quiz-results-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #86efac;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}

.quiz-results h2,
.quiz-results p {
  text-align: left;
}

.quiz-daily-card {
  background: linear-gradient(180deg, #FFF8E8 0%, #FFE5B8 100%);
  border: 1.5px solid #FFE0B3;
  border-radius: 14px;
  padding: 22px 18px;
  margin: 18px 0;
  text-align: center;
}

.quiz-daily-label {
  font-size: 11px;
  font-weight: 700;
  color: #8B3A12;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.quiz-daily-amount {
  font-size: 48px;
  font-weight: 900;
  color: #A14017;
  line-height: 1.05;
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}

.quiz-daily-meta,
.quiz-mini-label {
  font-size: 14px;
  color: #3f3f46;
}

.quiz-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.quiz-mini-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}

.quiz-mini-amount {
  font-size: 24px;
  font-weight: 800;
  color: #C7511F;
  line-height: 1.1;
}

.quiz-profile {
  background: #f8f7fa;
  border: 1px solid #FFE0B3;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 18px 0;
}

.quiz-profile-title {
  font-size: 11px;
  font-weight: 700;
  color: #C7511F;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.quiz-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 15px;
}

.quiz-profile-row .label {
  color: #555;
}

.quiz-profile-row .val {
  color: #1d1d1f;
  font-weight: 700;
  text-align: right;
}

.quiz-profile-row .val.high {
  color: #C7511F;
}

.quiz-social {
  background: #FFF8E8;
  border-left: 4px solid #FF9900;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  font-size: 14px;
  color: #1d1d1f;
  line-height: 1.5;
  margin: 16px 0;
}

.quiz-social strong {
  color: #C7511F;
}

.quiz-expiry-label {
  text-align: center;
  font-size: 13px;
  color: #595959;
  margin: 18px 0 4px;
}

.quiz-expiry-time {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #B45309;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}

.quiz-vsl-thumb {
  position: relative;
  display: block;
  margin: 18px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  text-decoration: none;
}

.quiz-vsl-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.quiz-vsl-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.quiz-vsl-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 153, 0, 0.95);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.quiz-vsl-play svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  margin-left: 4px;
}

.quiz-vsl-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 2;
  white-space: nowrap;
}

.quiz-results-cta {
  border-radius: 12px;
  display: block;
  font-size: 18px;
  line-height: 1.3;
  padding: 18px;
  width: 100%;
}

.quiz-disclaimer {
  color: #70757a !important;
  font-size: 12px !important;
  margin: 10px 0 0 !important;
  text-align: center !important;
}

.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #A14017;
  color: #fff;
  padding: 18px 20px;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #C7511F;
}

.mobile-sticky-bar.force-show {
  display: none;
}

@media only screen and (max-width: 767px) {
  body {
    padding-bottom: 76px;
  }

  .header-wrapper {
    padding: 14px 12px 64px;
  }

  .brand-logo {
    margin-bottom: 16px;
  }

  .header h1 {
    font-size: 22px;
    line-height: 1.25;
  }

  .header p {
    font-size: 14px;
  }

  .main-wrapper {
    padding: 15px 13px 24px;
  }

  #chatbox-app {
    max-width: 100%;
  }

  .chatbox {
    padding-left: 40px;
    padding-right: 40px;
  }

  .chatbox-message {
    font-size: 14px;
    padding: 11px;
  }

  .question-title {
    font-size: 15px;
  }

  .chat-button {
    font-size: 15px;
    padding: 13px 16px;
    white-space: normal;
  }

  .quiz-panel {
    padding: 22px 14px;
  }

  .quiz-panel h2 {
    font-size: 22px;
  }

  .quiz-daily-amount {
    font-size: 42px;
  }

  .quiz-mini-amount {
    font-size: 20px;
  }

  .quiz-vsl-play {
    width: 66px;
    height: 66px;
  }

  .quiz-vsl-play svg {
    width: 26px;
    height: 26px;
  }

  .mobile-sticky-bar.force-show {
    display: flex;
  }
}
