@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

.logo {
  width: 30px;
  display: flex;
  align-items: center;
}

.logo span {
  font-weight: 900;
  margin-right: 18px;
  font-size: 25px;
}
nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #dee1e3;
  border: solid #c7cbce;
  border-width: 0 0 1px;
  padding: 0 40px;
}

nav ul {
  list-style: none;
  display: flex;
}

body {
  background-color: #f2f4f5;
  color: #393b3d;
}
img {
  width: 100%;
}

ul li {
  margin-left: 30px;
}

.middle {
  width: 70%;
  margin: 10px auto;
  height: 135px;
  background-image: linear-gradient(
      0deg,
      rgba(39, 39, 46, 0.5),
      rgba(39, 39, 46, 0.5)
    ),
    url(../images/bp.jpg);
  background-position: bottom;
  background-size: 100%;
  margin-bottom: 24px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.middle h2 {
  margin-bottom: 10px;
  font-size: 35px;
}
.middle p {
  font-size: 17px;
}

body .para {
  font-size: 10px;
  font-weight: 500;
  margin-top: 50px;
  color: #606162;
  text-align: center;
  width: 100%;
  margin: 50px auto;
}
.box_con {
  margin: 0 auto;
  background-color: #fff;
  min-height: 163px;
  width: 70%;
  font-size: 20px;
  padding: 20px;
  border: solid #c7cbce;
  border-width: 1px 1px 1px;
}
input {
  padding: 11px 15px;
  border: none;
  background: #f2f4f5;
  border-radius: 9px;
  outline: none;
  font-size: 17px;
}

button {
  background: #393b3d;
  outline: none;
  border: none;
  color: #fff;
  padding: 8px 10px;

  border-radius: 5px;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 30px;
}

.box2 {
  display: none;
}

.box3 {
  display: none;
}
.box4 {
  display: none;
}

.container {
  display: flex;
  flex-direction: column;
  background-color: #ffffffbc;
  border-radius: 8px;
}

.row {
  display: flex;
  align-items: center;
  height: 70px;
  justify-content: space-around;
}
.row:not(.row:last-child) {
  border-bottom: 1px solid #bdbebe;
}
.price {
  font-size: 20px;
  font-weight: 700;
}
.robux_total {
  display: flex;
  align-items: center;
}
.details:hover {
  background-color: rgb(226, 226, 226);
}
.pic {
  width: 30px;
  margin-right: 10px;
  pointer-events: none;
  margin-top: 2px;
}
span {
  font-size: 20px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.6);
}
img {
  width: 100%;
}

h3 {
  font-size: 32px;
  margin-bottom: 21px;
}
.details {
  border: 1px solid #b8b8b8;
  border-radius: 8px;
  padding: 5px 8px;
  width: 180px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.folding {
  margin: 20px auto;
  width: 100px;
  height: 100px;
  position: relative;
  transform: rotateZ(45deg);
}

.square {
  position: absolute;
  top: 36%;
  right: 35%;
  width: 30px;
  height: 30px;
  background-color: #fff;
  transform: rotateZ(87deg);
}
.folding .sk-cube {
  float: left;
  width: 50%;
  height: 50%;
  position: relative;
  transform: scale(1.1);
}

.folding .sk-cube:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #333;
  animation: sk-foldCubeAngle 2.4s infinite linear both;
  transform-origin: 100% 100%;
}

.folding .sk-cube2 {
  transform: scale(1.1) rotateZ(90deg);
}

.folding .sk-cube3 {
  transform: scale(1.1) rotateZ(180deg);
}

.folding .sk-cube4 {
  transform: scale(1.1) rotateZ(270deg);
}

.folding .sk-cube2:before {
  animation-delay: 0.3s;
}

.folding .sk-cube3:before {
  animation-delay: 0.6s;
}

.folding .sk-cube4:before {
  animation-delay: 0.9s;
}

@keyframes sk-foldCubeAngle {
  0%,
  10% {
    transform: perspective(140px) rotateX(-180deg);
    opacity: 0;
  }
  25%,
  75% {
    transform: perspective(140px) rotateX(0deg);
    opacity: 1;
  }
  90%,
  100% {
    transform: perspective(140px) rotateY(180deg);
    opacity: 0;
  }
}
@media (max-width: 400px) {
  nav {
    padding: 0 5px;
  }
}

@media (max-width: 1042px) {
  .middle,
  .box_con,
  .para {
    width: 90%;
  }
}

@media (max-width: 750px) {
  .middle,
  .box_con {
    width: 100%;
  }
  .para {
    width: 100%;
  }
  .middle h2 {
    margin-bottom: 10px;
    font-size: 30px;
  }
  .middle p {
    font-size: 13px;
  }
}

@media (max-width: 373px) {
  .logo span {
    display: none;
  }
  nav {
    padding: 0px;
  }
}

@media (max-width: 442px) {

  nav {
    padding: 0px 20px;
  }
}

@media (max-width: 396px) {

  nav {
    padding: 0px 10px;
  }
}

/* ---- Live payouts widget (bottom-right) ---- */
#payout-widget {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 999;
  display: flex;
  gap: 12px;
  align-items: center;
  background-color: #fff;
  border: 1px solid #c7cbce;
  border-radius: 10px;
  padding: 10px 16px 10px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  font-size: 13px;
  max-width: 340px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
#payout-widget.show {
  opacity: 1;
  transform: translateY(0);
}

#payout-widget .payout-pfp {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

#payout-widget .payout-name {
  font-weight: 700;
  white-space: nowrap;
}

#payout-widget .payout-row {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

#payout-widget .payout-rbx {
  width: 13px;
  margin-right: 4px;
}

#payout-widget .payout-amount {
  color: #02b757;
  font-size: 13px;
  font-weight: 800;
  padding: 0;
}

#payout-widget .payout-time {
  color: #8b8d8f;
  font-size: 11px;
  margin-top: 2px;
}

/* Blurred section of the username */
#payout-widget .blur {
  display: inline-block;
  filter: blur(2.6px);
  user-select: none;
  pointer-events: none;
}

/* ---- Offers panel (final step) ---- */
.box5 {
  display: none;
}

.offer-hint {
  font-size: 16px;
}

.offer-status {
  font-size: 13px;
  color: #6d6f71;
}

.offer-status.error {
  color: #c0392b;
}

.offer-row {
  justify-content: flex-start;
  padding: 0 16px;
  gap: 14px;
  cursor: pointer;
  transition: 0.3s;
  height: auto;
  min-height: 70px;
  align-items: center;
}

.offer-row:hover {
  background-color: rgb(226, 226, 226);
}

.offer-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}

.offer-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.offer-row a {
  color: #393b3d;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: left;
}

.offer-row a:hover {
  color: #000;
}

.offer-desc {
  color: #8a8c8e;
  font-size: 12px;
  font-weight: 500;
}

.hot-chip {
  background: #ffe9d6;
  color: #c05b00;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.next-btn {
  background: #393b3d;
  color: #fff;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.offer-complete {
  color: #393b3d;
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  text-align: left;
}

/* ---- incentive elements ---- */
.perks {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #02b757;
}

.bonus-banner {
  margin: 12px auto 0;
  background: #fff7e8;
  border: 1px solid #f3ddb2;
  color: #9a6b1f;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 8px;
  max-width: 440px;
}

.live-counter {
  margin: 12px 0 0;
  font-size: 12px;
  color: #6d6f71;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-counter .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #02b757;
  animation: livePulse 1.6s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.live-counter b {
  color: #02b757;
}

.tip-banner {
  margin-top: 14px;
  font-size: 12px;
  color: #6d6f71;
  text-align: center;
}

/* ---- waiting for offer screen ---- */
.box6 {
  display: none;
  text-align: center;
}

.box6 h3 {
  margin-top: 10px;
}

.box6 .folding {
  width: 80px;
  height: 80px;
  margin: 10px auto 0;
}

.wait-note {
  font-size: 16px;
  font-weight: 600;
}

.wait-progress {
  margin-top: 8px;
  font-size: 14px;
}

.wait-progress b {
  color: #02b757;
}

.wait-desc {
  font-size: 13px;
  color: #6d6f71;
  margin: 10px auto 0;
  max-width: 420px;
}

.wait-timer {
  margin-top: 14px;
  font-size: 14px;
  color: #393b3d;
}

.wait-tips {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #02b757;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #9a9c9e;
}

.step i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c7cbce;
}

.step.open {
  color: #393b3d;
}

.step.open i {
  background: #393b3d;
}

.step.done {
  color: #02b757;
}

.step.done i {
  background: #02b757;
}

.back-to-offers {
  margin-top: 22px;
  background: transparent;
  color: #393b3d;
  border: 1px solid #c7cbce;
  padding: 7px 16px;
  font-size: 12px;
}

.back-to-offers:hover {
  background: #f2f4f5;
}

/* ---- success screen ---- */
.box7 {
  display: none;
  text-align: center;
}

.success-check {
  width: 74px;
  height: 74px;
  margin: 6px auto 4px;
  border-radius: 50%;
  background: #02b757;
  color: #fff;
  font-size: 38px;
  line-height: 74px;
}

.success-line {
  font-size: 17px;
  font-weight: 600;
}

.success-sub {
  font-size: 13px;
  color: #6d6f71;
  margin-top: 8px;
}

/* ---- mobile fixes ---- */
@media (max-width: 600px) {
  .box_con {
    padding: 16px 12px;
  }

  .box_con h3 {
    font-size: 22px;
  }

  .offer-hint {
    font-size: 14px;
  }

  .offer-row {
    padding: 9px 10px;
    gap: 10px;
    min-height: 0;
  }

  .offer-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .offer-row a {
    font-size: 13.5px;
  }

  .offer-desc {
    font-size: 11px;
  }

  .hot-chip {
    font-size: 9px;
    padding: 2px 6px;
  }

  .next-btn {
    padding: 6px 13px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .perks {
    gap: 10px;
    font-size: 11px;
  }

  .bonus-banner {
    font-size: 12px;
    padding: 7px 10px;
  }

  .live-counter {
    font-size: 11px;
  }

  .tip-banner {
    font-size: 11px;
    padding: 0 6px;
  }

  .steps {
    gap: 14px;
  }

  .step {
    font-size: 11px;
  }

  .wait-desc,
  .success-sub {
    font-size: 12px;
    padding: 0 10px;
  }

  /* payout toast goes near full-width so it never overlaps the offers */
  #payout-widget {
    left: 12px;
    right: 12px;
    bottom: 10px;
    max-width: none;
    font-size: 12px;
    padding: 8px 12px 8px 8px;
  }

  #payout-widget .payout-pfp {
    width: 38px;
    height: 38px;
  }

  #payout-widget .blur {
    filter: blur(2.2px);
  }
}
