@import url('jl-update-base.css');

/* ============================================================
   HALAMAN PROMO (COMPACT PREMIUM UI)
   ============================================================ */
.premium-promo {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 15px;
  background: #f8fafc;
}

.promo-hero {
  text-align: center;
  margin-bottom: 35px;
}

.promo-hero h1 {
  font-weight: 800;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary);
}

.promo-hero p {
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Container */
.modern-vouchers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-items: center;
  max-width: 750px;
  margin: 0 auto;
}

/* Voucher Card */
.voucher {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px -2px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  max-width: 320px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.voucher:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -4px rgba(0, 74, 173, 0.12);
}

/* Ribbon */
.voucher-ribbon {
  position: absolute;
  top: 15px;
  right: -35px;
  background: #ef4444;
  color: #fff;
  padding: 4px 40px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Header */
.voucher-header {
  padding: 25px 20px 20px;
  text-align: center;
  color: #fff;
}

.voucher.bronze .voucher-header { background: linear-gradient(135deg, #b45309, #d97706); }
.voucher.silver .voucher-header { background: linear-gradient(135deg, #64748b, #94a3b8); }
.voucher.gold .voucher-header { background: linear-gradient(135deg, #d97706, #f59e0b); }
.voucher.platinum .voucher-header { background: linear-gradient(135deg, #334155, #64748b); }

.voucher-header i {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.voucher-header .title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.voucher-header .subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Body Content */
.voucher-body-content {
  padding: 20px;
  flex-grow: 1;
}

.details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details li {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.details li i.fa-check-circle { color: #10b981; margin-top: 3px; }
.details li i.fa-times-circle { color: #ef4444; margin-top: 3px; }

/* QR and Code Output */
.qr-code { margin: 12px 0; text-align: center; }
.qr-code img { 
  max-width: 90px; 
  height: auto; 
  border-radius: 8px; 
  border: 1px solid #e2e8f0; 
  padding: 4px; 
  background: #fff; 
  display: inline-block;
}
.code {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: #f1f5f9;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  opacity: 0;
  visibility: hidden;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}
.code.show { opacity: 1; visibility: visible; }

/* Buttons */
.get-voucher-row {
  padding: 0 20px;
}

.btn-glow {
  background: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  width: 100%;
  color: white;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-glow:hover:enabled {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.2);
}
.btn-glow:disabled { opacity: 0.6; cursor: not-allowed; }

/* Username Input */
.modern-input {
  padding: 0 20px;
  display: none;
  position: relative;
  margin-top: 10px;
}
.modern-input input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  outline: none;
  font-size: 0.85rem;
}
.modern-input input:focus { border-color: var(--primary); }
.modern-input .btn-submit {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.error-message {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 4px;
  text-align: center;
}

/* Footer */
.voucher .footer {
  text-align: center;
  padding: 12px;
  margin-top: 12px;
  border-top: 1px dashed #e2e8f0;
  color: #94a3b8;
  font-size: 0.8rem;
}
.voucher .footer i { color: #ef4444; }

/* JavaScript States */
.downloading .details,
.downloading .get-voucher-row,
.downloading .modern-input { display: none !important; }
.downloading .download-details { display: block; }

/* TERMS FOOTER */
.terms-footer {
  width: 100%;
  max-width: 800px;
  margin: 40px auto 20px;
  padding: 24px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px -2px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
}
.terms-footer h2 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 16px;
  text-align: center;
  border-bottom: 2px dashed #e2e8f0;
  padding-bottom: 12px;
}
.terms-footer ul { list-style-type: none; padding-left: 0; margin: 0; }
.terms-footer li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}
.terms-footer li::before {
  content: "•";
  color: var(--accent);
  font-size: 1.2rem;
  position: absolute;
  left: 4px;
  top: -4px;
}
.terms-footer li:last-child { margin-bottom: 0; }

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .premium-promo { padding: 30px 15px; }
  .promo-hero { margin-bottom: 25px; }
  .modern-vouchers { gap: 16px; grid-template-columns: 1fr; }
  .voucher { max-width: 100%; }
  .terms-footer { padding: 20px 15px; margin-top: 30px; }
  .terms-footer h2 { font-size: 1.15rem; }
}
