/* INDEX.php */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #F8F7FF;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

#splash-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #9381FF;
    z-index: 900;
    will-change: height;
    transition: height 0.75s cubic-bezier(0.65, 0, 0.25, 1);
    pointer-events: none;
}

.animated-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999 !important;
    display: block;
    transform-origin: top left;
    margin-top: -80px;
    margin-left: -120px;
    will-change: transform;
    transition: transform 0.75s cubic-bezier(0.65, 0, 0.25, 1);
    pointer-events: none;
}

.animated-logo img {
    height: 160px;
    width: auto;
    display: block;
}

.splash-tagline {
    position: fixed;
    top: calc(50% + 95px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    color: #FFEEDD;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    white-space: nowrap;
}

.splash-tagline.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
}

.headerer-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 24px;
    background-color: #ece9fb;
    font-size: 13px;
    z-index: 9998 !important;
}

.headerer-welcome {
    font-size: 13px;
    color: #555;
}

.headerer-welcome a,
.headerer-info a {
    color: #6347f9;
    text-decoration: none;
    font-weight: 600;
}

.headerer-welcome a:hover,
.headerer-info a:hover {
    text-decoration: underline;
}


header {
    position: fixed !important;
    top: 32px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background-color: #9381FF;
    box-shadow: none;
    z-index: 9997 !important;
    transition: box-shadow 0.3s ease;
}
header.has-shadow {
    box-shadow: none;
}

.logo-slot {
    height: 70px;
    width: auto;
    flex-shrink: 0;
}

.logo-slot .animated-logo {
    display: block;
    height: 70px;
}

.logo-slot .animated-logo img {
    height: 70px;
    width: auto;
    max-width: none;
    display: block;
}

header nav {
    display: none;
}

.search-container {
    --ease-liquid: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 650px;
    margin: 0 20px;
    flex: 1;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

header.show-ui .search-container {
    opacity: 1;
    transform: translateY(0);
}

.search-bar-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex: 1;
    width: 100%;
}

.search-bar {
    width: 100%;
    height: 38px;
    padding: 8px 145px 8px 14px;
    border: 5px solid #F8F7FF;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 15px;
    outline: none;
    background-color: #fff;
    transition: border-radius 0.45s var(--ease-liquid), border-bottom-color 0s linear 0.4s, background-color 0.2s ease;
}

.advanced-search-link {
    position: absolute;
    right: 12px;
    font-size: 12px;
    color: #757575;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.advanced-search-link i {
    font-size: 11px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.advanced-search-link.open i {
    transform: rotate(180deg);
}

.advanced-search-link:hover {
    color: #212121;
    text-decoration: none;
}

.advanced-search-link.open {
    color: #6347f9;
}

.search-btn {
    width: 54px;
    height: 38px;
    background: #7962fa;
    color: #212121;
    border: 3px solid #F8F7FF;
    border-radius: 0ch 16px 16px 0px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    padding-right: 2px;
    padding-top: 2px;
    transition: border-radius 0.35s var(--ease-liquid), background-color 0.2s ease;
    position: relative;
    z-index: 2;
    transition: border-radius 0.45s var(--ease-liquid), background-color 0.2s ease;
}

.fa-magnifying-glass {
    color: #FFF;
}

.search-btn:hover {
    background-color: #9381FF;
}

.search-btn i {
    transform: translateY(-1px);
}

.search-container.is-open .search-bar {
    border-bottom-left-radius: 0;
    border-bottom-color: transparent;
    transition: border-radius 0.45s var(--ease-liquid), border-bottom-color 0s linear 0s, background-color 0.2s ease;
}

.search-container.is-open .search-btn {
    border-bottom-right-radius: 0;
}

.advanced-filters-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    display: grid;
    grid-template-rows: 0fr;
    padding-top: 36px;
    background: #fff;
    border: 2px solid #F8F7FF;
    border-radius: 6px 6px 14px 14px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition:
        grid-template-rows 0.45s var(--ease-liquid),
        box-shadow 0.45s var(--ease-liquid),
        opacity 0s linear 0.45s;
}

.advanced-filters-panel.open {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 18px 36px rgba(80, 63, 148, 0.18);
    transition:
        grid-template-rows 0.45s var(--ease-liquid),
        box-shadow 0.45s var(--ease-liquid),
        opacity 0.1s linear;
}

.advanced-filters-inner {
    min-height: 0;
    overflow: hidden;
}

.advanced-filters-panel.open.allow-overflow .advanced-filters-inner {
    overflow: visible;
}

.filters-grid {
    padding: 18px 20px 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.filter-group,
.filters-footer {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.35s var(--ease-liquid);
}

.advanced-filters-panel.open .filter-group,
.advanced-filters-panel.open .filters-footer {
    opacity: 1;
    transform: translateY(0);
}

.advanced-filters-panel.open .filter-group:nth-child(1) { transition-delay: 0.10s; }
.advanced-filters-panel.open .filter-group:nth-child(2) { transition-delay: 0.15s; }
.advanced-filters-panel.open .filter-group:nth-child(3) { transition-delay: 0.20s; }
.advanced-filters-panel.open .filter-group:nth-child(4) { transition-delay: 0.25s; }
.advanced-filters-panel.open .filters-footer            { transition-delay: 0.30s; }

.advanced-filters-panel:not(.open) .filter-group,
.advanced-filters-panel:not(.open) .filters-footer {
    transition-delay: 0s;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-control {
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    font-size: 13.5px;
    background-color: #faf9ff;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.filter-control:focus {
    border-color: #9381FF;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(147, 129, 255, 0.2);
}

.ui-dropdown {
    position: relative;
    width: 100%;
}

.ui-dropdown-trigger {
    width: 100%;
    height: 38px;
    padding: 6px 14px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background-color: #faf9ff;
    color: #333;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.ui-dropdown-trigger:hover {
    border-color: #9381FF;
    background-color: #fff;
}

.ui-dropdown.open .ui-dropdown-trigger {
    border-color: #9381FF;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(147, 129, 255, 0.2);
}

.ui-dropdown-arrow {
    font-size: 11px;
    color: #9381FF;
    transition: transform 0.25s ease;
}

.ui-dropdown.open .ui-dropdown-arrow {
    transform: rotate(180deg);
}

.ui-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2ddfe;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(147, 129, 255, 0.18), 0 4px 10px rgba(0, 0, 0, 0.05);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1200;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ui-dropdown.open .ui-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ui-dropdown-item {
    padding: 9px 14px;
    font-size: 13.5px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ui-dropdown-item:hover {
    background-color: #f1eeff;
    color: #7a5fff;
}

.ui-dropdown-item.selected {
    background-color: #ece8ff;
    color: #6347f9;
    font-weight: 600;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs span {
    color: #888;
    font-weight: bold;
}

.filters-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background-color: #f7f6fc;
    border-top: 1px solid #eee;
    border-radius: 0 0 12px 12px;
}

.btn-reset-filters {
    background: transparent;
    border: none;
    color: #777;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-reset-filters:hover {
    color: #e63946;
    text-decoration: underline;
}

.btn-apply-filters {
    background-color: #1c115c;
    color: #FFF;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-apply-filters:hover {
    background-color: #FFD8BE;
    color: #212121;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-ad {
    background-color: #1c115c;
    color: #FFF;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: bold;
    white-space: nowrap;
    
}

header .post-ad {
    opacity: 0;
    transform: translateY(6px);
    will-change: opacity, transform;
}

header.show-ui .post-ad {
    opacity: 1;
    transform: translateY(0);
}

.post-ad:hover {
    background-color: #FFCBA4;
    color: #212121;
}

.header-actions .user-btn {
    color: #FFEEDD;
    font-size: 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid #FFEEDD;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(6px);
    will-change: opacity, transform;
}

header.show-ui .user-btn {
    opacity: 1;
    transform: translateY(0);
}

.header-actions .user-btn:hover {
    color: #f8e0c7;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

header.show-ui .menu-toggle {
    opacity: 1;
    transform: translateY(0);
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #FFEEDD;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.side-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    background: #F8F7FF;
    border-right: 1px solid #ecebf3;
    z-index: 500;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.side-drawer hr {
    width: 80%;
    border: none;
    border-top: 1px solid #dad9e0;
    margin: 12px auto;
}

.side-drawer-content {
    width: 230px !important;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 70% !important;
}

.side-drawer-toggle:hover {
    background: #705bdc;
}

.categories-title {
    margin-top: 12px;
    margin-left: -54px;
    font-weight: 600;
    font-size: 13px;
    color: #7575a7;
}

.popular-title {
    margin-top: 12px;
    margin-left: -160px;
    font-size: 10px;
    color: #7575a7;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #403a55;
    text-decoration: none;
    font-size: 15px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    color: #7575a7;
}

.drawer-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-align: center;
    color: #7575a7;
}

.drawer-link i.vehicles-icon {
    background-color: #FFBEBE;
    border-radius: 10px;
}

.drawer-link i.real-estate-icon {
    background-color: #ffe9a0;
    border-radius: 10px;
}

.drawer-link i.jobs-icon {
    background-color: #cacfff;
    border-radius: 10px;
}

.drawer-link i.services-icon {
    background-color: #d9f8e5;;
    border-radius: 10px;
}

.drawer-link i.all-icon {
    background-color: #FFEEDD;
    border-radius: 10px;
}

.drawer-link:hover {
    background: #f2efff;
    color: #6347f9;
}

.drawer-link.active {
    background: #e6e1ff;
    color: #6347f9;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.drawer-link.active i {
    color: #6347f9;
}

.listing-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: calc(100% - 48px);
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.listing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    grid-column: 1 / -1;

}

.listing-header h2 {
    margin: 0;
    color: #2f2944;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6347f9;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.view-all-link:hover {
    text-decoration: underline;
}

.listing {
    background-color: #fff;
    padding: 0 0 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(80, 63, 148, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(80, 63, 148, 0.18);
}

.listing-image {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: contain;          
    object-position: center;
    background-color: #ece8ff;
    margin-bottom: 14px;
}

.listing-image.is-placeholder {
    object-fit: cover;
}

.listing h3,
.listing p {
    padding: 0 16px;
}

.listing h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #1c115c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing p {
    color: #756e87;
    font-size: 13px;
}

.listing p + p {
    margin-top: 4px;
}

.listing .listing-price {
    margin-top: -5px;
    font-size: 18px;
    font-weight: 600;
    color: #6347f9;
}

@media (max-width: 768px) {
    .animated-logo {
        margin-top: -50px;
        margin-left: -75px;
    }

    .animated-logo img {
        height: 100px;
    }

    .splash-tagline {
        top: calc(50% + 60px);
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    header {
        padding: 10px 16px;
    }

    .logo-slot {
        height: 38px;
        width: 75px;
    }

    .menu-toggle {
        display: flex;
    }

    .search-container {
        margin: 0 8px;
    }

    .search-bar {
        padding-right: 120px;
        font-size: 14px;
    }

    .advanced-search-link {
        font-size: 11px;
        right: 8px;
    }

    header .post-ad {
        display: none;
    }

    header nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #9381FF;
        flex-direction: column;
        align-items: center;
        gap: 0;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    }

    header nav.active {
        max-height: 250px;
        opacity: 1;
        transform: translateY(0);
    }

    header nav a {
        text-decoration: none;
        color: #FFEEDD;
        font-weight: 500;
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        transition: background-color 0.2s ease;
    }

    header nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #f8e0c7;
        text-decoration: none;
    }
}

@media (max-width: 600px) {
    .filters-grid {
        grid-template-columns: 1fr;
        padding: 14px 14px 10px;
        gap: 10px;
    }
}


/* HELP.php */

.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}
.faq-item {
    background-color: #212121;
    color: #FFEEDD;
    border-radius: 8px;
    padding: 10px 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.faq-item h2 {
    cursor: pointer;
    margin: 0;
    transition: color 0.3s ease;
}

.faq-item p{
    display:none;
    margin-bottom: 20px;
    color: #FFF;
    font-family: "poppins", sans-serif;
}

.back-link {
    margin: 20px;
    font-size: 14px;
}
.back-link a {
    text-decoration: none;
    color: #6347f9;
    font-weight: 600;
}

:root {
    --color-primary: #9381FF;
    --color-primary-dark: #705bdc;
    --color-cream: #FFEEDD;
    --color-surface: #FFFFFF;
    --color-text: #2f2944;
    --color-muted: #756e87;
    --color-border: rgba(147, 129, 255, 0.24);
    --shadow-soft: 0 14px 32px rgba(80, 63, 148, 0.08);
}

.page-main {
    padding: 126px 0 72px;
    margin-left: 270px;
    width: calc(100% - 270px);
    min-height: 100vh;
    overflow-x: hidden;
}

.page-main .container {
    width: 100%;
    max-width: 1220px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 34px;
}

.marketplace-intro {
    width: 100%;
    height: 250px;
    margin-bottom: -30px;
    padding: 24px 0 28px;
    background-image: 
        linear-gradient(
            to bottom, 
            rgba(248, 247, 255, 0) 0%, 
            rgba(248, 247, 255, 0) 40%,       
            rgba(248, 247, 255, 0.3) 65%,     
            rgba(248, 247, 255, 0.8) 85%,     
            #F8F7FF 100%                      
        ), 
        url("../resources/motd-background.jpg");
    background-size: cover;
    background-position: center;
}

.marketplace-intro-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.marketplace-intro-inner > div {
    min-width: 0;
}

.section-kicker {
    margin-bottom: 6px;
    color: var(--color-primary-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.marketplace-intro h1 {
    color: var(--color-text);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.intro-copy {
    max-width: 500px;
    margin-top: 12px;
    color: #7575a7;
    font-size: 1rem;
}

.post-ad--main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 152px;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background-color: #FFD8BE;
    color: #9381FF;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(112, 91, 220, 0.14);
}

.post-ad--main:hover,
.post-ad--main:focus-visible {
    background-color: var(--color-cream);
    color: var(--color-primary-dark);
}

.category-menu {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 54px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-width: 0;
    min-height: 76px;
    padding: 14px 20px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background-color: var(--color-surface);
    color: #1c115c;
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    transition: 0.2s ease;
}

.category-link::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    margin-left: auto;
    color: #8f89b3;
}

.category-link:hover,
.category-link:focus-visible {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.category-link:focus-visible,
.post-ad--main:focus-visible {
    outline: 3px solid rgba(147, 129, 255, 0.28);
    outline-offset: 3px;
}

.category-link.is-active {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: var(--color-cream);
    box-shadow: 0 10px 24px rgba(147, 129, 255, 0.24);
}

.category-link.is-active::after {
    color: var(--color-cream);
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 11px;
    background-color: var(--color-cream);
    color: var(--color-primary-dark);
    font-size: 0.9rem;
}

.category-icon.services-icon {
    background-color: #d9f8e5;
    color: #212121;
}

.category-icon.jobs-icon {
    background-color: #cacfff;
    color: #212121;
}

.category-icon.real-estate-icon {
    background-color: #ffe9a0;
    color: #212121;
}

.category-icon.on-sale-icon {
    background-color: #ffbebe;
    color: #212121;
}

.category-icon.all-icon {
    background-color: #FFEEDD;
    color: #212121;
}

.category-link.is-active .category-icon {
    background-color: rgba(255, 238, 221, 0.2);
    color: var(--color-cream);
}

@media (max-width: 768px) {
    .page-main {
        padding-top: 12px;
    }

    .page-main .container {
        padding: 0 16px;
    }

    .marketplace-intro-inner {
    align-items: flex-start;
    flex-direction: column;
    }

    .marketplace-intro {
        padding: 22px 0 24px;
    }

    .category-menu {
        display: flex;
        gap: 10px;
        margin-right: -16px;
        overflow-x: auto;
        padding: 2px 16px 10px 0;
        scrollbar-width: thin;
    }

    .category-link {
        flex: 0 0 132px;
        min-height: 66px;
        padding: 10px;
    }
}

@media (max-width: 540px) {
    .marketplace-intro h1 {
        font-size: 2.15rem;
    }

    .post-ad--main {
        width: 100%;
    }
}


.auth-modal[hidden] {
    display: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(47, 41, 68, 0.55);
    backdrop-filter: blur(4px);
}

.auth-dialog {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    height: min(680px, calc(100vh - 40px));
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(47, 41, 68, 0.25);
}

.auth-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #9381FF;
    color: #FFEEDD;
}

.auth-dialog-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.auth-close {
    border: none;
    background: transparent;
    color: #FFEEDD;
    cursor: pointer;
    font-size: 1.8rem;
}

.auth-frame {
    display: block;
    width: 100%;
    height: calc(100% - 64px);
    border: none;
}

body.auth-modal-open {
    overflow: hidden;
}

.sell-on-vendr {
    width: calc(100% - 48px);
    max-width: 1220px;
    margin: 50px auto 0;
}

.sell-on-vendr-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 25px 28px;
    border-radius: 18px;
    background: linear-gradient(115deg, #1c115c 0%, #4b36bb 64%, #9381FF 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(28, 17, 92, 0.2);
}

.sell-on-vendr-illustration {
    position: absolute;
    right: 190px;
    bottom: 0;         
    height: 140%;      
    max-height: 220px;
    width: auto;
    pointer-events: none;
    transform: translateY(30px);
    z-index: 0;
}

.sell-on-vendr-copy {
    min-width: 0;
}

.sell-on-vendr-kicker {
    display: block;
    margin-bottom: 6px;
    color: #FFEEDD;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sell-on-vendr-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.sell-on-vendr-copy p {
    max-width: 500px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.5;
}

.sell-on-vendr-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 7px;
    background-color: #ff850c;
    color: #FFF;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sell-on-vendr-action:hover,
.sell-on-vendr-action:focus-visible {
    background-color: #ffffff;
    color: #6347f9;
}

@media (max-width: 768px) {
    .sell-on-vendr-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding: 22px;
    }

    .sell-on-vendr-action {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .auth-modal {
        padding: 12px;
    }

    .auth-dialog {
        height: calc(100vh - 24px);
    }
}

.skip-splash #splash-curtain,
.skip-splash #splashTagline,
.skip-splash > .animated-logo {
    display: none;
}

.skip-splash .logo-slot .animated-logo {
    position: static;
    margin: 0;
    transform: none;
    transition: none;
}

.skip-splash header .search-container,
.skip-splash header .post-ad,
.skip-splash header .user-btn,
.skip-splash header .menu-toggle {
    opacity: 1;
    transform: none;
    transition: none;
}

.auth-page {
    display: flex;
    justify-content: center;
    padding: 48px 24px;
}

.auth-page,
.admin-intro {
    position: relative;
    isolation: isolate;
}

.login-page,
.register-page {
    --page-background: url("../resources/account-background.jpg");
}

.auth-page::before,
.admin-intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 520px;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(
            to bottom,
            rgba(248, 247, 255, 0.2) 0%,
            rgba(248, 247, 255, 0.45) 55%,
            #F8F7FF 100%
        ),
        var(--page-background, url("../resources/form-background.jpg"));
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.admin-intro::before {
    height: 100%;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 36px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background-color: #ece8ff;
    color: #6347f9;
    font-size: 20px;
}

.auth-container h1,
.admin-intro h1 {
    color: var(--color-text);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.auth-copy {
    margin: 12px 0 28px;
    color: var(--color-muted);
    font-size: 14px;
}

.auth-container .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

.auth-container label {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
}

.auth-container input,
.auth-container textarea,
.auth-container select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: #F8F7FF;
    color: var(--color-text);
    font: inherit;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-container input:focus,
.auth-container textarea:focus,
.auth-container select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 129, 255, 0.16);
}

.auth-container small {
    color: var(--color-muted);
    font-size: 12px;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background-color: #1c115c;
    color: #FFF;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.auth-submit:hover {
    background-color: #FFCBA4;
    color: #212121;
}

.auth-submit:focus-visible,
.admin-remove:focus-visible,
.admin-logo:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.auth-error {
    margin-bottom: 24px;
    padding: 12px 14px;
    border: 1px solid #f0c6c6;
    border-radius: 8px;
    background-color: #fff2f2;
    color: #a13c3c;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.auth-switch {
    margin-top: 24px;
    color: var(--color-muted);
    font-size: 13px;
    text-align: center;
}

.auth-switch a,
.auth-back {
    color: #6347f9;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover,
.auth-back:hover {
    text-decoration: underline;
}

.auth-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
}

.add-listing-container {
    max-width: 720px;
}

.add-listing-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.add-listing-form .form-group,
.add-listing-form .auth-submit {
    grid-column: 1 / -1;
}

.add-listing-form .listing-half {
    grid-column: auto;
}

.add-listing-form textarea {
    min-height: 150px;
    resize: vertical;
}

.add-listing-form .listing-price-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    cursor: pointer;
    font-weight: 600;
}

.listing-price-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    min-height: 0;
    padding: 0;
    accent-color: #6347f9;
    cursor: pointer;
}

.add-listing-form input:disabled {
    background-color: #ecebf3;
    color: var(--color-muted);
    cursor: not-allowed;
    opacity: 0.65;
}

.add-listing-form input::placeholder,
.add-listing-form textarea::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

.listing-image-group {
    padding: 20px;
    border: 1px dashed var(--color-primary);
    border-radius: 12px;
    background-color: #F8F7FF;
}

.listing-image-group input {
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 13px;
}

.listing-image-group input::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background-color: #ece8ff;
    color: #6347f9;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.listing-image-group input::file-selector-button:hover {
    background-color: #e0d9ff;
}

.add-listing-container .form-success {
    margin-bottom: 24px;
    padding: 12px 14px;
    border: 1px solid #bce4cb;
    border-radius: 8px;
    background-color: #edf9f1;
    color: #28633e;
    font-size: 13px;
}

.admin-logo,
.admin-logo img {
    display: block;
    height: 70px;
    width: auto;
}

.admin-page header .post-ad {
    text-decoration: none;
}

.admin-main {
    min-height: 100vh;
    padding: 150px 0 72px;
}

.admin-intro {
    margin-bottom: 32px;
}

.admin-intro .container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 24px;
}

.admin-count {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 20px;
    background-color: #ece8ff;
    color: #6347f9;
    font-size: 12px;
    font-weight: 700;
}

.admin-listing-actions {
    margin: 18px 16px 0;
}

.admin-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #f0c6c6;
    border-radius: 7px;
    background-color: #fff2f2;
    color: #a13c3c;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.admin-remove:hover {
    background-color: #ffe1e1;
}

.admin-empty {
    grid-column: 1 / -1;
    padding: 40px 16px;
    color: var(--color-muted);
    text-align: center;
}

.admin-empty h3 {
    color: var(--color-text);
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .auth-layout .headerer-header {
        padding: 6px 16px;
        font-size: 11px;
    }

    .auth-layout .headerer-welcome {
        font-size: 11px;
    }

    .auth-layout .headerer-info {
        white-space: nowrap;
    }

    .auth-layout header {
        gap: 10px;
    }

    .auth-layout .logo-slot {
        width: 44px;
    }

    .auth-layout .logo-slot .animated-logo,
    .auth-layout .logo-slot .animated-logo img {
        height: 38px;
    }

    .auth-layout .search-container {
        min-width: 0;
        margin: 0;
        flex-wrap: nowrap;
    }

    .auth-layout .search-bar-wrapper {
        min-width: 0;
    }

    .auth-layout .search-bar {
        min-width: 0;
        padding: 8px 10px;
        font-size: 13px;
    }

    .auth-layout .advanced-search-link {
        display: none;
    }

    .auth-layout .search-btn {
        flex-shrink: 0;
    }

    .auth-layout .header-actions {
        gap: 10px;
    }

    .auth-layout .page-main {
        width: 100%;
        margin-left: 0;
        padding-top: 110px;
    }

    .auth-layout .side-drawer {
        display: none;
    }

    .auth-page {
        padding: 28px 16px;
    }

    .auth-container {
        padding: 28px 24px;
    }

    .add-listing-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .listing-image-group {
        padding: 16px;
    }

    .admin-main {
        padding-top: 120px;
    }

    .admin-logo,
    .admin-logo img {
        height: 50px;
    }

    .admin-page header .post-ad {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
    }

    .admin-page .listing-container {
        width: calc(100% - 32px);
        padding: 16px;
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-page .listing-header {
        gap: 10px;
    }

    .admin-page .listing-header h2 {
        font-size: 18px;
    }
}
