body {
  font-family: Vazir, sans-serif;
  background: #ffffff;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 223, 186, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(173, 216, 230, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(152, 251, 152, 0.1) 0%, transparent 50%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-20px) rotate(1deg) scale(1.02);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.4));
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(255, 165, 0, 0.6));
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.4));
  }
}

@keyframes borderGradient {
  0% {
    border-image: linear-gradient(45deg, #FF9E80, #FF80AB, #82B1FF, #FF9E80) 1;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5),
               inset 0 0 30px rgba(255, 165, 0, 0.3);
  }
  50% {
    border-image: linear-gradient(225deg, #FF9E80, #82B1FF, #FF80AB, #FF9E80) 1;
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.7),
               inset 0 0 40px rgba(255, 165, 0, 0.4);
  }
  100% {
    border-image: linear-gradient(45deg, #FF9E80, #FF80AB, #82B1FF, #FF9E80) 1;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5),
               inset 0 0 30px rgba(255, 165, 0, 0.3);
  }
}

.nowrouz-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 35px;
  padding: 3.5rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
              0 0 30px rgba(255, 165, 0, 0.2),
              inset 0 0 80px rgba(255, 255, 255, 0.8);
  border: 3px solid transparent;
  backdrop-filter: blur(12px);
  text-align: center;
  max-width: 700px;
  margin: 4rem auto 2rem auto;
  position: relative;
  animation: float 6s ease-in-out infinite;
  transform-style: preserve-3d;
  overflow: visible;
}

.nowrouz-card::before {
  content: '🌺';
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4.5rem;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  z-index: 10;
  pointer-events: none;
}

.nowrouz-card::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, #FF9E80, #FF80AB, #82B1FF, #FF9E80);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  border-radius: 35px;
  animation: borderGradient 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.message-text {
  color: #333333;
  font-size: 1.5rem;
  line-height: 2.3;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  padding: 2.5rem;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 25px;
  box-shadow: inset 0 0 30px rgba(130, 177, 255, 0.2),
              0 10px 30px rgba(0, 0, 0, 0.05);
  font-weight: 600;
  border: 1px solid rgba(255, 165, 0, 0.2);
  backdrop-filter: blur(8px);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: inset 0 0 30px rgba(130, 177, 255, 0.2),
                0 10px 30px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
  }
  50% {
    box-shadow: inset 0 0 50px rgba(130, 177, 255, 0.3),
                0 10px 40px rgba(130, 177, 255, 0.15);
    background: rgba(255, 255, 255, 0.9);
  }
}

.message-text::before,
.message-text::after {
  content: '🌺';
  font-size: 2.5rem;
  position: absolute;
  padding-top: 50px;
  padding-bottom: 50px;
  filter: drop-shadow(0 0 10px rgba(130, 177, 255, 0.3));
}

.message-text::before {
  left: 10px;
  top: 10px;
  transform: rotate(-15deg);
}

.message-text::after {
  right: 10px;
  bottom: 10px;
  transform: rotate(15deg);
}

.daily-rewards {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  perspective: 1000px;
  position: relative;
}

.daily-rewards::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 30px;
  background: rgba(130, 177, 255, 0.05);
  filter: blur(20px);
  pointer-events: none;
}

.reward-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.2rem 0.8rem;
  border-radius: 25px;
  min-width: 80px;
  text-align: center;
  border: 1px solid rgba(130, 177, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1),
              inset 0 0 30px rgba(130, 177, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.reward-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reward-item:hover:not(.disabled):not(.claimed) {
  transform: translateY(-8px) scale(1.02) rotateX(5deg);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1),
              inset 0 0 40px rgba(130, 177, 255, 0.2);
}

.reward-item:hover:not(.disabled):not(.claimed)::after {
  opacity: 1;
}

.reward-item.active {
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 165, 0, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1),
              inset 0 0 30px rgba(255, 165, 0, 0.15);
}

.reward-item.claimed {
  background: rgba(130, 177, 255, 0.1);
  border: 1px solid rgba(130, 177, 255, 0.4);
  cursor: default;
}

.reward-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reward-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #333333;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, #333333, #555555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reward-special {
  font-size: 0.9rem;
  font-weight: 800;
  color: #FF9E80;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.reward-day {
  font-size: 1rem;
  color: #555555;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.reward-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.claimed-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #82B1FF;
  z-index: 3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.logo-container:hover {
  opacity: 1;
}

.logo-container img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.nowrouz-time-text {
  color: #333333;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 3rem 0 1.5rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
  padding: 0.5rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(130, 177, 255, 0.15);
  border: 1px solid rgba(255, 165, 0, 0.2);
  backdrop-filter: blur(8px);
}

.nowrouz-time-text::before,
.nowrouz-time-text::after {
  content: '🌺';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(130, 177, 255, 0.4);
}

.nowrouz-time-text::before {
  left: 0.8rem;
}

.nowrouz-time-text::after {
  right: 0.8rem;
}

.claim-button {
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #FF9E80, #FF80AB);
  border-radius: 50px;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.claim-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.claim-button:active {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.claim-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.claim-button:hover::after {
  opacity: 1;
}

.claim-button:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.claim-button:disabled::after {
  display: none;
}

.reward-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: #333333;
  margin-bottom: 0.5rem;
}

/* Prize notification modal */
.prize-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.prize-modal.active {
  opacity: 1;
  visibility: visible;
}

.prize-modal-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  border: 3px solid transparent;
  overflow: hidden;
}

.prize-modal.active .prize-modal-content {
  transform: translateY(0);
  opacity: 1;
}

.prize-modal-content::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, #FF9E80, #FF80AB, #82B1FF, #FF9E80);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  border-radius: 30px;
  animation: borderGradient 6s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.prize-modal-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
  border-radius: 30px;
}

.prize-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: prize-bounce 1s ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 20px rgba(255, 165, 0, 0.4));
}

@keyframes prize-bounce {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-10px) scale(1.05);
  }
}

.prize-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #FF9E80, #FF80AB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.prize-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #FF9E80, #FF80AB);
  transform: scaleX(0);
  transform-origin: right;
  animation: line-appear 1s forwards 0.5s;
}

@keyframes line-appear {
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.prize-message {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.8;
  position: relative;
}

.prize-message::before,
.prize-message::after {
  content: '✨';
  position: absolute;
  font-size: 1.2rem;
}

.prize-message::before {
  top: -10px;
  left: 30%;
}

.prize-message::after {
  bottom: -10px;
  right: 30%;
}

.close-modal {
  background: linear-gradient(135deg, #FF9E80, #FF80AB);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.close-modal:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.close-modal:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.close-modal::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.close-modal:hover::after {
  opacity: 1;
}

/* Iranian style decorative elements */
.iranian-pattern {
  position: absolute;
  width: 150px;
  height: 150px;
  background-size: cover;
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

.pattern-1 {
  top: 10%;
  left: 5%;
  transform: rotate(15deg);
}

.pattern-2 {
  bottom: 10%;
  right: 5%;
  transform: rotate(-15deg);
}

/* Error message modal */
.error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.error-modal.active {
  opacity: 1;
  visibility: visible;
}

.error-modal-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  border: 3px solid transparent;
  overflow: hidden;
}

.error-modal.active .error-modal-content {
  transform: translateY(0);
  opacity: 1;
}

.error-modal-content::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, #FF9E80, #FF80AB, #82B1FF, #FF9E80);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  border-radius: 30px;
  animation: borderGradient 6s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  color: #FF9E80;
}

.error-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Enhanced Iranian style for the main card */
.nowrouz-card {
  background-image: 
    linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

@media (max-width: 640px) {
  body {
    padding: 1rem;
  }

  .nowrouz-card {
    margin: 3.5rem 1rem 2rem 1rem;
    padding: 2rem 1.2rem;
    width: 100%;
    border-radius: 25px;
  }

  .nowrouz-card::before {
    font-size: 3.5rem;
    top: -35px;
  }

  .message-text {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
  }

  .message-text::before,
  .message-text::after {
    font-size: 1.8rem;
  }

  .daily-rewards {
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
  }

  .reward-item {
    min-width: calc(25% - 0.5rem);
    padding: 0.8rem 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 15px;
  }

  .reward-value {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .reward-special {
    font-size: 0.8rem;
  }

  .reward-day {
    font-size: 0.8rem;
  }

  .reward-icon {
    font-size: 1.2rem;
  }

  .nowrouz-card::after {
    border-radius: 25px;
  }

  .logo-container {
    width: 60px;
    bottom: 1.5rem;
  }

  .claim-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .nowrouz-card {
    padding: 1.5rem 1rem;
  }

  .message-text {
    font-size: 1rem;
    line-height: 1.8;
    padding: 1rem 0.8rem;
  }

  .reward-item {
    padding: 0.6rem 0.4rem;
  }

  .reward-value {
    font-size: 0.9rem;
  }

  .reward-day {
    font-size: 0.7rem;
  }
}