/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 0; /* Ensure no stacking context interference */
}

/* Header */
header {
    background: linear-gradient(90deg, #000000 0%, #1a2525 100%);
    color: #ffffff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1002; /* Increased to be higher than the search-container's 1001 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 -1px 10px rgba(29, 53, 53, 0.2);
    border-bottom: 1px solid rgba(29, 53, 53, 0.3);
}

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

header h1 a {
    font-size: 2.2rem;
    color: #e6c07b;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: color 0.3s ease;
}

header h1 a:hover {
    color: #f0d4a3;
}

nav {
    display: inline-block;
    margin-left: 30px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #1d3535;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #cccccc;
}

/* User status */
.user-status {
    position: relative;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    margin-left: 20px;
    padding: 8px 16px;
    background: rgba(29, 53, 53, 0.1);
    border-radius: 20px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.user-status:hover,
.user-status:hover .dropdown-content,
.dropdown-content:hover {
    background: rgba(29, 53, 53, 0.3);
}

.user-status:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
}

.user-status:hover {
    transform: translateY(-2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #2a2a2a; /* Solid dark gray background */
    min-width: 160px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7); /* Stronger shadow for depth */
    z-index: 1002;
    border-radius: 8px;
    border: 1px solid #555555; /* Slightly lighter border for contrast */
    opacity: 0;
    transition: opacity 0.2s ease;
}

.user-status:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
    opacity: 1;
}

.dropdown-content a {
    color: #ffffff;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500; /* Make text bolder */
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(29, 53, 53, 0.8); /* Increase opacity for better contrast */
    color: #e6c07b;
}

/* Search container */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(29, 53, 53, 0.2);
    position: sticky;
    top: 60px; /* Adjust based on header height */
    z-index: 1001;
}

/* Hide search bar on signup/login pages when not logged in */
.signup-section ~ .search-container,
.login-section ~ .search-container {
    display: none;
}

.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    background: #333333;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 5px rgba(29, 53, 53, 0.2);
    border: 1px solid #444444;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.search-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(29, 53, 53, 0.1), rgba(230, 192, 123, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.search-bar:hover::before,
.ssearch-bar:focus-within::before {
    opacity: 1;
}

.search-bar:hover,
.search-bar:focus-within {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

#searchInput {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #ffffff;
    background-color: transparent;
    z-index: 1;
}

#searchInput::placeholder {
    color: #bbbbbb;
    opacity: 1;
}

#searchButton {
    padding: 15px;
    background: linear-gradient(135deg, #1d3535 0%, #000000 100%);
    color: #e6c07b; /* Ensure the icon is visible */
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}


#searchButton:hover,
#searchButton:focus {
    background: linear-gradient(135deg, #2a4f4f 0%, #1d3535 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}


#searchButton i {
    font-size: 1.2rem;
    color: #e6c07b; /* Ensure the icon is visible */
}



/* Dashboard section */
.dashboard {
    padding: 60px 0;
    background: linear-gradient(to bottom, #1a1a1a 0%, #0f0f0f 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.dashboard::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(29, 53, 53, 0.1) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse 20s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

.dashboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.welcome-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-picture-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-picture {
    width: 176px;
    height: 176px;
    border-radius: 50%;
    border: 6px solid #e6c07b; /* Thick gold border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    object-fit: cover;
    background: #333333;
}

#uploadProfilePictureBtn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.dashboard-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #e6c07b;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    position: relative;
}

.dashboard-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #1d3535;
    border-radius: 1px;
}

.dashboard-section {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.dashboard-section h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.dashboard-section p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #bbbbbb;
}

.cta-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #1d3535 0%, #000000 100%);
    color: #ffffff;
    border: 2px solid #444444;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 1px 3px rgba(29, 53, 53, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(230, 192, 123, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.cta-btn:hover::before,
.cta-btn:focus::before {
    width: 10px;
    height: 10px;
}

.cta-btn:hover,
.cta-btn:focus {
    background: linear-gradient(135deg, #2a4f4f 0%, #1d3535 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.cta-btn#addLinkButton {
    margin: 30px auto;
    display: block;
    border: 2px solid #444444;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.add-link-form {
    margin-top: 30px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #444444;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 1px 5px rgba(29, 53, 53, 0.2);
    width: 100%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.add-link-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(29, 53, 53, 0.1) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    animation: shimmer 15s infinite ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) scale(1.2); }
    50% { transform: translateX(100%) scale(1.2); }
    100% { transform: translateX(-100%) scale(1.2); }
}

.add-link-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.add-link-form label {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.add-link-form input {
    padding: 10px;
    border: 1px solid #555555;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    width: 100%;
    background: #333333;
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.add-link-form input:focus {
    border-color: #1d3535;
    box-shadow: 0 0 8px rgba(29, 53, 53, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    background: #3a3a3a;
}

/* Character Count Styling */
.char-count {
    font-size: 0.85rem;
    color: #bbbbbb;
    margin-top: -10px;
    margin-bottom: 5px;
    text-align: right;
    transition: color 0.3s ease;
}

.char-count.warning {
    color: #e6c07b; /* Gold when nearing limit */
}

/* Referral Container */
.referral-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    padding: 20px 0;
    position: relative;
}

.user-referrals-box {
    width: 100%;
    max-width: 1600px;
    height: 500px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 5px rgba(29, 53, 53, 0.2);
    border-radius: 12px;
    border: 2px solid #444444;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.user-referrals-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.user-referrals-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(230, 192, 123, 0.05) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    animation: glow 10s infinite ease-in-out;
}

/* Ensure the container allows the wider box */
.dashboard .container {
    max-width: 1600px; /* Increase from 1200px to match */
}

@keyframes glow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

.user-referrals-box h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e6c07b;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

#userReferralLinks {
    list-style: none;
    margin: 0;
    padding: 0 20px 20px 20px;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    flex-grow: 1;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: #1d3535 #2a2a2a;
    width: 100%; /* Ensure full width */
    word-break: break-word; /* Wrap text vertically */
}

#userReferralLinks::-webkit-scrollbar {
    width: 8px;
}

#userReferralLinks::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 12px;
}

#userReferralLinks::-webkit-scrollbar-thumb {
    background: #1d3535;
    border-radius: 12px;
}

#userReferralLinks::-webkit-scrollbar-thumb:hover {
    background: #2a4f4f;
}

/* Examples and Social Row */
.examples-social-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: stretch;
}

#referralLinks {
    width: 25%; /* Adjust width to fit four boxes in row */
    margin: 0;
    list-style: none;
    padding: 15px;
    border: 2px solid #444444;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 5px rgba(29, 53, 53, 0.2);
    border-radius: 12px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    overflow-wrap: break-word;
    word-wrap: break-word;
    position: relative;
    transition: transform 0.3s ease;
}

#referralLinks:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

#referralLinks li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #ffffff;
}

#referralLinks a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

#referralLinks a:hover {
    color: #e6c07b;
}



/* Referral Link Item */
.referral-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 0;
    width: 100%; /* Full width to use available space */
    word-break: break-word; /* Ensure text wraps */
}

.referral-link-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    flex-grow: 1; /* Allow link text to expand */
    margin-right: 10px; /* Space before delete button */
}

.referral-link-item a:hover {
    color: #e6c07b;
}

.referral-link-item .btn-delete {
    font-size: 0.9rem;
    color: #bbbbbb;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.3s ease;
}

.referral-link-item .btn-delete:hover {
    color: #e6c07b; /* Gold on hover for visibility */
}

/* Notifications Section */
.notifications-section {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: flex-start; /* Align tops of both containers */
}

.notification-bar-container,
.notification-history-container {
    width: 48%; /* Equal width for side-by-side */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.notification-bar-container h4,
.notification-history-container h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e6c07b;
    padding: 10px 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 0; /* Minimize space below title */
}

.notification-bar,
.notification-history-bar {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 5px rgba(29, 53, 53, 0.2);
    padding: 15px;
    overflow-y: auto;
    border-radius: 12px;
    border: 2px solid #444444;
    transition: transform 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: #1d3535 #2a2a2a;
    margin-top: 5px; /* Added small top margin for spacing */
}

.notification-bar::-webkit-scrollbar,
.notification-history-bar::-webkit-scrollbar {
    width: 8px;
}

.notification-bar::-webkit-scrollbar-track,
.notification-history-bar::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 12px;
}

.notification-bar::-webkit-scrollbar-thumb,
.notification-history-bar::-webkit-scrollbar-thumb {
    background: #1d3535;
    border-radius: 12px;
}

.notification-bar::-webkit-scrollbar-thumb:hover,
.notification-history-bar::-webkit-scrollbar-thumb:hover {
    background: #2a4f4f;
}

.notification-bar:hover,
.notification-history-bar:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

/* History Controls */
.history-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px 0 10px 0; /* Increased bottom margin to 10px */
    justify-content: center;
    align-items: center;
}

.history-controls label {
    font-size: 0.9rem; /* Slightly smaller for compactness */
    font-weight: 600;
    color: #e6c07b;
    margin-right: 5px;
}

.history-controls select {
    padding: 4px 8px; /* Smaller padding for compactness */
    background: #333333;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 5px;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.history-controls select:hover,
.history-controls select:focus {
    background: #3a3a3a;
    border-color: #1d3535;
    box-shadow: 0 4px 8px rgba(29, 53, 53, 0.3);
}

#noReferralsMessage {
    font-size: 1rem;
    color: #bbbbbb;
    text-align: center;
    padding: 10px;
    font-style: italic;
}

#userReferralLinks li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #ffffff;
}

#userReferralLinks a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

#userReferralLinks a:hover {
    color: #e6c07b;
}

.notifications {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notification {
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
    color: #ffffff;
    opacity: 0;
    animation: slideIn 0.5s ease forwards, fadeOut 0.5s ease 5s forwards;
    border: 1px solid #444444;
}

.notification-history {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notification-history li {
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
    color: #ffffff;
    border: 1px solid #444444;
}

.notification span,
.notification-history li span {
    font-weight: 600;
    color: #e6c07b;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        height: 0;
        padding: 0;
        margin: 0;
    }
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    color: #ffffff;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #e6c07b;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #bbbbbb;
}

/* Intro Section */
.intro {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(to bottom, #1a1a1a 0%, #0f0f0f 100%);
    color: #ffffff;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #e6c07b;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.intro p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: #bbbbbb;
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 20px;
    border-radius: 12px;
    width: 30%;
    min-width: 250px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 5px rgba(29, 53, 53, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #444444;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.feature-card p {
    font-size: 1rem;
    color: #bbbbbb;
}

/* Product Sections */
/* Enhanced Product Section */
.product-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #1f1f1f 0%, #1a1a1a 100%);
    color: #ffffff;
    position: relative;
    z-index: 0;
    overflow: hidden; /* Contain subtle background effects */
}

.product-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    color: #e6c07b;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    position: relative;
}

.product-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e6c07b 0%, #d4a856 100%);
    border-radius: 2px;
    animation: pulseGlow 4s infinite ease-in-out;
}

.product-section p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #bbbbbb;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 0; /* Ensure no stacking context interference */
}

.product-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid #444444;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1; /* Default stacking level */
}

.product-card.dropdown-open {
    z-index: 1001; /* Higher than other cards when dropdown is open */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.product-card p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #bbbbbb;
}

.product-card button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #1d3535 0%, #000000 100%);
    color: #ffffff;
    border: 2px solid #444444;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-card button:hover {
    background: linear-gradient(135deg, #2a4f4f 0%, #1d3535 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Image Placeholder */
.image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-weight: bold;
    color: #bbbbbb;
    border-radius: 5px;
    border: 1px solid #444444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-placeholder.large {
    height: 300px;
    margin: 0 auto;
    max-width: 800px;
}

/* Search Section */
.search-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #1a1a1a 0%, #0f0f0f 100%);
    color: #ffffff;
}

.search-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    color: #e6c07b;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.search-section p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #bbbbbb;
}



.creator-links {
    list-style: none;
    margin-top: 15px;
}

.creator-links li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.creator-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.creator-links a:hover {
    color: #e6c07b;
}

.creator-links button {
    padding: 8px 15px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #1d3535 0%, #000000 100%);
    color: #ffffff;
    border: 2px solid #444444;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.creator-links button:hover {
    background: linear-gradient(135deg, #2a4f4f 0%, #1d3535 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Social Hub */
.social-hub {
    padding: 60px 0;
    background: linear-gradient(to bottom, #1f1f1f 0%, #1a1a1a 100%);
    color: #ffffff;
}

.social-hub h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    color: #e6c07b;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.social-hub p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #bbbbbb;
}

.post-form {
    max-width: 600px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 5px rgba(29, 53, 53, 0.2);
    border: 1px solid #444444;
}

.post-form h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.post-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-form textarea {
    padding: 10px;
    border: 1px solid #555555;
    border-radius: 5px;
    outline: none;
    resize: vertical;
    height: 120px;
    font-size: 1rem;
    background: #333333;
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.post-form textarea:focus {
    border-color: #1d3535;
    box-shadow: 0 0 8px rgba(29, 53, 53, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    background: #3a3a3a;
}

.post-form button {
    padding: 10px;
    background: linear-gradient(135deg, #1d3535 0%, #000000 100%);
    color: #ffffff;
    border: 2px solid #444444;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.post-form button:hover {
    background: linear-gradient(135deg, #2a4f4f 0%, #1d3535 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.posts {
    max-width: 600px;
    margin: 0 auto;
}

.post {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid #444444;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.post p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #ffffff;
}

.post span {
    font-size: 0.9rem;
    color: #bbbbbb;
}

/* Sign-up Section */
.signup-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    color: #ffffff;
}

.signup-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #e6c07b;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.signup-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #bbbbbb;
}

.signup-section form {
    max-width: 400px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.signup-section input {
    padding: 12px;
    border: 1px solid #555555;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
    background: #333333;
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.signup-section input:focus {
    border-color: #1d3535;
    box-shadow: 0 0 8px rgba(29, 53, 53, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    background: #3a3a3a;
}

.or {
    font-size: 1.2rem;
    margin: 20px 0;
    color: #bbbbbb;
}

.social-signup {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #1d3535 0%, #000000 100%);
    color: #ffffff;
    border: 2px solid #444444;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-btn:hover {
    background: linear-gradient(135deg, #2a4f4f 0%, #1d3535 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Call to Action */
.call-to-action {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(to bottom, #1a1a1a 0%, #0f0f0f 100%);
    color: #ffffff;
}

.call-to-action h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #e6c07b;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.call-to-action p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #bbbbbb;
}

/* Additional Sections */
.why-trending, .search-tips, .community-info, .signup-benefits, .dashboard-tips, .creator-bio {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(to bottom, #1a1a1a 0%, #0f0f0f 100%);
    color: #ffffff;
}

.why-trending h2, .search-tips h2, .community-info h2, .signup-benefits h2, .dashboard-tips h2, .creator-bio h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #e6c07b;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.why-trending p, .search-tips p, .community-info p, .signup-benefits p, .dashboard-tips p, .creator-bio p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: #bbbbbb;
}

.benefits, .tips {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-card, .tip-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 20px;
    border-radius: 12px;
    width: 30%;
    min-width: 250px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 5px rgba(29, 53, 53, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #444444;
}

.benefit-card:hover, .tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.benefit-card h3, .tip-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.benefit-card p, .tip-card p {
    font-size: 1rem;
    color: #bbbbbb;
}

/* Login section */
.login-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    color: #ffffff;
}

.login-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #e6c07b;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.login-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #bbbbbb;
}

.login-form {
    max-width: 400px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.login-form input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: #333333;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

.login-form input::placeholder {
    color: #bbbbbb;
    opacity: 1;
}

.login-form input:hover,
.login-form input:focus {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.login-form input:focus {
    background: #3a3a3a;
    border: 1px solid #1d3535;
}

/* Signup link */
.signup-link {
    margin-top: 15px;
    font-size: 1rem;
    text-align: center;
}

.signup-link a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #e6c07b;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #000000 0%, #1a2525 100%);
    color: #ffffff;
    text-align: center;
    padding: 30px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6), inset 0 1px 5px rgba(29, 53, 53, 0.2);
    border-top: 1px solid rgba(29, 53, 53, 0.3);
}

footer .container {
    background: transparent;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icon {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #e6c07b;
    transform: scale(1.2);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #cccccc;
}

footer p {
    font-size: 0.9rem;
    color: #bbbbbb;
}

.top-clickers {
    margin-top: 40px;
    text-align: center;
}

.top-clickers h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #e6c07b;
}

.clickers-list {
    list-style: none;
    padding: 0;
}

.clickers-list li {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #bbbbbb;
}

/* Masterful Leaderboard Stats */
.leaderboard-stats {
    margin: 0 auto 30px;
    padding: 20px 25px;
    max-width: 600px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 60%, #151515 100%);
    border: 2px solid #444444;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(29, 53, 53, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leaderboard-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 192, 123, 0.1) 0%, transparent 70%);
    opacity: 0.2;
    animation: radiantPulse 8s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.leaderboard-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(29, 53, 53, 0.4);
}

.leaderboard-stats p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e6c07b;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.leaderboard-stats p:hover {
    color: #f0d4a3;
}

.leaderboard-stats span {
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(90deg, #d4a856, #e6c07b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 2px 8px;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.leaderboard-stats span:hover {
    transform: scale(1.1);
}

@keyframes radiantPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.2); opacity: 0.4; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}


/* Genius Leaderboard Controls */
.leaderboard-controls {
    margin: 0 auto 40px;
    padding: 15px 20px;
    max-width: 900px;
    background: linear-gradient(135deg, #252525 0%, #1c1c1c 70%, #151515 100%);
    border: 2px solid #555555;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(29, 53, 53, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leaderboard-controls::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(230, 192, 123, 0.05), transparent);
    opacity: 0.3;
    animation: shimmerWave 6s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.leaderboard-controls:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(29, 53, 53, 0.3);
}

.time-filter, #refreshLeaderboard {
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a4f4f 0%, #1d3535 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.time-filter::before,
#refreshLeaderboard::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(230, 192, 123, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.time-filter:hover::before,
#refreshLeaderboard:hover::before {
    width: 200px;
    height: 200px;
}

.time-filter:hover,
#refreshLeaderboard:hover {
    background: linear-gradient(135deg, #3a6f6f 0%, #2a4f4f 100%);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    color: #f0d4a3;
}

.time-filter.active {
    background: linear-gradient(135deg, #e6c07b 0%, #d4a856 100%);
    box-shadow: 0 6px 18px rgba(230, 192, 123, 0.3);
    transform: scale(1.1);
    color: #1a1a1a;
    font-weight: 700;
}

.time-filter.active:hover {
    background: linear-gradient(135deg, #f0d4a3 0%, #e6c07b 100%);
    transform: scale(1.15) translateY(-2px);
}

#refreshLeaderboard {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    padding: 10px 22px;
}

#refreshLeaderboard:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

@keyframes shimmerWave {
    0% { transform: translateX(-100%) scale(1.2); }
    50% { transform: translateX(100%) scale(1.2); }
    100% { transform: translateX(-100%) scale(1.2); }
}

/* Product grid - vertical stacking */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 0; /* Ensure no stacking context interference */
}

/* Product card updates for dropdown compatibility */
.product-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid #444444;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1; /* Default stacking level */
}

.product-card.dropdown-open {
    z-index: 1001; /* Higher than other cards when dropdown is open */
    position: relative; /* Ensure z-index applies */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.product-card h3::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
    vertical-align: middle;
}

.product-card:nth-child(1) h3::before { background-color: gold; }
.product-card:nth-child(2) h3::before { background-color: silver; }
.product-card:nth-child(3) h3::before { background-color: #cd7f32; }
.product-card:nth-child(n+4) h3::before { background-color: #ccc; }

.product-card p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #bbbbbb;
}

.product-card .trend {
    font-size: 14px;
    margin-left: 10px;
}

.product-card .trend.up {
    color: #28a745; /* Green for up */
}

.product-card .trend.down {
    color: #dc3545; /* Red for down */
}

.custom-dropdown {
    position: relative;
    display: inline-block;
    font-family: 'Arial', sans-serif; /* Match your site’s font */
}

.dropdown-trigger {
    padding: 10px 20px;
    background-color: #ffffff;
    border: 1px solid #007bff; /* Adjust to your theme’s primary color */
    border-radius: 6px;
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-trigger:hover {
    background-color: #007bff;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.dropdown-trigger::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown-trigger.active::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    opacity: 0;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 5px 0;
    margin: 0;
    z-index: 9999; /* Increased to ensure it appears above footer and other elements */
    min-width: 180px;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 8px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-menu li:hover {
    background-color: #f5f7fa;
    color: #007bff;
}
/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination button {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button:hover:not(.active) {
    background-color: #f0f0f0;
}

/* Like button and count */
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    color: #007bff;
}

.like-btn:hover {
    color: #0056b3;
}

.like-count {
    margin-left: 10px;
    font-size: 14px;
    color: #555;
}

.action-select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    cursor: pointer;
    width: 150px; /* Adjust as needed */
}

/* explore page / previously comingsoon.html page */
.explore-section {
    padding: 60px 0;
    background: #1a1a1a;
    color: #ffffff;
}

.explore-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #e6c07b;
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.post-form textarea,
.post-form input[type="file"] {
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #333;
    color: #fff;
}

.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #444;
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.post-header .username {
    font-weight: 600;
    color: #e6c07b;
}

.post-header .timestamp {
    font-size: 0.8rem;
    color: #bbb;
}

.post-content p {
    margin: 0;
    font-size: 1rem;
}

.post-content img {
    margin-top: 10px;
    max-width: 100%;
    border-radius: 8px;
}

.post-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px; /* Adjusted for better spacing */
    margin-bottom: 15px;
}

.post-actions button {
    background: none;
    border: 2px solid #444; /* Added border for consistency with comment form button */
    padding: 5px 10px; /* Added padding for better appearance */
    border-radius: 5px; /* Added border-radius for consistency */
    color: #e6c07b;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease; /* Smooth hover transition */
}

.post-actions button:hover {
    background: #e6c07b;
    color: #1a1a1a; /* Contrast color on hover */
}

.comment-form {
    display: flex;
    flex-direction: column; /* Stack textarea and button vertically */
    gap: 10px;
    margin-top: 10px;
}

.comment-form textarea {
    flex: 1;
    padding: 8px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #333;
    color: #fff;
    resize: vertical; /* Allow vertical resizing only */
}

.comment-form button {
    padding: 8px 15px;
    background: #1d3535;
    color: #fff;
    border: 2px solid #444;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease; /* Smooth hover transition */
}

.comment-form button:hover {
    background: #2a5a5a; /* Slightly lighter shade for hover */
}

.post-comments {
    margin-top: 20px;
}

.comments-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.comment {
    background: #333;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.comment .username {
    font-weight: 600;
    color: #e6c07b;
}

.comment p {
    margin: 5px 0; /* Adjusted for better spacing */
    font-size: 0.9rem;
}

.comment .timestamp {
    font-size: 0.8rem;
    color: #bbb;
}

/* Add these new styles at the end of styles.css */

/* Enhanced Post Display (#2) */
.post-enhanced {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #444;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.post-enhanced-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e6c07b;
    object-fit: cover;
}

.post-enhanced-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #555;
}

.comment-enhanced-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Feedback Styling for #8 */
.feedback-message,
.post-feedback-message,
.comment-feedback-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    display: none;
    text-align: center;
}

.feedback-message.success,
.post-feedback-message.success,
.comment-feedback-message.success {
    background: #28a745;
    color: #fff;
    display: block;
}

.feedback-message.error,
.post-feedback-message.error,
.comment-feedback-message.error {
    background: #dc3545;
    color: #fff;
    display: block;
}

/* Pagination Controls for #5 */
.pagination-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-controls button {
    padding: 8px 12px;
    border-radius: 5px;
    border: 2px solid #444;
    background: #1d3535;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-controls button:hover {
    background: #2a4f4f;
}

.pagination-controls button.active {
    background: #e6c07b;
    color: #1a1a1a;
}

/* Delete Buttons and Deleted Post Placeholder */
.delete-post-btn,
.delete-comment-btn {
    background: #dc3545;
    border: 2px solid #444;
    padding: 5px 10px;
    margin-left: 10px;
    color: #fff;
    border-radius: 5px;
}

.delete-post-btn:hover,
.delete-comment-btn:hover {
    background: #c82333;
}

.post-deleted-message {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border: 2px dashed #dc3545;
    color: #dc3545;
    text-align: center;
    font-style: italic;
}

/* delete post  on comingsoon.html */

.delete-post {
    background: none;
    border: none;
    color: #ff5555;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.delete-post:hover {
    color: #ff7777;
}


/* Comment and Reply Form Styling */
.reply-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.reply-input {
    padding: 8px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #333;
    color: #fff;
    resize: vertical;
}

/* Action Buttons Feedback States */
button.liked,
button.shared {
    background: #e6c07b !important;
    color: #1a1a1a !important;
}

/* Ensure no overlap with existing .post and .comment classes by using more specific selectors */
.explore-section .post-enhanced,
.explore-section .comment-enhanced {
    margin-bottom: 15px;
}

.explore-section .comment-enhanced {
    background: #333;
    padding: 10px;
    border-radius: 8px;
}

.explore-section .post-actions button,
.explore-section .comment-actions button {
    transition: background 0.3s ease, color 0.3s ease;
}

.explore-section .post-actions button:hover,
.explore-section .comment-actions button:hover {
    background: #e6c07b;
    color: #1a1a1a;
}

/* Loading Indicator */
.loading-indicator p {
    font-size: 1rem;
    color: #e6c07b;
    font-weight: 600;
    animation: pulseText 1.5s infinite ease-in-out;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* No More Posts Message */
.no-more-posts p {
    font-size: 1rem;
    color: #bbbbbb;
    font-style: italic;
}

/* Comment Profile Picture Styling */
.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-header-info {
    display: flex;
    flex-direction: column;
}

.comment-profile-picture {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #e6c07b;
    object-fit: cover;
}

.comment .username {
    font-weight: 600;
    color: #e6c07b;
}

.comment .timestamp {
    font-size: 0.8rem;
    color: #bbb;
}

.username {
    color: #e6c07b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.username:hover {
    color: #ffcc00;
    text-decoration: underline;
}

/* Search Results Dropdown */

.search-results {
    position: absolute;
    top: calc(100% + 5px); /* Add a small gap below the search bar */
    left: 0;
    right: 0;
    background: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1002; /* Higher than the search bar */
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.search-results .result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-results .result-item:hover {
    background: #3a3a3a;
}

.search-results .result-item:last-child {
    border-bottom: none;
}

.search-results .result-item .result-type {
    font-size: 0.8rem;
    color: #e6c07b;
    text-transform: uppercase;
}

.search-results .result-item .result-name {
    font-size: 1rem;
    color: #bbbbbb;
}

.search-results .result-item .result-details {
    font-size: 0.9rem;
    color: #888;
}

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.chat-item {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.chat-item h4 {
    margin: 0;
    font-size: 1.2em;
    color: #e6c07b;
}

.chat-item p {
    margin: 5px 0 0;
    color: #cccccc;
    font-size: 0.9em;
}

.chat-item .cta-btn {
    background: #e6c07b;
    color: #1a2525;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.chat-item .cta-btn:hover {
    background: #d4b06a;
}

.chat-item .delete-btn {
    background: #ff5555;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.chat-item .delete-btn:hover {
    background: #e64444;
}

.chat-item .description {
    color: #cccccc;
    font-size: 0.9em;
    margin: 5px 0;
    line-height: 1.4;
}

.chat-item .chat-stats {
    color: #999999;
    font-size: 0.85em;
    margin: 5px 0 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .search-bar input {
        width: 200px;
    }

    .product-grid, .search-results, .features, .benefits, .tips {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .feature-card, .benefit-card, .tip-card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    header {
        text-align: center;
    }

    nav {
        display: block;
        margin: 15px 0;
    }

    .search-bar {
        float: none;
        margin-top: 15px;
        justify-content: center;
    }

    .search-bar input {
        width: 100%;
        max-width: 300px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .product-grid, .search-results, .features, .benefits, .tips {
        grid-template-columns: 1fr;
    }

    .feature-card, .benefit-card, .tip-card {
        width: 100%;
    }

    .social-signup {
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        display: inline-block;
        margin: 5px 10px;
    }

    .referral-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .user-referrals-box,
    .examples-social-row {
        width: 100%;
        max-width: 1200px;
        margin-bottom: 30px;
    }

    .examples-social-row {
        flex-direction: column;
        gap: 20px;
    }

    #referralLinks,
    .social-section {
        width: 100%;
    }

    .social-section {
        flex-direction: column;
        gap: 20px;
    }

    .following-container,
    .followers-container,
    .messages-container {
        width: 100%;
    }

    .notifications-section {
        flex-direction: column;
        gap: 30px;
    }

    .notification-bar-container,
    .notification-history-container {
        width: 100%;
        margin-bottom: 30px;
    }

    .notification-bar,
    .notification-history-bar {
        height: 300px;
    }

    .add-link-form {
        margin-bottom: 30px;
        max-width: 900px;
    }

    .cta-btn#addLinkButton {
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    header h1 a {
        font-size: 1.8rem;
    }

    nav a {
        margin: 0 10px;
        font-size: 1rem;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .cta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .social-icons {
        font-size: 1.5rem;
    }

    .notification-bar,
    .notification-history-bar {
        height: 300px;
    }

    .notification,
    .notification-history li {
        padding: 4px;
        font-size: 0.65rem;
    }

    .referral-link-item .btn-delete {
        font-size: 0.8rem;
        padding: 0 4px;
    }
}