/* ===== Base ===== */
.winds { margin: 10px 7px 30px; }
::-webkit-scrollbar { display: none; }

.item {
  position: absolute;
  pointer-events: none;
  width: 30px;
  height: 30px;
}

.container-item {
  position: fixed;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

p {
  font-size: 20px;
  letter-spacing: 1px;
  margin: 4px;
  color: #fff;
  text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000, 1px 0 0 #000,
               1px 1px 0 #000, 0 1px 0 #000, -1px 1px 0 #000, -1px 0 0 #000;
}

h2 {
  font-weight: inherit;
  text-transform: uppercase;
  color: #fec006;
  text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000, 1px 0 0 #000,
               1px 1px 0 #000, 0 1px 0 #000, -1px 1px 0 #000, -1px 0 0 #000;
}

h3 {
  font-size: medium;
  font-weight: inherit;
  text-transform: uppercase;
  color: #fff;
  text-shadow: -1.5px -1.5px 0 #000, 0 -1.5px 0 #000, 1.5px -1.5px 0 #000, 1.5px 0 0 #000,
               1.5px 1.5px 0 #000, 0 1.5px 0 #000, -1.5px 1.5px 0 #000, -1.5px 0 0 #000;
}

.hidden { display: none; }

.julyMbg {
  pointer-events: none;
  background: url("img/main-bg.jpg") no-repeat center center;
  background-size: cover;
  background-blend-mode: overlay;
  height: 100%;
  position: fixed;
  width: 100%;
  z-index: -1;
}

body {
  font-family: "Lilita One", "Luckiest Guy", Roboto, sans-serif, Arial Black;
  font-weight: bold;
  background: #00000082;
  text-align: -webkit-center;
  width: 100%;
  overflow-y: scroll;
  margin: auto;
}

.title-header {
  padding: 20px;
  margin: 0 auto;
  text-align: center;
  animation: scale-up 0.5s ease-out forwards;
}

.image-header {
  max-width: 100%;
  padding: 20px 0 0 0;
  margin: 0 auto;
  text-align: center;
  animation: scale-up 0.5s ease-out forwards;
}

.image-header .logo-img {
  height: 0;
  width: 100%;
  background-position: center center;
  padding-top: 28.06%;
  background-image: url("img/logo.png");
  background-repeat: no-repeat;
  background-size: cover;
  animation: shake 3s ease-in-out 3s infinite;
  margin: auto;
}

/* ===== Windows (panels) ===== */
.username-window,
.connecting-window,
.offers-window {
  border-radius: 30px;
  background-color: #ece7db;
  border: 3px solid #fec006;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto 30px;
  text-align: center;
  animation: green-glow 2s ease-in-out infinite;
  transform-origin: center;
}

.username-window { animation: scale-up .5s ease-out forwards, green-glow 2s ease-in-out infinite; }
.connecting-window { min-height: 300px; animation: bounce-in .5s ease-out forwards, green-glow 2s ease-in-out infinite; }
.offers-window { animation: bounce-in .6s ease-out forwards, green-glow 2s ease-in-out infinite; padding-bottom: 25px; }

/* ===== Input ===== */
.input-container { position: relative; width: 90%; margin: auto; }
.icon { width: 20px; height: 20px; position: absolute; left: 10px; top: 10px; }
input[type=text] {
  border-radius: 15px;
  background: #00000063;
  color: #ffffffcf;
  border: 1.5px solid #181717;
  font-family: inherit;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgb(0 0 0);
  text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000, 1px 0 0 #000,
               1px 1px 0 #000, 0 1px 0 #000, -1px 1px 0 #000, -1px 0 0 #000;
}
input::placeholder { color: #fff; }
input[type=text]:focus { outline: none; border-color: #00ff30; box-shadow: 0 0 10px #00ff30; }
input[type=text].error { border-color: red; animation: error-shake 0.5s; }

/* ===== Devices ===== */
.select-devices { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.device-icons { display: flex; flex-wrap: wrap; justify-content: center; max-width: 400px; }
.device-btn {
  border: 1.5px solid #fec006;
  background-color: #e4e0df;
  border-radius: 30px;
  width: 100px;
  height: 100px;
  padding: 5px;
  margin: 5px 10px;
  box-shadow: 0 0 10px rgb(0 0 0);
  transition: all 0.3s ease-in-out;
  font-family: inherit;
}
.device-btn:hover { cursor: pointer; transform: scale(1.1); }
.device-btn i { width: 40px; height: 40px; margin-top: 10px; display: block; margin-left: auto; margin-right: auto; }
.device-btn span {
  font-size: 15px; color: #fff; margin-top: 10px; display: block;
  text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000, 1px 0 0 #000,
               1px 1px 0 #000, 0 1px 0 #000, -1px 1px 0 #000, -1px 0 0 #000;
}
.button-overlay {
  border-radius: 28px;
  background-color: #fec006;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Buttons ===== */
.button {
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 2px;
  border-radius: 15px;
  text-transform: uppercase;
  text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000, 1px 0 0 #000,
               1px 1px 0 #000, 0 1px 0 #000, -1px 1px 0 #000, -1px 0 0 #000;
  background-color: #fec006;
  color: white;
  padding: 10px 35px;
  margin: 10px;
  border: 3px solid #fff;
  box-shadow: 0 0 5px rgb(0 0 0);
  cursor: pointer;
  max-width: 60%;
}
.button:hover { background-color: #ffcf3f; }
.button:disabled { opacity: .6; cursor: not-allowed; }

/* ===== Progress ===== */
#progress {
  width: 80%; height: 25px; background-color: #00000063;
  position: relative; margin: 30px auto; border-radius: 15px;
  overflow: hidden; border: 2px solid #181717;
  box-shadow: 0 0 5px rgb(0 0 0 / 50%); max-width: 400px;
}
#bar {
  width: 0%; height: 100%; background-color: #4CAF50;
  position: absolute; top: 0; left: 0;
  transition: width 3s; border-radius: 15px;
  border: 3px solid #ffffff26;
}

/* ===== Info ships ===== */
.infosShip {
  position: relative;
  background: #0000004f;
  width: fit-content;
  max-width: 70%;
  margin: 15px auto;
  padding: 10px 10px 1px;
  border-radius: 15px;
  min-width: 40px;
}
.user-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ===== Connected device icon slot ===== */
.connected-device-value { width: 20px; height: 20px; margin: 5px auto 0; }

/* ===== Offers section ===== */
.offers-sub {
  color: #fff;
  font-size: 15px;
  margin: 8px auto 20px;
  max-width: 480px;
  text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000, 1px 0 0 #000,
               1px 1px 0 #000, 0 1px 0 #000, -1px 1px 0 #000, -1px 0 0 #000;
}

.offer-state {
  background: #0000003d;
  border: 1.5px solid #181717;
  border-radius: 20px;
  padding: 30px 20px;
  margin: 15px auto;
  max-width: 420px;
}
.offer-state-icon { font-size: 40px; margin-bottom: 10px; }
.offer-state-title { color: #fec006; font-size: 20px; margin-bottom: 6px; text-transform: uppercase; }
.offer-state-text { color: #fff; font-size: 15px; }

/* Offer list */
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px auto;
  max-width: 500px;
}

.offer-card {
  background: linear-gradient(to bottom, #fec006 0%, #ffcf3f 100%);
  border: 3px solid #141414;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 3px 3px 0px rgb(0 0 0 / 40%), 0 0 12px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform .15s;
}
.offer-card:hover { transform: translateY(-3px); }
.offer-card.featured {
  border-color: #ff2d2d;
  box-shadow: 3px 3px 0px rgb(0 0 0 / 40%), 0 0 20px #ff2d2d99;
}

.offer-card .offer-icon {
  font-size: 36px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 #000;
}

.offer-card .offer-title {
  font-size: 18px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: -1.5px -1.5px 0 #000, 0 -1.5px 0 #000, 1.5px -1.5px 0 #000, 1.5px 0 0 #000,
               1.5px 1.5px 0 #000, 0 1.5px 0 #000, -1.5px 1.5px 0 #000, -1.5px 0 0 #000;
  text-align: center;
  margin: 0;
}

.offer-card .offer-desc {
  color: #1a1a1a;
  font-size: 14px;
  text-shadow: none;
  text-align: center;
  margin: 0;
  line-height: 1.35;
  max-width: 90%;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.offer-badge {
  background: #141414;
  color: #fec006;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.offer-payout {
  background: #ff2d2d;
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.offer-cta {
  display: inline-block;
  background: #ff2d2d;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000, 1px 0 0 #000,
               1px 1px 0 #000, 0 1px 0 #000, -1px 1px 0 #000, -1px 0 0 #000;
  padding: 10px 25px;
  border-radius: 15px;
  border: 2.5px solid #141414;
  box-shadow: 3px 3px 0 #141414;
  transition: transform .12s;
  min-width: 160px;
  text-align: center;
  margin-top: 4px;
}
.offer-cta:hover { transform: scale(1.05); background: #ff5555; }
.offer-cta:active { transform: scale(.97) translate(2px,2px); box-shadow: 1px 1px 0 #141414; }

.disclosure {
  color: #ffffffb0;
  font-size: 11px;
  max-width: 480px;
  margin: 18px auto 0;
  text-shadow: none;
  letter-spacing: .3px;
  line-height: 1.4;
}

/* ===== Spinner / check ===== */
.loading-spinner {
  width: 40px; height: 40px;
  border: 6px solid #0000004a;
  border-top: 6px dotted #fec006;
  border-radius: 50%;
  animation: spin 1.5s ease-out infinite;
}
.check-icon-circle {
  width: 50px; height: 50px; border-radius: 50%;
  background-color: #4CAF50; display: flex;
  align-items: center; justify-content: center;
  animation: check 1s infinite;
}
.center-horizontal { margin: 0 auto; }
.check-icon { color: white; font-size: 30px; font-weight: bold; }

/* ===== Icon images ===== */
.item-img  { background-image: url("img/item.png"); background-repeat: no-repeat; background-size: cover; }
.user-ic-img { background-image: url("img/user.png"); background-repeat: no-repeat; background-size: cover; width: 20px; height: 20px; }
.android-ic-img { background-image: url("img/android.png"); background-repeat: no-repeat; background-size: cover; }
.ios-ic-img { background-image: url("img/ios.png"); background-repeat: no-repeat; background-size: cover; }
.gear-ic-img { background-image: url("img/gear.png"); background-repeat: no-repeat; background-size: cover; }
.error-ic-img { background-image: url("img/error.png"); background-repeat: no-repeat; background-size: cover; }

/* ===== Animations ===== */
@keyframes scale-up { 0% { transform: scale(.8);} 100% { transform: scale(1);} }
@keyframes error-shake {
  0%,100% { transform: translateX(0);}
  10%,90% { transform: translateX(-10px);}
  30%,70% { transform: translateX(10px);}
  50% { transform: translateX(-10px);}
  60% { transform: translateX(10px);}
  80% { transform: translateX(-10px);}
}
@keyframes shake {
  0%,40%,100% { transform: rotate(0);}
  10% { transform: rotate(-5deg);}
  20% { transform: rotate(5deg);}
  30% { transform: rotate(-5deg);}
}
@keyframes bounce-in {
  0% { transform: scale(.1); opacity: 0;}
  60% { transform: scale(1.2); opacity: 1;}
  100% { transform: scale(1);}
}
@keyframes spin { 100% { transform: rotate(360deg);} }
@keyframes check { 0%,100% { transform: scale(1);} 50% { transform: scale(1.2);} }
@keyframes green-glow {
  0%   { box-shadow: 0 0 5px #fec006; }
  50%  { box-shadow: 0 0 30px #fec006; }
  100% { box-shadow: 0 0 5px #fec006; }
}

/* ===== Responsive ===== */
@media screen and (min-width: 660px) {
  .image-header { max-width: 450px; }
  .input-container { width: 60%; }
  #progress { width: 60%; }
  .offer-list { max-width: 560px; }
}