.profile-page {
    min-height: 100vh;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.profile-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    margin-top: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #dde1e8;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: clamp(4.5rem, 10vw, 6.5rem);
    height: clamp(4.5rem, 10vw, 6.5rem);
    border-radius: 0.75rem;
    background: #fff4e4;
    color: var(--brand-orange);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
}

.profile-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0;
}

.profile-username,
.profile-location,
.profile-bio,
.profile-empty-state p {
    color: #667085;
}

.profile-username {
    margin: 0.25rem 0 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.profile-rating {
    min-width: 12rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #111827;
    color: #fff;
    text-align: center;
}

.profile-rating strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
}

.profile-rating span {
    display: block;
    color: #d1d5db;
    font-weight: 700;
}

.profile-section {
    margin-top: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #dde1e8;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-section-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.profile-section-header span {
    color: #667085;
    font-weight: 800;
}

.profile-location {
    margin: 0 0 0.5rem;
    font-weight: 800;
}

.profile-bio {
    margin: 0;
}

.profile-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.profile-listing-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
}

.profile-listing-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.profile-listing-body {
    padding: 1rem;
}

.profile-listing-body p {
    margin: 0 0 0.4rem;
    color: #667085;
    font-size: 0.9rem;
    font-weight: 800;
}

.profile-listing-body h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.profile-listing-body a,
.profile-deals-table a {
    color: #111827;
    text-decoration: none;
}

.profile-listing-body a:hover,
.profile-listing-body a:focus,
.profile-deals-table a:hover,
.profile-deals-table a:focus {
    color: #111827;
    text-decoration: underline;
}

.profile-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.profile-listing-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 800;
}

.profile-price {
    margin-top: 0.75rem;
    color: #111827;
    font-weight: 800;
}

.profile-empty-state {
    padding: 2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.75rem;
    background: #f9fafb;
    text-align: center;
}

.profile-empty-state h3 {
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.profile-deals-table {
    margin-bottom: 0;
}

.profile-deals-table th {
    color: #667085;
    font-size: 0.85rem;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .profile-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .profile-rating {
        grid-column: 1 / -1;
        text-align: left;
    }

    .profile-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .profile-hero {
        grid-template-columns: 1fr;
    }

    .profile-listing-grid {
        grid-template-columns: 1fr;
    }

    .profile-section-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
