:root { --primary: #ff4500; --primary-hover: #e03d00; --surface: rgba(255, 69, 0, 0.1); --border: #d0d3d7; --bg: #f2f4f7; --input-bg: #f0f2f5; --button-background: #e2e5e9; --blue: #0079D3; --green: #079253; --secondary-icon: #65686c; --primary-text: #080809; --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 2px 0 hsla(0,0%,74.5%,.5);
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1720px; 
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 17px;
    width: auto;
    display: block;
}

.brand-logo:hover {
    opacity: 0.9;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}





/* Mescro Search */
.header-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.header-search-pill {
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border: none;
    border-radius: 20px;
    padding: 0 12px;
    height: 36px;
    width: 180px;
    gap: 8px;
    cursor: pointer;
    color: #65676b;
    font-size: 14px;
    transition: background 0.15s ease, border-color 0.15s ease, width 0.2s ease;
}

.header-search-pill-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.header-search-pill-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-input-wrapper {
    display: none;
    align-items: center;
    background: #f0f2f5;
    border: none;
    border-radius: 20px;
    padding: 0 8px 0 4px;
    height: 36px;
    width: 280px;
    gap: 6px;
}

.header-search-form.expanded .header-search-pill {
    display: none;
}

.header-search-form.expanded .header-search-input-wrapper {
    display: flex;
}

.header-search-back-btn,
.header-search-submit-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #65676b;
    border-radius: 50%;
    flex-shrink: 0;
}

.header-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #050505;
    width: 100%;
}

@media (max-width: 768px) {
    .header-search-pill {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        background: none;
        border: none;
        color: var(--primary-text);
    }
    .header-search-pill:hover {
        background-color: var(--button-background);
        color: #050505;
    }
    .header-search-pill-text {
        display: none;
    }
    .header-search-form.expanded {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: #ffffff;
        padding: 0 12px;
        z-index: 10;
        display: flex;
        align-items: center;
    }
    .header-search-form.expanded .header-search-input-wrapper {
        display: flex;
        width: 100%;
        border-radius: 6px;
        height: 40px;
    }
}





.user-greeting {
    font-size: 0.9rem;
    font-weight: 600;
    color: #050505;
    display: flex;
    align-items: center;
    gap: 6px;
}

.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: none;
    border-radius: 12px;
    box-shadow: 0 2px 4px 0 var(--shadow);
    padding: 6px 0;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
}

.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);
}

@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: 14px;
    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;
}

.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.unread { background: rgba(255, 69, 0, 0.06); }

.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: 14px;
    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: 600;
    font-size: 16px;
    color: #050505;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #050505;
    text-decoration: none;
    font-size: 15px;
    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-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    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;
}

.profile-chevron-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    background-color: #e4e6eb;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050505;
}

.profile-chevron-badge svg {
    width: 12px;
    height: 12px;
    stroke-width: 3;
}

/* Button Component Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    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: none;
    text-decoration: none;
    color: var( --primary-text);
    flex-shrink: 0;
    cursor: pointer;
}

.nav-icon-btn:hover {
    background-color: var(--button-background);
    color: #050505;
}

.nav-create-btn { width: auto; padding: 0 8px; gap: 6px; border-radius: 8px; }
.nav-create-text { font-size: 14px; font-weight: 600; color: var(--text-main, #050505); }

.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 {
    width: 100%;
    max-width: 1720px; 
    margin: 16px auto;
    padding: 0 24px; 
}

.listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

/* If a page has 3 columns (Left Nav, Main Feed, Right Sidebar) or standard 2 columns */
@media (min-width: 1400px) {
    .listing-layout.has-three-columns {
        grid-template-columns: 280px minmax(0, 1fr) 340px;
    }
}

.main-content {
    min-width: 0;
    width: 100%;
}

.marketplace-wrapper {
    width: 100%;
}

.sidebar-content {
    width: 100%;
    position: sticky;
    top: 68px; 
}

.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: 1024px) {
    .listing-layout { 
        grid-template-columns: 1fr; 
        gap: 16px; 
    }
    .listing-container { 
        padding: 0 12px; 
    }
    .sidebar-content { 
        width: 100%; 
        position: static; 
    }
    
    .btn-primary .btn-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container { padding: 0 10px; }
    .listing-container { padding: 0 8px; }
    .nav-create-btn { width: 36px; padding: 0; }
    .nav-create-text { display: none; }
}

/* 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: #BCC0C4 white; }
html { scrollbar-gutter: stable; }

@media (max-width: 768px) {
    *::-webkit-scrollbar { display: none !important; }
    * { scrollbar-width: none !important; }
    * { -ms-overflow-style: none; }
}




/* Footer */
.main-footer {
    background-color: #ffffff;
    border: none;
    margin-top: 40px;
    padding: 32px 0 20px 0;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 24px;
}

.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: #65686c;
    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: #65686c;
    font-weight: 400;
    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: #65686c;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal-link {
    color: #65686c;
    text-decoration: none;
}

.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;
    }
}




