:root { --primary: #ff4500; --border: #d0d3d7; --bg: #f2f4f7; --input-bg: #f0f2f5; --blue: #0079D3; --green: #079253; --secondary-icon: #65686c; --secondary-text: #65686c;
    --shadow: rgba(0, 0, 0, .2); 
    
}
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 52px; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f2f4f7; 
    color: #1c1e21;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background-color: #ffffff;
    box-shadow: 0 1px 4px 0 hsla(0,0%,74.5%,.5);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand-logo {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Söhne", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #FF4500;
    letter-spacing: -0.06em;
    text-decoration: none;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.brand-logo:hover {
    opacity: 0.9;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Navigation Links & User Profile UI */
.user-greeting {
    font-size: 0.9rem;
    font-weight: 600;
    color: #050505;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #65676b;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background-color: #f0f2f5;
    color: #050505;
}

.nav-icon-link {
    color: #050505;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.nav-icon-link:hover {
    background-color: #f0f2f5;
}

.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.user-profile-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 50%;
    outline: none;
}

.user-profile-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 330px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 6px 0;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
}

/* Custom scrollbar for dropdowns on desktop */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: #bcc0c4;
    border-radius: 3px;
}

.dropdown-wrapper.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile dropdown positioning adjustments */
@media (max-width: 576px) {
    .dropdown-wrapper {
        position: static;
    }

    .dropdown-menu {
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }
}

.dropdown-header {
    padding: 10px 16px;
    display: flex;
    border-bottom: 1px solid #eff3f4;
    align-items: center;
    justify-content: space-between;
}

.dropdown-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #050505;
}

.dropdown-see-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary, #ff4500);
    text-decoration: none;
}

.dropdown-see-all:hover {
    text-decoration: underline;
}

.dropdown-notif-list {
    display: flex;
    flex-direction: column;
    max-height: 380px;
}

.dropdown-notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #050505;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.35;
}

.dropdown-notif-item:hover {
    background-color: var(--bg);
}

.dropdown-notif-item.unread {
    background-color: #fff5f0;
}

.dropdown-notif-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #e4e6eb;
}

.dropdown-notif-content {
    flex: 1;
    min-width: 0;
}

.dropdown-notif-time {
    font-size: 0.75rem;
    color: #65676b;
    margin-top: 2px;
}

.dropdown-loading, .dropdown-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #65676b;
}

/* Deals Dropdown Extensions */
.dropdown-deal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: #050505;
    text-decoration: none;
    transition: background-color 0.15s ease;
    gap: 12px;
}

.dropdown-deal-item:hover {
    background-color: #f0f2f5;
}

.dropdown-deal-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.dropdown-deal-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #050505;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-deal-meta {
    font-size: 0.75rem;
    color: #65676b;
}

.dropdown-deal-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.dropdown-deal-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #050505;
}

.dropdown-user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #050505;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #050505;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--bg);
}

.dropdown-icon-svg {
    width: 18px;
    height: 18px;
    color: var(--secondary-icon);
    flex-shrink: 0;
}

.dropdown-balance-val {
    margin-left: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #079253;
}






.nav-icon-svg {
    width: 20px;
    height: 20px;
}
.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #e4e6eb;
    border: 1px solid #d8dadf;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar svg {
    width: 22px;
    height: 22px;
    fill: #65676b;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Button Component Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.nav-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f2f5;
    text-decoration: none;
    color: var( --secondary-icon);
    flex-shrink: 0;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background-color: #fa383e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 12px;
    text-align: center;
    border: 2px solid #ffffff;
    box-sizing: content-box;
}




.listing-container {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 16px;
}

.listing-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.marketplace-wrapper {
    width: 100%;
}

.sidebar-content {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 72px; /* Header height (56px) + 16px offset */
}

/* Shared Card Panel UI */
.panel-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px var(--shadow);
}

.panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.panel-body {
    padding: 16px;
}


@media (max-width: 900px) {
    .listing-layout { 
        flex-direction: column; 
        gap: 12px; 
    }
    .listing-container { 
        padding: 0 8px; 
    }
    .sidebar-content { 
        width: 100%; 
        position: static; 
    }
}

@media (max-width: 768px) {
    .header-search {
        max-width: 180px;
    }

    .user-name {
        display: none; 
    }
    
    .user-profile-link {
        padding: 0; 
    }

    .btn-text, .link-text {
        display: none; 
    }

    .btn {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }

    .header-search {
        display: none;
    }

    .brand-logo {
        font-size: 1.1rem;
    }
}

/* SCROLLBAR*/
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: white; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.45); border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.6); }
* { scrollbar-width: auto; scrollbar-color: rgba(0, 0, 0, 0.4) white; }
html { scrollbar-gutter: stable; }

@media (max-width: 768px) {
    *::-webkit-scrollbar { display: none !important; }
    * { scrollbar-width: none !important; }
    * { -ms-overflow-style: none; }
}




.main-footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
    padding: 32px 0 20px 0;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.footer-brand-col {
    padding-right: 20px;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary, #ff4500);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-tagline {
    margin: 0;
    font-size: 0.825rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 280px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0f172a;
    margin-bottom: 4px;
}

.footer-link {
    color: #475569;
    text-decoration: none;
    font-size: 0.825rem;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--primary, #2563eb);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    font-size: 0.775rem;
    color: #94a3b8;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal-link {
    color: #64748b;
    text-decoration: none;
}

.footer-legal-link:hover {
    color: #0f172a;
}

.footer-dot {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .footer-brand-col {
        grid-column: span 2;
        padding-right: 0;
    }
    
    .mobile-hide {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}