/* BNS Design System - Matured Minimalistic v2 */

:root {
    --primary-color: #0d9488;
    --primary-vibrant: #14b8a6;
    --primary-glow: rgba(20, 184, 166, 0.15);
    --primary-light: #2dd4bf;
    --primary-dark: #0f766e;
    --accent-color: #f59e0b;
    --secondary-color: #0f172a;
    --text-color: #1e293b;
    --text-muted: #475569; /* Darkened for better accessibility/contrast */
    --bg-color: #f8fafc;
    --bg-card: #ffffff;
    --white: #ffffff;
    --danger: #f43f5e;
    --success: #10b981;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    --glow-effect: 0 0 20px var(--primary-glow);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 32px;
    --container-max: 1240px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 72px; /* Prevent content from being hidden behind fixed header */
    transition: padding-top 0.35s ease;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Global Utilities */
.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.text-center {
    text-align: center !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.d-none {
    display: none !important;
}

/* Modal System */
.bns-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bns-modal.active {
    display: flex;
}

.bns-modal-content {
    background: #fff;
    border-radius: 32px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.2);
    animation: modalPop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.bns-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bns-modal-body {
    padding: 32px;
}

.bns-modal-footer {
    padding: 24px 32px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    gap: 12px;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-vibrant), var(--primary-color));
    color: var(--white);
    box-shadow: 0 8px 20px -6px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(20, 184, 166, 0.25);
    filter: brightness(1.05);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-vibrant);
    color: var(--primary-vibrant);
    background: rgba(20, 184, 166, 0.02);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--secondary-color);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: var(--white);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

/* Header & Nav */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2000;
}


@media (max-width: 768px) {
    body { padding-top: 155px; }
    body.header-collapsed { padding-top: 70px; }
}

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

/* Logo */
.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.search-bar-header {
    flex: 1;
    max-width: 520px;
}

.search-bar-header form {
    display: flex;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 8px 24px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.search-bar-header form:focus-within {
    background: var(--white);
    border-color: var(--primary-vibrant);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.08);
}

.search-bar-header input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}

.search-bar-header button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding-right: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    font-size: 20px;
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border: 2px solid var(--white);
    border-radius: 50%;
}

.nav-icon:hover {
    background-color: #f1f5f9;
    color: var(--secondary-color);
}

.mobile-only-text {
    display: none;
}

.mobile-only-flex {
    display: none;
}

.desktop-only-inline {
    display: inline-block;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    background: var(--primary-color);
}

.dropdown-content {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 12px;
    background: var(--white);
    min-width: 240px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 0;
}

.user-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-content a:hover {
    background: #f8fafc;
    color: var(--primary-vibrant);
}

.dropdown-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* ==========================================
   PREMIUM HERO — AIDA-OPTIMISED REDESIGN
   ========================================== */

/* 1. Full-Bleed Gradient Background */
.hero-fullbleed {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 40%, #fffbeb 100%);
    padding: 0;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
}

.hero-bg-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(13, 148, 136, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 100px 0 80px;
    position: relative;
    z-index: 2;
}

/* 2. Content Column */
.hero-content-col {
    flex: 1;
    text-align: center;
}

/* Center search bar and trending pills within the hero content */
.hero-content-col .trending-pills {
    justify-content: center;
}

.hero-content-col p {
    margin-left: auto;
    margin-right: auto;
}

.hero-content-col h1 {
    font-size: 58px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    color: #0f172a;
    margin-bottom: 20px;
    position: relative;
    height: 125px;
    /* Fixed height to prevent layout shift */
}

.hero-headline-carousel {
    display: block;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-highlight {
    background: linear-gradient(135deg, #0d9488, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content-col p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.badge-new {
    background: #ccfbf1;
    color: #0f766e;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    display: inline-block;
    letter-spacing: 0.3px;
}

/* 3. EMBEDDED HERO SEARCH BAR */
.hero-searchbar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(13, 148, 136, 0.08);
    padding: 8px 8px 8px 20px;
    max-width: 680px;
    margin: 0 auto 20px;
    position: relative;
    transition: box-shadow 0.3s;
}

.hero-searchbar:focus-within {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.search-module {
    display: flex;
    align-items: center;
    padding: 2px 0;
}

.query-module {
    flex: 1.5;
    min-width: 200px;
}

.location-module {
    flex: 1;
    border-left: 1.5px solid #e2e8f0;
    padding-left: 12px;
    margin-left: 12px;
    min-width: 140px;
}

.search-icon,
.location-icon {
    color: #94a3b8;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.location-icon {
    color: var(--primary-color);
}

.hero-searchbar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #0f172a;
    background: transparent;
    width: 100%;
}

.hero-state-select {
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230f766e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 14px;
    padding: 8px 24px 8px 4px;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    text-overflow: ellipsis;
}

.hero-searchbar input::placeholder {
    color: #94a3b8;
}

.hero-search-btn {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
}

.hero-search-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
}

/* 4. TRENDING PILLS */
.trending-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 40px;
    padding-bottom: 4px;
}

.trending-pills::-webkit-scrollbar {
    display: none;
}

.trending-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

.trend-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.trend-pill:hover {
    background: #0d9488;
    color: #fff;
    border-color: #0d9488;
    transform: translateY(-2px);
}

/* 5. SOCIAL PROOF STRIP */
.social-proof-strip {
    display: flex;
    align-items: center;
    gap: 16px;
}

.proof-avatars {
    display: flex;
}

.proof-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-left: -12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.proof-avatars img:first-child {
    margin-left: 0;
}

.proof-text {
    display: flex;
    flex-direction: column;
}

.proof-text strong {
    font-size: 14px;
    color: #0f172a;
    font-weight: 800;
}

.proof-text span {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* 6. IMAGE COLUMN + FLOATING TRUST BADGES */
.hero-image-col {
    flex: 1;
    position: relative;
}

.hero-img-stack {
    position: relative;
    height: 500px;
}

.img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 82%;
    height: 90%;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 52%;
    height: 55%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 5px solid #fff;
}

.trust-badge {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    font-size: 13px;
    <!-- Font Awesome 6.4.2 (Latest) -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
    font-weight: 700;
    line-height: 1.4;
    animation: badge-float 3s ease-in-out infinite;
}

.badge-escrow {
    top: 20px;
    right: 0;
    color: #0d9488;
    animation-delay: 0s;
}

.badge-escrow i {
    font-size: 22px;
    color: #0d9488;
}

.badge-verified {
    bottom: 70px;
    left: -10px;
    color: #d97706;
    animation-delay: 1.5s;
}

.badge-verified i {
    font-size: 22px;
    color: #f59e0b;
}

@keyframes badge-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* 7. STAGGER ENTRANCE ANIMATIONS */
.anim-1,
.anim-2,
.anim-3,
.anim-4,
.anim-5,
.anim-6,
.anim-img {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.anim-1 {
    animation-delay: 0.05s;
}

.anim-2 {
    animation-delay: 0.15s;
}

.anim-3 {
    animation-delay: 0.25s;
}

.anim-4 {
    animation-delay: 0.35s;
}

.anim-5 {
    animation-delay: 0.45s;
}

.anim-6 {
    animation-delay: 0.55s;
}

.anim-img {
    animation-delay: 0.20s;
    transform: translateX(24px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* RESPONSIVE: Stack on Mobile */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    .container {
        padding: 0 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-fullbleed {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    .hero-inner {
        flex-direction: column;
        gap: 32px;
        padding: 60px 16px 40px;
        /* Increased top padding to separate from fixed header */
        text-align: center;
        width: 100% !important;
        margin: 0 auto;
    }

    .hero-content-col {
        width: 100%;
    }

    .hero-content-col h1 {
        font-size: 26px;
        /* Slightly smaller for absolute safety */
        letter-spacing: -0.5px;
        height: auto;
        min-height: 60px;
        margin-bottom: 16px;
        width: 100%;
        overflow: hidden;
        margin-top: 50px;
    }

    .hero-slide {
        position: relative;
        /* Change from absolute to relative for easier mobile flow */
        opacity: 0;
        display: none;
        width: 100%;
    }

    .hero-slide.active {
        opacity: 1;
        display: block;
        transform: none;
        <div class="footer-copy">
                    <p>&copy; <?php echo date('Y'); ?> BNS — Trade with confidence.</p>
                    <p style="font-size: 11px; opacity: 0.8; margin-top: 4px; font-weight: 600;">Engineering secondary commerce for everyone.</p>
                    <p style="font-size: 11px; opacity: 0.6; margin-top: 2px;">Powered by Bizlr Technologies.</p>
                </div>
    }

    .hero-content-col p {
        font-size: 15px;
        max-width: 100%;
        margin: 0 auto 24px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        padding: 0 4px;
        line-height: 1.5;
    }

    .hero-searchbar {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        border-radius: 20px;
        padding: 6px;
        gap: 0;
    }

    .search-module {
        width: 100%;
        padding: 10px 12px;
        border-left: none !important;
        margin-left: 0 !important;
    }

    .query-module {
        border-bottom: 1px solid #f1f5f9;
    }

    .location-module {
        padding-top: 10px;
    }

    .hero-state-select {
        font-size: 14px;
        width: 100%;
    }

    .hero-searchbar input {
        text-align: left;
    }

    .hero-search-btn {
        width: 100%;
        padding: 14px;
        border-radius: 14px;
        margin-top: 6px;
        font-size: 15px;
    }

    .trending-pills {
        width: 100%;
        padding: 0 0 10px;
        margin: 0;
        justify-content: flex-start !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-search-cat-container {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        padding-top: 8px;
        background: #fff;
        position: sticky;
        top: 65px;
        /* Refined to align with header height */
        z-index: 1999;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 8px;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-only-text {
        display: inline !important;
        margin-left: 12px;
    }

    .mobile-only-flex {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }

    .desktop-only-inline {
        display: none !important;
    }

    .nav-icon.mobile-list-item {
        width: 100% !important;
        height: auto !important;
        justify-content: flex-start !important;
        border-radius: 0 !important;
        padding: 16px 0 !important;
        background: transparent !important;
    }

    .nav-icon.mobile-list-item i {
        font-size: 20px;
        width: 24px;
        text-align: center;
    }

    .mobile-menu-header {
        display: flex !important;
        width: 100%;
        border-bottom: none !important;
    }

    .nav-links>*:not(.login-btn-mobile, .user-dropdown, .nav-sell-btn) {
        display: flex !important;
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid #f1f5f9;
        font-weight: 600;
        color: #0f172a;
        font-size: 16px;
    }

    .nav-sell-btn {
        width: 100% !important;
        margin-top: 20px !important;
        padding: 16px !important;
        border-radius: 16px !important;
        font-size: 16px !important;
    }

    .login-btn-mobile {
        display: flex !important;
        margin-top: 20px;
    }
}

/* Listings Grid & Cards */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 1200px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.listing-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.listing-thumb {
    position: relative;
    aspect-ratio: 1/1;
    background: #f1f5f9;
    overflow: hidden;
}

.listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.listing-card:hover .listing-thumb img {
    transform: scale(1.06);
}

.listing-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.listing-status-badge.active {
    background: rgba(240, 253, 244, 0.9);
    color: #166534;
    border: 1px solid #dcfce7;
}

.listing-status-badge.sold {
    background: rgba(254, 242, 242, 0.9);
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.listing-status-badge.condition-new {
    background: rgba(5, 150, 105, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--text-muted);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: var(--white);
    color: var(--danger);
}

.listing-info {
    padding: 20px;
}

.listing-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-vibrant);
    margin-bottom: 8px;
}

.listing-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Premium */
.profile-header {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-avatar-lg {
    width: 140px;
    height: 140px;
    border-radius: var(--radius);
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.profile-info h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.profile-stats {
    display: flex;
    gap: 32px;
    margin-top: 20px;
}

.stat {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat strong {
    color: var(--secondary-color);
    font-size: 18px;
    display: block;
    margin-bottom: 2px;
}

.profile-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 16px 32px;
    border: none;
    background: none;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
    font-size: 15px;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Forms */
.form-section {
    padding: 48px;
    border-bottom: 1px solid var(--border-color);
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background: #f8fafc;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.05);
}

/* Informational Pages */
.info-page {
    max-width: 900px;
    margin: 64px auto;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Skeleton */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

/* Footer */
.main-footer {
    background: #0f172a;
    color: #f8fafc;
    padding: 80px 0 40px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle futuristic background glow (optional/minimalist) */
.main-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.footer-col h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-col h3 span {
    color: var(--primary-color);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 28px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* Futuristic spacing */
}

.footer-col p {
    color: #94a3b8;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(6px);
    /* Futuristic drift hover */
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    /* Modern squircle instead of circle */
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 13px;
}

.footer-copy p {
    margin: 0;
    letter-spacing: 0.3px;
}


/* Mobile Navigation Bar */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 2000;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

@media (max-width: 900px) {
    .mobile-nav {
        display: flex;
    }

    .main-footer {
        padding-bottom: 100px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.mobile-nav .nav-item {
    text-align: center;
    color: var(--text-muted);
    font-size: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.mobile-nav .nav-item i {
    font-size: 20px;
}

.mobile-nav .nav-item.active {
    color: var(--primary-color);
}

.nav-item-sell {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-vibrant));
    color: var(--white) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-top: -35px;
    border: 4px solid var(--white);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3);
    text-decoration: none;
    font-weight: 800;
}

.nav-item-sell span {
    font-size: 11px;
    margin-top: 0;
}

/* Informational Pages Premium */
.info-content {
    line-height: 1.8;
    color: var(--text-color);
}

.info-content p {
    margin-bottom: 20px;
}

.info-content h2 {
    margin: 32px 0 16px;
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: 800;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 4px;
}

.info-content ul {
    list-style: none;
    margin: 24px 0;
}

.info-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.info-content ul li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Specifics & Overrides */
.dropdown-item-mobile {
    display: none !important;
}

/* Mobile Search + Category Bar — base hidden, shown by JS on mobile, suppressed while hero is in view */
.mobile-search-cat-container {
    display: none;
    margin-top: 10px;
    max-height: 200px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.4s ease, transform 0.35s ease;
}

/* When hero is visible: collapse height AND opacity — zero space taken */
.mobile-search-cat-container.hero-suppressed {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    pointer-events: none !important;
    transform: translateY(-6px) !important;
}

.search-bar-mobile {
    width: 100%;
}

.search-bar-mobile form {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 50px;
    padding: 10px 20px;
    border: 1px solid transparent;
    transition: 0.2s;
}

.search-bar-mobile form:focus-within {
    background-color: var(--white);
    border-color: var(--primary-color);
}

.search-bar-mobile input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}

.search-bar-mobile button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding-right: 8px;
}

.mobile-categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.mobile-categories-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-cat-pill {
    white-space: nowrap;
    background: #f1f5f9;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 600;
}

.mobile-cat-pill:hover {
    background: var(--primary-vibrant);
    color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 48px;
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 32px;
    }

    .profile-tabs {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    #purchasesTab .card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px;
    }

    #purchasesTab .card img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
    }

    #purchasesTab .card .text-right {
        text-align: left !important;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border-color);
        margin-top: 8px;
        padding-top: 12px;
    }

    #purchasesTab .card .text-right .font-weight-bold {
        margin-bottom: 0 !important;
    }

    #purchasesTab .card .text-right .d-flex {
        flex-direction: row !important;
    }

    .profile-top {
        flex-direction: column;
        gap: 24px;
    }

    .profile-stats {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 12px;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .profile-stats::-webkit-scrollbar {
        display: none;
    }

    .stat {
        font-size: 9px;
        letter-spacing: 0;
    }

    .stat strong {
        font-size: 14px;
    }

    .info-page {
        padding: 0 16px;
        margin: 40px auto;
    }

    .main-header {
        z-index: 10005 !important;
    }

    .mobile-toggle {
        display: none;
    }

    .mobile-toggle {
        display: flex !important;
        font-size: 20px;
        cursor: pointer;
        color: var(--secondary-color);
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #f1f5f9;
        transition: all 0.3s ease;
        border: 1px solid #e2e8f0;
    }

    .mobile-toggle:active {
        transform: scale(0.9);
        background: #e2e8f0;
    }

    .search-bar-header {
        display: none !important;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 9999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 40px 32px;
        box-shadow: -20px 0 60px rgba(15, 23, 42, 0.15);
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        display: flex !important;
        border-radius: 32px 0 0 32px;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-only-text {
        display: inline !important;
        margin-left: 12px;
    }

    .mobile-only-flex {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }

    .desktop-only-inline {
        display: none !important;
    }

    .nav-icon.mobile-list-item {
        width: 100% !important;
        height: auto !important;
        justify-content: flex-start !important;
        border-radius: 0 !important;
        padding: 16px 0 !important;
        background: transparent !important;
    }

    .nav-icon.mobile-list-item i {
        font-size: 20px;
        width: 24px;
        text-align: center;
    }

    .mobile-menu-header {
        display: flex !important;
        width: 100%;
        border-bottom: none !important;
    }

    .nav-links>*:not(.login-btn-mobile, .user-dropdown, .nav-sell-btn) {
        display: flex !important;
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid #f1f5f9;
        font-weight: 600;
        color: #0f172a;
        font-size: 16px;
    }

    .nav-sell-btn {
        width: 100% !important;
        margin-top: 20px !important;
        padding: 16px !important;
        border-radius: 16px !important;
        font-size: 16px !important;
    }

    .login-btn-mobile {
        display: flex !important;
        margin-top: 20px;
    }

    .user-dropdown {
        display: block !important;
        margin-bottom: 20px;
    }

    .dropdown-item-mobile {
        display: flex !important;
    }

    .mobile-search-cat-container {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
    }

    .container {
        padding: 0 10px !important;
    }

    .premium-checkout-wrapper .container {
        padding: 0 12px !important;
    }

    /* Enforce 2 columns for listings and categories */
    .listings-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .listing-info {
        padding: 10px !important;
    }

    .listing-price {
        font-size: 16px !important;
    }

    .listing-title {
        font-size: 12px !important;
        margin-bottom: 8px !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    .listing-meta span {
        font-size: 9px !important;
    }


    /* Sell Page Specifics */
    .sell-container {
        padding: 0 12px !important;
        margin-top: 20px !important;
    }

    .options-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .price-input-wrapper input {
        font-size: 16px;
        height: 50px;
    }
}

/* BNS Category Grid & Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

.category-card-premium {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.category-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, #ffffff, #f0fdfa);
}

.cat-icon-wrapper {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary-color);
    transition: 0.3s;
}

.category-card-premium:hover .cat-icon-wrapper {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(-10deg) scale(1.1);
}

.cat-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Skeleton Enhancements */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
    box-shadow: none !important;
    border: none !important;
}

.skeleton-thumb {
    min-height: 200px;
    width: 100%;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card-premium {
        padding: 20px 12px;
    }

    .cat-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 14px;
    }
}

@keyframes bounceAttention {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-10px) scale(1.1);
    }

    60% {
        transform: translateY(-5px) scale(1.05);
    }
}

.bounce-attention {
    animation: bounceAttention 1s ease;
}

.btn:active {
    transform: scale(0.96) !important;
}

/* Sell Page Enhancements */
.sell-container {
    max-width: 800px;
    margin: 40px auto;
}

.sell-header {
    text-align: center;
    margin-bottom: 40px;
}

.sell-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.sell-header p {
    color: var(--text-muted);
}

.sell-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-section {
    padding: 40px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.section-title p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.advanced-upload-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.upload-placeholder {
    aspect-ratio: 1/1;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.upload-placeholder:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(13, 148, 136, 0.02);
}

.price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.price-input-wrapper .currency {
    position: absolute;
    left: 16px;
    font-weight: 700;
    color: var(--secondary-color);
}

.price-input-wrapper input {
    padding-left: 36px !important;
    font-size: 18px;
    font-weight: 700;
}

.options-group {
    display: flex;
    gap: 24px;
    align-items: center;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.sell-actions {
    padding: 32px 40px;
    background: #f8fafc;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .advanced-upload-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-section {
        padding: 24px;
    }

    .sell-actions {
        flex-direction: column;
    }
}

/* Desktop Categories Bar (Premium Sticky) */
.desktop-categories-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    margin-bottom: 24px;
}

.sticky-top-global {
    position: sticky;
    top: 76px;
    /* Height of main header */
}

.sticky-top {
    position: sticky;
    top: 76px;
}

.cat-pill-minimal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: 0.3s;
}

.cat-pill-minimal i {
    font-size: 16px;
    color: var(--primary-color);
}

.cat-pill-minimal:hover {
    background: var(--bg-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Nearby Deals Styles */
.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--primary-vibrant);
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background-color: var(--primary-vibrant);
    opacity: 0.4;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    70% {
        transform: scale(2.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.nearby-listings .h3 {
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .nearby-listings .listings-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* Listing Status Badges */
.listing-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.listing-status-badge.active { background: var(--primary-vibrant); color: white; }
.listing-status-badge.pending_approval { background: #f59e0b; color: white; }
.listing-status-badge.sold { background: #64748b; color: white; }
.listing-status-badge.reserved { background: #8b5cf6; color: white; }
.listing-status-badge.rejected { background: #ef4444; color: white; }

/* ==========================================
   PREMIUM PROFILE V3 STYLES
   ========================================== */
.profile-v3-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.profile-v3-hero {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 32px;
}

.profile-v3-cover {
    height: 240px;
    background: linear-gradient(135deg, #0d9488, #14b8a6, #f59e0b);
    position: relative;
    overflow: hidden;
}

.profile-v3-cover::before {
    content: " \;
 position: absolute;
 inset: 0;
 background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 50%),
 radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.profile-v3-body {
 padding: 0 40px 40px;
 position: relative;
}

.profile-v3-avatar-wrapper {
 width: 140px;
 height: 140px;
 border-radius: 40px;
 background: #fff;
 padding: 6px;
 margin-top: -70px;
 position: relative;
 z-index: 5;
 box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-v3-avatar {
 width: 100%;
 height: 100%;
 border-radius: 34px;
 object-fit: cover;
}

.profile-v3-info {
 margin-top: 24px;
 display: flex;
 justify-content: space-between;
 align-items: flex-end;
 flex-wrap: wrap;
 gap: 24px;
}

.profile-v3-name-group h1 {
 font-size: 32px;
 font-weight: 900;
 color: #0f172a;
 display: flex;
 align-items: center;
 gap: 12px;
 margin-bottom: 8px;
}

.profile-v3-username {
 font-size: 16px;
 color: #64748b;
 font-weight: 600;
}

.profile-v3-badge {
 color: #0d9488;
 font-size: 20px;
}

.profile-v3-actions {
 display: flex;
 gap: 12px;
}

.profile-v3-stats-bar {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 20px;
 margin-bottom: 40px;
}

.stat-item-v3 {
 background: #fff;
 padding: 24px;
 border-radius: 24px;
 border: 1px solid rgba(0,0,0,0.05);
 text-align: center;
 transition: all 0.3s ease;
}

.stat-item-v3:hover {
 transform: translateY(-5px);
 box-shadow: 0 15px 30px rgba(0,0,0,0.05);
 border-color: var(--primary-vibrant);
}

.stat-val-v3 {
 display: block;
 font-size: 24px;
 font-weight: 800;
 color: #0f172a;
 margin-bottom: 4px;
}

.stat-label-v3 {
 font-size: 13px;
 color: #64748b;
 font-weight: 600;
 text-transform: uppercase;
 letter-spacing: 0.05em;
}

.profile-v3-tabs {
 display: flex;
 gap: 8px;
 background: rgba(0,0,0,0.03);
 padding: 6px;
 border-radius: 16px;
 margin-bottom: 32px;
 width: fit-content;
}

.tab-btn-v3 {
 padding: 10px 24px;
 border-radius: 12px;
 font-size: 14px;
 font-weight: 700;
 color: #64748b;
 background: transparent;
 border: none;
 cursor: pointer;
 transition: all 0.2s ease;
}

.tab-btn-v3.active {
 background: #fff;
 color: var(--primary-color);
 box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.glass-card-premium {
 background: rgba(255, 255, 255, 0.7);
 backdrop-filter: blur(20px);
 border: 1px solid rgba(255, 255, 255, 0.4);
 border-radius: 24px;
 padding: 32px;
 box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

@media (max-width: 768px) {
 .profile-v3-hero { border-radius: 0; margin: -20px -20px 20px; }
 .profile-v3-body { padding: 0 20px 30px; text-align: center; }
 .profile-v3-avatar-wrapper { margin-left: auto; margin-right: auto; }
 .profile-v3-info { justify-content: center; }
 .profile-v3-actions { width: 100%; flex-direction: column; }
 .profile-v3-stats-bar { grid-template-columns: repeat(2, 1fr); }
 .profile-v3-tabs { width: 100%; overflow-x: auto; }
}


/* ---------- Dark Mode Overrides ---------- */
.dark-mode {
  --bg-color: #121212;
  --bg-card: #1e1e1e;
  --text-color: #e5e7eb;
  --text-muted: #9ca3af;
  --border-color: #2d3748;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --primary-color: #0d9488;
  --primary-vibrant: #14b8a6;
  --primary-dark: #0f766e;
  --accent-color: #f59e0b;
  --secondary-color: #f1f5f9;
}
/* Profile page specific dark mode tweaks */
.dark-mode .profile-v3-hero {
  background: var(--bg-card);
  color: var(--text-color);
}
.dark-mode .profile-v3-body {
  background: var(--bg-color);
}
.dark-mode .glass-card-premium {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
}

/* ---------- Desktop Layout Enhancements ---------- */
.profile-desktop-grid {
  gap: 48px;
}
.profile-sidebar-column > .card,
.profile-main-column > .card {
  margin-bottom: 24px;
}
.profile-tabs-nav-container {
  padding: 8px 12px;
}
.profile-v3-stats-bar {
  gap: 12px;
}
.listings-grid {
  gap: 24px;
}
.store-stat-card {
  padding: 24px;
}
/* ---------- Additional Desktop Spacing Enhancements ---------- */
.profile-hero-desktop {
  margin-bottom: 48px;
}
.profile-sidebar-column > .card,
.profile-main-column > .card {
  margin-bottom: 32px;
}
.profile-tabs-nav-container {
  padding: 12px 16px;
}
.profile-v3-body {
  padding: 24px;
}
