/* Marketplace public surfaces (job list + guest detail chrome) */

:is(#pg-marketplace, #pg-home) {
    --mkt-radius: 0.75rem;
    color: var(--text);
    background: var(--background);
    font-family: 'Inter', sans-serif;
}

:is(#pg-marketplace, #pg-home) .mkt-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    :is(#pg-marketplace, #pg-home) .mkt-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    :is(#pg-marketplace, #pg-home) .mkt-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Header */
:is(#pg-marketplace, #pg-home) .mkt-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

:is(#pg-marketplace, #pg-home) .mkt-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4rem;
}

:is(#pg-marketplace, #pg-home) .mkt-logo img {
    height: 2rem;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

@media (min-width: 640px) {
    :is(#pg-marketplace, #pg-home) .mkt-logo img {
        height: 2.5rem;
        max-width: 180px;
    }
}

:is(#pg-marketplace, #pg-home) .mkt-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

:is(#pg-marketplace, #pg-home) .mkt-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

:is(#pg-marketplace, #pg-home) .mkt-nav a:hover,
:is(#pg-marketplace, #pg-home) .mkt-nav a.is-active {
    color: var(--primary);
}

:is(#pg-marketplace, #pg-home) .mkt-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

:is(#pg-marketplace, #pg-home) .mkt-login {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.375rem 0.5rem;
}

:is(#pg-marketplace, #pg-home) .mkt-login:hover {
    color: var(--text);
}

:is(#pg-marketplace, #pg-home) .mkt-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    :is(#pg-marketplace, #pg-home) .mkt-header-bar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    :is(#pg-marketplace, #pg-home) .mkt-nav {
        display: flex;
        justify-content: center;
    }

    :is(#pg-marketplace, #pg-home) .mkt-header-actions {
        justify-content: flex-end;
    }

    :is(#pg-marketplace, #pg-home) .mkt-menu-btn {
        display: none;
    }
}

:is(#pg-marketplace, #pg-home) .mkt-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0 1rem;
    border-top: 1px solid var(--border);
}

:is(#pg-marketplace, #pg-home) .mkt-mobile-nav a {
    padding: 0.75rem 0.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
}

:is(#pg-marketplace, #pg-home) .mkt-mobile-nav a:hover {
    color: var(--primary);
}

/* Buttons */
:is(#pg-marketplace, #pg-home) .mkt-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

:is(#pg-marketplace, #pg-home) .mkt-btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 8px 20px -6px rgba(1,  28,  116, 0.35);
}

:is(#pg-marketplace, #pg-home) .mkt-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 9999px;
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
    text-decoration: none;
    cursor: pointer;
}

:is(#pg-marketplace, #pg-home) .mkt-btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

:is(#pg-marketplace, #pg-home) .mkt-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

/* Page shell */
:is(#pg-marketplace, #pg-home) .mkt-page {
    padding: 1.5rem 0 3rem;
}

@media (min-width: 768px) {
    :is(#pg-marketplace, #pg-home) .mkt-page {
        padding: 2rem 0 4rem;
    }
}

:is(#pg-marketplace, #pg-home) .mkt-page-header {
    margin-bottom: 1.5rem;
}

:is(#pg-marketplace, #pg-home) .mkt-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    :is(#pg-marketplace, #pg-home) .mkt-page-title {
        font-size: 2rem;
    }
}

:is(#pg-marketplace, #pg-home) .mkt-page-subtitle {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.975rem;
}

/* Search */
:is(#pg-marketplace, #pg-home) .mkt-search {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

:is(#pg-marketplace, #pg-home) .mkt-search-input {
    flex: 1;
    min-width: 0;
    height: 3.25rem;
    padding: 0 1.25rem;
    border: 1.5px solid #CBD5E1;
    border-radius: 14px;
    background: #FFFFFF;
    color: var(--text);
    font-size: 0.975rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

:is(#pg-marketplace, #pg-home) .mkt-search-input:focus {
    outline: none;
    border-color: #011C74;
    box-shadow: 0 0 0 4px rgba(1, 28, 116, 0.12);
}

:is(#pg-marketplace, #pg-home) .mkt-search .mkt-btn-primary {
    height: 3.25rem;
    padding: 0 1.75rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    background: #011C74;
    box-shadow: 0 6px 16px -3px rgba(1, 28, 116, 0.35);
    transition: all 0.2s ease;
}

:is(#pg-marketplace, #pg-home) .mkt-search .mkt-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -4px rgba(1, 28, 116, 0.45);
}

:is(#pg-marketplace, #pg-home) .mkt-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

:is(#pg-marketplace, #pg-home) .mkt-toolbar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
}

:is(#pg-marketplace, #pg-home) .mkt-select {
    height: 2.65rem;
    padding: 0 2.25rem 0 0.95rem;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: #FFFFFF;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23011C74' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: all 0.2s ease;
}

:is(#pg-marketplace, #pg-home) .mkt-select:focus {
    outline: none;
    border-color: #011C74;
    box-shadow: 0 0 0 3px rgba(1, 28, 116, 0.1);
}

/* Chips */
:is(#pg-marketplace, #pg-home) .mkt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    min-height: 0;
}

:is(#pg-marketplace, #pg-home) .mkt-chips:empty {
    display: none;
}

:is(#pg-marketplace, #pg-home) .mkt-chips-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

:is(#pg-marketplace, #pg-home) .mkt-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid transparent;
}

:is(#pg-marketplace, #pg-home) .mkt-filter-chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1;
    padding: 0;
}

:is(#pg-marketplace, #pg-home) .mkt-filter-chip button:hover {
    background: rgba(1,  28,  116, 0.12);
}

/* Layout: sidebar + results */
:is(#pg-marketplace, #pg-home) .mkt-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    :is(#pg-marketplace, #pg-home) .mkt-layout {
        grid-template-columns: 16.5rem minmax(0, 1fr);
        align-items: start;
        gap: 2rem;
    }
}

:is(#pg-marketplace, #pg-home) .mkt-sidebar {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--mkt-radius);
    padding: 1.25rem;
    position: sticky;
    top: 5.5rem;
}

@media (min-width: 1024px) {
    :is(#pg-marketplace, #pg-home) .mkt-sidebar {
        display: block;
    }
}

:is(#pg-marketplace, #pg-home) .mkt-sidebar-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

:is(#pg-marketplace, #pg-home) .mkt-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

:is(#pg-marketplace, #pg-home) .mkt-category-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

:is(#pg-marketplace, #pg-home) .mkt-category-item input {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

:is(#pg-marketplace, #pg-home) .mkt-category-item label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.35;
}

:is(#pg-marketplace, #pg-home) .mkt-sidebar-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

:is(#pg-marketplace, #pg-home) .mkt-sidebar-link:hover {
    text-decoration: underline;
}

/* Mobile filters drawer */
:is(#pg-marketplace, #pg-home) .mkt-filters-toggle {
    display: inline-flex;
}

@media (min-width: 1024px) {
    :is(#pg-marketplace, #pg-home) .mkt-filters-toggle {
        display: none;
    }
}

:is(#pg-marketplace, #pg-home) .mkt-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    z-index: 60;
}

:is(#pg-marketplace, #pg-home) .mkt-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(22rem, 92vw);
    background: var(--surface);
    z-index: 70;
    padding: 1.25rem;
    overflow-y: auto;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
}

:is(#pg-marketplace, #pg-home) .mkt-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

:is(#pg-marketplace, #pg-home) .mkt-drawer-header h3 {
    font-size: 1.0625rem;
    font-weight: 700;
}

/* Results */
:is(#pg-marketplace, #pg-home) .mkt-results {
    position: relative;
    min-height: 12rem;
}

:is(#pg-marketplace, #pg-home) .mkt-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4rem;
    background: rgba(249, 250, 251, 0.72);
    border-radius: var(--mkt-radius);
}

:is(#pg-marketplace, #pg-home) .mkt-overlay.hidden {
    display: none !important;
}

:is(#pg-marketplace, #pg-home) .mkt-spinner {
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid var(--primary-soft);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: mkt-spin 0.7s linear infinite;
}

@keyframes mkt-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Job cards */
:is(#pg-marketplace, #pg-home) .mkt-job-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

:is(#pg-marketplace, #pg-home) .mkt-card {
    display: block;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 6px 16px -4px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

:is(#pg-marketplace, #pg-home) .mkt-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #011C74;
    opacity: 0;
    transition: opacity 0.25s ease;
}

:is(#pg-marketplace, #pg-home) .mkt-card:hover {
    border-color: rgba(167, 139, 250, 0.65);
    box-shadow: 0 20px 35px -12px rgba(1, 28, 116, 0.15), 0 8px 16px -6px rgba(1, 28, 116, 0.06);
    transform: translateY(-3px);
}

:is(#pg-marketplace, #pg-home) .mkt-card:hover::before {
    opacity: 1;
}

:is(#pg-marketplace, #pg-home) .mkt-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
    font-size: 0.8125rem;
    color: #64748B;
}

:is(#pg-marketplace, #pg-home) .mkt-card-category {
    font-weight: 700;
    font-size: 0.75rem;
    color: #011C74;
    background: #EEF2FF;
    border: 1px solid #E0E7FF;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.01em;
}

:is(#pg-marketplace, #pg-home) .mkt-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 0.625rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

:is(#pg-marketplace, #pg-home) .mkt-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

:is(#pg-marketplace, #pg-home) .mkt-card-title a:hover {
    color: #011C74;
}

:is(#pg-marketplace, #pg-home) .mkt-card-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.125rem;
}

:is(#pg-marketplace, #pg-home) .mkt-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

:is(#pg-marketplace, #pg-home) .mkt-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #334155;
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: all 0.15s ease;
}

:is(#pg-marketplace, #pg-home) .mkt-badge:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #0F172A;
}

:is(#pg-marketplace, #pg-home) .mkt-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #F1F5F9;
}

:is(#pg-marketplace, #pg-home) .mkt-card-budget {
    font-size: 1.35rem;
    font-weight: 800;
    color: #059669;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
}

:is(#pg-marketplace, #pg-home) .mkt-card-budget::before {
    content: "Orçamento Estimado";
    font-size: 0.675rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94A3B8;
    margin-bottom: 2px;
}

:is(#pg-marketplace, #pg-home) .mkt-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border: 1px dashed #CBD5E1;
    border-radius: 20px;
    color: #64748B;
}

:is(#pg-marketplace, #pg-home) .mkt-empty h5 {
    margin-top: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
}

:is(#pg-marketplace, #pg-home) .mkt-empty p {
    margin-top: 0.35rem;
    font-size: 0.9375rem;
}

/* Pagination (Tailwind view) */
:is(#pg-marketplace, #pg-home) .mkt-pagination {
    margin-top: 1.5rem;
}

:is(#pg-marketplace, #pg-home) .mkt-pagination nav {
    display: flex;
    justify-content: center;
}

:is(#pg-marketplace, #pg-home) .mkt-pagination span,
:is(#pg-marketplace, #pg-home) .mkt-pagination a {
    font-size: 0.875rem;
}

:is(#pg-marketplace, #pg-home) .mkt-pagination [aria-current="page"] span,
:is(#pg-marketplace, #pg-home) .mkt-pagination span[aria-current="page"] {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Footer */
:is(#pg-marketplace, #pg-home) .mkt-footer {
    margin-top: auto;
    background: #0f1c2e;
    color: rgba(255, 255, 255, 0.78);
    padding: 2.5rem 0 1.5rem;
}

:is(#pg-marketplace, #pg-home) .mkt-footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    :is(#pg-marketplace, #pg-home) .mkt-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    :is(#pg-marketplace, #pg-home) .mkt-footer-grid--cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    :is(#pg-marketplace, #pg-home) .mkt-footer-grid--cols {
        grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
        gap: 2.5rem;
    }
}

:is(#pg-marketplace, #pg-home) .mkt-footer-brand img {
    height: 2rem;
    width: auto;
    margin-bottom: 0.75rem;
}

:is(#pg-marketplace, #pg-home) .mkt-footer p {
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 28rem;
}

:is(#pg-marketplace, #pg-home) .mkt-footer h4 {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

:is(#pg-marketplace, #pg-home) .mkt-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

:is(#pg-marketplace, #pg-home) .mkt-footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.875rem;
}

:is(#pg-marketplace, #pg-home) .mkt-footer-links a:hover {
    color: #fff;
}

:is(#pg-marketplace, #pg-home) .mkt-footer-social {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

:is(#pg-marketplace, #pg-home) .mkt-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

:is(#pg-marketplace, #pg-home) .mkt-footer-social a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

:is(#pg-marketplace, #pg-home) .mkt-footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Guest job detail breadcrumb */
:is(#pg-marketplace, #pg-home) .mkt-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

:is(#pg-marketplace, #pg-home) .mkt-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

:is(#pg-marketplace, #pg-home) .mkt-breadcrumb a:hover {
    text-decoration: underline;
}

:is(#pg-marketplace, #pg-home) .mkt-breadcrumb-sep {
    color: var(--border);
}

/* Profile marketplace (guest + auth) */
.mkt-profile-card {
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 6px 16px -4px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.mkt-profile-card:hover {
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.07);
}

.mkt-profile-sidebar {
    position: sticky;
    top: 5.5rem;
    border-radius: 20px;
}

.mkt-profile-badge {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 0.775rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mkt-profile-badge--primary {
    background: #011C74;
}

.mkt-profile-badge--success {
    background: #0F8A5F;
}

.mkt-profile-badge--info {
    background: #7700FC;
}

.mkt-freelancer-resume {
    text-align: center;
    padding: 0.25rem;
}

.mkt-freelancer-resume a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   UI/UX PRO MAX - Design System Enhancements (B2B Marketplace Standard)
   Tokens: Primary #011C74, Secondary #7700FC, Accent Emerald #10B981/#059669
   Typography: Headings 'Inter', Body 'Inter'
   ========================================================================== */

/* Universal Heading Typography */
h1, h2, h3, .font-heading, .bento-title, .project-title-section h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Bento Hero Card */
.bento-hero {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.bento-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 960px) {
    .bento-hero-top {
        flex-direction: column;
        align-items: stretch;
    }
}

.bento-hero-main {
    flex: 1 1 0%;
    min-width: 0;
}

.bento-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge-escrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    letter-spacing: 0.01em;
}

.badge-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #011C74;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    letter-spacing: 0.01em;
}

.badge-status-pro {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.bento-title {
    font-family: 'Newsreader', Georgia, serif !important;
    font-weight: 500 !important;
    letter-spacing: -.015em;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem 0;
    word-break: break-word;
}

@media (max-width: 640px) {
    .bento-title {
        font-size: 1.5rem;
    }
}

/* Client Info Pro */
.client-info-pro {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.client-avatar-pro {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: #011C74;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(1, 28, 116, 0.2);
    flex-shrink: 0;
}

.client-details-pro h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.client-meta-pro {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.2rem;
}

/* Hero Action CTAs */
.bento-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .bento-hero-actions {
        width: 100%;
    }
    .bento-hero-actions a,
    .bento-hero-actions button {
        flex: 1;
    }
}

.btn-bento-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff !important;
    background: #011C74;
    box-shadow: 0 4px 16px rgba(1, 28, 116, 0.25);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-bento-primary:hover {
    transform: translateY(-2px);
    box-shadow: none;
    color: #ffffff !important;
    opacity: 0.96;
}

.btn-bento-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #011C74 !important;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-bento-secondary:hover {
    border-color: #011C74;
    background: #f8fafc;
    color: #011C74 !important;
}

/* Bento Stats Grid */
.bento-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
}

@media (max-width: 1024px) {
    .bento-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bento-stats-grid {
        grid-template-columns: 1fr;
    }
}

.bento-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-stat-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px -4px rgba(1, 28, 116, 0.08);
    transform: translateY(-2px);
}

.bento-stat-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.bento-stat-value {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.bento-stat-sub {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

/* Escrow Shield Banner */
.escrow-banner-card {
    background: #E3F5EE;
    border: 1px solid #a7f3d0;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1.5rem;
}

.escrow-banner-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: #10B981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.escrow-banner-text {
    flex: 1;
}

.escrow-banner-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.125rem;
}

.escrow-banner-desc {
    font-size: 0.75rem;
    color: #047857;
    line-height: 1.4;
}

/* Bento Content Section Cards */
.bento-section-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1.75rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
    margin-bottom: 1.5rem;
}

.bento-section-title {
    font-family: 'Newsreader', Georgia, serif !important;
    font-weight: 500 !important;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Profile Edit Screen Overhaul (UI/UX Pro Max)
   ========================================================================== */
#pg-user_profile_index .profile-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

#pg-user_profile_index .profile-header {
    margin-bottom: 2rem;
}

#pg-user_profile_index .profile-header h1 {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    color: #030B33;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

#pg-user_profile_index .profile-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 0.35rem;
}

#pg-user_profile_index .profile-main {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #E5E1D8;
    box-shadow: none;
    padding: 2rem 2.25rem;
}

#pg-user_profile_index .form-section .section-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #EFECE5;
}

#pg-user_profile_index .form-section .section-header svg {
    width: 1.35rem;
    height: 1.35rem;
    color: #011C74;
}

#pg-user_profile_index .form-section .section-header h2 {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #030B33;
}

#pg-user_profile_index .photo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: #F7F5F0;
    border: 1px solid #E5E1D8;
    border-radius: 16px;
    margin-bottom: 1.75rem;
}

#pg-user_profile_index .current-photo {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px #E5E1D8;
    flex-shrink: 0;
}

#pg-user_profile_index .photo-edit-btn {
    position: absolute;
    bottom: -0.25rem;
    right: -0.25rem;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #011C74;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

#pg-user_profile_index .photo-edit-btn:hover {
    background: #030B33;
    transform: none;
}

#pg-user_profile_index .upload-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    transition: all 0.15s ease;
}

#pg-user_profile_index .upload-btn:hover {
    border-color: #011C74;
    color: #011C74;
    background: #F7F5F0;
}

#pg-user_profile_index .sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #E5E1D8;
    box-shadow: none;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

#pg-user_profile_index .sidebar-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #EFECE5;
}

#pg-user_profile_index .profile-preview {
    text-align: center;
    padding: 0.5rem 0;
}

#pg-user_profile_index .preview-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background: #011C74;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.875rem;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px #E5E1D8;
}

#pg-user_profile_index .preview-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

#pg-user_profile_index .preview-info p {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.125rem;
}

#pg-user_profile_index .preview-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

#pg-user_profile_index .preview-rating,
#pg-user_profile_index .preview-location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

#pg-user_profile_index .preview-rating svg,
.preview-rating svg {
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    max-width: 1rem !important;
    color: #f59e0b;
    fill: #f59e0b;
    flex-shrink: 0;
}

#pg-user_profile_index .preview-location svg,
.preview-location svg {
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    max-width: 1rem !important;
    color: #64748b;
    flex-shrink: 0;
}

#pg-user_profile_index .tips-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

#pg-user_profile_index .tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.45;
}

#pg-user_profile_index .tip-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: #10B981;
    margin-top: 0.1rem;
}

#pg-user_profile_index .tip-icon svg {
    width: 100%;
    height: 100%;
}

#pg-user_profile_index .form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

#pg-user_profile_index .btn-save {
    background: #011C74;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.875rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(1, 28, 116, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#pg-user_profile_index .btn-save:hover {
    background: #030B33;
    box-shadow: none;
    transform: translateY(-1px);
}

#pg-user_profile_index .btn-cancel {
    background: #f1f5f9;
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.875rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

#pg-user_profile_index .btn-cancel:hover {
    background: #e2e8f0;
    color: #0f172a;
}


