  
 #resSearchBox {
  position: relative;
  z-index: 2;
}
  .motivation-card p,
  .motivation-card li,.motivation-card4 p,
  .motivation-card4 li ,.motivation-card5 p,
  .motivation-card5 li  {
    color: #37474F; /* Stylish dark bluish-gray */
  }

  .motivation-card5 h3 , .motivation-card h2 { color:#dc2626;}


@media (max-width:768px){
  .shayari-btn {
    position: static;
    margin-left: 10px;
    display: none;
    font-size: 12px;
    padding: 4px 10px;
  }
  .resBtn{
    position: static;
    margin-left: 50px;
    font-size: 12px;
    padding: 4px 10px;
  }

}
.card {
  background: linear-gradient(145deg, #ffffff, #f3f3f3);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.card h3 {
  font-size: 1.2rem;
  color: #053bf0;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.9rem;
  color: #e40c0c;
  font-family:Arial, Helvetica, sans-serif;
  font-style:italic;
   font-weight: bold;
  }

.card:hover{
  background: linear-gradient(145deg, #3a3b3b, #4c4c4d);
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(68, 68, 68, 0.3);
  color: #ffffff;
}

.card:hover img {
  transform: rotate(10deg) scale(1.1);
}

/* Full-screen animation */
.card.expand {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  z-index: 9999;
  background: linear-gradient(145deg, #000000, #444444);
  transition: all 0.5s ease-in-out;
}

   #startupOverlay {
      position: fixed;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;
        background-color: rgba(255, 255, 255, 0.0); /* Full transparent */
  backdrop-filter: blur(5px); /* Blur the background */
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.5s ease;
    }

    #startupOverlay.fade-out {
      opacity: 0;
      pointer-events: none;
    }

    /* 🔄 Spinner Wrapper with Centered Logo */
    .spinner-wrapper {
      position: relative;
      width: 100px;
      height: 100px;
    }

    .spinner {
      width: 100px;
      height: 100px;
      border: 6px solid #eee;
      border-top: 6px solid #ff6600;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    .logo {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 50px;
      height: 50px;
      transform: translate(-50%, -50%);
      border-radius: 50%;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
/* सारी <input> को readable बनाओ */
.search input{
  padding:8px;
  border:none;
  border-radius:6px;
  width:220px;

  /* ⬇️ दो नई प्रॉपर्टी—टाइप किया टेक्स्ट दिखेगा */
  background:#ffffff;   /* सफ़ेद बैकग्राउ-ंड रहने दें */
  color:#000000;        /* काला टेक्स्ट, अब दिखेगा */
}


    /* Install Popup Modal */
    #installModal {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.9);
      background: white;
      border-radius: 12px;
      padding: 20px 30px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 15px;
      animation: popupIn 0.4s ease-out forwards;
      z-index: 999;
    }

    @keyframes popupIn {
      from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
      }
      to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
      }
    }

    #installBtn {
      background: #000000;
      
      color: white;
      border: none;
      padding: 12px 20px;
      font-size: 16px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    #installModal h2,
#installModal p {
  color: #000;
}

    #installBtn:hover {
      background: #3e3efd;
      transform: scale(1.05);
    }
.footer-tabs {
  display: none;
}
    #closeModal {
      background: transparent;
      color: #555;
      font-size: 20px;
      border: none;
      cursor: pointer;
      position: absolute;
      top: 8px;
      right: 12px;
    }
    

    #installIcon {
      width: 60px;
      animation: bounce 1.2s infinite;
    }

    @keyframes bounce {
      0%, 100% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(-10px);
      }
    }
   .footer {
  text-align: center;
  padding: 15px 10px;
  background-color: #1f2937; /* dark grey */
  color: #fff;
  font-size: 14px;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 999;
}  

.nav{margin-top:10px}
.nav a{margin-right:12px;color:var(--accent);text-decoration:none;font-weight:600}
.card{background:var(--card);padding:18px;border-radius:10px;margin-top:18px;box-shadow:0 8px 30px rgba(18,38,63,0.04)}

.social-links {
  margin-top: 10px;
}

.social-links a {
  margin: 0 8px;
  display: inline-block;
  transition: transform 0.3s;
}
.fixed-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 9999;
  }
.social-links img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
}

.social-links a:hover {
  transform: scale(1.2);
}
 .trig{padding:8px 20px;margin-top: 20px; background:#ffa726;border:none;border-radius:30px;font-size:17px;cursor:pointer;transition:transform .15s}
.trig:hover{transform:translateY(-2px)} .trig:active{transform:scale(.95)}
#notifOverlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);justify-content:center;align-items:center;z-index:1000}
#notifPanel{width:90%;max-width:700px;max-height:85vh;overflow-y:auto;background:#fff;padding:20px;border-radius:14px;box-shadow:0 8px 32px rgba(0,0,0,.3)}
#notifPanel h3{margin-bottom:12px}
.notif-card{display:flex;gap:12px;margin-bottom:12px;border-bottom:1px solid #eee;padding-bottom:10px;animation:fade .3s ease}
@keyframes fade{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.notif-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover}
.notif-title{font-weight:600;margin-bottom:2px;text-align:left}
.notif-time{font-size:12px;color:gray;margin-top:4px;text-align:left}



*{margin:0;padding:0;box-sizing:border-box}
body {padding-bottom: 100px;  font-family:"Segoe UI",sans-serif;background:linear-gradient(-45deg,#1e3a8a,#4338ca,#10b981,#67eb5b,#4fe215,#e6f51e,#e9c528,#f16f05,#ff0404);background-size:400% 400%;animation:bg 15s ease infinite;color:#fff;min-height:100vh;overflow-x:hidden}
@keyframes bg{0%{background-position:0 50%}50%{background-position:100% 50%}100%{background-position:0 50%}}
header{background:#1e40af;display:flex;align-items:center;justify-content:space-between;padding:12px 20px;box-shadow:0 2px 8px rgba(0,0,0,.3);position:relative}
.brand{display:flex;align-items:center;gap:10px;border-radius:50%;}.logo-img{width:60px;height:60px;background: #77c0e2;border-radius:50%;object-fit:cover ;box-shadow:0 0 0 2px #baccf1 }.icon-img{width:40px;height:40px;right: 40px;border-radius:50%;object-fit:cover }
.brand-text h1{font-size:22px}.brand-text span{font-size:12px;opacity:.8}
nav a{color:#fff;margin-top: 200px; margin-left:16px; text-decoration:none} nav a:hover{text-decoration:underline}
.profile-btn{position:absolute;top:90px;right:15px;width:42px;height:42px;border-radius:50%;overflow:hidden;cursor:pointer;box-shadow:0 0 0 2px #fff}
.profile-btn img{width:100%;height:100%;object-fit:cover}
 .shayari-btn{position:absolute;top:95px;right:80px;display: none; background:#facc15;color:#000;padding:6px 14px;border-radius:20px;font-weight:700;font-size:14px;cursor:pointer}
.resBtn{position:absolute;top:95px;right:60px;background:#facc15;color:#000;padding:6px 14px;border-radius:20px;font-weight:700;font-size:14px;cursor:pointer}
.quiz-card {
  width: 110px;             /* 2px chhota than normal 112px */
  height: 110px;
  padding: 10px;
  margin: 10px;
  background: #fff;
  border: 2px solid #10b981;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  text-align: center;
  transition: 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.quiz-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.quiz-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.quiz-card span {
  font-size: 14px;
  font-weight: 600;
  color: #10b981;
}

.welcome{text-align:center; margin:60px 20px 30px}
.welcome h2{font-size:36px;animation:fadeIn 3.3s; color: #dc2626; }.welcome p{font-size:18px;margin-top:8px;opacity:.85; color: #000000;}
@keyframes fadeIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.card-grid,.grid{display:flex;flex-wrap:wrap;justify-content:center;gap:26px;padding:20px}
.card,.sm-card,.res-card{ background:#fcfeff;color:#1e3a8a;text-align:center;cursor:pointer;box-shadow:0 8px 25px rgba(0,0,0,.25);transform:translateY(22px);opacity:0;animation:rise .7s forwards}
.card{padding:24px;width:240px;border-radius:14px}.sm-card{padding:18px;width:150px;border-radius:12px}.res-card{padding:16px;width:200px;border-radius:12px}
.res-card{padding:30px;width:350px;border-radius:12px}

.status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  animation: fadePulse 1.5s infinite alternate;
}

.status-badge.active {
  background: rgba(8, 204, 14, 0.9); /* Green */
}

.status-badge.coming {
  background: rgba(219, 133, 4, 0.9); /* Orange */
}

.card {
  position: relative; /* Important for absolute positioning */
  overflow: hidden;
}

@keyframes fadePulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}



.tick-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 2px solid #4caf50;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tick-btn svg {
  width: 20px;
  height: 20px;
}

.tick-btn circle {
  fill: none;
  stroke: #4caf50;
  stroke-width: 28px;
  stroke-dasharray: 88;
  stroke-dashoffset: 88;
  transition: stroke-dashoffset 3s ease; /* slow fill */
}

.tick-btn path {
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.4s ease 2.6s; /* tick after fill */
}

.tick-btn.completed circle {
  stroke-dashoffset: 0;
}

.tick-btn.completed path {
  stroke-dashoffset: 0;
}

#completePopup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #4caf50;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#completePopup.show {
  opacity: 1;
}


.card img,.sm-card img{width:70px;height:70px;margin-bottom:14px}.sm-card img{width:52px;height:52px;margin-bottom:10px}.res-card img{width:100%;height:110px;object-fit:cover;border-radius:8px;margin-bottom:10px}
.res-card img{width:300px;height:160px;margin-bottom:14px}
.card h3{font-size:18px;margin-bottom:4px}.card p{font-size:14px;opacity:.75}
.sm-card h4{font-size:15px}.res-card h5{font-size:14px;line-height:1.3;font-weight:600}
@keyframes rise{to{opacity:1;transform:translateY(0)}}
.live-card{background:#f97316;color:#fff}.live-card img{filter:brightness(0) invert(1)}
.step{padding:38px 20px;text-align:center}.step h2{font-size:28px;color:#0bac05; margin-bottom:26px}.hidden{display:none}
.back-btn{background:#1e3a8a;color:#fff;border:none;padding:10px 30px;border-radius:6px;cursor:pointer;margin-bottom:30px;margin-right:800px }
.search{display:flex;justify-content:center;gap:10px;margin-bottom:18px}.search input{padding:8px;border:none;border-radius:6px;width:100%;max-width: 600px; height:50px; }.search button{padding:8px 14px;border:none;background:#10b981;color:#fff;font-weight:600;border-radius:6px;cursor:pointer}
#shayariModal{position:fixed;inset:0;display:none;justify-content:center;align-items:center;background:rgba(0,0,0,.55)}
.modal{background:#fff;color:#1e3a8a;padding:28px 26px;border-radius:14px;max-width:380px;text-align:center;box-shadow:0 6px 18px rgba(0,0,0,.35)}.modal h3{margin-bottom:12px}.modal button{margin-top:18px;padding:6px 16px;border:none;background:#1e40af;color:#fff;border-radius:8px;cursor:pointer}
@keyframes shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(2px)}30%,50%,70%{transform:translateX(-4px)}40%,60%{transform:translateX(4px)}}.shake{animation:shake .5s}
/* profile - */
#profileModal{position:fixed;inset:0;display:none;justify-content:center;align-items:center;background:rgba(0,0,0,.55)}
.profileBox{background:#fff;color:#1e3a8a;padding:26px 24px;border-radius:14px;max-width:340px;width:92%;text-align:center;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.profileBox h4{margin:6px 0 14px} .profileBox button{margin-top:18px;padding:6px 16px;border:none;background:#dc2626;color:#fff;border-radius:8px;cursor:pointer}
/* 1️⃣  tablet & portrait phones  */
@media (max-width:768px){
  /* header icons अब flow में — absolute हटाओ */
  .profile-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .trig{padding:5px 12px;margin-top: 20px; background:#ffa726;border:none;border-radius:30px;font-size:17px;cursor:pointer;transition:transform .15s}
  .youtube-btn {
    position: absolute;
    top: 130px;
    display: flex;
    right: 15px;

    align-items: center;
  }
  .shayari-btn {
  position: absolute;
  top: 140px;
  right: 10px;
  display: none;
  background: #facc15;
  color: #000000;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
  .resBtn {
  position: absolute;
  top: 140px;
  right: 20px;
  background: #facc15;
  color: #000000;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

 /* HEADER को reference बना दें  */
  header{
    position: relative;height: 130px;       /* इससे nav का top, header के हिसाब से लगेगा */
  }

  /* 2️⃣ — NAV को जहाँ चाहें वहाँ रखें  */
  .nav{
    position: absolute;  /* header के अन्दर बिल्कुल‑सटीक place होगा */
    top: 110px;                /* जितना नीचे चाहें उतना px बढा‑घटा लें */
                  /* बीच में रखने के लिए */
    transform: translateX(-50%);
    
    display: flex;
    gap: 12px;
  }

  /* 3️⃣ — लिंक के individual margin हटा दें  */
  .nav a{
    margin-left: 0;     /* .a वाला margin‑top 40px भी हटा दें */
  }

  header{ flex-wrap:wrap; padding:10px; }

  /* back-button को auto-margin */
  .back-btn{ margin:18px auto; }

  /* card sizes */
  .card{ width:180px; padding:18px; }
  .sm-card{ width:190px; padding:18px; }
  .welcome h2{ font-size:28px; }
  .welcome p{ font-size:15px; }
}

/* 2️⃣  small phones  */
@media (max-width: 500px) {
 body {padding-bottom: 100px; padding-top: 80px; font-family:"Segoe UI",sans-serif;background:linear-gradient(-45deg,#ffffff,#b4b2c5,#eef1f0,#d8e2d8);background-size:400% 400%;animation:bg 15s ease infinite;color:#fff;min-height:100vh;overflow-x:hidden}
  header {
    display: f;
    align-items: center;
    justify-content: space-between;
    background: #e0dfdf;
    color: #000;
    border-bottom: 2px solid #000;
    padding: 10px 16px;
    position: fixed;
    top: 0;
 height: 80px;
    width: 100%;
    z-index: 999;
  }

  .header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
  }
.trig {display: none;}
  .header-icons input {
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 20px;
    background: #f3f3f3;
    width: 100%;
    font-size: 15px;
    font-style: italic;
  }

  .header-icons img,
  .header-icons span {
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 50%;
  }

  /* Footer for Mobile */
  .footer-mobile {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    color: #000;
    display: flex;
    justify-content: space-around;
    border-top: 2px solid #000;
    padding: 10px 0;
    font-size: 13px;
    z-index: 999;
  }
.nav a{ display: none;}
  .footer-mobile div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #000;
    cursor: pointer;
  }

  .footer-mobile img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }

  .footer-mobile .active {
    background: #ccf2d7;
    border-radius: 12px;
    padding: 4px 8px;
  }

  /* Fixed Popup Buttons inside footer */
  .footer-buttons {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 60px;
    right: 10px;
    gap: 8px;
    z-index: 1000;
  }

  .footer-buttons button {
    background-color: #ffffff;
    color: #000;
    border: 1px solid #000;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
  }

  /* Popups */
  .popup-box {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 10px;
    display: none;
    z-index: 1001;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  }

  .popup-box a {
    display: inline-block;
    margin: 6px;
    text-decoration: none;
    color: #000;
  }
.welcome h2{font-size:36px;color: #db0202; animation:fadeIn 1.8s}.welcome p{font-size:18px;color: #000000; margin-top:8px;opacity:.85}
  .popup-box img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
  }

  .popup-header {
    font-weight: bold;
    margin-bottom: 8px;
  }

  .lock-btn {
    float: right;
    cursor: pointer;
    font-size: 18px;
  }

  /* Suggestions */
  #suggestions {
    position: absolute;
    top: 60px;
    left: 10px;
    background: #fff;
    color: #000;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #000;
    display: none;
    z-index: 1000;
  }
  footer {
  display: none !important;
}
 .footer-tabs {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #000;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
  }

  .footer-tabs .tab-item {
    display: flex;
    flex-direction: column;
    align-item: center;
    font-size: 12px;
    color: #000;
    text-decoration: none;
  }

  .footer-tabs .tab-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }

  .footer-tabs .tab-item.active {
    background: #ccf2d7;
    border-radius: 12px;
    padding: 6px 10px;
  }
    .fixed-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display:none ;
    gap: 10px;
    z-index: 9999;
  }
  
} 

/* Bottom-right buttons */
  
  
  .popup-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 10px #ff9800a2;
    font-size: 14px;
  }

  /* Popup style */
  .popup-box {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: white;
    border: 2px solid #ff9800;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
    min-width: 250px;
  }

  .popup-box a {
    display: inline-block;
    margin: 5px 8px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
  }

  .popup-box img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
  }

  .popup-box .lock-btn {
    font-size: 18px;
    float: right;
    margin-top: -10px;
    cursor: pointer;
  }

  .popup-header {
    font-weight: bold;
    margin-bottom: 8px;
    color: #ff9800;
  }