/* 🎯 Modal Styling */
.stylish-result-modal {
  background: #1c1c1c;
  background-size: cover;
  position: relative;
  border: none;
  border-radius: 20px;
  padding: 25px; /* reduced from 30px */
  max-width: 850px; /* reduced from 1200px */
  margin: 20px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 🏆 Golden Headings */
/* 🏆 Stylish Heading */
.golden-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffd700, #ffffff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 3s linear infinite;
  background-size: 200%;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}


/* 🌟 Subheading */
.golden-subtext {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
  color: #fff8c3;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(255, 255, 150, 0.2);
  margin-bottom: 20px;
}


/* 📦 Modal Width */
#resultModal .modal-dialog {
  max-width: 850px; /* was 95vw */
  margin: 30px auto;
}
#resultModal .modal-content.stylish-result-modal {
  max-width: 850px; /* was 1200px */
  padding: 25px; /* was 30px */
  margin: 20px auto;
}

/* 🧾 Grid Layout */
.stylish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px 30px; /* reduced gap */
  padding: 20px; /* reduced padding */
  justify-content: center;
}

/* 📄 Result Card */
.result-card {
  background: #fff;
  border-radius: 22px;
  padding: 20px 15px; /* reduced padding */
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  max-width: 280px; /* reduced width */
  width: 100%;
  position: relative;
}
.result-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* 🖼️ Logo */
.result-card img {
  width: 160px; /* slightly smaller */
  height: auto;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
  max-width: 100%;
}
.result-card:hover img {
  transform: scale(1.1);
}

/* 🔢 Lottery Number */
.result-card .lottery-number {
  font-size: 1rem;
  color: #444;
  margin-bottom: 8px;
}

/* 💰 Winning Amount */
.result-card .winning-amount {
  font-family: 'Noto Sans', 'Segoe UI Symbol', 'Arial Unicode MS', 'Roboto', sans-serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: #28a745;
  margin-bottom: 14px;
}

/* 💬 WhatsApp Button */
.result-card .whatsapp-btn {
  background-color: #25d366;
  color: white;
  padding: 9px 16px;
  font-size: 13.5px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.result-card .whatsapp-btn:hover {
  background-color: #1ebe57;
}

/* 🧩 Result Container Layout */
#resultContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
/* ❌ Stylish Close Button */
.btn-close-custom {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  background: none;
  border: none;
  z-index: 1051;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, color 0.3s ease;
}

.btn-close-custom:hover {
  color: #ffd700;
  transform: scale(1.3);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

.stylish-result-modal {
  position: relative;
  background: #1c1c1c;
  border: none;
  border-radius: 20px;
  padding: 25px;
  max-width: 850px;
  margin: 20px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden; /* Important for clean edge */
}

.stylish-result-modal {
  background: repeating-linear-gradient(45deg, #1c1c1c, #1c1c1c 10px, #202020 10px, #202020 20px);
  border: 2px solid gold;
  border-radius: 22px;
  padding: 25px;
  max-width: 850px;
  margin: 20px auto;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  overflow: hidden;
}
@keyframes goldShimmer {
  0% {
    background-position: -100%;
  }
  100% {
    background-position: 200%;
  }
}
.whatsapp-btn {
  background: linear-gradient(90deg, #25d366, #128C7E);
  color: white;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.4);
  transition: all 0.3s ease;
  line-height: 1.2;
}
.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(18, 140, 126, 0.5);
  background: linear-gradient(90deg, #128C7E, #25d366);
}
/* 📦 Not Found Modal Styling */
.not-found-modal {
  background-color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  max-width: 420px;
  margin: auto;
  font-family: 'Poppins', sans-serif;
  border: 2px solid #f44336;
}

/* 🅇 Stylish Close */
.btn-close-custom {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #888;
  background: none;
  border: none;
  z-index: 1;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, color 0.3s ease;
}
.btn-close-custom:hover {
  color: #f44336;
  transform: scale(1.2);
}

/* 🟥 Styled Not Found Modal */
.not-found-modal {
  background-color: #fff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.2); /* subtle red */
  max-width: 420px;
  margin: auto;
  position: relative;
}

/* ❌ Close Button (custom) */
.btn-close-custom {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #888;
  background: none;
  border: none;
  z-index: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.btn-close-custom:hover {
  color: #f44336;
  transform: scale(1.3);
}

/* 🟥 Styled Not Found Modal */
.not-found-modal {
  background-color: #fff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.2); /* subtle red */
  max-width: 420px;
  margin: auto;
  position: relative;
}

/* ❌ Close Button (custom) */
.btn-close-custom {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #888;
  background: none;
  border: none;
  z-index: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.btn-close-custom:hover {
  color: #f44336;
  transform: scale(1.3);
}

/* 🟥 Styled Not Found Modal */
.not-found-modal {
  background-color: #fff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.2); /* subtle red */
  max-width: 420px;
  margin: auto;
  position: relative;
}

/* ❌ Close Button (custom) */
.btn-close-custom {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #888;
  background: none;
  border: none;
  z-index: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.btn-close-custom:hover {
  color: #f44336;
  transform: scale(1.3);
}

/* 🔴 Heading */
.modal-heading {
  font-weight: 600;
  font-size: 1.25rem;
}

/* 📄 Message Text */
.modal-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink {
  50% { border-color: transparent }
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid #f44336;
  white-space: nowrap;
  width: 0;
  animation: typing 2.5s steps(30, end) forwards, blink 0.75s step-end infinite;
}

/* 1) एक लाइन फोース करना (अब_WRAP नहीं) */
.golden-text {
  white-space: nowrap;       /* line-break बिलकुल नहीं */
  overflow: hidden;          /* overflow चुपचाप छुपा देगा */
  /* word-break/overflow-wrap अब जरूरी नहीं */
}

/* 2) मोबाइल पर और भी छोटा फ़ॉन्ट */ 
@media (max-width: 480px) {
  /* क्लैंप की min/max कम करके vw वैल्यू घटा दी */
  .golden-text {
    font-size: clamp(1rem, 5vw, 1.8rem) !important;
    line-height: 1.1;       /* tight कर दो ताकि ऊँचाई भी ठीक रहे */
  }

  /* padding भी थोड़ी कम कर लो */
  #resultModal .modal-content.stylish-result-modal {
    padding: 15px 12px !important;
  }
}
