  /* ===========================
   InstaDownload – Global Style
   =========================== */

/* ========= GLOBAL ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: #f7f7f7;
  margin: 0;
  padding: 0px;
  text-align: center;
  color: #333;
  padding-bottom: 70px;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* ========= INPUT AREA ========= */
.input-wrap {
  background: white;
  width: 95%;
  max-width: 600px;
  margin: 0 auto 25px auto;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);

  display: flex;
  gap: 10px;
  align-items: center;
}

.input-wrap input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
}

.input-wrap button {
  padding: 12px 20px;
  background: #ff0050;
  border: none;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
}

.input-wrap button:hover {
  background: #e00047;
}

/* ========= CARD ========== */
.card {
  background: white;
  width: 95%;
  max-width: 600px;
  margin: 25px auto;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card img,
.card video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 12px;
  margin: 12px 0;
}

/* ========= BUTTONS ========= */
.btn {
  display: block;
  background: #ff0050;
  color: white;
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s;
}

.btn:hover {
  background: #333;
}

.btn.green {
  background: #28a745;
}

.btn.green:hover {
  background: #218838;
}

.btn.blue {
  background: #007bff;
}

.btn.blue:hover {
  background: #006ee6;
}

/* ========= CAPTION ========= */
.caption {
  text-align: left;
  margin-top: 12px;
  font-size: 14px;
  color: #444;
}

/* ========= LOADER ========= */
#loader {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
  z-index: 9999;
}

#animation {
  width: 58px;
  height: 58px;
  border: 6px solid #ffd6e3;
  border-top-color: #ff0050;
  border-radius: 50%;
  animation: loader-spin .8s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}
.cap-title {
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-top: 10px;
  margin-bottom: 4px;
}
/* ========= RESPONSIVE ========= */
/* MAIN CONTAINER */
.wrapper {
  width: 100%;
  max-width: 900px;
  margin: auto;
  padding: 10px;
}
 /* ========================= NAVBAR ========================= */
/* ===========================================
   ★★★ Premium Navbar – InstaDownloader ★★★
   =========================================== */

.topnav {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  left: 0;
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 12px 18px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo span {
  font-size: 22px;
  font-weight: 800;
  color: #222;
}

.logo .pink {
  color: #ff0050;
}

/* MENU */
.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  padding: 8px 6px;
  font-weight: 500;
  transition: 0.2s ease;
}

.menu li a:hover {
  color: #ff0050;
}

/* DROPDOWN FIXED */
.dropdown {
  position: relative;
}

.dropdown-list {
  position: absolute;
  background: white;
  list-style: none;
  width: 220px;
  top: 38px;
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);

  /* FIXES */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 9999;
}

.dropdown-list li a {
  display: block;
  padding: 12px 18px;
  color: #444;
}

.dropdown-list li a:hover {
  background: #f8f8f8;
  color: #ff0050;
}

/* SMOOTH SHOW */
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ========== MOBILE ========== */
.menu-btn {
  display: none;
  font-size: 28px;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #222;
  line-height: 1;
  padding: 6px;
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    gap: 0;
    display: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  }

  .menu li {
    width: 100%;
    border-bottom: 1px solid #eee;
    text-align: center;
  }

  .menu li a {
    display: block;
    padding: 14px 0;
  }

  /* Mobile dropdown */
  .dropdown-list {
    position: relative;
    top: 0;
    box-shadow: none;
    width: 100%;
    border-radius: 0;
    display: none !important;
  }

  .dropdown.open .dropdown-list {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}


/* Ultra-small phones below 330px */
@media (max-width: 330px) {
  .input-wrap input {
    font-size: 13px;
  }

  .input-wrap button {
    font-size: 13px;
    padding: 10px;
  }

  .btn {
    font-size: 13px;
    padding: 9px;
  }
}
@media (max-width: 600px) {

  h2 {
    font-size: 22px;
    margin-top: 10px;
  }

  .wrapper {
    width: 100%;
    max-width: 100%;
    padding: 8px;
  }

  .input-wrap {
    flex-direction: column;
    width: 75%;
    padding: 12px;
  }

  .input-wrap input {
    width: 100%;
    font-size: 16px;
  }

  .input-wrap button {
    font-size: 16px;
  }

  .card {
    width: 87%;
    margin: 12px auto;
    padding: 12px;
  }

  .card img,
  .card video {
    width: 100%;
  }

  .btn {
    font-size: 15px;
    padding: 12px;
  }

}
.menu {
  display: flex;
}

@media (max-width: 768px) {
  .menu {
    display: none;
  }

  .menu.active {
    display: flex;
  }
  .nav-inner {
    max-width: 100%;
    padding: 12px 14px;
  }
}
/* LANGUAGE DROPDOWN */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  font-size: 14px;
  padding: 6px 0px;
  border-radius: 8px;
  background: #f5f5f5;
  cursor: pointer;
  font-weight: 500;
}

.lang-list {
  position: absolute;
  right: 0;
  top: 42px;
  width: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  display: none;
  z-index: 999;
}

.lang-list div,
.lang-list button {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #222;
  text-align: left;
}

.lang-list div:hover,
.lang-list button:hover {
  background: #f7f7f7;
  color: #ff0050;
}

/* Smooth scroll */
.lang-list::-webkit-scrollbar {
  width: 6px;
}
.lang-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* Mobile */
@media (max-width: 768px) {
  .lang-dropdown {
    position: absolute;
    right: 60px;
    top: 14px;
  }
}
/* Hide ugly default Google UI */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-te-gadget {
  display: none !important;
}
.input-box {
  position: relative;
  width: 100%;
}

/* Input */
.input-box input {
  width: 100%;
  padding: 10px 82px 10px 12px;  /* space for input action button */
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  box-sizing: border-box;
}

/* Input action button */
.input-box .paste-btn,
.input-box .clear-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  
  padding: 3px 8px;        /* 👈 smaller padding */
  font-size: 12px;         /* 👈 smaller text */
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  border: none;
  cursor: pointer;
}

/* Paste */
.input-box .paste-btn {
  background: #f1f1f1;
  color: #333;
}

/* Clear */
.input-box .clear-btn {
  background: #ff0050;
  color: #fff;
  display: none;
  min-width: 28px;
  width: 28px;
  padding: 0;
  border-radius: 50%;
}

.input-box.has-value .paste-btn,
.input-box input:not(:placeholder-shown) ~ .paste-btn {
  display: none;
}

.input-box.has-value .clear-btn,
.input-box input:not(:placeholder-shown) ~ .clear-btn {
  display: inline-flex;
}
/* FLOATING BUTTON (RIGHT SIDE) */
.floating-share {
  position: fixed;
  right: 10px;
  bottom: 90px;
  width: 45px;
  height: 45px;
  background: #25d366;
  color: white;
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* BOTTOM SHARE BAR */
.bottom-share {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 8px;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
  z-index: 9999;
}

/* SHOW ONLY MOBILE */
@media (max-width: 768px) {
  .bottom-share {
    display: flex;
  }
}

/* SHARE COUNT */
.share-count {
  font-size: 12px;
  color: #444; 
  text-align: center;
  width: 60px;
}

/* BUTTONS */
.sbtn {
  flex: 1;
  margin: 0 4px;
  height: 40px;
  min-width: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* COLORS */
.x { background: #000; }
.tg { background: #0088cc; }
.rd { background: #ff4500; }
.pt { background: #e60023; }
.wa { background: #25d366; }
.s { background: #ff0050; }

  .how-btn {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  margin: 10px;
}

.how-btn:hover {
  background: #0056d2;
}
.footer {
  background: #111;
  color: #ccc;
  padding: 25px 15px;
  text-align: center;
  margin-top: 40px;
}

/* LINKS */
.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 12px;
  font-size: 14px;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #ff0050;
}

/* TEXT */
.footer-text {
  font-size: 12px;
  color: #aaa;
  max-width: 700px;
  margin: auto;
  line-height: 1.6;
}

.related-tools {
  text-align: center;
  padding: 25px 15px;
  margin-top: 30px;
  background: #f9fafb;
  border-radius: 12px;
}

.related-tools h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

.related-tools a {
  display: inline-block;
  margin: 6px 8px;
  padding: 10px 16px;
  background: #ff2f6d;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.3s;
}

.related-tools a:hover {
  background: #e0265f;
  transform: translateY(-2px);
}

/* Reserve ad space before third-party scripts render to reduce CLS. */
ins[class^="eas6"] {
  display: block;
  width: min(100%, 728px);
  min-height: 96px;
  margin: 16px auto;
  overflow: hidden;
  contain: layout paint;
  content-visibility: auto;
  contain-intrinsic-size: 728px 96px;
}

ins.eas6a97888e37,
ins.eas6a97888e31 {
  min-height: 250px;
  contain-intrinsic-size: 728px 250px;
}

ins.eas6a97888e33 {
  min-height: 0;
  margin: 0;
  contain-intrinsic-size: 0 0;
}

@media (max-width: 600px) {
  ins[class^="eas6"] {
    width: 100%;
    min-height: 100px;
    contain-intrinsic-size: 320px 100px;
  }

  ins.eas6a97888e37,
  ins.eas6a97888e31 {
    min-height: 250px;
    contain-intrinsic-size: 320px 250px;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .footer-links a {
    display: block;
    margin: 8px 0;
  }
    .related-tools a {
    display: block;
    margin: 8px auto;
    width: 80%;
  }
}

