:root {
  --bg-color: #f4f7fa;
  --card-bg: #d8e2ff;
  --navy: #171b20;
  --btn-blue: #3a5aff;
  --btn-dark-blue: #2a48df;
  --illustration-blue: #3a5aff;
  --illustration-dark: #000428;
  --white: #ffffff;
  --accent-primary: #3646e8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Rubik", sans-serif;
  background-color: #000000 !important;
  color: var(--navy);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.container {
  width: 100%;
  max-width: 376px;
  min-height: 100vh;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px; /* Increased gap between main sections */
  padding: 40px 20px;
  position: relative;
}

.main-title {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
}

.gift-card {
  background-color: var(--card-bg);
  width: 298px;
  border-radius: 17.3px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(10, 0, 92, 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  padding: 24px 24px 0 24px;
}

.card-body {
  padding: 20px 35px 0 24px;
}

.message {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  line-height: 20px;
  margin-bottom: 17px;
}

.sender-info {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-row {
  font-size: 11px;
  font-weight: 500;
  line-height: 20px;
}

.info-row span {
  font-weight: 500;
}

.illustration-container {
  width: 100%;
  position: relative;
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
}

.mosque-img {
  width: 100%;
  height: auto;
  display: block;
}

.icon-star-large {
  position: absolute;
  top: 5%;
  right: 5%;
  z-index: 5;
}

.star-illust {
  position: absolute;
  z-index: 5;
}

.star-left {
  top: 30%;
  left: 6%;
}

.star-center {
  top: 8%;
  left: 45%;
}

/* Footer Section */
.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-msg {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.cta-button {
  background:
    linear-gradient(
      121deg,
      rgba(255, 255, 255, 0) 42.04%,
      rgba(255, 255, 255, 0.12) 56.71%,
      rgba(255, 255, 255, 0) 71.39%
    ),
    var(--accent-primary, #3646e8);
  border: 1.636px solid #fff;
  border-radius: 34.909px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-decoration: none; /* remove underline for anchor tag */
}

.cta-button:hover {
  transform: scale(1.02);
}

.btn-text {
  color: #fff;
  text-align: right;
  font-family: Rubik;
  font-size: 17.455px;
  font-style: normal;
  font-weight: 500;
  line-height: 30.545px;
}

.btn-icon svg {
  margin-top: 4px;
}

/* Responsiveness */
@media (max-width: 480px) {
  .container {
    padding: 10px;
    max-width: 100%;
  }

  .main-title {
    font-size: 20px;
  }

  .message {
    font-size: 14px;
  }
}

/* Skeleton Loading Animation */
.skeleton {
  background: #e0e0e0;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  color: transparent !important;
  border-radius: 4px;
  user-select: none;
}

.skeleton * {
  visibility: hidden;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
