/* ============================================
   Xummer eSIM – Claims Page Styles
   ============================================ */

/* ── Wrapper & Background ── */
.claims-wrapper {
  background: radial-gradient(circle at 10% 10%, #dcf2ff 0%, #7ecdfd 40%, #46b7fb 100%);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Floating Decor Circles */
.decor-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(8px);
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -100px;
}

.circle-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -150px;
  background: rgba(255, 255, 255, 0.1);
}

.circle-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 10%;
  background: rgba(255, 255, 255, 0.2);
  animation: float 6s ease-in-out infinite;
}

/* Floating Clouds */
.floating-cloud {
  position: absolute;
  opacity: 0.8;
  animation: floatCloud 15s linear infinite;
}

.cloud-a {
  top: 15%;
  left: -5%;
  width: 180px;
}

.cloud-b {
  top: 25%;
  right: -5%;
  width: 220px;
  animation-duration: 20s;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes floatCloud {
  0% {
    transform: translateX(0) translateY(0);
  }

  33% {
    transform: translateX(20px) translateY(-10px);
  }

  66% {
    transform: translateX(-10px) translateY(10px);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

/* ── Ticket Card Design ── */
.claim-ticket {
  border-radius: 32px;
  background: transparent;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.ticket-body {
  border-radius: 32px 32px 0 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}

.ticket-footer {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}

/* Mascot Peeking from top right */
.mascot-peeking {
  position: absolute;
  top: -140px;
  right: -40px;
  width: 240px;
  z-index: 3;
  animation: peekBounce 3s cubic-bezier(0.28, 0.84, 0.42, 1) infinite alternate;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

@media (max-width: 992px) {
  .mascot-peeking {
    width: 200px;
    top: -110px;
    right: -20px;
  }
}

@media (max-width: 768px) {
  .mascot-peeking {
    width: 168px;
    top: -90px;
    right: 0px;
  }

  .perks-row {
    flex-wrap: wrap;
    gap: 15px !important;
  }
}

@media (max-width: 576px) {
  .mascot-peeking {
    width: 112px;
    top: -80px;
    right: 0px;
  }
}


@keyframes peekBounce {
  0% {
    transform: translateY(0) rotate(2deg);
  }

  100% {
    transform: translateY(-15px) rotate(-2deg);
  }
}

/* Ticket Cutouts (Hidden to prevent gradient mismatch) */
.ticket-cutout {
  display: none !important;
}

@media (max-width: 768px) {
  .ticket-cutout {
    display: none;
  }
}


/* ── 闪烁的星星 ── */
.sparkle {
  position: absolute;
  z-index: 20;
  animation: twinkle 3s infinite ease-in-out alternate;
}

.sparkle-1 {
  top: -20px;
  left: 15%;
  width: 24px;
}

.sparkle-2 {
  bottom: 120px;
  left: -30px;
  width: 16px;
  opacity: 0.8;
  animation-delay: 1s;
}

.sparkle-3 {
  top: 40%;
  right: -25px;
  width: 20px;
  opacity: 0.9;
  animation-delay: 0.5s;
}

@keyframes twinkle {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .sparkle-1 {
    left: 5%;
    top: -10px;
  }

  .sparkle-2 {
    left: 10px;
    bottom: 140px;
  }

  .sparkle-3 {
    right: 10px;
  }
}

/* Fallback background if gradient is complex */
.claims-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  z-index: -1;
}

.cutout-left {
  left: -20px;
  box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.05);
}

.cutout-right {
  right: -20px;
  box-shadow: inset 5px 0 10px rgba(0, 0, 0, 0.05);
}

.ticket-dashed-line {
  height: 0;
  border-bottom: 3px dashed #e0e0e0;
  position: relative;
  z-index: 1;
  margin-top: -2px;
}

/* Typography & Badges */
.badge-free {
  background: #FFE5EC;
  color: #FF477E;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: 1px solid #FFC2D1;
}

.fw-black {
  font-weight: 900;
  letter-spacing: -1px;
}

.text-gradient {
  background: linear-gradient(90deg, #FF4B2B 0%, #FF416C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-light-orange {
  background-color: #FFF3E0;
  width: 50px;
  height: 50px;
}

.email-input-group {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.email-input-group:focus-within {
  border-color: var(--orange);
  background-color: #fff !important;
  box-shadow: 0 0 0 4px rgba(255, 123, 0, 0.15) !important;
}

@media (max-width: 575.98px) {
  .email-input-group {
    flex-direction: column;
    border-radius: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
  }

  .email-input-group:focus-within {
    border-color: transparent;
    box-shadow: none !important;
  }

  .email-input-group .input-group-text {
    display: none !important;
  }

  .email-input-group input {
    width: 100% !important;
    /* Override Bootstrap's 1% width for input-group */
    border-radius: 50px !important;
    background-color: #f8f9fa !important;
    margin-bottom: 15px;
    padding: 14px 20px !important;
    text-align: center;
    border: 1px solid #e9ecef !important;
  }

  .email-input-group input:focus {
    background-color: #fff !important;
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 4px rgba(255, 123, 0, 0.15) !important;
  }

  .email-input-group .btn-claim {
    width: 100% !important;
    border-radius: 50px !important;
    padding: 14px !important;
    margin-left: 0 !important;
  }
}


.form-control:focus {
  box-shadow: none;
}

.btn-claim {
  background: linear-gradient(135deg, #FF6A00 0%, #EE0979 100%);
  color: white;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(238, 9, 121, 0.3);
}

.btn-claim:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(238, 9, 121, 0.4);
  color: white;
}

.btn-claim:active {
  transform: translateY(1px);
}

.btn-claim:disabled {
  transform: none;
  opacity: 0.7;
  cursor: not-allowed;
}

.claim-status {
  min-height: 1.25rem;
  font-weight: 600;
}

/* Success Area */
.success-icon-wrapper {
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* App Banner Footer - Centered Badge Style */
.ticket-footer {
  background-color: #fcfdfe !important;
  border-top: 1px solid #f1f5f9;
  flex-direction: column !important;
  padding: 32px 24px !important;
}

.ticket-footer-left {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 12px !important;
  margin-bottom: 8px;
}

.ticket-footer .rounded-4 {
  border-radius: 14px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  flex-shrink: 0;
  width: 60px; /* Slightly larger for centered look */
}

.ticket-footer-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.btn-app-download {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 12px !important;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  flex: 1; /* Equal width buttons */
  max-width: 160px; /* Prevent them from getting too wide on desktop */
  justify-content: center;
}

.btn-app-download:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  color: white;
}

.btn-app-download i {
  font-size: 1.1rem;
}
