@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;500;600;700;800&family=SF+Pro+Text:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 100% !important; /* 🔥 MOBILE FIX */
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  display: flex;
  flex-direction: column; /* 🔥 FIXED */
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 10px; /* 🔥 REDUCED */
  overflow-x: hidden;
  margin: 0; /* 🔥 ADDED */
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   PHONE CONTAINER
========================= */
.phone {
  width: 100%;
  max-width: 430px;
  min-height: 95vh;
  max-height: 100vh; /* 🔥 ADDED */
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.15);
  overflow: hidden; /* 🔥 ENSURED */
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0; /* 🔥 ADDED */
}

/* =========================
   HEADER
========================= */
.header {
  height: 220px;
  background: linear-gradient(
    135deg,
    #6fd4ff 0%,
    #4299e1 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  border-bottom-right-radius: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 12px 40px rgba(111, 212, 255, 0.4);
  flex-shrink: 0;
  padding: 0 10px; /* 🔥 ADDED */
  box-sizing: border-box; /* 🔥 ADDED */
}

.logo {
  width: 115px;
  height: 115px;
  object-fit: contain;
  margin: auto;
  position: relative;
  top: 10px;
  right: 8px;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8))
    drop-shadow(0 6px 24px rgba(255, 255, 255, 0.6));
  animation: logoGlow 2.5s infinite ease-in-out;
}

@keyframes logoGlow {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  }

  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
  }
}

/* =========================
   STEPS
========================= */
.step {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step.active {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content {
  padding: 48px 32px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================
   TITLE
========================= */
.title {
  margin-bottom: 8px;
  color: #1e293b;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

/* =========================
   INPUT
========================= */
.input-group {
  position: relative;
  margin-bottom: 45px;
}

input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #d1d5db;
  padding: 20px 0 8px;
  font-size: 18px;
  outline: none;
  background: transparent;
  transition: all 0.3s ease;
}

input:focus {
  border-bottom-color: #3b82f6;
  padding-bottom: 12px;
}

/* =========================
   LOGIN INFO
========================= */
.login-info {
  font-size: 13px;
  color: #ef4444;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-weight: 500;
}

.login-info.show {
  opacity: 1 !important;
  visibility: visible !important;
}

/* =========================
   BUTTONS
========================= */
.forgot {
  display: block;
  margin-bottom: 32px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

.forgot:hover {
  color: #1d4ed8;
}

.btn,
.btn-claim {
  width: 100%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn {
  height: 56px;
  border-radius: 28px;
  background: linear-gradient(145deg, #f1f5f9, #f8fafc);
  color: #64748b;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.btn:hover {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* =========================
   ✨ KLAIM PREMIUM ULTRA-MEWAH ✨
========================= */
.claim-container {
  text-align: center;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: linear-gradient(145deg, #1e1b4b 0%, #0f172a 50%, #1e293b 100%);
  border-radius: 32px;
  margin: 24px;
  padding: 60px 40px;
  box-shadow: 
    0 40px 100px rgba(30, 27, 75, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.claim-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ffed4a, #10b981, #ffd700);
  background-size: 300% 100%;
  animation: shimmer 3s linear infinite;
  z-index: 3;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.claim-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.claim-badge {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #1e1b4b;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 
    0 12px 32px rgba(255, 215, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 4;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.claim-container h2 {
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  z-index: 4;
  letter-spacing: -0.02em;
}

.claim-container p {
  color: #cbd5e1;
  font-size: 17px;
  font-weight: 500;
  max-width: 280px;
  line-height: 1.5;
  z-index: 4;
  margin: 0;
}

.claim-amount {
  font-size: 72px;
  font-weight: 900;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 24px 0 32px;
  text-shadow: 0 0 60px rgba(16, 185, 129, 0.6);
  z-index: 4;
  animation: amountGlow 2.5s ease-in-out infinite alternate;
  position: relative;
}

@keyframes amountGlow {
  from { 
    filter: drop-shadow(0 0 24px rgba(16, 185, 129, 0.6));
    transform: scale(1);
  }
  to { 
    filter: drop-shadow(0 0 48px rgba(16, 185, 129, 0.9));
    transform: scale(1.02);
  }
}

.btn-claim {
  padding: 24px 48px;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffd700 0%, #ffed4a 50%, #fbbf24 100%);
  color: #1e1b4b;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 
    0 20px 50px rgba(255, 215, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(251, 191, 36, 0.3);
  position: relative;
  z-index: 4;
  border: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-claim:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 
    0 32px 80px rgba(255, 215, 0, 0.7),
    0 12px 32px rgba(0, 0, 0, 0.3);
}

.btn-claim:active {
  transform: translateY(-3px) scale(1.01);
}

/* =========================
   ✅ FORM REKENING BARU - TAMBAHAN
========================= */
.rekening-input {
  margin: 20px 0 !important;
}

.rekening-input input {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px 24px !important;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rekening-input input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.rekening-input input:focus {
  border-color: #ffd700;
  box-shadow: 
    0 0 0 4px rgba(255, 215, 0, 0.2),
    0 12px 40px rgba(255, 215, 0, 0.3);
  background: rgba(255, 255, 255, 0.25);
}

#rekeningInfo {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.2);
  padding: 12px 20px;
  border-radius: 12px;
  border-left: 4px solid #10b981;
  font-weight: 600;
  opacity: 1 !important;
  visibility: visible !important;
}

.btn-back {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  font-weight: 700;
  margin-top: 16px !important;
  padding: 18px 24px !important;
}

.btn-back:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2)) !important;
  transform: translateY(-2px);
}

/* =========================
   REGISTER
========================= */
.register {
  margin-top: auto;
  text-align: center;
  padding: 16px 0;
  font-size: 14px;
}

.register a {
  color: #3b82f6;
  font-weight: 700;
  text-decoration: none;
}

/* =========================
   SERVICES
========================= */
.services-title {
  margin: 24px 0 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #374151;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.service {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.service:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

/* =========================
   SLIDER
========================= */
.slider {
  margin-top: 24px;
  height: 180px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active-slide {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 24px 20px 20px;
}

.caption h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.caption p {
  font-size: 13px;
  opacity: 0.9;
}

/* =========================
   OVERLAY
========================= */
.overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
}

.loading-box,
.success-box {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 48px 32px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(16, 185, 129, 0.4);
  max-width: 90%;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   MODAL
========================= */
.modal-approve {
  background: white;
  padding: 36px 28px;
  border-radius: 24px;
  text-align: center;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
}

.modal-approve img {
  width: 100%;
  max-width: 260px;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 16px;
  border-radius: 14px;
}

.timer {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 16px 24px;
  border-radius: 32px;
  font-weight: 800;
  font-size: 22px;
  margin-top: 24px;
}

/* =========================
   TESTIMONIAL
========================= */
.testimonial-section {
  margin-top: 25px;
  padding: 18px 15px;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.15),
    rgba(0, 0, 0, 0.5)
  );
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 15px;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 10px;
  color: #fff;
  height: 100%;
}

.testimonial-slide.active {
  display: block;
}

.winner-photo {
  width: 55px;
  height: 55px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 3px solid #ffd700;
}

.stars {
  color: #ffd700;
  font-size: 16px;
  margin-bottom: 10px;
}

/* =========================
   MOBILE FIX UTAMA 🔥
========================= */
@media (max-width: 500px) {
  body {
    padding: 5px !important;
  }
  
  .phone {
    border-radius: 20px;
    margin: 0 !important;
    width: 100vw !important;
    max-width: none !important;
  }
  
  .content {
    padding: 32px 20px 28px !important;
  }
  
  .claim-container {
    margin: 12px !important;
    padding: 40px 24px !important;
  }
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}