.cpp-page {
    min-height: 100vh;
    background: #f4f6f8;
    color: #18212a;
    font-family: 'DM Sans', sans-serif;
}

.cpp-backbar {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 10px;
}

.cpp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6a7c89;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
}

.cpp-back-link:hover {
    color: #2596be;
}

.cpp-state {
    min-height: calc(100vh - var(--navbar-height, 80px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.cpp-state-card {
    width: min(520px, 100%);
    padding: 32px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #dde5ea;
    box-shadow: 0 12px 30px rgba(18, 33, 45, 0.08);
    text-align: center;
}

.cpp-state-icon {
    font-size: 3rem;
    color: #8ea0ad;
}

.cpp-state-card h2 {
    margin: 16px 0 8px;
    font-size: 1.4rem;
}

.cpp-state-card p {
    margin: 0 0 18px;
    color: #667785;
}

.cpp-hero {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.cpp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 14, 19, 0.72) 0%, rgba(8, 14, 19, 0.34) 55%, rgba(8, 14, 19, 0.08) 100%);
}

.cpp-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 30px;
    display: flex;
    gap: 22px;
    align-items: flex-end;
}

.cpp-logo {
    width: 102px;
    height: 102px;
    flex-shrink: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    color: #176f96;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(10, 18, 24, 0.22);
}

.cpp-hero-copy {
    color: #fff;
}

.cpp-hero-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cpp-hero-topline,
.cpp-hero-meta,
.cpp-project-tags,
.cpp-feature-grid,
.cpp-contact-list,
.cpp-scope-grid,
.cpp-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cpp-hero-copy h1 {
    margin: 10px 0 8px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.cpp-hero-copy p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    font-size: 1rem;
}

.cpp-hero-meta {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
}

.cpp-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cpp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cpp-badge--verified {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.cpp-badge--open {
    background: rgba(34, 197, 94, 0.16);
    color: #baf5d0;
}

.cpp-tabs-wrap {
    background: #fff;
    border-bottom: 1px solid #dbe4e8;
}

.cpp-tabs {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.cpp-tab {
    height: 54px;
    border: none;
    background: transparent;
    color: #61727f;
    padding: 0 8px;
    font-size: 0.92rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.cpp-tab.is-active {
    color: #18212a;
    border-bottom-color: #2596be;
}

.cpp-shell {
    width: min(1240px, calc(100% - 48px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.cpp-main,
.cpp-sidebar {
    min-width: 0;
}

.cpp-card,
.cpp-sidebar-card,
.cpp-note-card {
    background: #fff;
    border: 1px solid #dce4e8;
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(16, 30, 42, 0.06);
}

.cpp-card {
    padding: 24px 26px;
}

.cpp-card + .cpp-card,
.cpp-note-card + .cpp-card,
.cpp-card + .cpp-note-card,
.cpp-sidebar-card + .cpp-sidebar-card {
    margin-top: 16px;
}

.cpp-card h2,
.cpp-side-heading,
.cpp-modal-head h2 {
    margin: 0 0 14px;
    font-size: 1.14rem;
    font-weight: 700;
    color: #15222c;
}

.cpp-section-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.cpp-section-head span {
    font-size: 0.82rem;
    color: #6a7b87;
}

.cpp-body-copy {
    margin: 0;
    color: #576977;
    line-height: 1.75;
}

.cpp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.cpp-feature {
    border: 1px solid #e3eaee;
    border-radius: 16px;
    padding: 16px;
    background: #f8fbfc;
}

.cpp-feature-title,
.cpp-project-name,
.cpp-commission-row-title,
.cpp-doc-title,
.cpp-contact-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: #18232d;
}

.cpp-feature-text,
.cpp-commission-row-note,
.cpp-doc-note,
.cpp-contact-role,
.cpp-review-role,
.cpp-review-date {
    margin-top: 6px;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #667885;
}

.cpp-project-list,
.cpp-commission-list,
.cpp-docs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cpp-project-row,
.cpp-commission-row,
.cpp-doc-row {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e3eaee;
    background: #fbfcfd;
}

.cpp-project-left {
    flex: 1;
    min-width: 0;
}

.cpp-project-sub,
.cpp-project-price-label,
.cpp-project-currency,
.cpp-review-score-note,
.cpp-sidebar-sub,
.cpp-sidebar-foot,
.cpp-rating-inline span {
    color: #6d7f8c;
    font-size: 0.8rem;
}

.cpp-project-middle {
    width: 220px;
}

.cpp-progress-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #667885;
    margin-bottom: 7px;
}

.cpp-progress-top strong {
    color: #14202a;
}

.cpp-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e7eef2;
    overflow: hidden;
}

.cpp-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.cpp-project-right {
    min-width: 128px;
    text-align: right;
}

.cpp-project-price {
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 800;
    color: #16222d;
}

.cpp-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf4f8;
    color: #466172;
    font-size: 0.78rem;
    font-weight: 600;
}

.cpp-commission-hero {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cpp-commission-range {
    text-align: center;
}

.cpp-commission-number,
.cpp-score {
    font-size: 2.9rem;
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 800;
    color: #16a34a;
    font-family: 'Playfair Display', serif;
}

.cpp-commission-caption {
    margin-top: 6px;
    font-size: 0.74rem;
    color: #6b7d88;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.cpp-commission-divider {
    font-size: 2rem;
    color: #c7d2d9;
}

.cpp-commission-text {
    flex: 1;
    min-width: 0;
    color: #586977;
    line-height: 1.7;
}

.cpp-commission-row {
    justify-content: space-between;
}

.cpp-commission-row-pct {
    font-size: 1rem;
    font-weight: 800;
    color: #16a34a;
}

.cpp-note-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    background: #f0fdf4;
    border-color: #c8f0d5;
}

.cpp-note-card strong {
    color: #19784a;
}

.cpp-note-card span {
    color: #4b7a5f;
    line-height: 1.65;
}

.cpp-reviews-summary {
    display: flex;
    gap: 28px;
    align-items: center;
}

.cpp-score-box {
    width: 180px;
    text-align: center;
    flex-shrink: 0;
}

.cpp-stars,
.cpp-review-stars {
    color: #f59e0b;
    letter-spacing: 0.1em;
}

.cpp-score-note {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #6c7d89;
}

.cpp-ratings-bars {
    flex: 1;
}

.cpp-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 7px;
}

.cpp-rating-row span {
    width: 14px;
    font-size: 0.8rem;
    color: #586976;
}

.cpp-progress-bar--ratings {
    flex: 1;
}

.cpp-rating-row strong {
    width: 22px;
    text-align: right;
    font-size: 0.8rem;
    color: #30404c;
}

.cpp-review-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.cpp-review-author {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cpp-review-avatar,
.cpp-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeeff;
    color: #1a7cb0;
    font-weight: 800;
}

.cpp-review-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #16222d;
}

.cpp-review-meta {
    text-align: right;
}

.cpp-review-text {
    margin: 0;
    color: #556775;
    line-height: 1.72;
    font-style: italic;
}

.cpp-sidebar-card {
    padding: 18px 18px;
}

.cpp-sidebar-card--dark {
    background: #1d2c38;
    border-color: #1d2c38;
    color: #fff;
    text-align: center;
}

.cpp-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
}

.cpp-sidebar-sub {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.6);
}

.cpp-sidebar-foot {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.42);
}

.cpp-contact-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.cpp-contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpp-contact-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #e1e8ec;
    border-radius: 12px;
    color: #526572;
    text-decoration: none;
    font-size: 0.84rem;
}

.cpp-contact-list a:hover {
    background: #f7fafb;
}

.cpp-key-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpp-key-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.84rem;
}

.cpp-key-list span {
    color: #6b7d89;
}

.cpp-key-list strong {
    color: #16232d;
    text-align: right;
}

.cpp-rating-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cpp-rating-inline strong {
    font-size: 1.2rem;
    color: #16222d;
}

.cpp-primary-btn,
.cpp-secondary-btn {
    height: 44px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.cpp-primary-btn {
    width: 100%;
    border: none;
    background: #2596be;
    color: #fff;
}

.cpp-primary-btn--inline {
    width: auto;
    padding: 0 18px;
}

.cpp-primary-btn:hover {
    background: #1d7da0;
}

.cpp-secondary-btn {
    border: 1px solid #d4dde3;
    background: #fff;
    color: #314451;
    padding: 0 16px;
}

.cpp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 19, 0.44);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1100;
}

.cpp-modal {
    width: min(560px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #dce4e8;
    box-shadow: 0 24px 60px rgba(8, 14, 19, 0.22);
}

.cpp-modal-head,
.cpp-modal-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 22px 24px 0;
}

.cpp-modal-head h2 {
    margin: 0;
}

.cpp-modal-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f5f8;
    color: #526572;
    cursor: pointer;
}

.cpp-modal-body {
    padding: 18px 24px 0;
}

.cpp-form-group + .cpp-form-group,
.cpp-form-grid + .cpp-form-group {
    margin-top: 14px;
}

.cpp-form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #2d404c;
}

.cpp-input {
    width: 100%;
    border: 1px solid #d7e0e5;
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 0.9rem;
    box-sizing: border-box;
    font-family: inherit;
}

.cpp-scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cpp-scope {
    border: 1px solid #dbe4e9;
    border-radius: 14px;
    padding: 12px;
    color: #465a68;
    cursor: pointer;
}

.cpp-scope.is-active {
    border-color: #2596be;
    background: #f2fbff;
    color: #1a6f90;
}

.cpp-scope input {
    margin-right: 8px;
}

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

.cpp-modal-foot {
    padding: 18px 24px 24px;
    justify-content: flex-end;
}

.cpp-modal-success {
    padding: 30px 24px 28px;
    text-align: center;
}

.cpp-modal-success-icon {
    font-size: 3rem;
    color: #16a34a;
}

.cpp-modal-success h3 {
    margin: 14px 0 8px;
    font-size: 1.3rem;
}

.cpp-modal-success p {
    margin: 0 0 18px;
    color: #667987;
}

@media (max-width: 980px) {
    .cpp-shell {
        grid-template-columns: 1fr;
    }

    .cpp-sidebar {
        order: -1;
    }

    .cpp-feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cpp-commission-hero,
    .cpp-reviews-summary {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .cpp-hero-inner,
    .cpp-tabs,
    .cpp-shell {
        width: min(100%, calc(100% - 28px));
    }

    .cpp-hero-inner,
    .cpp-review-top,
    .cpp-project-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cpp-project-middle,
    .cpp-project-right,
    .cpp-score-box {
        width: 100%;
    }

    .cpp-project-right,
    .cpp-review-meta {
        text-align: left;
    }

    .cpp-feature-grid,
    .cpp-form-grid,
    .cpp-scope-grid {
        grid-template-columns: 1fr;
    }

    .cpp-tabs {
        gap: 2px;
    }

    .cpp-tab {
        padding: 0 4px;
        font-size: 0.84rem;
    }
}

/* ── DB / live profile additions ── */
.cpp-logo-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.25);
}

.cpp-muted {
    color: #94a3b8;
    font-style: italic;
}

.cpp-modal-error {
    margin: 0 24px 8px;
    padding: 10px 14px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 8px;
    font-size: 0.88rem;
}
