/* Jengan Giveaway Popup */
.jg-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Inter Tight', sans-serif;
}

.jg-popup-overlay.jg-show {
  display: flex;
  animation: jg-fade-in 0.3s ease;
}

@keyframes jg-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.jg-popup-modal {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  animation: jg-pop-in 0.35s ease;
}

@keyframes jg-pop-in {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.jg-popup-left {
  position: relative;
  background: #ffffff;
  padding: 32px 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.jg-popup-left::before {
  content: "WIN WIN\AWIN WIN\AWIN WIN\AWIN WIN\AWIN WIN\AWIN WIN\AWIN WIN";
  position: absolute;
  inset: 0;
  white-space: pre;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 2px #ff6a00;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  pointer-events: none;
}

.jg-popup-left img {
  position: relative;
  z-index: 2;
  max-width: 85%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18));
}

.jg-popup-right {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.jg-popup-title {
  font-size: 34px;
  font-weight: 900;
  color: #111;
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.jg-popup-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jg-popup-disclaimer {
  font-size: 11px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 14px;
}

.jg-popup-disclaimer a {
  color: #111;
  text-decoration: underline;
}

.jg-popup-rules {
  text-align: center;
  margin: 8px 0 14px;
}

.jg-popup-rules-title {
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  color: #111;
  margin: 0 0 4px;
}

.jg-popup-rules-sub {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.jg-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.jg-popup-form input,
.jg-popup-form select {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  font-family: inherit;
  color: #111;
  background: #fff;
  outline: none;
  transition: border 0.2s;
  box-sizing: border-box;
}

.jg-popup-form input:focus,
.jg-popup-form select:focus {
  border-color: #ff6a00;
}

.jg-popup-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.jg-popup-submit {
  margin-top: 6px;
  width: 100%;
  padding: 16px;
  background: #ff6a00;
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  font-family: inherit;
}

.jg-popup-submit:hover {
  background: #e35d00;
}

.jg-popup-submit small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
  opacity: 0.95;
}

.jg-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: #efefef;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.jg-popup-close:hover {
  background: #ddd;
}

.jg-popup-thanks {
  text-align: center;
  padding: 20px 0;
}

.jg-popup-thanks h3 {
  font-size: 24px;
  font-weight: 900;
  color: #ff6a00;
  margin: 0 0 8px;
}

.jg-popup-thanks p {
  font-size: 14px;
  color: #333;
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .jg-popup-modal {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .jg-popup-left {
    min-height: 200px;
    padding: 20px;
  }
  .jg-popup-left::before {
    font-size: 38px;
  }
  .jg-popup-left img {
    max-width: 60%;
    max-height: 180px;
  }
  .jg-popup-right {
    padding: 24px 20px;
  }
  .jg-popup-title {
    font-size: 26px;
  }
}
