.swap2-logo-mark {
    align-items: center;
    background: #f5a524;
    border-radius: 8px;
    color: #102a36;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.swap2-logo-image {
    display: block;
    height: 68px;
    max-width: 172px;
    object-fit: contain;
    width: auto;
}

.auth-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-left: auto;
    margin-right: auto;
    max-width: 560px;
    width: 100%;
}

.auth-card {
    max-width: var(--auth-card-width, 440px);
    min-width: 0;
    width: 100%;
}

.auth-hero-wrap {
    min-width: 0;
    width: 100%;
}

.auth-hero-image {
    border-radius: 12px;
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

@media (min-width: 768px) {
    .auth-layout {
        align-items: center;
        flex-direction: row-reverse;
        gap: 40px;
        max-width: 980px;
    }

    .auth-card {
        flex: 0 0 var(--auth-card-width, 440px);
    }

    .auth-hero-wrap {
        flex: 1 1 0%;
        min-width: 0;
    }
}

.bottom-nav {
    margin: 0 auto;
}

.bottom-nav .container {
    max-width: 680px;
}

.bottom-nav-inner {
    flex-wrap: nowrap;
    gap: 4px;
    position: relative;
}

.bottom-nav .tap {
    align-items: center;
    border-radius: 8px;
    color: #334155;
    display: inline-flex;
    justify-content: center;
    min-width: 64px;
    padding: 8px 10px;
}

.bottom-nav .tap:hover {
    background: #eef6f7;
    color: #135d66;
}

.bottom-submenu {
    position: relative;
}

.bottom-submenu summary {
    cursor: pointer;
    list-style: none;
}

.bottom-submenu summary::-webkit-details-marker {
    display: none;
}

.bottom-submenu-panel {
    background: #ffffff;
    border: 1px solid #d9e6eb;
    border-radius: 8px;
    bottom: calc(100% + 10px);
    box-shadow: 0 -12px 32px rgba(15, 23, 42, .16);
    display: grid;
    gap: 4px;
    left: 50%;
    min-width: 190px;
    padding: 8px;
    position: absolute;
    transform: translateX(-50%);
    z-index: 1100;
}

.bottom-submenu:not([open]) .bottom-submenu-panel {
    display: none;
}

.bottom-submenu-panel a {
    border-radius: 7px;
    color: #15212f;
    display: block;
    font-size: .9rem;
    font-weight: 600;
    padding: 10px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.bottom-submenu-panel a:hover {
    background: #eef6f7;
    color: #135d66;
}

.bottom-submenu[open] .bottom-submenu-trigger {
    background: #eef6f7;
    color: #135d66;
}

.product-card {
    margin-bottom: 8px;
}

.product-card .card-body {
    padding: 18px;
}

.product-media,
.product-detail-media {
    background: #edf3f5;
    object-fit: cover;
}

.product-detail-media {
    max-height: 620px;
}

.product-media-link {
    display: block;
}

.product-media-link .product-media {
    cursor: pointer;
    transition: opacity .15s ease;
}

.product-media-link:hover .product-media {
    opacity: .92;
}

.listing-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    padding: 8px 10px;
    white-space: nowrap;
}

.listing-badge-sale {
    background: #e8f4ff;
    color: #075985;
}

.listing-badge-swap {
    background: #ecfdf3;
    color: #166534;
}

.listing-badge-rent {
    background: #eef2ff;
    color: #3730a3;
}

.listing-badge-both {
    background: #fff7ed;
    color: #9a3412;
}

.listing-badge-ad {
    background: #f1f5f9;
    color: #334155;
}

.explore-search-line {
    align-items: stretch;
    display: flex;
    gap: 10px;
}

.explore-query {
    min-width: 0;
}

.explore-button {
    min-width: 112px;
}

.location-autocomplete {
    position: relative;
}

.location-suggestions {
    background: #ffffff;
    border: 1px solid #cbd5dc;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .14);
    left: 0;
    margin-top: 4px;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1050;
}

.location-suggestions[hidden] {
    display: none;
}

.location-suggestion {
    background: #ffffff;
    border: 0;
    color: #15212f;
    display: block;
    padding: 10px 12px;
    text-align: left;
    width: 100%;
}

.location-suggestion:hover,
.location-suggestion:focus {
    background: #eef6f7;
    color: #135d66;
}

.profile-avatar-wrap {
    display: flex;
    justify-content: center;
}

.profile-avatar {
    align-items: center;
    aspect-ratio: 1;
    border: 3px solid #e6eef2;
    border-radius: 999px;
    display: inline-flex;
    font-size: 2rem;
    font-weight: 800;
    height: 112px;
    justify-content: center;
    object-fit: cover;
    width: 112px;
}

.profile-avatar-empty {
    background: #eef6f7;
    color: #135d66;
}

.profile-avatar-picker {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
}

.profile-avatar-picker:hover .profile-avatar {
    opacity: .85;
}

.profile-avatar-picker:hover .profile-avatar-edit-badge {
    text-decoration: underline;
}

.profile-avatar-edit-badge {
    color: var(--swap, #135d66);
    font-size: .8rem;
    font-weight: 700;
}

.operation-box,
.operation-summary,
.comment-item {
    background: #f8fbfc;
    border: 1px solid #d9e6eb;
    border-radius: 8px;
    padding: 14px;
}

.operation-products {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.operation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.operation-confirmations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.confirmation-pill {
    background: #f1f5f9;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    padding: 7px 10px;
}

.confirmation-pill.done {
    background: #ecfdf3;
    color: #166534;
}

.conversation-list {
    display: grid;
    gap: 8px;
}

.conversation-link {
    border: 1px solid #d9e6eb;
    border-radius: 8px;
    color: #15212f;
    display: block;
    padding: 12px;
    text-decoration: none;
}

.conversation-link:hover,
.conversation-link.active {
    background: #eef6f7;
    border-color: #9fc7ce;
}

.conversation-header {
    align-items: center;
    border-bottom: 1px solid #d9e6eb;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.conversation-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.confirm-operation-box {
    align-items: center;
    background: #ffffff;
    border: 1px solid #b7d8de;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
    width: 100%;
}

.operation-next-step {
    background: #f1f5f9;
    border-radius: 8px;
    color: #475569;
    display: inline-flex;
    font-size: .9rem;
    padding: 10px 12px;
}

.operation-card {
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.operation-card-header {
    flex-wrap: wrap;
}

.message-thread {
    background: #f8fbfc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding: 16px;
}

.message-bubble {
    background: #ffffff;
    border: 1px solid #d9e6eb;
    border-radius: 8px;
    max-width: min(86%, 620px);
    padding: 10px 12px;
    white-space: pre-wrap;
}

.message-bubble.mine {
    align-self: flex-end;
    background: #e8f4ff;
}

.message-bubble.theirs {
    align-self: flex-start;
}

.message-time {
    color: #667085;
    font-size: .75rem;
    margin-top: 6px;
}

.message-compose {
    display: grid;
    gap: 10px;
    padding: 16px;
}

@media (min-width: 768px) {
    .operation-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    body {
        padding-bottom: 92px;
    }

    .bottom-nav .container {
        gap: 2px;
        justify-content: space-between !important;
        padding-left: 6px;
        padding-right: 6px;
    }

    .bottom-nav .tap {
        font-size: .78rem;
        min-width: 40px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .bottom-submenu-panel {
        left: auto;
        min-width: 180px;
        right: 0;
        transform: none;
    }

    .swap2-logo-image {
        height: 57px;
        max-width: 140px;
    }

    .explore-search-line {
        flex-direction: column;
    }

    .explore-button {
        width: 100%;
    }
}

.pagination {
    flex-wrap: wrap;
}

.pagination .page-link {
    color: var(--swap, #135d66);
}

.pagination .page-link svg {
    height: 1em;
    width: 1em;
}

.pagination .page-item.active .page-link {
    background: var(--swap, #135d66);
    border-color: var(--swap, #135d66);
}

.pagination .page-item.disabled .page-link {
    color: #9aa7ae;
}
