/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }
  .navbar-container {
    padding: 0 15%;
    background-color: #fdfdfd;
    border-bottom: 1px solid #e0e0e0;
  }
  
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fdfdfd; /* very light */
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .navbar .brand {
    display: flex;
    align-items: center;
  }
  
  .navbar .brand img {
    height: 45px;
    margin-right: 0.75rem;
  }
  
  .navbar .brand span {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
  }
  
  .navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .navbar .nav-links a {
    text-decoration: none;
    color: #444;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .navbar .nav-links a:hover {
    color: #007bff;
  }
  
  .search-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
  }
  
  /* Signup button with better color */
  .signup-btn {
    position: relative;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background 0.3s ease, transform 0.2s;
  }
  
  .signup-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #006ae0, #00b0e6);
  }
  
  .signup-btn .dropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 100;
  }
  
  .signup-btn:hover .dropdown {
    display: block;
  }
  
  .signup-btn .dropdown a {
    display: block;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
    font-size: 1rem;
  }
  
  .signup-btn .dropdown a:hover {
    background-color: #f5f5f5;
  }
  
  /* Wallet button for logged-in users */
  .wallet-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid #28a745;
    border-radius: 0.5rem;
    background-color: #fff;
    color: #28a745;
    font-size: 1rem;
    gap: 0.5rem;
    cursor: pointer;
  }
  
  /* Hide navbar on smaller devices */
  @media (max-width: 1024px) {
    .navbar {
      display: none;
    }
  }
  /* Mobile css */
  .floating-menu {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 97%;
    height: 75px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }
  
  .menu-item {
    flex: 1;
    text-align: center;
    color: black;
    font-size: 12px;
    transition: all 0.3s ease;
  }
  .menu-item a {
    color: inherit;
    text-decoration: none;
    display: block;
  }
  
  
  .menu-item .icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    margin-top: -10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
  }
  
  .menu-item span {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-family: 'Poppins', sans-serif;
  }
  
  .menu-item.active .icon {
    background: linear-gradient(135deg, #32CD32, #90EE90);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(50, 205, 50, 0.5);
    transform: translateY(-5px) scale(1.15);
  }
  
  .menu-item.active {
    transform: translateY(-5px);
  }
  
  .mobile-item-balance {
    font-weight: bold;
  }
  
  /* Hide on desktop */
  @media (min-width: 1024px) {
    .floating-menu {
      display: none;
    }
  }
  
  .more-modal-mask {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px) brightness(0.8);
    justify-content: flex-start;
    align-items: center;
    z-index: 1000;
}
.more-modal-mask.show {
    display: flex;
}

.more-panel {
    width: 75vw;
    height: 100vh;
    margin-left: 2.5vw;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    position: relative;
    overflow-y: auto;

    /* Remove the bottom padding since .more-actions is no longer fixed */
    padding-bottom: 20px;
}

/* Remove absolute positioning so it scrolls with content */
.more-actions {
    position: static; /* or just remove position */
    margin-top: 20px;  /* spacing from sidebar items */
    display: flex;
    gap: 10px;
    justify-content: flex-start; /* or center if you want */
    flex-wrap: wrap; /* optional if you want them on multiple lines */
    z-index: auto;
}

.more-panel-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 20px;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}
.more-panel-item i {
    margin-right: 12px;
    font-size: 18px;
    color: #007bff;
    width: 24px;
    text-align: center;
}

/* Active sidebar item */
.more-panel-item.active {
    background: rgba(40,167,69,0.1);
}
.more-panel-item.active:before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #28a745;
    border-radius: 50%;
}

/* Pulsating effect */
@keyframes pulsate {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.more-panel-item.active i {
    animation: pulsate 1.5s infinite;
}

.more-action-item {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.more-action-item i {
    font-size: 20px;
    margin-bottom: 6px;
    color: #28a745;
}
.more-action-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .more-modal-mask { display: none !important; }
}