/* ==========================================================
   Referral Welcome Modal
========================================================== */

.referral-modal-overlay {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.55);

  display: flex;

  justify-content: center;

  align-items: center;

  z-index: 5000;

  opacity: 0;

  visibility: hidden;

  transition: 0.3s;

  padding: 20px;
}

.referral-modal-overlay.show {
  opacity: 1;

  visibility: visible;
}

.referral-modal {
  position: relative;

  width: 100%;

  max-width: 460px;

  background: #fff;

  border-radius: 24px;

  padding: 35px 30px;

  text-align: center;

  transform: translateY(20px) scale(0.95);

  transition: 0.3s;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.referral-modal-overlay.show .referral-modal {
  transform: translateY(0) scale(1);
}

.close-referral-modal {
  position: absolute;

  top: 15px;

  right: 15px;

  width: 36px;

  height: 36px;

  border: none;

  background: #f5f5f5;

  border-radius: 50%;

  cursor: pointer;

  transition: 0.25s;
}

.close-referral-modal:hover {
  background: #eee;
}

.close-referral-modal i {
  color: #666;
}

/* ==========================================================
   Reward Circle
========================================================== */

.reward-circle {
  display: flex;

  justify-content: center;

  margin-bottom: 25px;
}

.reward-circle-inner {
  width: 150px;

  height: 150px;

  border-radius: 50%;

  background: linear-gradient(135deg, #f7b733, #fc8f00);

  color: #fff;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  box-shadow: 0 12px 30px rgba(252, 143, 0, 0.35);
}

.reward-circle i {
  font-size: 2rem;

  margin-bottom: 8px;
}

.reward-circle h2 {
  font-size: 2rem;

  margin-bottom: 3px;
}

.reward-circle span {
  font-size: 0.85rem;
}

/* ==========================================================
   Content
========================================================== */

.modal-content-area h2 {
  font-size: 1.8rem;

  color: #222;

  margin-bottom: 12px;
}

.modal-content-area p {
  color: #666;

  line-height: 1.8;

  margin-bottom: 30px;
}

/* ==========================================================
   Input
========================================================== */

.modal-input-group {
  position: relative;

  margin-bottom: 22px;
}

.modal-input-group input {
  width: 100%;

  height: 52px;

  border: 1px solid #ddd;

  border-radius: 12px;

  padding: 0 18px;

  outline: none;

  font-size: 1rem;

  transition: 0.25s;
}

.modal-input-group input:focus {
  border-color: #f48c06;

  box-shadow: 0 0 0 4px rgba(244, 140, 6, 0.15);
}

.input-error-msg {
  position: absolute;

  left: 6px;

  bottom: -20px;

  font-size: 13px;

  color: #e53935;

  opacity: 0;
}

/* ==========================================================
   Buttons
========================================================== */

.claim-btn {
  width: 100%;

  height: 52px;

  border: none;

  border-radius: 12px;

  background: linear-gradient(135deg, #f7b733, #fc8f00);

  color: #fff;

  font-weight: 600;

  cursor: pointer;

  transition: 0.25s;
}

.claim-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 20px rgba(252, 143, 0, 0.28);
}

.claim-btn i {
  margin-right: 8px;
}

.skip-btn {
  background: none;

  border: none;

  color: #777;

  margin-top: 20px;

  cursor: pointer;

  transition: 0.25s;
}

.skip-btn:hover {
  color: #222;
}

.referral-modal small {
  display: block;

  margin-top: 20px;

  color: #999;

  line-height: 1.6;
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 480px) {
  .referral-modal {
    padding: 30px 22px;
  }

  .reward-circle-inner {
    width: 125px;

    height: 125px;
  }

  .reward-circle h2 {
    font-size: 1.7rem;
  }

  .modal-content-area h2 {
    font-size: 1.5rem;
  }
}

/* /////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* ==========================================================
   Reward Modal Overlay
========================================================== */

.reward-modal-overlay {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.55);

  display: flex;

  justify-content: center;

  align-items: center;

  z-index: 6000;

  opacity: 0;

  visibility: hidden;

  transition: 0.35s;

  padding: 20px;
}

.reward-modal-overlay.show {
  opacity: 1;

  visibility: visible;
}

/* ==========================================================
   Reward Modal
========================================================== */

.reward-modal {
  width: 100%;

  max-width: 500px;

  background: #fff;

  border-radius: 24px;

  overflow: hidden;

  transform: translateY(20px) scale(0.92);

  transition: 0.35s;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.reward-modal-overlay.show .reward-modal {
  transform: translateY(0) scale(1);
}

/* ==========================================================
   Header
========================================================== */

.reward-header {
  padding: 35px 35px 25px;

  text-align: center;

  background: linear-gradient(135deg, #fff6e9, #fff);
}

.reward-header h2 {
  font-size: 2rem;

  color: #222;

  margin-top: 18px;

  margin-bottom: 12px;
}

.reward-header p {
  color: #666;

  line-height: 1.8;

  margin: 0;
}

/* ==========================================================
   Celebration Icon
========================================================== */

.reward-icon {
  width: 95px;

  height: 95px;

  margin: auto;

  border-radius: 50%;

  background: linear-gradient(135deg, #f7b733, #fc8f00);

  display: flex;

  justify-content: center;

  align-items: center;

  color: #fff;

  box-shadow: 0 12px 28px rgba(252, 143, 0, 0.3);

  animation: rewardBounce 0.8s ease;
}

.reward-icon i {
  font-size: 2.6rem;
}

/* ==========================================================
   Reward List
========================================================== */

.reward-list {
  padding: 0 30px;

  display: flex;

  flex-direction: column;

  gap: 18px;
}

/* ==========================================================
   Reward Card
========================================================== */

.reward-card {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 18px;

  border-radius: 18px;

  background: #fafafa;

  border: 1px solid #ececec;

  transition: 0.25s;
}

.reward-card:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}

.reward-card-left {
  display: flex;

  align-items: center;

  gap: 15px;
}

.reward-card-right {
  text-align: right;
}

/* ==========================================================
   Reward Badge
========================================================== */

.reward-badge {
  width: 55px;

  height: 55px;

  border-radius: 16px;

  display: flex;

  justify-content: center;

  align-items: center;

  color: #fff;

  flex-shrink: 0;
}

.reward-badge.signup {
  background: linear-gradient(135deg, #f7b733, #fc8f00);
}

.reward-badge.referral {
  background: linear-gradient(135deg, #2fa94f, #39c96b);
}

.reward-badge i {
  font-size: 1.35rem;
}

/* ==========================================================
   Reward Text
========================================================== */

.reward-card-left h4 {
  color: #222;

  margin-bottom: 4px;

  font-size: 1rem;
}

.reward-card-left small {
  color: #777;
}

.reward-card-right span {
  display: block;

  font-size: 1.45rem;

  font-weight: 700;

  color: #f48c06;
}

.reward-card-right small {
  color: #888;
}

/* ==========================================================
   Total Reward
========================================================== */

.reward-total {
  margin: 30px;

  padding: 22px;

  border-radius: 18px;

  background: linear-gradient(135deg, #fff6e7, #fffdf8);

  border: 1px solid #ffe3b5;

  text-align: center;
}

.reward-total small {
  display: block;

  color: #888;

  margin-bottom: 8px;

  font-size: 0.9rem;
}

.reward-total h2 {
  color: #f48c06;

  font-size: 2rem;

  font-weight: 700;

  margin-bottom: 8px;
}

.reward-total p {
  color: #555;

  font-size: 1rem;

  margin: 0;

  font-weight: 500;
}

/* ==========================================================
   Footer
========================================================== */

.reward-footer {
  padding: 0 30px 30px;
}

/* ==========================================================
   Start Shopping Button
========================================================== */

.reward-btn {
  width: 100%;

  height: 54px;

  border: none;

  border-radius: 14px;

  cursor: pointer;

  font-size: 1rem;

  font-weight: 600;

  color: #fff;

  background: linear-gradient(135deg, #f7b733, #fc8f00);

  transition: 0.25s;
}

.reward-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 12px 25px rgba(252, 143, 0, 0.28);
}

.reward-btn:active {
  transform: scale(0.98);
}

.reward-btn i {
  margin-right: 8px;
}

/* ==========================================================
   Reward Modal Animation
========================================================== */

@keyframes rewardBounce {
  0% {
    transform: scale(0.6);

    opacity: 0;
  }

  60% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);

    opacity: 1;
  }
}

.reward-card {
  animation: rewardFade 0.45s ease;
}

.reward-card:nth-child(2) {
  animation-delay: 0.08s;
}

.reward-card:nth-child(3) {
  animation-delay: 0.15s;
}

@keyframes rewardFade {
  from {
    opacity: 0;

    transform: translateY(18px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 576px) {
  .reward-modal {
    border-radius: 20px;
  }

  .reward-header {
    padding: 28px 22px 20px;
  }

  .reward-header h2 {
    font-size: 1.6rem;
  }

  .reward-header p {
    font-size: 0.92rem;
  }

  .reward-icon {
    width: 78px;

    height: 78px;
  }

  .reward-icon i {
    font-size: 2rem;
  }

  .reward-list {
    padding: 0 18px;
  }

  .reward-card {
    padding: 14px;
  }

  .reward-badge {
    width: 48px;

    height: 48px;

    border-radius: 14px;
  }

  .reward-card-left {
    gap: 12px;
  }

  .reward-card-left h4 {
    font-size: 0.95rem;
  }

  .reward-card-left small {
    font-size: 0.8rem;
  }

  .reward-card-right span {
    font-size: 1.2rem;
  }

  .reward-total {
    margin: 20px 18px;

    padding: 18px;
  }

  .reward-total h2 {
    font-size: 1.6rem;
  }

  .reward-footer {
    padding: 0 18px 22px;
  }
}

/* ==========================================================
   Nice Pop Effect
========================================================== */

.reward-modal-overlay.show .reward-modal {
  animation: rewardPop 0.35s ease;
}

@keyframes rewardPop {
  0% {
    transform: scale(0.85);
  }

  60% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}


