/* GENERAL STYLES */
body {
    background-color: black;
    color: white;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* HEADINGS */
h1, h2, h3 {
    color: #00bfff;
    text-shadow: 0px 0px 10px #00bfff;
    font-size: 1.8em;
}

/* HEADER (LOGO + SEARCH + SIGN-IN) */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    width: 95%;
    margin: 0 auto;
}

/* LOGO STYLING */
.logo {
    font-size: 1.6em;
    color: #00bfff;
    text-shadow: 0px 0px 10px #00bfff;
    display: flex;
    align-items: center;
}

/*.logo img {
    height: 60px; 
    width: auto; 
    max-width: 100%; 
    margin-right: 10px;
}*/

.logo img:not(.logo-image) {
  height: 60px; /* Applies only to other logos */
  width: auto;
  max-width: 100%;
  margin-right: 10px;
}

/* SEARCH BAR */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    width: 250px;
    padding: 10px;
    border-radius: 25px;
    border: 2px solid #00bfff;
    outline: none;
}

.search-box:focus {
    box-shadow: 0px 0px 10px #00bfff;
}

.search-button {
    padding: 10px 15px;
    background-color: blue;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: #0099ff;
}

/* 🔹 PARAGRAPH TEXT */
p {
    color: white;
    font-size: 14px;
}

/* 🔹 Blue Text */
.blue-text {
    color: #00bfff; /* or use color: #00bfff; for a deeper blue */
    font-weight: bold;
}

/* 🔹 SIGN-IN / REGISTER LINKS */
.auth-links {
    font-size: 1.5em; /* Adjust size */
    font-weight: bold;
    color: white;
    text-align: center;
}

/* 🔹 CATEGORY NAVIGATION BAR */
.category-bar {
    display: flex;
    justify-content: center;
    gap: 35px;
    background-color: black;
    padding: 10px 0;
    border-bottom: 2px solid #00bfff;
    flex-wrap: wrap;
  }
   
  /* 🔹 CATEGORY NAVIGATION LINKS */
  .category-bar a {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    padding: 8px 15px;
    transition: 0.3s;
    text-align: center;
    line-height: 1.3;
  }

/* 🔹 HOVER EFFECT */
.category-bar a:hover {
    color: #00bfff;
    text-shadow: 0px 0px 10px #00bfff;
}

/* 🔹 RESPONSIVE DESIGN */
@media screen and (max-width: 768px) {
  /* ✅ Adjusts Sign-in/Register link size for mobile */
  .auth-links {
      font-size: 10vw; /* Scales text size dynamically */
  }

  /* ✅ Adjusts Category Bar text for mobile */
  .category-bar {
      flex-direction: column; /* Stacks links vertically */
      gap: 10px; /* Reduces space between links */
      padding: 5px 0; /* Adjust padding */
  }

  .category-bar a {
      font-size: 20vw; /* Scales text size dynamically */
      padding: 6px 10px;
  }
}

/* 🔹 Adjust Sign-in/Register link font size */
.auth-links p {
  font-size: 1.3em; /* Was 1.3, Adjust as needed */
  font-weight: bold;
  text-align: center;
}

/* 🔹 Responsive font scaling */
/*@media screen and (max-width: 768px) {
  .auth-links p {
      font-size: 5vw; 
  }
}*/

/* 🔹 GENERAL LINKS */
a {
  color: #00bfff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* LISTINGS IMAGE STYLING */
.listing-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  padding-left: 20px;
}

.listing-container img {
  width: 133px; /* ✅ Increase image size, was 100 x 100 */
  height: 133px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0px 0px 10px #00bfff;
}

/* UPLOAD AN IMAGE TITLE */
.upload-title {
  font-size: 1.3em;
  text-align: center;
  color: #00bfff;
}

/* BUTTON STYLES */
button {
  background-color: black;
  color: white;
  border: 2px solid #00bfff;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 25px;
}

button:hover {
  background-color: #00bfff;
  color: black;
  box-shadow: 0px 0px 15px #00bfff;
}

/* UPLOAD FORM CONTAINER */
.upload-container {
  width: 400px;
  margin: 50px auto;
  padding: 20px;
  background-color: #111;
  border-radius: 15px;
  /*box-shadow: 0px 0px 15px #00bfff;*/
  box-shadow: 0px 0px 15px cyan;
  text-align: center;
}

.upload-container input,
.upload-container button {
  width: 100%;
  margin: 10px 0;
}

/* RESPONSIVE STYLES */
@media screen and (max-width: 768px) {
  .auth-container, .upload-container {
      width: 90%;
  }
  
  input[type="email"],
  input[type="password"],
  input[type="file"] {
      width: 90%;
  }
}

/* 🔹 Footer Styling */
footer {
  text-align: center;
  padding: 10px;
  color: white;
  font-size: 14px;
  margin-top: 30px;
  /*border-top: 1px solid #00bfff;*/
  border-top: 1px solid cyan;
}

/* 🔹 Upload Login Page Styling */
.upload-login-container {
  width: 400px; /* Adjust width for a compact layout */
  margin: 50px auto; /* Center the form */
  padding: 20px;
  background-color: #111; /* Dark background */
  border-radius: 10px;
  box-shadow: 0px 0px 15px #00bfff; /* Blue glow effect */
  text-align: center;
}

.upload-login-container h2 {
  color: #00bfff; /* Bright blue title */
  margin-bottom: 20px;
}

.upload-login-container p {
  font-size: 16px;
  color: white;
}

.upload-login-container a {
  color: #00bfff;
  text-decoration: none;
  font-weight: bold;
}

.upload-login-container a:hover {
  text-decoration: underline;
}

/* 🔹 Upload Login Button */
.upload-login-container .upload-login-button {
  width: 100%;
  padding: 12px;
  background-color: blue;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.upload-login-container .upload-login-button:hover {
  background-color: #0099ff; /* Lighter blue on hover */
}

/* 🔹 Responsive Design for Smaller Screens */
@media screen and (max-width: 768px) {
  .upload-login-container {
      width: 90%; /* Adjust width for smaller devices */
  }

  .upload-login-container h2 {
      font-size: 1.5em;
  }

  .upload-login-container p {
      font-size: 1.2em;
  }

  .upload-login-container .upload-login-button {
      font-size: 1.3em;
  }
}

/* 🔹 All Email and Toggle Password Related Styling */
input[type="email"],
input[type="password"] {
  width: 100%;
  max-width: 400px; /* Matches both email & password fields */
  height: 15px; /* Reduce height */
  font-size: 16px;
  padding: 8px;
  border: 2px solid #00bfff;
  border-radius: 5px;
  background-color: black;
  color: white;
  outline: none;
}

/* 🔹 PASSWORD CONTAINER (Ensures proper alignment & structure) */
.password-container {
  display: flex;
  align-items: center;
  width: 100%; /* Matches email input width */
  max-width: 400px;
  height: 35px; /* Ensure it matches the email field */
  padding: 0;
  border: 2px solid #00bfff; /* Uniform border */
  border-radius: 5px;
  margin: 10px auto;
  background-color: black;
  position: relative; /* Keeps the icon positioned properly */
  box-sizing: border-box; /* ✅ Prevents border from pushing out */
}

/* 🔹 PASSWORD INPUT (Ensures alignment inside the container) */
.password-container input {
  width: 100%; /* Make it take the full width */
  height: 100%;
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 3px 8px;
  color: white;
  background-color: transparent;
  box-sizing: border-box; /* ✅ Keeps height from growing */
}

/* 🔹 SHOW PASSWORD BUTTON (Keeps it inside the field without expanding) */
/* 🔹 PASSWORD TOGGLE ICON (Eye Button) */
.password-container .toggle-password {
  width: 60px; /* ✅ Adjusts icon size */
  height: 60px; /* ✅ Ensures icon fits properly */
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  position: absolute;
  right: 5px; /* ✅ Keeps icon inside the border */
  top: 50%;
  transform: translateY(-50%); /* ✅ Centers the icon */
}

/* 🔹 CONSOLIDATED EYE ICON STYLING */
.password-container .toggle-password img {
  width: 20px;
  height: 20px;
  filter: invert(0); /* Keeps the original color */
  background-color: white; /* Ensures visibility against dark backgrounds */
  border-radius: 50%; /* Optional: Makes the icon circular */
  padding: 2px; /* Adjusts spacing for better visibility */
}

/* 🔹 FIX PASSWORD TEXT OVERLAP */
.password-container input[type="password"] {
  padding-right: 45px; /* Prevents text from overlapping with the button */
}

/* 🔹 HOVER & FOCUS EFFECTS */
input[type="email"]:focus,
input[type="password"]:focus {
  box-shadow: 0px 0px 10px #00bfff;
}


/* 🔹 Upload Page - Listing Form Styling (Keeps it Separate) */
.upload .listing-container {
  width: 80%;
  max-width: 400px;
  margin: 20px auto;
  padding: 15px;
  background-color: black;
  border: 2px solid cyan;
  border-radius: 10px;
  box-shadow: 0 0 10px cyan;
  text-align: left;
}

.upload .upload-container {
  width: 80%;
  max-width: 400px;
  margin: 20px auto;
  padding: 15px;
  background-color: black;
  border: 2px solid cyan;
  border-radius: 10px;
  box-shadow: 0 0 10px cyan;
  text-align: left;
}
.upload .listing-container label {
  display: block;
  font-size: 16px;
  margin-top: 10px;
  color: white;
}

.upload .listing-container input,
.upload .listing-container textarea,
.upload .listing-container select {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  margin-top: 5px;
  border: 1px solid cyan;
  border-radius: 5px;
  background-color: black;
  color: white;
}

.upload .listing-container textarea {
  height: 80px;
  resize: vertical;
}

.upload .listing-container button {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  background-color: cyan;
  color: black;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.upload .listing-container button:hover {
  background-color: white;
  color: black;
}

.register-container {
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  background-color: black;
  border: 2px solid cyan;
  border-radius: 10px;
  box-shadow: 0 0 10px cyan;
  text-align: center;
}

.register-container h2 {
  color: cyan;
}

.register-container input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid cyan;
  border-radius: 5px;
  background-color: black;
  color: white;
}

/*.register-container button {
  width: 100%;
  padding: 10px;
  background-color: cyan;
  color: black;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
*/
.register-container button:hover {
  background-color: white;
  color: black;
}

.register-container p a {
  color: cyan;
  text-decoration: none;
}

.register-container p a:hover {
  text-decoration: underline;
}

/* 🔹 PASSWORD CONTAINER (Applies to both login & register pages) */
.password-container {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative; /* Ensures absolute elements stay inside */
}

/* 🔹 PASSWORD INPUT FIELD */
.password-container input {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 3px 8px;
  color: white;
  background-color: transparent;
  box-sizing: border-box;
  padding-right: 50px; /* Prevents text overlap with the button */
}

/* 🔹 SHOW PASSWORD BUTTON (Keeps it inside the field without expanding) */
.toggle-password {
  cursor: pointer;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; /* Consistent size */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
}

/* 🔹 HOVER & FOCUS EFFECTS */
input[type="email"]:focus,
input[type="password"]:focus {
  box-shadow: 0px 0px 10px #00bfff;
}

/* 🔹 ADD SPACING ABOVE & BELOW "OR" DIVIDER */
.or-divider {
  text-align: center;
  font-weight: bold;
  margin: 15px 0;
}

.auth-container h2 {
  margin-bottom: 20px; /* Adds space below heading */
}

.signin-container form {
  margin-top: 20px; /* Adds space above form */
}

/* 🔹 FOOTER STYLING */
footer {
  text-align: center;
  padding: 10px 0;
  background-color: black;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;     /* was 90 */
  margin: 0 auto;
}

.footer-left {
  font-size: 12px;
  text-align: left;
}

.footer-right {
  font-size: 12px;
  text-align: right;
}

.popup-box {
  background-color: #111;
  padding: 20px 30px;
  border: 2px solid cyan;
  border-radius: 10px;
  box-shadow: 0 0 12px cyan;
  text-align: center;
  max-width: 90%;
}

.popup-box p {
  color: #00ffff;
  font-size: 16px;
  margin-bottom: 15px;
}

.popup-box button {
  padding: 8px 16px;
  background: cyan;
  color: black;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.popup-box {
  background-color: #111;
  padding: 25px 35px;
  border: 2px solid cyan;
  border-radius: 10px;
  box-shadow: 0 0 15px cyan;
  text-align: center;
  max-width: 500px;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-box p, .popup-box span {
  color: #00ffff;
  font-size: 16px;
  margin-bottom: 15px;
}

.popup-link {
  color: #00ffff;
  text-decoration: underline;
  font-weight: bold;
}

.popup-box button {
  padding: 8px 16px;
  background: cyan;
  color: black;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

/* 🔄 Fade animation */
@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Upload Box on Index Page */
.upload-box {
  border: 2px solid #00bfff;
  box-shadow: 0 0 12px #00bfff;
  border-radius: 10px;
  padding: 1px 20px;
  width: fit-content;
  margin: 20px auto;
  text-align: center;
  background-color: #000;
}

/* 🔽 Stick footer to bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
}

/* ✅ Navigation Bar */
.navbar {
  background-color: #111;
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 0 10px cyan;
}

.navbar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.navbar ul li {
  display: inline;
}

.navbar ul li a {
  text-decoration: none;
  color: cyan;
  font-weight: bold;
  padding: 10px 15px;
  transition: 0.3s ease-in-out;
}

.navbar ul li a:hover {
  background-color: cyan;
  color: black;
  border-radius: 5px;
}

/* ✅ Navbar Styling */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: black;
  padding: 10px 20px;
}

/* ✅ Logo on the Left */
.logo {
  display: flex;
  align-items: center;
}

/* ✅ Center Navbar Links */
.navbar ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 auto;  /* Centers the menu */
  justify-content: center;
  flex-grow: 1;
}

.navbar ul li {
  margin: 0 15px;
}

/* 🔽 Navigation Dropdown list appears vertically */
.navbar ul li .dropdown-content {
  display: none;
  position: absolute;
  background-color: #111;
  min-width: 160px;
  z-index: 1;
  border: 1px solid cyan;
  border-radius: 6px;
  flex-direction: column;  /* 🟢 Force vertical stack */
}

/* Each link stacks and stretches full width */
.dropdown-content li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px 16px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.dropdown-content li a:hover {
  background-color: cyan;
  color: black;
  box-shadow: 0 0 5px cyan;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* ✅ Styled Custom Popup for Index Page */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

/* 🔹 General dropdown menu style */
.dropdown, .dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown a,
.dropdown-toggle {
  color: cyan;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
                                                                             font-size: 16px;
}

/* 🔹 Dropdown Menu Layout */
.dropdown-content,
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #111;
  min-width: 200px;
  z-index: 2000;
  right: 0;
  border: 1px solid cyan;
  border-radius: 6px;
  box-shadow: 0 0 10px cyan;
}

.dropdown-content:empty,
.dropdown-menu:empty {
  display: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* 🔹 Reveal dropdown on hover */
.dropdown:hover .dropdown-content,
.dropdown-container:hover .dropdown-menu {
display: block;
flex-direction: column; /* ✅ Ensure vertical layout for dropdown content */
}

/* 🔹 Menu Items */
.dropdown-menu a,
.dropdown-menu button,
.dropdown-content li {
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  display: block;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
                                                             font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
 
/* 🔹 Hide empty items */
.dropdown-menu a:empty,
.dropdown-menu button:empty,
.dropdown-content li:empty {
  display: none !important;
}

/* Account Dropdown */
/* ✅ My Account Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  color: cyan;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
                                                   font-size: 15px;
  transition: background 0.3s, color 0.3s;
}

.dropdown:hover .dropdown-toggle {
  background-color: cyan;
  color: black;
  border-radius: 6px;
}

/* ✅ Dropdown Panel */
#accountDropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #111;
  border: 1px solid cyan;
  border-radius: 6px;
  box-shadow: 0 0 10px cyan;
  min-width: 220px;
  z-index: 2000;
  padding: 8px 0;
}

.dropdown:hover #accountDropdown {
  display: flex;
}

/* ✅ Dropdown Items */
#accountDropdown li {
  display: block;
  width: 100%;
  text-align: center;
}

#accountDropdown li a {
  display: block;
  width: 86%;
  padding: 10px 16px;
  color: cyan;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
  text-align: left;
  font-weight: bold;
  box-sizing: border-box; /* ✅ Prevent overflow */
}

#accountDropdown li a:hover {
  background-color: cyan;
  color: black;
  box-shadow: 0 0 5px cyan;
}

/* ✅ Align Connect Wallet & Logout buttons */
.nav-right {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-right: 10px;
}


/* ✅ Connect Wallet Button (shared style for ID & class) */
#connectWalletButton,
.connect-wallet {
  background-color: #111;
  color: cyan;
  border: 2px solid cyan;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: fit-content;
  transition: 0.3s ease-in-out;
  border-radius: 5px;
}

#connectWalletButton:hover,
.connect-wallet:hover {
  background-color: cyan;
  color: black;
  box-shadow: 0 0 10px cyan;
}

iframe[title="Netlify status badge"] {
  display: none !important;
}

@media (min-width: 769px) {
  .navbar-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none !important;
    flex-direction: column;
    background-color: black;
    padding: 10px;
    width: 100%;
  }

  .navbar-menu.show {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  #hamburgerBtn {
    display: none;
  }
}

 /* REPLADCED NAVBAR CODE
  /* -------------------- Mobile: hide/toggle base -------------------- */
@media (max-width: 768px) {
  .navbar-menu {
    display: none !important;
    flex-direction: column;
    width: 100%;
  }
}

/* ✅ Navigation Bar */
.navbar {
  background-color: #111;
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 0 10px cyan;
}

.navbar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.navbar ul li {
  display: inline;
}

.navbar ul li a {
  text-decoration: none;
  color: cyan;
  font-weight: bold;
  padding: 10px 15px;
  transition: 0.3s ease-in-out;
}

.navbar ul li a:hover {
  background-color: cyan;
  color: black;
  border-radius: 5px;
}

/* ✅ Navbar Styling */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: black;
  padding: 10px 20px;
}

/* ✅ Logo on the Left */
.logo {
  display: flex;
  align-items: center;
}

/* ✅ Center Navbar Links */
.navbar ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  flex-grow: 1;
}

.navbar ul li {
  margin: 0 15px;
}

.navbar ul li a {
  color: cyan;
  text-decoration: none;
                font-size: 16px;
}
.navbar ul li a {
  color: cyan;
  text-decoration: none;
  font-size: 16px;   /* was 16 */
}

/* ✅ Move Wallet & Logout Buttons to the Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 🔽 Navigation Dropdown list appears vertically */
.navbar ul li .dropdown-content {
  display: none;
  position: absolute;
  background-color: #111;
  min-width: 160px;
  z-index: 1;
  border: 1px solid cyan;
  border-radius: 6px;
  flex-direction: column;
}

/* Each link stacks and stretches full width */
.dropdown-content li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px 16px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.dropdown-content li a:hover {
  background-color: cyan;
  color: black;
  box-shadow: 0 0 5px cyan;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background-color: black;
  border-bottom: 2px solid cyan;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Navigation Bar */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 19px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.navbar {
  position: relative;
  z-index: 1000;
  overflow: visible !important;
}

/* ✅ Styled Custom Popup for Index Page */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

/* 🔹 General dropdown menu style */
.dropdown,
.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown a,
.dropdown-toggle {
  color: cyan;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

/* 🔹 Dropdown Menu Layout */
.dropdown-content,
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #111;
  min-width: 200px;
  z-index: 2000;
  right: 0;
  border: 1px solid cyan;
  border-radius: 6px;
  box-shadow: 0 0 10px cyan;
}

.dropdown-content:empty,
.dropdown-menu:empty {
  display: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* 🔹 Reveal dropdown on hover */
.dropdown:hover .dropdown-content,
.dropdown-container:hover .dropdown-menu {
  display: block;
  flex-direction: column;
}

/* 🔹 Menu Items */
.dropdown-menu a,
.dropdown-menu button,
.dropdown-content li {
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  display: block;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

/* 🔹 Hide empty items */
.dropdown-menu a:empty,
.dropdown-menu button:empty,
.dropdown-content li:empty {
  display: none !important;
}

/* ✅ My Account Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  color: cyan;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s, color 0.3s;
}

.dropdown:hover .dropdown-toggle {
  background-color: cyan;
  color: black;
  border-radius: 6px;
}

/* ✅ Dropdown Panel */
#accountDropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #111;
  border: 1px solid cyan;
  border-radius: 6px;
  box-shadow: 0 0 10px cyan;
  min-width: 220px;
  z-index: 2000;
  padding: 8px 0;
}

.dropdown:hover #accountDropdown {
  display: flex;
}

/* ✅ Dropdown Items */
#accountDropdown li {
  display: block;
  width: 100%;
  text-align: center;
}

#accountDropdown li a {
  display: block;
  width: 86%;
  padding: 10px 16px;
  color: cyan;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
  text-align: left;
  font-weight: bold;
  box-sizing: border-box;
}

#accountDropdown li a:hover {
  background-color: cyan;
  color: black;
  box-shadow: 0 0 5px cyan;
}

/* ✅ Align Connect Wallet & Logout buttons */
.nav-right {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-right: 10px;
}

/* ADDED TO CLEAN UP NAVBAR */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }
  .navbar-menu {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .navbar-menu li {
    width: 100%;
    text-align: center;
  }
  .dropdown-content {
    position: static;
    background: black;
    box-shadow: none;
    padding: 10px 0;
  }
  .logo-image {
    margin-bottom: 10px;
    width: 60px;
    height: 60px;
  }
}

/* 🔹 Base Styles */
.navbar {
  background-color: black;
  color: cyan;
  padding: 10px 20px;
  border-bottom: 2px solid cyan;
}

.navbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*.logo-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
*/
.logo-text {
  font-size: 24px; /* was 24 */
  color: cyan;
  text-shadow: 0 0 8px cyan;
  margin-left: 2px;
}

.navbar-menu li a {
  color: cyan;
  text-decoration: none;
  font-weight: bold;
}

@media (min-width: 769px) {
  .navbar-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none !important;
    flex-direction: column;
    background-color: black;
    padding: 10px;
    width: 100%;
  }
  .navbar-menu.show {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  #hamburgerBtn {
    display: none;
  }
}

/* Ensure the toggle class works */
.navbar-menu.show {
  display: flex !important;
}
.logo{ display:flex; align-items:center; gap:6px; } /* controls spacing */
.logo-image{ margin-right:0; }
.logo-text{ margin-left:0; }

footer {
  margin-top: 90px;   /* adjust 60 → 80 if you want more space */
}

/* Hide admin-only menu items by default */
.admin-only {
  display: none;
}

/* 🔹 Tighter spacing just for "My Account" dropdown */
#accountDropdown li {
  margin: 0;              /* no extra li margin */
}

#accountDropdown li a {
  display: flex;          /* keeps icon + text aligned */
  align-items: center;
  padding: 4px 18px;      /* ⬅ reduce top/bottom padding (was probably 10–14px) */
  line-height: 1.2;
}

/* 🔹 My Account dropdown font size */
#accountDropdown li a {
  font-size: 14px;   /* try 13–14px; adjust to taste */
}

.nav-user-name {
  font-size: 0.9rem;
  color: #b8ffff;
  white-space: nowrap;
}
.nav-right {
  position: absolute;
  top: 6px;           /* nudge to line up with My Account */
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;          /* space between “Hello, Jim” and anything else */
}

/* 🔶 Short-screen / small-height layout (e.g., older laptop) */
@media (min-width: 1024px) and (max-height: 800px) {
  /* Slightly smaller base font */
  body {
    font-size: 13px;   /* default is probably 14–16px */
  }

  /* Tighten big headings a bit */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  /* Reduce vertical padding on main containers */
  .page-wrap,
  .content-wrapper,
  .dashboard-container,
  .store-dashboard-grid {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  /* Optional: make big cyan boxes a bit shorter */
  .category-box,
  .listing-card,
  .preview-card {
    margin-top: 12px;
    margin-bottom: 12px;
  }
}


/* Make the greeting smaller & softer */
.nav-user-name {
  font-size: 13px;
  font-weight: 400;
  color: #cccccc;
  letter-spacing: 0.02em;
}

/* 🔶 TrekO Assistant widget */
#trekoAssistantWidget {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999;
  font-family: inherit;
}

/* Collapsed bar */
.ta-collapsed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid #00eaff;
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.7);
  font-size: 13px;
}

.ta-collapsed .ta-caption {
  opacity: 0.8;
  font-size: 12px;
}

/* Status dot */
.ta-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00ff6a; /* online green */
  box-shadow: 0 0 6px rgba(0, 255, 106, 0.9);
}

/* Expanded panel */
.ta-expanded {
  width: 320px;
  max-width: 90vw;
  padding: 14px 16px 12px;
  border-radius: 18px;
  border: 2px solid #00eaff;
  background: #050810;
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.7);
  color: #e8f8ff;
}

/* Panel header */
.ta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ta-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ta-title-text {
  font-weight: 700;
  font-size: 14px;
}

.ta-close-btn {
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  padding: 0 2px;
}

.ta-intro {
  font-size: 12px;
  margin: 4px 0 10px;
}

/* Quick action chips */
.ta-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ta-chip {
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #00eaff;
  background: #02151c;
  color: #e8f8ff;
  font-size: 12px;
  cursor: pointer;
}

.ta-chip:hover {
  background: #00eaff;
  color: #000;
}

/* Footer note */
.ta-footer-note {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.8;
  text-align: center;
}

/* Reuse your global helper */
.hidden {
  display: none !important;
}

/* Mobile: nudge in from edge a bit more */
@media (max-width: 768px) {
  #trekoAssistantWidget {
    bottom: 12px;
    right: 10px;
  }
}

/* ===========================
   TrekO Assistant (global)
   =========================== */

.treko-assistant-root {
  position: fixed;
  right: 20px;
  bottom: 16px;
  z-index: 9999;
  font-family: inherit;
  color: #fff;
}

/* Bubble when collapsed */
.treko-assistant-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid #00eaff;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.6);
  cursor: pointer;
  font-size: 13px;
  backdrop-filter: blur(6px);
}

.treko-assistant-bubble .assistant-icon {
  font-size: 16px;
}

.treko-assistant-bubble .assistant-label {
  font-weight: 600;
}

.treko-assistant-bubble .assistant-sub {
  opacity: 0.8;
}

/* Main panel */
.treko-assistant-panel {
  margin-top: 10px;
  width: 320px;
  max-width: 92vw;
  padding: 16px 18px 14px;
  border-radius: 18px;
  border: 2px solid #00eaff;
  background: #050810;
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.65);
  font-size: 13px;
}

/* Open/closed states */
.treko-assistant-closed .treko-assistant-panel {
  display: none;
}

.treko-assistant-open .treko-assistant-panel {
  display: block;
}

.treko-assistant-open .treko-assistant-bubble {
  display: none;
}

/* Header */
.assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.assistant-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.assistant-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00ff66;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.9);
}

.assistant-title {
  font-weight: 700;
  font-size: 14px;
}

.treko-assistant-close {
  border: none;
  background: transparent;
  color: #ccc;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

.treko-assistant-close:hover {
  color: #fff;
}

/* Body */
.assistant-intro {
  margin: 4px 0 10px;
  font-size: 13px;
  color: #d0f8ff;
}

/* Quick action buttons */
.assistant-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.assistant-pill {
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid #00eaff;
  background: rgba(0, 10, 20, 0.95);
  color: #e8f8ff;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.assistant-pill:hover {
  background: #00eaff;
  color: #001018;
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.9);
}

/* Footer note */
.assistant-footer-note {
  margin: 2px 0 0;
  font-size: 11px;
  color: #9aa0b8;
}

/* Mobile positioning tweak */
@media (max-width: 768px) {
  .treko-assistant-root {
    right: 10px;
    bottom: 10px;
  }

  .treko-assistant-panel {
    width: 95vw;
    max-width: 95vw;
  }
}
/* 🔶 TrekO Assistant: fixed overlay, no horizontal overflow */
#trekoAssistantWidget {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 9999;

  /* Never let it be wider than the viewport */
  max-width: 360px;
  width: min(360px, 100vw - 24px);
  box-sizing: border-box;
}

/* 🔶 TrekO Assistant: tablet / mobile tweaks */
/* 🔶 TrekO Assistant: tablet / mobile layout */
/* 🔶 TrekO Assistant: tablet / mobile layout */
@media (max-width: 768px) {
  /* Root container injected by treko-assistant.js */
  #trekoAssistantRoot,
  .treko-assistant-root {
    position: fixed;
    bottom: 12px;

    /* center the whole widget */
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;

    /* make it clearly narrower than the screen */
    max-width: 320px !important;
    width: 100% !important;

    box-sizing: border-box;
    z-index: 9999;
  }

/* Collapsed bubble width */
#trekoAssistantRoot .treko-assistant-bubble,
.treko-assistant-root .treko-assistant-bubble {
  width: 70% !important;  /*//////////////////////////////////////////////////////////////////////////////////////////////////////*/
  margin: 0 auto;
}

/* Expanded container width */
#trekoAssistantRoot .treko-assistant-panel,
.treko-assistant-root .treko-assistant-panel {
  width: 90% !important;
  margin: 0 auto;
}


  /* center heading + helper text in expanded state */
  #trekoAssistantRoot .assistant-header,
  #trekoAssistantRoot .assistant-intro,
  .treko-assistant-root .assistant-header,
  .treko-assistant-root .assistant-intro {
    text-align: center;
  }
}

.treko-assistant-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}



.assistant-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}






.assistant-avatar-wrap {
  width: 64px;        /* size of the square thumbnail */
  height: 64px;
  flex-shrink: 0;
  border-radius: 0;   /* square, not round */
  overflow: visible;  /* don't crop the image */
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.8);
}

.assistant-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show whole image inside the square */
  object-position: center;
  display: block;
  border-radius: 0;
}

.treko-assistant-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Bubble container */
.treko-assistant-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid #00eaff;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.6);
  cursor: pointer;
  overflow: hidden;          /* 🔶 clip the avatar corners inside the pill */
}

/* Square TrekO thumbnail */
.assistant-avatar-thumb {
  width: 52px;               /* a bit smaller so it breathes */
  height: 52px;
  flex-shrink: 0;

 /* background-image: url("https://treko.ai/wave-5.png"); */
  background-image: url("/images/wave-6.png");
 /* background-image: url("images/wave-5.png");*/
  background-size: cover;
  background-position: 50% 15%;
  background-repeat: no-repeat;

  border-radius: 10px;       /* 🔶 soften corners so they don't fight the pill */
  box-shadow: none;          /* optional: remove extra glow so it doesn't poke out */
}

/* 🔒 Keep OUR STORE page from sliding sideways without affecting other pages */
body.page-store {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .assistant-avatar-wrap {
    width: 26px;
    height: 26px;
  }
}

/* 🔶 Mobile: center the avatar + text inside the bubble */
@media (max-width: 600px) {
  .treko-assistant-bubble {
    justify-content: center;     /* center contents horizontally */
    text-align: left;            /* keep text readable */
    padding-left: 12px;          /* tiny nudge away from the left edge */
    padding-right: 12px;
  }
}
/* USE THE FOLLOWING TO REST SCREEN MOVING LEFT IF NEEDED //////////////// USE THE FOLLOWING TO REST SCREEN MOVING LEFT IF NEEDED */
/*html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}*/

/* 🔒 Desktop only: prevent sideways scroll from any fixed overlays */
/*@media (min-width: 1025px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
  }
}*/

.treko-assistant-panel {
  /* you already have: padding, border, background, box-shadow, etc. */
  display: flex;
  flex-direction: column;
  gap: 8px;

  max-height: 70vh;   /* can be 60–75vh, whatever feels right */
  overflow-y: auto;   /* scroll *inside* the panel if it gets tall */
}

.assistant-ask {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 234, 255, 0.35);
}

.assistant-ask-label {
  font-size: 12px;
  font-weight: 600;
  color: #e8f8ff;
  margin-bottom: 4px;
}

#assistantQuestion {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #00eaff;
  background: #02050b;
  color: #e8f8ff;
  font-size: 12px;
  resize: vertical;
  min-height: 40px;
  box-sizing: border-box;
}

#assistantQuestion::placeholder {
  color: #7aa8c0;
}

#assistantAskBtn {
  margin-top: 6px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #00eaff;
  background: #00eaff;
  color: #001018;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.7);
}

#assistantAskBtn:hover {
  background: #00ffff;
}

  /* Footer: center on mobile */
  .footer-container,
  footer .footer-left,
  footer .footer-right {
    text-align: center;
  }

@media (max-width: 768px) {
  html, body {
    overflow-x: clip;
  }
}

/* Make header a positioning context for the close button */
.assistant-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-right: 40px; /* room for the close button */
}

/* Big, neon, top-right close button */
.treko-assistant-close {
  position: absolute;
  top: 6px;
  right: 6px;

  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #00eaff;
  background: #02050b;
  color: #00eaff;

  font-size: 20px;
  line-height: 24px;
  text-align: center;

  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 234, 255, 0.7);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.treko-assistant-close:hover {
  background: #00eaff;
  color: #000814;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.9);
}
.treko-assistant-close {
  top: 4px;  /* was 6px */
}
.treko-assistant-close {
  font-weight: 700;
  text-shadow: 0 0 6px #00eaff;
}
/* 🔶 TrekO Assistant title text in lime */
.treko-assistant-root .assistant-label {
  color: lime;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 255, 0, 0.7);
}
/* 🔶 TrekO Assistant title text in lime */
.treko-assistant-root .assistant-title {
  color: lime;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 255, 0, 0.7);
}

/* 🔶 WB3T info pill style */
.assistant-pill-info {
  opacity: 0.9;
  font-size: 0.8rem;
  cursor: default;
}
.assistant-pill-info:disabled {
  pointer-events: none;
}
/* 🔶 TrekO Assistant – WB3T logo inside pill */
.assistant-pill-logo {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  vertical-align: middle;
}

