body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  position: relative;
  z-index: 0;
}

/* Fixed background for all devices */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/whitebg.jpg") no-repeat center center;
  background-size: cover;
  z-index: -1;
}

/* Dark mode support */
body.dark::before {
  background-color: #fae30e;
  background-blend-mode: multiply;
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #f9f7f8;
  color: white;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.logo-icon {
  height: 38px;           /* increased from 32px */
  width: auto;
  margin-right: -1px;      /* reduced space between icon and text */
  margin-top: 0px;        /* align better vertically */
}

.logo-text {
  font-size: 1.5rem;
  color: rgb(12, 12, 12);
  line-height: 1;
}

#themeToggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: white;
}
.search-section {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  border-radius: 20px;
  max-width: 700px;
  margin: 2rem auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.search-section h1 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #333;
}

#searchInput {
  width: 70%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 2px solid #0c0c0c;
  border-radius: 25px;
  outline: none;
  margin-bottom: 1rem;
}

#searchButton {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  background-color: #e76aa0;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: background-color 0.3s ease;
}

#searchButton:hover {
  background-color: #e76aa0;
}

#sortOptions {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.results-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
}

.product-card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 1rem;

  margin: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  border-radius: 12px;
}

.product-card h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.95rem;
  margin: 0.2rem 0;
}

.source {
  font-size: 0.8rem;
  color: #888;
}

.btn-group {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.view-btn, .graph-btn, .track-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-btn {
  background-color: #4caf50;
  color: white;
}

.graph-btn {
  background-color: #fcdc0b;
  color: white;
}
.inline-graph-container canvas {
  width: 100% !important;
  height: 160px !important;
  display: block;
}

.track-btn {
  background-color: #fcdc0b;
  color: white;
}

.view-btn:hover {
  background-color: #388e3c;
}

.graph-btn:hover {
  background-color: #1976d2;
}

.track-btn:hover {
  background-color: #fb8c00;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  max-height: 80%;
  border-radius: 10px;
  position: relative;
  overflow: auto;
}

.modal-content canvas {
  width: 100% !important;
  height: 300px !important;
}

.close {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.hidden {
  display: none !important;
}
.predicted-price {
  text-align: center;
  margin-top: 12px;
  font-weight: bold;
  color: #444;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: white;
  padding: 20px;
  max-width: 400px;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.modal-content input {
  width: 90%;
  padding: 8px;
  margin-top: 10px;
}

.modal-content button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #5a5338;
  color: white;
  border: none;
  border-radius: 4px;
}

.modal .close {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-size: 20px;
}

.hidden {
  display: none;
}

.small-message {
  margin-top: 10px;
  font-size: 0.9em;
  color: green;
}
.bewakoof-hero {
  background: url('/assets/shoplyy.gif') center/cover no-repeat;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 40px 40px;
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.bewakoof-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* darker glass overlay */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: inherit;
  z-index: 0;
}

.bewakoof-hero .hero-text {
  position: relative;
  z-index: 1;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  color: #fff;
  text-align: center;
  max-width: 90%;
}

.bewakoof-hero .hero-text h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.bewakoof-hero .hero-text p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #eee;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bewakoof-hero .hero-btn {
  padding: 0.8rem 1.6rem;
  background: rgba(255, 64, 129, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s, background 0.3s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.4);
}

.bewakoof-hero .hero-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 64, 129, 1);
}
@media (max-width: 480px) {
  .bewakoof-hero {
    height: 320px;
  }
  .bewakoof-hero .hero-text h1 {
    font-size: 1.6rem;
  }
  .bewakoof-hero .hero-text p {
    font-size: 0.95rem;
  }
}

.deal-strip {
  background: #0a0a0a;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.6rem;
}

.marquee {
  display: inline-block;
  padding-left: 100%;
  animation: scrollText 30s linear infinite;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 1px #555;
}

.marquee span {
  display: inline-block;
  margin-right: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transform: perspective(200px) rotateX(5deg);
}

@keyframes scrollText {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}



.category-section {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.category-card {
  width: 180px;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
  background: #fff;
}
.category-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.category-card span {
  display: block;
  padding: 0.5rem;
  font-weight: bold;
  color: #333;
}
.category-card:hover {
  transform: scale(1.05);
}
body.dark .category-card {
  background: #222;
  color: #fff;
}

.trending-section {
  text-align: center;
  margin: 2rem auto;
  padding: 1rem 2rem;
}

.trending-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.trending-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.trend-item:hover {
  transform: translateY(-4px);
}

.trend-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
#chatbot {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 300px;
  max-height: 400px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#chatHeader {
  background: #4CAF50;
  color: white;
  padding: 10px;
  font-weight: bold;
  border-radius: 10px 10px 0 0;
}

#chatBody {
  padding: 10px;
  overflow-y: auto;
  flex-grow: 1;
  max-height: 300px;
}

#chatInput {
  border: none;
  border-top: 1px solid #ccc;
  padding: 10px;
  width: calc(100% - 20px);
  outline: none;
}

.chat-msg {
  margin-bottom: 10px;
}

.chat-msg.user {
  text-align: right;
}

#chatToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 12px 14px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}
#themeToggle {
  display: none;
}
#membershipWidget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 999;
  text-align: center;
}

#membershipIcon {
  background-color: #ff5722;
  color: white;
  font-size: 20px;
  padding: 12px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

#membershipIcon:hover {
  transform: scale(1.1);
}

#membershipFormContainer {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  width: 250px;
  position: absolute;
  bottom: 60px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#membershipFormContainer.hidden {
  display: none;
}

#membershipForm input {
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#membershipForm button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

#membershipForm button:hover {
  background-color: #45a049;
}

#membershipStatus {
  margin-top: 0.3rem;
  font-size: 0.9rem;
}
#membership-status {
  margin-top: 10px;
  font-size: 0.9rem;
  color: green;
}
.menu-btn {
  background-color: #f3f04e;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
}

.menu-items {
  position: fixed;
  top: 60px;
  right: 20px;
  background: white;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 999;
}

.menu-items button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}

.menu-items.hidden {
  display: none;
}
/* Modal Background */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Content Box */
.modal-content {
  background-color: #fff;
  padding: 25px;
  width: 90%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  text-align: center;
  
}

/* Close Button */
.close-btn {
  float: right;
  font-size: 24px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  margin-top: -10px;
}

/* Input Style */
.modal-content input {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

/* Button Style */
.modal-content button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 25px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #388e3c;
}

/* Status Text */
#loginStatus {
  margin-top: 10px;
  font-size: 14px;
}

/* Animation */
@keyframes popup {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ✨ New Auth Modal */
.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content.new-auth {
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 350px;
  position: relative;
  text-align: center;
  animation: fadeSlide 0.4s ease;
}

.modal-content.new-auth h2 {
  margin-bottom: 20px;
  color: #333;
}

.modal-content.new-auth input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
}

.modal-content.new-auth button {
  width: 100%;
  padding: 12px;
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.modal-content.new-auth button:hover {
  background-color: #45a049;
}

.modal-content.new-auth .toggle-auth {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

.modal-content.new-auth .toggle-auth a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: bold;
}

.modal-content.new-auth .auth-message {
  margin-top: 10px;
  color: #d32f2f;
  font-size: 13px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  color: #555;
  cursor: pointer;
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ Droply Chatbot */
.chat-toggle {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #e76aa0;
  color: #fff;
  padding: 10px 15px;
  border-radius: 30px;
  cursor: pointer;
  z-index: 9999;
}

.chat-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 9999;
}

.chat-header {
  background: #1b1b1b;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.chat-messages {
  height: 250px;
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
}

.chat-msg.bot {
  background: #eee;
  padding: 6px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.chat-msg.user {
  background: #d0f0c0;
  padding: 6px;
  border-radius: 8px;
  margin-bottom: 8px;
  text-align: right;
}

.chat-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px 10px;
}

.chat-btn {
  flex: 1;
  padding: 5px;
  border: none;
  background: #c8e6c9;
  cursor: pointer;
  border-radius: 5px;
}

.chat-input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.chat-input-area input {
  flex: 1;
  padding: 5px;
}

.chat-send {
  background: #272727;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}
.predicted {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
  display: block;
}

.product-horizontal-card {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.product-horizontal-card:hover {
  transform: translateY(-4px);
}

.card-left {
  display: flex;
  flex: 1;
  align-items: center;
}

.card-left img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-right: 1px solid #eee;
}

.left-info {
  padding: 10px 15px;
  flex-grow: 1;
}

.left-info h3 {
  font-size: 1rem;
  margin: 0 0 5px;
  color: #333;
}

.left-info .price {
  font-size: 0.95rem;
  color: #e74c3c;
  margin: 3px 0;
}

.left-info .source {
  font-size: 0.8rem;
  color: #777;
  margin: 3px 0;
}

.left-info .prediction {
  font-size: 0.8rem;
  color: #444;
  margin-top: 5px;
}

.card-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  gap: 8px;
}

.action-btn {
  background: #e76aa0;
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.action-btn:hover {
  background: #2980b9;
}

.hidden {
  display: none !important;
}


@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#graphModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#graphModalContent {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px; /* smaller on desktop */
  max-height: 90%;
  overflow: auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

#graphModalContent canvas {
  width: 100% !important;
  height: auto !important;
}

.btn-group button,
.btn-group a {
  background: #fcdc0b;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  color: #222222;
  transition: background 0.2s;
}

.btn-group button:hover,
.btn-group a:hover {
  background: #d1d1d1;
}

.inline-graph-container {
  margin-top: 15px;
}
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.splash-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* Default: hidden */
}

#splashVideoPC {
  display: block;
}

@media (max-width: 768px) {
  #splashVideoPC {
    display: none;
  }
  #splashVideoMobile {
    display: block;
  }
}

.compare-site-card {
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 16px;
}

.compare-site-card h4 {
  margin: 0 0 6px;
}

.compare-site-card p {
  margin: 2px 0;
  font-size: 14px;
}

.compare-site-card button, .compare-site-card a {
  margin-right: 8px;
  margin-top: 8px;
}

.compare-modal .modal-content {
  max-height: 80vh;
  overflow-y: auto;
}
.compare-btn {
  margin-top: 6px;
  background: #f0f0f0;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.compare-now-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007bff;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 9999;
  cursor: pointer;
}

.comparison-modal {
  position: fixed;
  z-index: 99999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
}

.modal-content {
  background: white;
  padding: 20px;
  width: 90%;
  max-width: 960px;
  max-height: 90%;
  overflow-y: auto;
  border-radius: 10px;
  position: relative;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

.comparison-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
/* 🔷 Modern Comparison Modal Style */
.comparison-modal {
  position: fixed;
  z-index: 9999;
  background-color: rgba(0,0,0,0.6);
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal-content.modern-compare {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 1200px;
  width: 95%;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
}

.comparison-grid.modern-style {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.modern-card {
  width: 260px;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  padding: 12px;
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.modern-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}

.modern-info h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 4px;
}

.modern-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.modern-btn {
  background: #7c600a;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}

.modern-btn:hover {
  background: #7c600a;
}

.modern-predict {
  margin-top: 6px;
  font-size: 13px;
  color: #444;
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 6px;
}
@media (max-width: 768px) {
  .results-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 1rem;
  }

  .product-card {
    flex: 0 0 calc(50% - 1rem); /* Two cards per row */
    margin-bottom: 1rem;
    box-sizing: border-box;
  }
}

@media (max-width: 400px) {
  .product-card {
    flex: 0 0 100%; /* Stack in very small screens */
  }
}
@media (max-width: 768px) {
  .category-card {
    width: 45%; /* Two cards per row */
    margin-bottom: 1rem;
  }
}

@media (max-width: 400px) {
  .category-card {
    width: 100%; /* Stack on very small phones */
  }
}
/* Why Droply Slider */
.why-droply-slider {
  padding: 2rem 1rem;
  background: #fffde7;
  text-align: center;
  margin-top: 1.5rem;
}
.why-droply-slider h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.slider-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.slide {
  min-width: 240px;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  scroll-snap-align: start;
}
.slide img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  border-radius: 8px;
}


/* Brand Strip */
.brand-strip {
  padding: 2rem 1rem;
  background: #f3f3f3;
  text-align: center;
}
.brand-strip h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.brand-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand-logos img {
  height: 40px;
  object-fit: contain;
  opacity: 0.9;
}
.logo-disclaimer {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}
/* 🌟 Professional Feature Text Scroll */
.feature-scroll-section {
  margin: 2rem 1rem;
}

.feature-scroll-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.feature-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.feature-card {
  flex: 0 0 auto;
  min-width: 240px;
  background-color: #f8f8f8;
  color: #333;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-weight: 500;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}
.terms-text {
  max-height: 400px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}
body.dark .terms-text {
  color: #eee;
}
.cashback-btn {
  display: inline-block;
  padding: 5px 8px;
  background-color: #fba505;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.cashback-btn:hover {
  background-color: #e65a00;
}


.cashback-banner-container {
  position: relative;
  width: 100%;
  margin: 0; /* remove side margin */
  overflow: hidden;
  border-radius: 0; /* remove border radius if you want edge-to-edge */
  box-shadow: none; /* optional: remove shadow if you want flat look */
  transition: transform 0.3s ease;
}

.cashback-banner-container:hover {
  transform: scale(1.02);
}

.cashback-banner-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.cashback-banner-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.cashback-banner-text {
  position: absolute;
  top: 20%;
  left: 10%;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.cashback-banner-text h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.cashback-banner-text p {
  margin: 0 0 15px;
  font-size: 18px;
}

.cashback-banner-text button {
  background-color: #ff6b00;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cashback-banner-text button:hover {
  background-color: #e55b00;
}
.btn-login-link {
  padding: 6px 12px;
  background: #f7c704;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

.btn-login-link:hover {
  background: #9d8033;
}
.profile-icon-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-left: 10px;
}
.modal-content.new-auth {
  position: relative;
  padding-top: 40px; /* Give space for close button */
}

.modal-content.new-auth .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f0f0f0;
  border: none;
  font-size: 20px;
  border-radius: 50%;
  padding: 4px 10px;
  cursor: pointer;
}
.profile-menu {
  position: absolute;
  top: 60px; /* adjust if needed depending on header height */
  right: 16px;
  background: rgb(151, 111, 0);
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 10px;
  z-index: 1000;
  width: 150px;
}

.profile-menu p {
  margin: 0;
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-menu a,
.profile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 6px 0;
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

.profile-menu a:hover,
.profile-menu button:hover {
  color: #007bff;
}

.hidden {
  display: none;
}
.store-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
  border: 2px solid #d80202;
  border-radius: 8px;
  background: white;
  color: #111010;
  transition: all 0.3s ease;
}

.store-icon-btn:hover {
  background-color: #ca1504;
  color: white;
}

.single-image-carousel {
  position: relative;
  text-align: center;
  margin: 1rem auto;
  max-width: 600px;
}

.single-image-carousel img {
  width: 100%;
 
}

.banner-text {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  right: 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.1rem;
  border-radius: 0 0 12px 12px;
}
.droplyy-logo {
  font-family: 'Pacifico', cursive;
  font-size: 32px;
  color: #e6332a; /* same red style as your sample image */
  letter-spacing: 1px;
}
.product-card-horizontal {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin: 10px 0;
  padding: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.product-card-horizontal:hover {
  transform: translateY(-3px);
}

.product-card-horizontal img.product-image {
  width: 150px;
  height: auto;
  border-radius: 8px;
  margin-right: 15px;
}

.product-info {
  flex: 1;
}

.product-info h3 {
  margin: 0 0 5px;
  font-size: 1.2em;
}

.product-info p {
  margin: 3px 0;
}

.predicted-price {
  color: green;
  font-weight: bold;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.button-group a.buy-btn,
.button-group button {
  background-color: #e76aa0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.2s;
}

.button-group a.buy-btn:hover,
.button-group button:hover {
  background-color: #e76aa0;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.15); /* transparent glass look */
  backdrop-filter: blur(12px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #222; /* neutral text */
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  position: relative;
  transition: transform 0.3s ease, color 0.3s ease;
}

.bottom-nav a:hover {
  transform: translateY(-6px) scale(1.1) rotateX(10deg);
  color: #000; /* darker on hover */
}

.bottom-nav img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.bottom-nav a:hover img {
  transform: scale(1.2) rotateY(12deg);
}

.bottom-nav span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #222;
  letter-spacing: 0.5px;
}


@keyframes holoSpin {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}
#loaderOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loaderOverlay p {
  color: white;
  margin-top: 15px;
  font-size: 1.2rem;
  text-align: center;
}

.loader-3d {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Style for GIF loader */
.loader-3d .loader-gif {
  width: 80px;     /* Adjust size as needed */
  height: 80px;
  object-fit: contain;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(14px);
  color: #fff;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  text-align: center;
}
.checklist {
  margin: 15px 0;
  text-align: left;
}
.check-item {
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}
.filters {
  text-align: left;
  font-size: 14px;
  margin: 10px 0;
}
.filters label {
  display: block;
  margin-bottom: 5px;
}
.modal-actions {
  margin-top: 20px;
}
.modal-actions a,
.modal-actions button {
  margin: 5px;
  padding: 8px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
}
.action-btn {
  background-color: #e76aa0;
  color: white;
}
.close-btn {
  background-color: #f44336;
  color: white;
}
.glassy {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.droply-footer {
  background-color: #1a1a1a;
  color: #f1f1f1;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 180px;
  min-width: 150px;
}

.footer-col h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 16px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  color: #999;
  margin-top: 30px;
  font-size: 14px;
  border-top: 1px solid #333;
  padding-top: 10px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: row;
    align-items: flex-start;
  }
}
.glass-box {
  max-width: 400px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  text-align: center;
  animation: fadeIn 0.8s ease-in-out;
}

.glass-box h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

.glass-box .subtext {
  font-size: 14px;
  color: #ddd;
  margin-bottom: 20px;
}

.glass-inputs input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  color: #0d0d0d;
  outline: none;
  font-size: 14px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.glass-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.glass-btn {
  flex: 1;
  margin: 5px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4cafef, #4CAF50);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.glass-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
}

.glass-btn.track {
  background: linear-gradient(135deg, #ff7eb3, #ff758c);
  box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
}

.msg {
  margin-top: 15px;
  font-size: 14px;
  color: #ffd;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}



