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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    min-height: 100vh;
}

a { color: #4361ee; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
nav .brand { font-weight: 700; font-size: 1.1rem; color: #1a1a2e; }
nav .brand span { color: #4361ee; }
nav .nav-links { display: flex; gap: 1.5rem; align-items: center; font-size: 0.9rem; }
nav .nav-links .btn-sm {
    background: #4361ee; color: #fff; padding: 6px 16px;
    border-radius: 6px; font-size: 0.85rem;
}
nav .nav-links .btn-sm:hover { background: #3451d1; text-decoration: none; }

/* ── AUTH CARDS ── */
.auth-wrapper {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - 60px); padding: 2rem;
}
.auth-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 2.5rem; width: 100%; max-width: 440px;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.auth-card .subtitle { color: #64748b; font-size: .9rem; margin-bottom: 1.75rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: #374151; }
.form-group input,
.form-group select {
    width: 100%; padding: 10px 14px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: .95rem; transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus { outline: none; border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67,97,238,.12); }

/* ── Password field with show/hide toggle ── */
.password-field { position: relative; }
.password-field input { padding-right: 2.6rem; }
.password-toggle {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 1.05rem; line-height: 1;
    color: #64748b; padding: 6px 8px; border-radius: 6px;
}
.password-toggle:hover { color: #1e293b; background: #f1f5f9; }

/* ── Price entry table (production / national / intl. shipping): label column + input column ── */
.price-form-table {
    display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    column-gap: .75rem; row-gap: .55rem; align-items: center; margin-bottom: 1rem;
}
.price-form-row { display: contents; }
.price-form-label {
    font-size: .78rem; font-weight: 600; color: #374151; line-height: 1.3;
}
.price-form-input input {
    width: 100%; padding: 8px 12px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: .88rem; transition: border-color .2s;
}
.price-form-input input:focus {
    outline: none; border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67,97,238,.12);
}
@media (max-width: 480px) {
    .price-form-table { grid-template-columns: 1fr; }
    .price-form-row { display: block; margin-bottom: .3rem; }
}
.price-form-hint {
    font-size: .76rem; color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 8px; padding: 7px 11px; margin: -.3rem 0 .9rem; line-height: 1.4;
}

.role-group { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.1rem; }
.role-option input[type="radio"] { display: none; }
.role-option label {
    display: block; padding: .9rem; border: 2px solid #e2e8f0;
    border-radius: 8px; text-align: center; cursor: pointer; transition: all .2s;
}
.role-option label .role-title { font-weight: 700; display: block; margin-bottom: .2rem; }
.role-option label .role-desc { font-size: .78rem; color: #64748b; }
.role-option input[type="radio"]:checked + label {
    border-color: #4361ee; background: #eef1fd;
}
.role-option label:hover { border-color: #a5b4fc; }

.btn {
    width: 100%; padding: 11px; background: #4361ee; color: #fff;
    border: none; border-radius: 8px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: background .2s; margin-top: .5rem;
}
.btn:hover { background: #3451d1; }

.form-footer { text-align: center; margin-top: 1.25rem; font-size: .88rem; color: #64748b; }

/* ── OAuth "Continue with…" buttons ── */
.oauth-btn-group { display: flex; flex-direction: column; gap: .6rem; }
.oauth-btn {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    width: 100%; padding: 10px; border-radius: 8px; font-size: .92rem; font-weight: 600;
    cursor: pointer; text-decoration: none; box-sizing: border-box; transition: background .15s, opacity .15s;
}
.oauth-btn:hover { text-decoration: none; opacity: .9; }
.oauth-btn--google { background: #fff; color: #1f2937; border: 1px solid #d1d5db; }
.oauth-btn--google:hover { background: #f8fafc; }
.oauth-divider {
    display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0;
    color: #94a3b8; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em;
}
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }

/* ── ALERTS ── */
.alert {
    padding: .85rem 1rem; border-radius: 8px;
    margin-bottom: 1.25rem; font-size: .9rem;
}
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }

/* ── DATA-CONSISTENCY WARNINGS (profile page, right below the header) ── */
.data-warnings-box {
    background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px;
    padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.data-warnings-box h2 { font-size: .95rem; color: #9a3412; margin-bottom: .6rem; }
.data-warnings-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.data-warnings-list li {
    font-size: .85rem; color: #7c2d12; line-height: 1.5; padding-left: 1.3rem; position: relative;
}
.data-warnings-list li::before { content: "•"; position: absolute; left: 0; color: #f97316; font-weight: 700; }
.data-warnings-item--action { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: nowrap; }
.data-warnings-action-btn {
    display: inline-block; flex-shrink: 0; white-space: nowrap;
    padding: 3px 10px; font-size: .72rem; font-weight: 600; line-height: 1.6;
    background: transparent; color: #9a3412; border: 1px solid #fb923c; border-radius: 6px;
    cursor: pointer; transition: background .15s;
}
.data-warnings-action-btn:hover { background: #fed7aa; }
.data-warnings-trust-note {
    margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed #fed7aa;
    font-size: .82rem; color: #9a3412; line-height: 1.5;
}

/* ── "Not verified yet" nudge (Designer profile, optional opt-in) ── */
.not-verified-box {
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
    padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.not-verified-box h2 { font-size: .95rem; color: #1e40af; margin: 0 0 .4rem; }
.not-verified-box p { font-size: .85rem; color: #1e3a8a; line-height: 1.5; margin: 0; }
.not-verified-box a { color: #1d4ed8; text-decoration: underline; }

/* ── VERIFIED CHECKMARK (next to a name, wherever it appears) ── */
.verified-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%; background: #16a34a; color: #fff;
    font-size: .68rem; font-weight: 700; line-height: 1; margin-left: .3rem; flex-shrink: 0;
    vertical-align: middle;
}

/* ── NAV BAR profile avatar + dropdown menu ── */
.nav-profile-dropdown { position: relative; }
.nav-profile-trigger {
    display: inline-flex; align-items: center; gap: .5rem; padding: 4px 8px 4px 4px !important;
    background: none; border: 1px solid transparent; border-radius: 20px; cursor: pointer;
    font-family: inherit; font-size: .9rem; color: #1a1a2e; transition: background-color .15s, border-color .15s;
}
.nav-profile-trigger:hover { background: #f1f3f9; border-color: #e2e5f0; }
.nav-profile-avatar {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-profile-avatar--initial { background: #4361ee; color: #fff; font-weight: 700; font-size: .85rem; }
.nav-profile-name { font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-profile-chevron { flex-shrink: 0; color: #94a3b8; transition: transform .15s; }
.nav-profile-trigger--open .nav-profile-chevron { transform: rotate(180deg); }
.nav-profile-menu {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 100;
    min-width: 220px; background: #fff; border: 1px solid #e2e5f0; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: .4rem; flex-direction: column;
}
.nav-profile-menu--open { display: flex; }
.nav-profile-menu a {
    padding: .55rem .7rem; border-radius: 6px; font-size: .88rem; color: #1a1a2e; text-decoration: none;
}
.nav-profile-menu a:hover { background: #f1f3f9; }
.nav-profile-menu-divider { height: 1px; background: #e2e5f0; margin: .35rem 0; }
.nav-profile-menu-logout { color: #dc2626 !important; }
.field-check-note { font-size: .78rem; margin-top: .25rem; display: block; }
.field-check-note--ok { color: #16a34a; }
.field-check-note--warn { color: #c2410c; }

/* ── LAYOUT / PAGE TITLE ── */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.page-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ── "?" section-help button + guide popup ── */
.help-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; margin-left: .5rem; vertical-align: middle;
    background: #eef1fd; color: #4361ee; border: 1px solid #c7d2fe; border-radius: 50%;
    font-size: .78rem; font-weight: 700; line-height: 1; cursor: pointer; padding: 0;
    transition: background .15s;
}
.help-btn:hover { background: #dbe6fe; }
.guide-modal-box { max-width: 560px; width: 100%; }
.guide-modal-body p { font-size: .9rem; color: #374151; line-height: 1.65; margin-bottom: .85rem; }
.guide-modal-body p:last-child { margin-bottom: 0; }
.guide-modal-body strong { color: #1a1a2e; }

.badge {
    display: inline-block; padding: 3px 10px; border-radius: 99px;
    font-size: .75rem; font-weight: 600; text-transform: uppercase;
}
.badge-designer { background: #ede9fe; color: #5b21b6; }
.badge-maker    { background: #dbeafe; color: #1e40af; }

/* ── DASHBOARD ── */
.range-tabs { display: flex; gap: .3rem; background: #f1f3f9; padding: 4px; border-radius: 10px; }
.range-tab {
    padding: 6px 14px; border-radius: 7px; font-size: .82rem; font-weight: 500;
    color: #64748b; text-decoration: none; transition: background-color .15s, color .15s;
}
.range-tab:hover { color: #1a1a2e; text-decoration: none; }
.range-tab--active { background: #fff; color: #4361ee; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.dash-kpi-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;
    margin-bottom: 1.25rem;
}
.dash-kpi {
    background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .25rem;
}
.dash-kpi-value { font-size: 1.6rem; font-weight: 700; color: #1a1a2e; }
.dash-kpi-label { font-size: .8rem; color: #64748b; }

.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 720px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card {
    background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 1.5rem;
}
.dash-card h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.dash-empty { color: #94a3b8; font-size: .88rem; }

.dash-pie-row { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.pie-chart {
    width: 130px; height: 130px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.pie-chart-hole {
    width: 76px; height: 76px; border-radius: 50%; background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pie-chart-hole span { font-size: 1.15rem; font-weight: 700; color: #1a1a2e; line-height: 1.1; }
.pie-chart-hole small { font-size: .68rem; color: #94a3b8; }
.pie-legend { list-style: none; padding: 0; margin: 0; font-size: .85rem; display: flex; flex-direction: column; gap: .5rem; }
.pie-legend li { display: flex; align-items: center; gap: .5rem; color: #475569; }
.pie-legend b { color: #1a1a2e; margin-left: auto; padding-left: 1rem; }
.pie-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.dash-excluded-box {
    margin-top: 1rem; padding: .7rem .9rem; background: #f1f3f9; border-radius: 8px;
    color: #64748b; font-size: .82rem;
}

.dash-show-more {
    display: block; text-align: center; margin-top: 1rem; padding-top: .85rem;
    border-top: 1px solid #f1f3f9; font-size: .85rem; font-weight: 600; color: #4361ee; text-decoration: none;
}
.dash-show-more:hover { text-decoration: underline; }

.dash-pending-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.dash-pending-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding-bottom: .75rem; border-bottom: 1px solid #f1f3f9;
}
.dash-pending-list li:last-child { border-bottom: none; padding-bottom: 0; }
.dash-pending-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.dash-pending-title { font-weight: 600; font-size: .9rem; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-pending-sub { font-size: .78rem; color: #64748b; }
.dash-pending-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.dash-pending-actions .kanban-btn { padding: 6px 12px; font-size: .8rem; }

.dash-leaderboard { list-style: none; padding: 0; margin: 0; counter-reset: dash-rank; }
.dash-leaderboard li {
    counter-increment: dash-rank; display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #f1f3f9;
}
.dash-leaderboard li:last-child { border-bottom: none; }
.dash-leaderboard li::before {
    content: counter(dash-rank); width: 20px; height: 20px; border-radius: 50%; background: #f1f3f9;
    color: #64748b; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center;
    justify-content: center; flex-shrink: 0; margin-right: .6rem;
}
.dash-leaderboard a { font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: auto; }
.dash-leaderboard-stat { font-size: .85rem; font-weight: 600; color: #1a1a2e; white-space: nowrap; }

/* ── PROFILE VIEW ── */
.profile-header {
    background: #fff; border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: 1.75rem; margin-bottom: 1.25rem;
    display: flex; flex-direction: column; gap: 0;
}
.profile-header-top {
    display: flex; align-items: center; gap: 1.25rem;
}
.profile-header h1 { font-size: 1.4rem; margin-bottom: .3rem; }
.profile-header-info { flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.profile-location { font-size: .95rem; font-weight: 700; color: #4361ee; }
.profile-header-links {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-top: 1.1rem; padding-top: 1.1rem;
    border-top: 1px solid #f1f5f9;
}

/* subsections inside profile-section (view) */
.profile-subsection {
    margin-top: 1.1rem; padding-top: 1.1rem;
    border-top: 1px solid #f1f5f9;
}
.profile-subsection .subsection-label {
    font-size: .8rem; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6rem;
}
.private-activity-list { list-style: none; display: flex; flex-direction: column; gap: .4rem; font-size: .87rem; color: #374151; }
.private-activity-list li { padding: .3rem 0; }

.profile-avatar img {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; border: 2px solid #e2e8f0;
}
.avatar-placeholder {
    width: 72px; height: 72px; border-radius: 50%;
    background: #4361ee; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 700; flex-shrink: 0;
}
.avatar-placeholder.large { width: 72px; height: 72px; }

.btn-edit {
    margin-left: auto; flex-shrink: 0;
    padding: 8px 20px; border: 1.5px solid #4361ee;
    color: #4361ee; border-radius: 8px; font-size: .88rem; font-weight: 600;
    transition: all .2s;
}
.btn-edit:hover { background: #4361ee; color: #fff; text-decoration: none; }

.profile-section {
    background: #fff; border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: 1.5rem; margin-bottom: 1.25rem;
}
.profile-section h2 {
    font-size: .95rem; font-weight: 700; margin-bottom: 1rem;
    padding-bottom: .5rem; border-bottom: 1px solid #e2e8f0; color: #374151;
}
.profile-section p { color: #374151; line-height: 1.6; font-size: .95rem; }

.stat-grid { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 1.4rem; font-weight: 700; color: #1a1a2e; white-space: nowrap; }
.stat-label { font-size: .78rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: 4px 12px; background: #f1f5f9;
    border-radius: 20px; font-size: .85rem; color: #374151;
}
.tag-color { }

.contact-section-view .contact-list { display: flex; flex-direction: column; gap: .6rem; margin-top: .75rem; }
.contact-row { display: flex; gap: 1rem; font-size: .9rem; align-items: baseline; }
.contact-label { font-weight: 600; color: #64748b; min-width: 50px; }

/* ── SECONDARY BUTTON ── */
.btn-secondary {
    display: inline-block; padding: 10px 24px;
    border: 2px solid #4361ee; color: #4361ee; background: transparent;
    border-radius: 8px; font-size: .95rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.btn-secondary:hover { background: #4361ee; color: #fff; }

.add-role-section { border: 2px dashed #e2e8f0; box-shadow: none; }

/* ── FORM SUBSECTIONS (inside a form-section) ── */
.form-subsection {
    margin-top: 1.25rem; padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}
.subsection-label {
    font-size: .85rem; font-weight: 700; color: #374151;
    margin-bottom: .75rem;
}

/* ── SOCIAL LINKS (form) ── */
.link-group { margin-bottom: .85rem; }
.link-input-wrap { display: flex; align-items: center; gap: .5rem; }
.link-icon { font-size: 1.1rem; flex-shrink: 0; width: 24px; text-align: center; }
.link-input-wrap input {
    flex: 1; padding: 10px 14px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: .9rem; transition: border-color .2s;
}
.link-input-wrap input:focus { outline: none; border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67,97,238,.12); }

/* ── SOCIAL LINKS (profile view) ── */
.social-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.social-link {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: 6px 14px; background: #f1f5f9; border-radius: 20px;
    font-size: .88rem; color: #374151; transition: all .15s;
    text-decoration: none;
}
.social-link:hover { background: #e0e7ff; color: #3451d1; text-decoration: none; }
.social-icon { font-size: 1rem; }

/* ── DESIGNER PUBLIC PROFILE: project list ── */
.dp-project-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem;
}
.dp-project-card {
    display: flex; flex-direction: column; gap: .25rem;
    border: 1px solid #e2e8f0; border-radius: 10px; padding: .6rem;
    text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s;
}
.dp-project-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); transform: translateY(-2px); }
.dp-project-thumb {
    width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; object-fit: cover;
    background: #e8edf2;
}
.dp-project-thumb--placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 700; color: #b0bec5;
}
.dp-project-title {
    font-size: .82rem; font-weight: 600; color: #1e293b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dp-project-price { font-size: .78rem; font-weight: 700; color: #4361ee; }

/* ── PROPOSE A PROJECT MODAL (Find a Maker page) ── */
.propose-preview {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: .8rem 1rem; margin-top: .9rem;
}
.propose-preview-thumb {
    width: 56px; height: 56px; border-radius: 8px; object-fit: cover;
    background: #e8edf2; flex-shrink: 0;
}
.propose-preview-thumb--placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #b0bec5;
}
.propose-project-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .6rem; max-height: 300px; overflow-y: auto; padding: 2px;
}
.propose-project-tile {
    display: flex; flex-direction: column; gap: .3rem;
    border: 2px solid #e2e8f0; border-radius: 10px; padding: .5rem;
    cursor: pointer; transition: border-color .15s, background .15s;
}
.propose-project-tile:hover { border-color: #a5b4fc; background: #f5f7ff; }
.propose-project-tile.selected { border-color: #4361ee; background: #eef1fd; }
.propose-tile-thumb {
    width: 100%; aspect-ratio: 1 / 1; border-radius: 7px; object-fit: cover;
    background: #e8edf2;
}
.propose-tile-thumb--placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #b0bec5;
}
.propose-tile-title {
    font-size: .8rem; font-weight: 600; color: #1e293b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.propose-tile-price { font-size: .76rem; font-weight: 700; color: #4361ee; }
.propose-tile-meta {
    font-size: .7rem; color: #94a3b8; line-height: 1.3;
    overflow-wrap: break-word; word-break: break-word;
}
.propose-tile-colors { display: flex; flex-wrap: wrap; gap: .2rem; }
.propose-tile-swatch {
    width: 12px; height: 12px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,.15); flex-shrink: 0;
}

/* ── Project combobox with thumbnail (New Order modal) ── */
.proj-combo { position: relative; }
.proj-combo-btn {
    display: flex; align-items: center; gap: .6rem; width: 100%;
    padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px;
    background: #fff; cursor: pointer; text-align: left; font-size: .95rem;
}
.proj-combo-btn:hover { border-color: #a5b4fc; }
.proj-combo-thumb-wrap { flex-shrink: 0; width: 36px; height: 36px; border-radius: 6px; overflow: hidden; }
.proj-combo-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-combo-thumb-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: #e8edf2; font-size: 1.1rem; color: #b0bec5;
}
.proj-combo-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1e293b; }
.proj-combo-arrow { flex-shrink: 0; color: #94a3b8; }
.proj-combo-list {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 220px; overflow-y: auto;
}
.proj-combo-item {
    display: flex; align-items: center; gap: .6rem;
    padding: 8px 12px; cursor: pointer;
}
.proj-combo-item:hover { background: #f5f7ff; }
.proj-combo-item-thumb { flex-shrink: 0; width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.proj-combo-item-thumb--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: #e8edf2; font-size: 1rem; color: #b0bec5;
}
.proj-combo-item-title { font-size: .88rem; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.field-error { font-size: .8rem; color: #dc2626; margin-top: .3rem; }
.propose-warning {
    background: #fefce8; border: 1px solid #fde68a; border-radius: 10px;
    padding: .8rem 1rem; margin-top: .75rem;
}

/* ── RADIO LIST (shipping) ── */
.radio-list { display: flex; flex-direction: column; gap: .5rem; }
.radio-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem 1rem; border: 1.5px solid #e2e8f0;
    border-radius: 8px; cursor: pointer; transition: all .15s;
    font-size: .9rem;
}
.radio-item:hover { border-color: #a5b4fc; background: #f5f7ff; }
.radio-item input[type="radio"] { accent-color: #4361ee; width: 16px; height: 16px; cursor: pointer; }
.radio-item:has(input:checked) { border-color: #4361ee; background: #eef1fd; color: #3451d1; font-weight: 600; }

/* ── CUSTOM INPUTS BLOCK ── */
.custom-inputs-block { margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.custom-inputs-label { font-size: .8rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.custom-input {
    width: 100%; padding: 8px 12px; border: 1px dashed #d1d5db;
    border-radius: 8px; font-size: .88rem; background: #fafafa;
    transition: border-color .2s;
}
.custom-input:focus { outline: none; border-color: #4361ee; background: #fff; border-style: solid; }

.custom-color-row { display: flex; align-items: center; gap: .6rem; }
.color-picker {
    width: 42px; height: 38px; border: 1px solid #d1d5db;
    border-radius: 8px; padding: 2px; cursor: pointer; background: #fff; flex-shrink: 0;
}
.color-picker::-webkit-color-swatch-wrapper { padding: 2px; }
.color-picker::-webkit-color-swatch { border-radius: 5px; border: none; }
.custom-color-row .custom-input { flex: 1; }

/* ── PROFILE FORMS ── */
.profile-form { display: flex; flex-direction: column; gap: 0; }

.form-section {
    background: #fff; border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: 1.75rem; margin-bottom: 1.25rem;
}
.form-section h2 {
    font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem;
    padding-bottom: .6rem; border-bottom: 1px solid #e2e8f0; color: #374151;
}
.form-section textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: .95rem; resize: vertical;
    font-family: inherit; transition: border-color .2s;
}
.form-section textarea:focus { outline: none; border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67,97,238,.12); }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }

.optional { font-weight: 400; color: #94a3b8; font-size: .8rem; }

.checkbox-inline {
    display: flex; align-items: center; gap: .5rem;
    font-size: .9rem; cursor: pointer; margin-top: .5rem;
}
.checkbox-inline input { width: 16px; height: 16px; cursor: pointer; }

.checkbox-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem;
}
.checkbox-grid--colors { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

.checkbox-item {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem .75rem; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: .88rem; cursor: pointer; transition: all .15s; user-select: none;
}
.checkbox-item:hover { border-color: #a5b4fc; background: #f5f7ff; }
.checkbox-item input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: #4361ee; }
.checkbox-item input[type="checkbox"]:checked ~ * { color: #3451d1; }
.checkbox-item:has(input:checked) { border-color: #4361ee; background: #eef1fd; }

.color-dot {
    display: inline-block; width: 14px; height: 14px;
    border-radius: 50%; border: 1px solid #d1d5db; flex-shrink: 0;
}

.contact-note {
    background: #eff6ff; border: 1px solid #bfdbfe;
    color: #1e40af; border-radius: 8px;
    padding: .75rem 1rem; font-size: .85rem;
    margin-bottom: 1.25rem; line-height: 1.6;
}

.photo-preview { margin-bottom: 1rem; }
.photo-preview img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid #e2e8f0; }

.profile-form > .btn { width: auto; padding: 12px 36px; align-self: flex-start; }

/* ── NOTIFICATION BELL ── */
.notif-bell {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    color: #475569; text-decoration: none;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.notif-bell:hover { background: #f1f5f9; color: #1e293b; text-decoration: none; }
.notif-bell-badge {
    position: absolute; top: 2px; right: 2px;
    background: #ef4444; color: #fff;
    font-size: .6rem; font-weight: 700; line-height: 1;
    min-width: 15px; height: 15px; border-radius: 99px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 3px;
    border: 1.5px solid #fff;
}

/* ── BROWSE PROJECTS GRID ── */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 900px)  { .bp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .bp-grid { grid-template-columns: 1fr; } }

/* ── BROWSE PROJECTS: SEARCH + FILTERS ── */
.bp-filter-bar {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 1.1rem 1.3rem; margin-bottom: 1.5rem;
}
.bp-search-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.bp-search-input {
    flex: 1 1 260px; padding: 10px 14px; border: 1px solid #cbd5e1;
    border-radius: 8px; font-size: .92rem; font-family: inherit;
}
.bp-search-input:focus { outline: none; border-color: #4361ee; }
.bp-select {
    padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: .85rem; font-family: inherit; background: #fff; width: 190px;
}
.bp-select:focus { outline: none; border-color: #4361ee; }
.bp-filters-row {
    display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: flex-end;
    padding-top: .9rem; border-top: 1px solid #f1f5f9;
}
.bp-filter-group { display: flex; flex-direction: column; gap: .4rem; min-width: 190px; }
.bp-filter-group--materials { flex: 1 1 260px; }
.bp-filter-label {
    font-size: .72rem; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: .04em;
}
.range-labels { font-size: .8rem; color: #374151; font-weight: 600; }

/* Dual/single range slider (thumbs-only pointer-events technique) */
.range-slider { position: relative; height: 20px; width: 190px; }
.range-track-bg {
    position: absolute; top: 8px; left: 0; right: 0; height: 4px;
    background: #e2e8f0; border-radius: 2px;
}
.range-track-fill {
    position: absolute; top: 8px; height: 4px; background: #4361ee; border-radius: 2px;
}
.range-slider input[type=range] {
    position: absolute; top: 0; left: 0; width: 100%; height: 20px;
    margin: 0; background: transparent; -webkit-appearance: none; appearance: none;
    pointer-events: none;
}
.range-slider input[type=range]::-webkit-slider-runnable-track { background: transparent; }
.range-slider input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto;
    width: 16px; height: 16px; border-radius: 50%;
    background: #4361ee; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3);
    cursor: pointer; margin-top: 2px;
}
.range-slider input[type=range]::-moz-range-track { background: transparent; border: none; }
.range-slider input[type=range]::-moz-range-thumb {
    pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
    background: #4361ee; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer;
}

.bp-material-list {
    display: flex; flex-wrap: wrap; gap: .4rem .6rem;
    max-height: 62px; overflow-y: auto; padding: 2px 0;
}
.bp-material-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .82rem; color: #374151; cursor: pointer;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px;
    padding: 4px 10px 4px 8px; white-space: nowrap;
}
.bp-material-chip input { margin: 0; }

/* Each card: white box with shadow, image LEFT, info RIGHT */
.bp-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    overflow: hidden;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-align-items: stretch;
    align-items: stretch;
    min-height: 158px;      /* grows if content (e.g. hardware list) needs more room */
    position: relative;     /* anchors the stretched title link below */
    transition: box-shadow .15s, transform .15s;
}
.bp-card:hover {
    box-shadow: 0 5px 18px rgba(0,0,0,.13);
    transform: translateY(-2px);
}

/* ── Image (left half) ── */
.bp-card-img-wrap {
    position: relative;
    -webkit-flex: 0 0 46%;
    flex: 0 0 46%;
    overflow: hidden;
    background: #e8edf2;
}
.bp-card-img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.bp-card-img-placeholder {
    width: 100%; height: 100%;
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: #b0bec5;
}
.bp-badge {
    position: absolute; bottom: .35rem; left: .35rem;
    padding: 2px 6px; border-radius: 20px;
    font-size: .58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    line-height: 1.4;
}
.bp-badge--open     { background: #dbeafe; color: #1e40af; }
.bp-badge--assigned { background: #dcfce7; color: #166534; }

/* ── Info (right half) ── */
.bp-card-body {
    -webkit-flex: 1 1 0;
    flex: 1 1 0;
    min-width: 0;
    padding: .55rem .6rem .45rem;
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    gap: .18rem;
}
.bp-card-title {
    font-weight: 700;
    font-size: .78rem;
    color: #1e293b;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.bp-card-title:hover { color: #4361ee; text-decoration: underline; }
/* Stretched-link: makes the whole card clickable via the title link */
.bp-card-title::after {
    content: '';
    position: absolute;
    inset: 0;
}

.bp-card-material {
    font-size: .66rem; color: #64748b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex-shrink: 0;
}
.bp-card-colors { display: -webkit-flex; display: flex; flex-wrap: wrap; gap: .18rem; flex-shrink: 0; }
.bp-card-swatch {
    width: 10px; height: 10px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,.12);
    display: inline-block; flex-shrink: 0;
}
.bp-card-swatch-more {
    font-size: .58rem; color: #94a3b8; font-weight: 600;
    display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
}
.bp-card-dims {
    font-size: .61rem; color: #94a3b8;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex-shrink: 0;
}
.bp-card-hardware {
    font-size: .64rem; color: #92400e; background: #fef3c7;
    border-radius: 5px; padding: 2px 6px;
    white-space: normal; line-height: 1.35;
    flex-shrink: 0; align-self: flex-start;
}
.bp-card-hardware-icon { margin-right: 1px; }

.bp-card-price {
    display: -webkit-flex; display: flex;
    -webkit-align-items: baseline; align-items: baseline;
    gap: .3rem; flex-wrap: wrap;
    margin-top: auto;
    flex-shrink: 0;
}
.bp-price-main { font-size: .85rem; font-weight: 700; color: #1e293b; }
.bp-price-intl { font-size: .65rem; font-weight: 400; color: #64748b; }
.bp-price-tbd  { font-size: .7rem; color: #94a3b8; font-style: italic; }

/* ── Designer strip (pinned to bottom) ── */
.bp-card-designer {
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    gap: .25rem;
    padding-top: .28rem;
    border-top: 1px solid #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
    position: relative; z-index: 1; /* whole row sits above the card's stretched title link */
}
.bp-designer-initial {
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
    background: #4361ee; color: #fff;
    display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    font-size: .6rem; font-weight: 700;
}
.bp-designer-name {
    font-size: .65rem; font-weight: 600; color: #374151;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex-shrink: 1; min-width: 0;
    text-decoration: none;
    position: relative; z-index: 1; /* sits above the card's stretched title link */
}
.bp-designer-name:hover { color: #4361ee; text-decoration: underline; }
.bp-designer-sep  { font-size: .6rem; color: #cbd5e1; flex-shrink: 0; }
.bp-designer-stat { font-size: .6rem; color: #94a3b8; white-space: nowrap; flex-shrink: 0; }
.bp-card-stars    { font-size: .62rem; color: #f59e0b; flex-shrink: 0; letter-spacing: 1px; }
.bp-card-stars--empty { color: #cbd5e1; letter-spacing: normal; }
.bp-designer-review-count {
    font-size: .6rem; color: #94a3b8; font-weight: 600;
    text-decoration: none; flex-shrink: 0;
}
.bp-designer-review-count:hover { color: #4361ee; text-decoration: underline; }

/* Card state: current maker is the accepted partner */
.bp-card--partner {
    background: #f0fdf4;
    border-color: #86efac;
}
.bp-card--partner .bp-card-img-wrap { background: #dcfce7; }
.bp-card--partner .bp-card-body { background: #f0fdf4; }
.bp-partner-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .66rem; font-weight: 700; color: #166534;
    background: #dcfce7; border-radius: 20px; padding: 2px 8px;
    margin-top: .2rem; flex-shrink: 0;
}

/* ── OFFER SECTION (maker view on project show) ── */
.offer-action-box {
    display: flex; flex-direction: column; align-items: flex-start; gap: .75rem;
}
.offer-or {
    font-size: .88rem; color: #94a3b8; font-weight: 600;
    margin: .1rem 0; align-self: flex-start;
}
.offer-btn--stated {
    width: auto; padding: 11px 24px;
}
.offer-btn--custom {
    padding: 10px 24px; cursor: pointer;
}
.offer-pending-box {
    display: flex; align-items: flex-start; gap: .9rem;
    background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 10px;
    padding: 1.1rem 1.25rem;
}
.offer-pending-icon {
    font-size: 1.4rem; line-height: 1; flex-shrink: 0; margin-top: .05rem;
}
.offer-pending-title {
    font-weight: 700; font-size: .97rem; color: #166534; margin-bottom: .2rem;
}
.offer-pending-sub {
    font-size: .85rem; color: #15803d;
}
.offer-partner-box {
    display: flex; align-items: flex-start; gap: .9rem;
    background: #f0fdf4; border: 2px solid #4ade80; border-radius: 10px;
    padding: 1.2rem 1.4rem;
}
.offer-partner-icon {
    font-size: 1.6rem; line-height: 1; flex-shrink: 0;
}
.offer-partner-title {
    font-weight: 700; font-size: 1.05rem; color: #15803d; margin-bottom: .25rem;
}
.offer-partner-sub {
    font-size: .88rem; color: #166534;
}

/* ── OFFER CARD (designer receives offers) ── */
.offer-card {
    display: flex; flex-direction: row; gap: 1.5rem;
    padding: 1.1rem 0 .9rem;
}
.offer-card + .offer-card {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.2rem;
}

/* Left column: avatar, name, bio */
.offer-card-left {
    flex: 0 0 180px; display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: .45rem;
}
.offer-card-avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
    border: 2px solid #e2e8f0; flex-shrink: 0;
}
.offer-card-avatar-init {
    width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
    background: #4361ee; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700;
}
.offer-card-name {
    font-weight: 700; font-size: 1rem; color: #1e293b; line-height: 1.2;
    text-decoration: none; display: inline-block;
}
.offer-card-name:hover { color: #4361ee; text-decoration: underline; }
.offer-card-bio {
    font-size: .8rem; color: #64748b; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 4;
    -webkit-box-orient: vertical; overflow: hidden;
    overflow-wrap: break-word; word-break: break-word;
}
.profile-bio-text {
    overflow-wrap: break-word; word-break: break-word;
}
.offer-card-meta {
    display: flex; flex-direction: column; align-items: center;
    gap: .2rem; margin-top: .2rem;
}
.offer-card-stars { font-size: .8rem; color: #fbbf24; letter-spacing: .06em; }
.offer-card-orders { font-size: .72rem; color: #94a3b8; }

/* Right column: all details */
.offer-card-right {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .55rem;
}
.offer-card-right-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* Price block */
.offer-price-block { display: flex; flex-direction: column; gap: .3rem; }
.offer-price-aslisted {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .88rem; font-weight: 600; color: #16a34a;
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 6px; padding: 4px 10px;
}
.offer-price-new { display: flex; flex-direction: column; gap: .1rem; }
.offer-price-new-label {
    font-size: .7rem; font-weight: 700; color: #92400e;
    text-transform: uppercase; letter-spacing: .05em;
}
.offer-price-new-val {
    font-size: 1rem; font-weight: 700; color: #1e293b;
}
.offer-price-new-intl { font-size: .78rem; color: #64748b; }

/* Tech info row */
.offer-tech-row {
    display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center;
}
.offer-tech-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .78rem; color: #374151;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 6px; padding: 3px 9px;
}
.offer-tech-chip-icon { font-size: .85rem; }

/* Message */
.offer-card-message {
    font-size: .85rem; color: #374151; font-style: italic;
    background: #f8fafc; border-left: 3px solid #e2e8f0;
    padding: .5rem .75rem; border-radius: 0 6px 6px 0;
    line-height: 1.5;
}

/* Actions */
.offer-card-actions {
    display: flex; gap: .5rem; align-items: center;
    padding-top: .35rem; flex-wrap: wrap;
}

@media (max-width: 640px) {
    .offer-card { flex-direction: column; }
    .offer-card-left { flex-direction: row; text-align: left; align-items: flex-start; flex: auto; }
}

/* keep these for other places that still use .badge-open / .badge-assigned */
.badge-open     { background: #dbeafe; color: #1e40af; }
.badge-assigned { background: #dcfce7; color: #166534; }

/* ── PART CARD (project form) ── */
.part-card {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 1.25rem; margin-bottom: .75rem;
}
.existing-part { border-color: #bfdbfe; background: #eff6ff; }
.part-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
}
.part-card-title { font-weight: 700; font-size: .9rem; color: #374151; }
.btn-remove-part {
    font-size: .8rem; color: #dc2626; background: none; border: 1px solid #fca5a5;
    border-radius: 6px; padding: 3px 10px; cursor: pointer; transition: all .15s;
}
.btn-remove-part:hover { background: #fee2e2; }
.btn-remove-color {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px;
    border: 1px solid #e2e8f0; background: #fff; cursor: pointer;
    font-size: .9rem; color: #94a3b8; display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.btn-remove-color:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.btn-add-color {
    font-size: .82rem; color: #4361ee; background: none; border: 1px dashed #a5b4fc;
    border-radius: 6px; padding: 4px 12px; cursor: pointer; margin-top: .5rem; transition: all .15s;
}
.btn-add-color:hover { background: #eef1fd; }

/* ── PROJECT PHOTOS ── */
.photo-grid {
    display: flex; flex-wrap: wrap; gap: .75rem;
}
.photo-thumb {
    width: 120px; height: 90px; object-fit: cover;
    border-radius: 8px; border: 1px solid #e2e8f0;
    display: block;
}
.photo-thumb-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}
.photo-remove-btn {
    position: absolute; top: 5px; right: 5px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff;
    border: none; cursor: pointer; font-size: 15px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 0; transition: background .15s;
}
.photo-remove-btn:hover { background: #dc2626; }
.photo-preview-pending .photo-thumb { opacity: .8; outline: 2px dashed #a5b4fc; border-radius: 8px; }

/* ── PROJECT SHOW: TWO-COLUMN ── */
.project-show-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.25rem;
}
@media (max-width: 720px) {
    .project-show-grid { grid-template-columns: 1fr; }
}

.project-show-title-block {
    background: #fff; border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.project-show-title-block h1 { font-size: 1.6rem; font-weight: 800; color: #1a1a2e; }

.project-photo-gallery {
    display: flex; flex-direction: column; gap: .75rem;
}
.project-photo {
    width: 100%; border-radius: 12px;
    object-fit: cover; max-height: 420px;
    border: 1px solid #e2e8f0;
}
.project-photo-placeholder {
    background: #f8fafc; border: 2px dashed #e2e8f0;
    border-radius: 12px; padding: 3rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 200px;
}

.project-show-right { display: flex; flex-direction: column; gap: 0; }
.project-show-right .profile-section { margin-bottom: 1rem; }

/* ── STL DOWNLOAD BUTTON ── */
.btn-download-stl {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: 4px 12px; background: #eef1fd; color: #4361ee;
    border: 1px solid #c7d2fe; border-radius: 6px;
    font-size: .8rem; font-weight: 600; text-decoration: none;
    transition: all .15s;
}
.btn-download-stl:hover { background: #4361ee; color: #fff; border-color: #4361ee; text-decoration: none; }

/* ── PHOTO ADD TILE ── */
.photo-add-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 120px; height: 90px;
    border: 2px dashed #c7d2fe; border-radius: 8px;
    cursor: pointer; transition: all .15s; gap: .2rem;
    background: #f5f7ff; flex-shrink: 0;
}
.photo-add-tile:hover { border-color: #4361ee; background: #eef1fd; }
.photo-add-icon { font-size: 1.8rem; line-height: 1; color: #4361ee; font-weight: 300; }
.photo-add-text { font-size: .72rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ── PHOTO SLIDER ── */
.photo-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f5f9;
}
.photo-slider-track {
    display: flex;
    transition: transform .35s ease;
}
.photo-slide { flex: 0 0 100%; min-width: 0; }
.photo-slide .project-photo {
    border-radius: 0; border: none; max-height: 460px;
    display: block; width: 100%;
}
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.45); color: #fff;
    border: none; border-radius: 50%;
    width: 40px; height: 40px; font-size: 1.5rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s; z-index: 2;
}
.slider-btn:hover { background: rgba(0,0,0,.7); }
.slider-btn--prev { left: .75rem; }
.slider-btn--next { right: .75rem; }
.slider-dots {
    position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: .4rem; z-index: 2;
}
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.5); border: none; cursor: pointer;
    transition: background .15s;
    padding: 0;
}
.slider-dot.active { background: #fff; }

/* ── MAKER BROWSE GRID ── */
.maker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.maker-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: 1.25rem;
    display: flex; flex-direction: column; gap: .75rem;
    border: 1.5px solid transparent;
    transition: box-shadow .15s;
}
.maker-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.maker-card.compat-great   { border-color: #86efac; }
.maker-card.compat-good    { border-color: #93c5fd; }
.maker-card.compat-partial { border-color: #fde68a; }

.maker-card-top {
    display: flex; align-items: flex-start; gap: .9rem;
}
.maker-card-avatar { flex-shrink: 0; }
.maker-card-photo {
    width: 52px; height: 52px; border-radius: 50%;
    object-fit: cover; border: 2px solid #e2e8f0;
    display: block;
}
.maker-card-initials {
    width: 52px; height: 52px; border-radius: 50%;
    background: #4361ee; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 700; flex-shrink: 0;
}
.maker-card-info { flex: 1; min-width: 0; }
.maker-card-name {
    font-weight: 700; font-size: 1rem; color: #1a1a2e; margin-bottom: .1rem;
    text-decoration: none; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.maker-card-name:hover { color: #4361ee; text-decoration: underline; }
.maker-card-rating {
    display: flex; align-items: center; gap: .3rem;
    font-size: .82rem; font-weight: 600; color: #1a1a2e; margin-bottom: .2rem;
}
.maker-card-rating-stars { color: #f59e0b; letter-spacing: 1px; }
.maker-card-rating-count {
    color: #94a3b8; font-weight: 500; text-decoration: none;
}
.maker-card-rating-count:hover { color: #4361ee; text-decoration: underline; }
.maker-card-rating--empty { color: #94a3b8; font-weight: 500; }
.maker-card-location { font-size: .92rem; font-weight: 700; color: #4361ee; margin-bottom: .2rem; }
.maker-card-bio {
    font-size: .85rem; color: #64748b; line-height: 1.5;
    overflow-wrap: break-word; word-break: break-word;
}

.maker-compat-badge {
    display: inline-block; padding: 2px 8px; border-radius: 99px;
    font-size: .66rem; font-weight: 700; flex-shrink: 0; align-self: flex-start;
    white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis;
}
.maker-compat-badge.compat-great   { background: #dcfce7; color: #166534; }
.maker-compat-badge.compat-good    { background: #dbeafe; color: #1e40af; }
.maker-compat-badge.compat-partial { background: #fefce8; color: #92400e; }

.maker-card-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .25rem; }

/* ── Maker card sections (capabilities / shipping info) ── */
.maker-card-section { border-top: 1px solid #f1f5f9; padding-top: .65rem; }
.maker-card-section-title {
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: #1a1a2e; margin: 0 0 .5rem;
}
.maker-card-facts { display: flex; flex-direction: column; gap: .4rem; }
.maker-card-fact {
    display: flex; align-items: flex-start; gap: .6rem;
    font-size: .85rem; line-height: 1.4;
}
.maker-card-fact-label {
    flex-shrink: 0; width: 92px; color: #94a3b8; font-weight: 600;
}
.maker-card-fact-value {
    color: #374151; overflow-wrap: break-word; word-break: break-word; min-width: 0;
}
.maker-card-fact-colors { display: inline-flex; align-items: center; gap: .3rem; flex-wrap: wrap; }

/* ── ACTION BUTTONS (compact, used in my-project-actions) ── */
.btn-action {
    display: block; width: 100%; box-sizing: border-box; text-align: center;
    padding: 6px 10px; border-radius: 7px;
    font-size: .82rem; font-weight: 600; cursor: pointer;
    border: none; text-decoration: none; transition: all .15s;
    white-space: normal; line-height: 1.3;
}
.btn-action--primary  { background: #4361ee; color: #fff; }
.btn-action--primary:hover  { background: #3451d1; text-decoration: none; color: #fff; }
.btn-action--danger   { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.btn-action--danger:hover   { background: #dc2626; color: #fff; }
.btn-action--secondary{ background: #f1f5f9; color: #374151; border: 1px solid #e2e8f0; }
.btn-action--secondary:hover{ background: #e2e8f0; text-decoration: none; color: #374151; }
.btn-action--ghost    { background: transparent; color: #64748b; border: 1px solid #e2e8f0; }
.btn-action--ghost:hover    { background: #f1f5f9; color: #374151; }

/* ── MY PROJECTS ROW ── */
.my-project-row {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 0; padding: 1rem 1.25rem;
}
.my-project-thumb {
    flex-shrink: 0; width: 80px; height: 64px;
    border-radius: 8px; overflow: hidden;
    background: #e2e8f0;
}
.my-project-thumb-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.my-project-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #4361ee; color: #fff;
    font-size: 1.4rem; font-weight: 700;
}
.my-project-content { flex: 1; min-width: 0; }
.my-project-maker-row { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: .15rem; }
.my-project-partners { display: flex; flex-direction: column; gap: .3rem; margin-top: .15rem; }
.my-project-partner-row {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.my-project-partner-name {
    font-size: .85rem; font-weight: 600; color: #166534; text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.my-project-partner-name:hover { text-decoration: underline; }
.my-project-partner-country {
    font-size: .78rem; font-weight: 700; color: #4361ee; flex-shrink: 0;
}
.my-project-actions { display: flex; flex-direction: column; gap: .4rem; flex-shrink: 0; width: 118px; }
@media (max-width: 600px) {
    .my-project-row { flex-wrap: wrap; }
    .my-project-actions { flex-direction: row; width: 100%; }
    .my-project-actions .btn-action { width: auto; flex: 1; }
}

/* (notif-badge-link removed, replaced by .notif-bell) */

/* ── NOTIFICATIONS PAGE ── */
.notif-email-pref {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: .7rem 1rem; margin-bottom: 1.25rem;
}
.notif-list {
    display: flex; flex-direction: column; gap: .5rem;
}
.notif-item {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .85rem 1.1rem; border-radius: 10px;
    background: #fff; border: 1px solid #e2e8f0;
}
.notif-item--unread {
    background: #eff6ff; border-color: #bfdbfe;
}
.notif-item-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #cbd5e1; flex-shrink: 0; margin-top: .35rem;
}
.notif-item--unread .notif-item-dot { background: #4361ee; }
.notif-item-body {
    display: flex; flex-direction: column; gap: .15rem; flex: 1;
}
.notif-item-label { font-size: .92rem; color: #1e293b; }
.notif-item-label a { color: #4361ee; text-decoration: none; }
.notif-item-label a:hover { text-decoration: underline; }
.notif-item-time { font-size: .78rem; color: #94a3b8; }

/* ── SHARED ACCEPT/DECLINE BUTTONS (offer + request cards) ── */
.btn-accept {
    background: #16a34a; color: #fff; border: 1px solid transparent;
    border-radius: 8px; padding: 8px 18px;
    font-size: .88rem; font-weight: 600; cursor: pointer;
}
.btn-accept:hover { background: #15803d; color: #fff; text-decoration: none; }
.btn-danger {
    background: #fee2e2; color: #dc2626;
    border: 1px solid #fca5a5; border-radius: 8px;
    padding: 8px 18px; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.btn-danger:hover { background: #dc2626; color: #fff; }

/* Invitation status badges */
.inv-status-badge {
    flex-shrink: 0; padding: 3px 10px; border-radius: 20px;
    font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.inv-status-badge--pending  { background: #eff6ff; color: #4361ee; border: 1px solid #bfdbfe; }
.inv-status-badge--accepted { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; }
.inv-status-badge--declined { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.inv-status-badge--closed   { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* Active-partnership button state (non-clickable) */
.btn-partnership-active {
    padding: 7px 16px; font-size: .85rem; font-weight: 600;
    border-radius: 8px; border: 1px solid #86efac;
    background: #dcfce7; color: #166534; cursor: not-allowed;
}

/* ── PENDING OFFER BADGE BUTTON (my-projects) ── */
.offer-badge-btn {
    background: none; border: none; cursor: pointer;
    font-size: .82rem; font-weight: 600; color: #f59e0b;
    padding: 0; text-decoration: underline dotted;
}
.offer-badge-btn:hover { color: #d97706; }

/* ── MODAL ── */
.modal-overlay {
    display: none; position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,.45); z-index: 9999;
    align-items: center; justify-content: center;
    padding: 1rem;
}
.modal-box {
    background: #fff; border-radius: 14px;
    width: 100%; max-width: 560px; max-height: 85vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.4rem; border-bottom: 1px solid #e2e8f0; flex-shrink: 0;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; margin: 0; color: #1e293b; }
.modal-close {
    background: none; border: none; font-size: 1.4rem; line-height: 1;
    color: #94a3b8; cursor: pointer; padding: 0 4px;
}
.modal-close:hover { color: #1e293b; }
.modal-body { padding: 1rem 1.4rem; overflow-y: auto; flex: 1; }
.modal-offer-item {
    padding: .85rem 0; border-bottom: 1px solid #f1f5f9;
}
.modal-offer-item:last-child { border-bottom: none; padding-bottom: 0; }
.modal-offer-maker { font-size: .92rem; margin-bottom: .55rem; }
.modal-offer-loc { color: #64748b; }

/* Price comparison columns inside modal */
.modal-price-compare {
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: .5rem; flex-wrap: wrap;
}
.modal-price-col { display: flex; flex-direction: column; gap: .1rem; }
.modal-price-col--original .modal-price-val,
.modal-price-col--original .modal-price-sub { color: #94a3b8; }
.modal-price-val { font-size: 1.1rem; font-weight: 700; color: #1e293b; }
.modal-price-val--strike { text-decoration: line-through; }
.modal-price-sub { font-size: .78rem; color: #64748b; }
.modal-price-sub--strike { text-decoration: line-through; }
.modal-price-tag { font-size: .72rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.modal-price-arrow { font-size: 1.2rem; color: #cbd5e1; flex-shrink: 0; }
.modal-price-col--proposed .modal-price-val { color: #4361ee; }
.modal-offer-msg {
    font-size: .85rem; color: #374151; font-style: italic;
    margin: .4rem 0 .6rem; line-height: 1.5;
}
.modal-offer-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.modal-offer-actions > form { flex-shrink: 0; }

/* ── PROPOSE FORM (my-requests, toggle) ── */
.btn-propose-toggle {
    background: #eff6ff; color: #4361ee;
    border: 1px solid #bfdbfe; border-radius: 8px;
    padding: 8px 18px; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.btn-propose-toggle:hover { background: #dbeafe; }
.propose-form {
    display: none; margin-top: .85rem;
}
.propose-form.open { display: block; }
.propose-form-inner {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 1.1rem 1.2rem;
}
.propose-ref-price {
    font-size: .85rem; color: #64748b; margin-bottom: .85rem;
}

/* ── OFFERS / REQUESTS SWITCH ── */
.or-switch-wrap { display: flex; justify-content: center; margin: .5rem 0 1.5rem; }
.or-switch {
    position: relative; display: inline-flex; background: #f1f5f9;
    border-radius: 999px; padding: 4px; gap: 2px;
}
.or-switch-thumb {
    position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0;
    background: #4361ee; border-radius: 999px;
    transition: left .25s ease, width .25s ease; z-index: 0;
}
.or-switch-btn {
    position: relative; z-index: 1; border: none; background: transparent; cursor: pointer;
    padding: 9px 24px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #64748b;
    display: flex; align-items: center; gap: .45rem; transition: color .2s; font-family: inherit;
}
.or-switch-btn.active { color: #fff; }
.or-switch-count {
    font-size: .72rem; font-weight: 700; background: rgba(0,0,0,.12);
    border-radius: 20px; padding: 1px 7px; line-height: 1.4;
}
.or-switch-btn.active .or-switch-count { background: rgba(255,255,255,.25); }

/* ── GENERIC LIST SEARCH + FILTER BAR (Offers / Requests) ── */
.list-filter-bar {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 1rem 1.2rem; margin-bottom: 1.25rem;
    display: flex; flex-direction: column; gap: .75rem;
}
.list-filter-bar > .bp-search-input {
    flex: none; width: 100%; box-sizing: border-box;
}
.list-filter-row {
    display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end;
}
.list-filter-field { display: flex; flex-direction: column; gap: .3rem; }
.list-filter-field label {
    font-size: .72rem; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: .04em;
}
.list-filter-field input {
    padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: .85rem; font-family: inherit;
}
.list-filter-field input:focus { outline: none; border-color: #4361ee; }
.list-empty {
    display: none; text-align: center; color: #64748b;
    padding: 2rem 0; font-size: .95rem;
}

/* ── PARTNERSHIPS PAGE ── */
.pship-list { display: flex; flex-direction: column; gap: 1.5rem; }
.pship-maker-block {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; overflow: hidden;
    display: grid; grid-template-columns: 230px 1fr;
}
/* LEFT column: the group's own summary card (a project, for the Designer view; a partner, for
   the Maker view); the RIGHT column (.pship-projects) lists what's nested under it. */
.pship-block-left {
    padding: 1.5rem 1.1rem; border-right: 1px solid #f1f5f9;
    background: #fafafa; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.pship-block-left .pship-maker-avatar,
.pship-block-left .pship-maker-initials,
.pship-block-left .pship-project-thumb {
    width: 68px; height: 68px; font-size: 1.5rem; border-radius: 50%;
}
.pship-block-left .pship-project-thumb--placeholder { border-radius: 8px; }
.pship-maker-avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.pship-maker-initials {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: #4361ee; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem;
}
.pship-maker-name { font-weight: 700; color: #1e293b; font-size: .95rem; text-decoration: none; }
.pship-maker-name:hover { color: #4361ee; text-decoration: underline; }
.pship-maker-location { font-size: .82rem; color: #64748b; margin-top: .15rem; }
.pship-partner-location {
    font-size: .88rem; font-weight: 700; color: #4361ee;
    margin: .25rem 0 .5rem;
}
.pship-block-count { font-size: .78rem; color: #94a3b8; font-weight: 600; }
.pship-block-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .3rem; }
.pship-projects { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
@media (max-width: 640px) {
    .pship-maker-block { grid-template-columns: 1fr; }
    .pship-block-left { border-right: none; border-bottom: 1px solid #f1f5f9; }
}
.pship-project-card {
    background: #f8fafc; border: 1px solid #e9edf2;
    border-radius: 9px; padding: .75rem 1rem;
}
.pship-project-card--inactive { background: #f4f4f5; opacity: .78; }
.pship-project-card--inactive .pship-project-title { color: #64748b; }
.pship-project-card-inner { display: flex; gap: .9rem; }
.pship-project-media {
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
    flex-shrink: 0; width: 76px;
}
.pship-project-thumb {
    width: 76px; height: 76px; border-radius: 8px; object-fit: cover;
    background: #e8edf2; flex-shrink: 0;
}
.pship-project-thumb--placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #b0bec5;
}
/* Orders and revenue sit side by side as two separate columns, not stacked, so scanning down
   the list keeps every order count in one column and every revenue figure in the next. */
.pship-stats-row { display: flex; flex-direction: row; gap: .5rem; }
.pship-project-orders-box {
    display: flex; flex-direction: column; align-items: center;
    background: #eff6ff; border-radius: 8px; padding: .3rem .6rem;
    min-width: 78px; box-sizing: border-box;
}
.pship-project-orders-num { font-size: 1rem; font-weight: 700; color: #4361ee; line-height: 1.1; }
.pship-project-orders-label {
    font-size: .6rem; font-weight: 600; color: #64748b;
    text-transform: uppercase; letter-spacing: .03em;
}
.pship-project-content {
    flex: 1; min-width: 0; display: flex; align-items: flex-start;
    justify-content: space-between; gap: .75rem;
}
.pship-project-main { flex: 1; min-width: 0; }
.pship-project-status-col {
    display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex-shrink: 0;
}
/* Fixed-width order/revenue boxes so their numbers line up in a column down the whole list,
   card after card, instead of drifting with however wide each card's content happens to be. */
.pship-project-status-col .pship-status { margin-bottom: .05rem; }
.pship-project-title {
    display: block; margin-bottom: .35rem;
    font-weight: 600; color: #1e293b; font-size: .9rem; text-decoration: none;
}
.pship-project-title:hover { text-decoration: underline; }
.pship-status {
    padding: 2px 9px; border-radius: 20px;
    font-size: .72rem; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.pship-status--pending  { background: #fef3c7; color: #92400e; }
.pship-status--active   { background: #dcfce7; color: #166534; }
.pship-status--declined { background: #fee2e2; color: #991b1b; }
.pship-status--revoked  { background: #f1f5f9; color: #64748b; }
.pship-price-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .84rem; margin-bottom: .3rem; }
.pship-price-original { color: #94a3b8; text-decoration: line-through; }
.pship-arrow { color: #94a3b8; }
.pship-price-proposed { color: #4361ee; font-weight: 700; }
.pship-price-stated { color: #374151; }
.pship-counter-label {
    font-size: .7rem; font-weight: 600; color: #4361ee;
    background: #eff6ff; border-radius: 4px; padding: 1px 5px; margin-left: .3rem;
}
.pship-offer-msg { font-size: .82rem; color: #64748b; font-style: italic; margin: .3rem 0 0; }

/* ── RECEIVED OFFERS PAGE ── */
.rof-list { display: flex; flex-direction: column; gap: 1rem; }
.rof-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 1.1rem 1.3rem;
}
.rof-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; margin-bottom: .55rem; flex-wrap: wrap;
}
.rof-maker-row { display: flex; align-items: center; gap: .7rem; }
.rof-avatar {
    width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.rof-avatar-initial {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: #4361ee; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .95rem;
}
.rof-maker-name { font-weight: 700; color: #1e293b; font-size: .92rem; margin: 0; text-decoration: none; display: inline-block; }
.rof-maker-name:hover { color: #4361ee; text-decoration: underline; }
.rof-maker-loc { font-size: .8rem; color: #64748b; margin: .1rem 0 0; }
.rof-project { font-size: .86rem; margin: 0 0 .6rem; color: #374151; }
.rof-project a { color: #4361ee; text-decoration: none; font-weight: 600; }
.rof-project a:hover { text-decoration: underline; }
.rof-date { color: #94a3b8; font-size: .8rem; }
.rof-project-subbox {
    background: #f8fafc; border: 1px solid #e9edf2; border-radius: 9px;
    padding: .7rem .8rem; margin-bottom: .6rem;
}
.rof-project-subbox .rof-project { margin-bottom: .5rem; }
.rof-project-row { display: flex; align-items: flex-start; gap: .7rem; }
.rof-project-thumb {
    width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
    background: #e8edf2; flex-shrink: 0;
}
.rof-project-thumb--placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #b0bec5;
}
.rof-price-compare {
    display: flex; align-items: center; gap: .75rem;
    flex-wrap: wrap; margin-bottom: .55rem; flex: 1; min-width: 0;
}
.rof-price-col { display: flex; flex-direction: column; gap: .1rem; }
.rof-price-col--original .rof-price-val, .rof-price-col--original .rof-price-sub { color: #94a3b8; }
.rof-price-label { font-size: .7rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.rof-price-val { font-size: 1.05rem; font-weight: 700; color: #1e293b; }
.rof-price-val--strike { text-decoration: line-through; }
.rof-price-sub { font-size: .78rem; color: #64748b; }
.rof-price-sub--strike { text-decoration: line-through; }
.rof-price-arrow { font-size: 1.2rem; color: #cbd5e1; flex-shrink: 0; }
.rof-price-col--proposed .rof-price-val { color: #4361ee; }
.rof-price-col--proposed .rof-price-sub { color: #4361ee; }
.rof-price-stated { font-size: .88rem; color: #374151; margin-bottom: .55rem; font-weight: 600; }
.rof-message {
    font-size: .85rem; color: #374151; font-style: italic;
    margin: .4rem 0 .6rem; line-height: 1.5;
}
.rof-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.rof-actions > form,
.rof-actions > button { flex-shrink: 0; }
.rof-actions .btn-accept,
.rof-actions .btn-danger,
.rof-actions .btn-propose-toggle { white-space: nowrap; }

/* ── PROJECT SHOW: budget comparison ── */
.budget-cmp-grid {
    display: flex; gap: 2.5rem; flex-wrap: wrap;
}
.budget-cmp-item {
    display: flex; flex-direction: column; gap: .2rem;
}
.budget-cmp-label {
    font-size: .72rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.budget-cmp-original {
    font-size: 1.1rem; font-weight: 600; color: #94a3b8; text-decoration: line-through;
}
.budget-cmp-agreed {
    font-size: 1.3rem; font-weight: 700; color: #1e293b;
}
.budget-cmp-legend {
    font-size: .78rem; color: #94a3b8; margin-top: .5rem;
}

/* ── RECEIVED OFFERS: two-column layout ── */
.container--wide {
    max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem;
}
.rof-two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start;
}
@media (max-width: 760px) {
    .rof-two-col { grid-template-columns: 1fr; }
}
.rof-col {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
}
.rof-col--history { background: #fafafa; }
.rof-col-header {
    padding: 1rem 1.25rem .85rem; border-bottom: 1px solid #f1f5f9;
}
.rof-col-title-row { margin-bottom: .6rem; }
.rof-col-title {
    font-size: 1rem; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: .5rem;
}
.rof-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; border-radius: 11px;
    font-size: .72rem; font-weight: 700; padding: 0 6px;
}
.rof-count--pending  { background: #fef3c7; color: #92400e; }
.rof-count--history  { background: #f1f5f9; color: #475569; }
.rof-filters {
    display: flex; flex-direction: column; gap: .45rem;
}
.filter-input {
    width: 100%; padding: 7px 11px; border: 1px solid #d1d5db;
    border-radius: 7px; font-size: .82rem; color: #1e293b;
    background: #fff;
}
.filter-input:focus { outline: none; border-color: #4361ee; box-shadow: 0 0 0 2px #4361ee22; }
.rof-cards {
    display: flex; flex-direction: column; gap: .75rem; padding: .9rem 1rem 1rem;
}
.rof-empty {
    text-align: center; color: #94a3b8; font-size: .9rem; padding: 1.5rem 0;
}
.rof-card {
    background: #f8fafc; border: 1px solid #e9edf2; border-radius: 10px; padding: .9rem 1rem;
}
.rof-card--resolved { opacity: .88; }
.rof-card-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: .75rem; margin-bottom: .55rem; flex-wrap: wrap;
}
.rof-msg {
    font-size: .84rem; color: #374151; font-style: italic;
    margin: .4rem 0 .6rem; line-height: 1.5;
}

/* ── MY PROJECTS: two-column layout ── */
.myproj-two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start;
}
@media (max-width: 820px) {
    .myproj-two-col { grid-template-columns: 1fr; }
}
.myproj-col {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
}
.myproj-col--assigned { background: #fafefe; }
.myproj-col-header {
    padding: .85rem 1.25rem .7rem; border-bottom: 1px solid #f1f5f9; background: #fafafa;
}
.myproj-col-title {
    font-size: .95rem; font-weight: 700; color: #1e293b;
    display: flex; align-items: center; gap: .5rem;
}
.myproj-col-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; border-radius: 11px;
    font-size: .72rem; font-weight: 700; padding: 0 6px;
}
.myproj-col-count--open     { background: #fef3c7; color: #92400e; }
.myproj-col-count--assigned { background: #dcfce7; color: #166534; }
.myproj-col-empty {
    text-align: center; color: #94a3b8; font-size: .88rem; padding: 1.5rem;
}
.myproj-cards {
    display: flex; flex-direction: column; gap: 0;
}
.myproj-cards .profile-section {
    border-radius: 0; border: none; border-bottom: 1px solid #f1f5f9;
    box-shadow: none; margin: 0;
}
.myproj-cards .profile-section:last-child { border-bottom: none; }

/* ── KANBAN BOARD ── */
.kanban-board {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: start;
}
@media (max-width: 1150px) {
    .kanban-board { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .kanban-board { grid-template-columns: 1fr; }
}
.container--orders { max-width: 1400px; }
.kanban-col {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
}
.kanban-col-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 1.1rem .75rem; background: #fafafa;
}
.kanban-col-title { font-size: .9rem; font-weight: 700; color: #1e293b; }
.kanban-col-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; border-radius: 11px;
    font-size: .72rem; font-weight: 700; padding: 0 6px;
}
.kanban-cards { padding: .75rem .85rem 1rem; display: flex; flex-direction: column; gap: .7rem; }
.kanban-empty { color: #94a3b8; font-size: .88rem; text-align: center; padding: 1rem 0; }
.kanban-card {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: .85rem 1rem;
}
.kanban-card--hidden { display: none; }
.kanban-project-title { font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.kanban-project-title a { color: #1e293b; text-decoration: none; }
.kanban-project-title a:hover { text-decoration: underline; }
.kanban-meta {
    font-size: .82rem; color: #475569; margin-bottom: .25rem; line-height: 1.4;
}
.kanban-address { color: #64748b; white-space: pre-wrap; word-break: break-word; }
.kanban-price { color: #1e293b; }
.kanban-price strong { color: #1e293b; }
.kanban-price--paid, .kanban-price--paid strong { color: #16a34a; }
.kanban-payment-received { color: #16a34a; font-weight: 700; margin-left: .5rem; }
.kanban-price-badge {
    display: flex; align-items: center; justify-content: center;
    padding: 6px 11px; background: #eff6ff; color: #1e40af;
    border: 1px solid #bfdbfe; border-radius: 7px; font-size: .74rem; font-weight: 700;
}
.order-price-preview {
    margin-top: .4rem; font-size: .85rem; font-weight: 700; color: #16a34a;
}
.order-shipping-hint {
    margin-top: .4rem; font-size: .78rem; color: #4361ee; background: #eef2ff;
    border-radius: 7px; padding: 6px 10px; line-height: 1.4;
}

/* ── KANBAN: counterpart avatar + clickable name ── */
.kanban-person-row { display: flex; align-items: center; gap: .4rem; margin: .3rem 0; }
.kanban-person-row--centered { justify-content: center; margin: .5rem 0; padding-top: .5rem; border-top: 1px solid #f1f5f9; }
.kanban-person-avatar {
    width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.kanban-person-avatar--initial {
    display: flex; align-items: center; justify-content: center;
    background: #eef2ff; color: #4361ee; font-size: .68rem; font-weight: 700;
}
.kanban-person-name {
    font-size: .82rem; font-weight: 600; color: #1e293b; text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.kanban-person-name:hover { color: #4361ee; text-decoration: underline; }

/* ── KANBAN: note left by the Maker when reverting/revoking an order ── */
.kanban-note-box {
    margin-top: .5rem; padding: 8px 12px; background: #f8fafc;
    border: 1px solid #e2e8f0; border-radius: 8px;
}
.kanban-note-label {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: #94a3b8; margin: 0 0 .2rem;
}
.kanban-note-body { font-size: .82rem; color: #334155; line-height: 1.4; margin: 0; }
.kanban-tracking {
    margin: .4rem 0; padding: .45rem .6rem; background: #eff6ff;
    border-radius: 7px; font-size: .8rem; color: #1e40af;
}
.kanban-tracking-label {
    font-weight: 700; text-transform: uppercase; font-size: .68rem; letter-spacing: .04em;
    display: block; margin-bottom: .15rem;
}
.kanban-actions {
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch;
    gap: .35rem; margin-top: .5rem;
}
.kanban-actions > form { flex-shrink: 0; }
.kanban-actions > form > button { flex: 1; }
.kanban-btn {
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 6px 11px; white-space: nowrap;
    border-radius: 7px; font-size: .74rem; font-weight: 600;
    cursor: pointer; border: none; text-decoration: none; transition: opacity .15s;
    line-height: 1.3;
}
.kanban-btn:hover { opacity: .85; text-decoration: none; }
.kanban-btn--paypal { background: #003087; color: #fff; }
.kanban-btn--confirm { background: #16a34a; color: #fff; }
.kanban-btn--contact {
    width: 100%; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0;
}
/* Contact is always its own full-width row at the bottom of the card */
.kanban-contact-box { margin-top: .5rem; }
.kanban-btn--ship { background: #4361ee; color: #fff; }
.kanban-btn--stl { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.kanban-btn--stl:hover { background: #e2e8f0; opacity: 1; }
.kanban-no-paypal { font-size: .8rem; color: #94a3b8; margin-top: .4rem; }
.kanban-show-more {
    display: block; width: 100%; padding: 7px; margin-top: .35rem;
    background: none; border: 1px dashed #cbd5e1; border-radius: 8px;
    font-size: .8rem; color: #64748b; cursor: pointer; transition: border-color .15s;
}
.kanban-show-more:hover { border-color: #4361ee; color: #4361ee; }

/* ── SHIP FORM (inline confirm-shipping) ── */
.ship-form { display: none; margin-top: .5rem; }
.ship-form.open { display: block; }
.ship-form-row { display: flex; flex-direction: column; gap: .4rem; }
.ship-input {
    width: 100%; padding: 8px 12px; border: 1px solid #d1d5db;
    border-radius: 7px; font-size: .83rem;
}
.ship-input:focus { outline: none; border-color: #4361ee; }

/* ── KANBAN CARD HEADER (order ID + project title) ── */
.kanban-card-header {
    display: flex; align-items: baseline; gap: .5rem;
    flex-wrap: wrap; margin-bottom: .4rem;
}
.kanban-order-id {
    font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    color: #94a3b8; white-space: nowrap; flex-shrink: 0;
    font-family: ui-monospace, 'Cascadia Code', monospace;
}
.kanban-project-title-link {
    font-weight: 700; font-size: .9rem; color: #1e293b; text-decoration: none; line-height: 1.3;
}
.kanban-project-title-link:hover { text-decoration: underline; }

/* ── KANBAN: designer payment-notify button ── */
.kanban-btn--paid-notify {
    background: #f8fafc; color: #475569;
    border: 1.5px dashed #cbd5e1;
}
.kanban-btn--paid-notify:hover { background: #f1f5f9; border-color: #94a3b8; opacity: 1; }
.kanban-btn--paid-done {
    background: #dcfce7 !important; color: #166534 !important;
    border: 1.5px solid #86efac !important; cursor: default;
}

/* ── KANBAN: leave-a-review ── */
.kanban-review-box { margin-top: .55rem; }
.kanban-btn--review {
    width: 100%; background: #fef9c3; color: #854d0e;
    border: 1.5px solid #fde047;
}
.kanban-btn--review:hover { background: #fef08a; opacity: 1; }
.kanban-review-state {
    display: block; text-align: center; padding: 8px 14px;
    border-radius: 8px; font-size: .8rem; font-weight: 600; line-height: 1.3;
}
.kanban-review-state--done { background: #dcfce7; color: #166534; }
.kanban-review-state--pending { background: #f1f5f9; color: #64748b; }

/* ── COMPLETED ORDERS (reviewed-by-me shipped orders, tucked below the board) ── */
.completed-orders-banner {
    width: 100%; display: flex; align-items: center; gap: .6rem; justify-content: center;
    margin-top: 1.25rem; padding: 12px 18px; background: #f8fafc;
    border: 1.5px dashed #cbd5e1; border-radius: 12px; cursor: pointer;
    font-size: .9rem; font-weight: 700; color: #166534; transition: border-color .15s, background .15s;
}
.completed-orders-banner:hover { background: #f1f5f9; border-color: #94a3b8; }
.completed-orders-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px;
    background: #dcfce7; color: #166534; font-size: .75rem;
}
.completed-orders-arrow { color: #94a3b8; }
.completed-orders-section { margin-top: 1rem; }
.completed-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.completed-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.completed-table th {
    text-align: left; padding: .7rem .85rem; background: #fafafa; border-bottom: 1px solid #e2e8f0;
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b;
    white-space: nowrap;
}
.completed-table td {
    padding: .75rem .85rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; color: #334155;
}
.completed-table tbody tr:last-child td { border-bottom: none; }
.completed-table tbody tr:hover { background: #fafbfc; }
.completed-row--cancelled { background: #f8fafc; color: #94a3b8; }
.completed-row--cancelled .kanban-project-title-link { color: #64748b; }
.completed-cell-orderid { font-weight: 700; color: #1a1a2e; white-space: nowrap; }
.completed-cell-address { max-width: 200px; }
.completed-cell-reviews, .completed-cell-notes { min-width: 180px; max-width: 260px; }
.completed-cell-empty { color: #cbd5e1; font-size: .8rem; }
.completed-person { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }

.completed-th-sortable { cursor: pointer; user-select: none; }
.completed-th-sortable:hover { color: #4361ee; }
.completed-sort-arrow { display: inline-block; width: .7em; color: #4361ee; font-size: .7rem; }
.completed-filter-row th { background: #fff; padding: .4rem .6rem; border-bottom: 1px solid #e2e8f0; }
.completed-filter-input, .completed-filter-select {
    width: 100%; box-sizing: border-box; padding: 4px 7px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: .74rem; font-weight: 400; text-transform: none; letter-spacing: normal; color: #334155;
    background: #fff;
}
.completed-filter-input:focus, .completed-filter-select:focus { outline: none; border-color: #4361ee; }
.kanban-card--completed { background: #f0fdf4; border-color: #bbf7d0; }
/* Shared photo + info-column layout, used by both active kanban cards and Completed Orders cards */
.kanban-card-top { display: flex; gap: .65rem; margin-bottom: .5rem; }
.kanban-card-thumb {
    width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
    background: #e8edf2;
}
.kanban-card-thumb--placeholder {
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.kanban-card-info-col { min-width: 0; flex: 1; }
.completed-review-block { margin-top: .6rem; padding-top: .55rem; border-top: 1px solid #e2e8f0; }
.completed-review-block:first-of-type { border-top: none; padding-top: 0; }
.completed-review-label {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: #94a3b8; margin: 0 0 .2rem;
}
.completed-review-waiting { font-size: .82rem; color: #64748b; margin-top: .55rem; }

/* ── REJECTED ORDERS (Completed Orders section, grayed out) ── */
.kanban-card--rejected { background: #f8fafc; border-color: #cbd5e1; }
.kanban-card--rejected .kanban-project-title-link { color: #64748b; }
.completed-status-badge {
    font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: 2px 8px; border-radius: 20px; flex-shrink: 0;
}
.completed-status-badge--rejected { background: #e2e8f0; color: #475569; }
.completed-status-badge--refunded { background: #dcfce7; color: #15803d; }
.completed-status-badge--not-refunded { background: #fee2e2; color: #b91c1c; }
.completed-status-badge--completed { background: #dcfce7; color: #166534; }

/* ── CHAT WIDGET (floating, bottom-left, site-wide) ── */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 999; }
.chat-bubble {
    width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
    background: #4361ee; color: #fff; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(67,97,238,.4); position: relative;
}
.chat-bubble:hover { background: #3651d4; }
.chat-unread-badge {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    background: #dc2626; color: #fff; border-radius: 10px; font-size: .68rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.chat-panel {
    position: absolute; bottom: 68px; right: 0; width: 340px; height: 460px;
    background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.18);
    display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e2e8f0;
}
.chat-panel-header {
    display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem;
    background: #4361ee; color: #fff; font-weight: 600; font-size: .92rem;
}
.chat-panel-title-block { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.chat-panel-title-block span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-panel-subtitle { font-size: .68rem; font-weight: 400; opacity: .85; }
.chat-back-btn, .chat-panel-close {
    background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; line-height: 1; padding: 0 .2rem;
}
.chat-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.chat-search { padding: .7rem; border-bottom: 1px solid #e2e8f0; }
.chat-search input {
    width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: .87rem;
}
.chat-results { flex: 1; overflow-y: auto; }
.chat-result-row {
    display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}
.chat-result-row:hover { background: #f8fafc; }
.chat-result-row--unread { background: #eff4ff; }
.chat-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: #cbd5e1; color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
    flex-shrink: 0; overflow: hidden;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-thread-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.25); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem;
    flex-shrink: 0; overflow: hidden;
}
.chat-thread-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-result-info { flex: 1; min-width: 0; }
.chat-result-name { font-size: .87rem; font-weight: 600; color: #1e293b; }
.chat-result-roles {
    font-size: .66rem; font-weight: 700; color: #4361ee; text-transform: uppercase; letter-spacing: .03em;
    margin: 1px 0;
}
.chat-result-roles:empty { display: none; }
.chat-result-preview { font-size: .78rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-mini-badge {
    background: #dc2626; color: #fff; font-size: .68rem; font-weight: 700; border-radius: 10px;
    min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.chat-empty-state { padding: 1.5rem 1rem; text-align: center; color: #94a3b8; font-size: .84rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .45rem; }
.chat-bubble-msg {
    max-width: 78%; padding: 8px 12px; border-radius: 14px; font-size: .87rem; line-height: 1.4;
    word-wrap: break-word; white-space: pre-wrap;
}
.chat-bubble-msg--theirs { align-self: flex-start; background: #f1f5f9; color: #1e293b; border-bottom-left-radius: 4px; }
.chat-bubble-msg--mine { align-self: flex-end; background: #4361ee; color: #fff; border-bottom-right-radius: 4px; }
.chat-send-form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem; border-top: 1px solid #e2e8f0; }
.chat-send-form textarea {
    flex: 1; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 18px; font-size: .87rem;
    font-family: inherit; resize: none; overflow-y: auto; max-height: 120px; line-height: 1.4;
    white-space: pre-wrap; word-break: break-word;
}
.chat-send-form button {
    width: 36px; height: 36px; border-radius: 50%; border: none; background: #4361ee; color: #fff;
    cursor: pointer; font-size: 1rem; flex-shrink: 0;
}
.chat-send-form button:hover { background: #3651d4; }

/* ── SITE FOOTER (legal links, every page) ── */
.site-footer { background: #fff; border-top: 1px solid #e2e5f0; margin-top: 2.5rem; }
.site-footer-inner {
    max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.site-footer-brand { font-weight: 700; color: #1a1a2e; font-size: .95rem; }
.site-footer-brand span { color: #4361ee; }
.site-footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer-links a { color: #64748b; font-size: .85rem; }
.site-footer-links a:hover { color: #4361ee; }
.site-footer-copy { color: #94a3b8; font-size: .8rem; }

/* ── LEGAL DOCUMENT PAGES ── */
.legal-doc { max-width: 760px; padding-bottom: 3rem; }
.legal-doc h2 { font-size: 1.15rem; margin: 1.75rem 0 .6rem; color: #1a1a2e; }
.legal-doc p { color: #374151; line-height: 1.65; margin-bottom: .5rem; }
.legal-updated { color: #94a3b8; font-size: .85rem; margin-bottom: 1.5rem; }
.legal-doc ul { color: #374151; line-height: 1.65; margin: 0 0 1rem 1.25rem; }
.legal-doc li { margin-bottom: .3rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: .75rem 0 1.25rem; font-size: .88rem; }
.legal-table th, .legal-table td { border: 1px solid #e5e7eb; padding: .55rem .7rem; text-align: left; vertical-align: top; }
.legal-table th { background: #f8fafc; color: #1a1a2e; font-weight: 600; }
.legal-table td { color: #374151; }
.legal-table code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: .85em; }

/* ── COOKIE CONSENT BANNER ── */
.cookie-banner {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
    background: #1a1a2e; color: #e2e8f0; padding: 1rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.cookie-banner--visible { display: flex; }
.cookie-banner-inner {
    max-width: 1100px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-banner-text { font-size: .85rem; line-height: 1.5; flex: 1; min-width: 240px; }
.cookie-banner-text a { color: #93c5fd; }
.cookie-banner-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-banner-btn {
    padding: 8px 18px; border-radius: 8px; font-size: .85rem; font-weight: 600;
    border: none; cursor: pointer; white-space: nowrap;
}
.cookie-banner-btn--accept { background: #4361ee; color: #fff; }
.cookie-banner-btn--accept:hover { background: #3651d4; }
.cookie-banner-btn--reject { background: #475569; color: #fff; border: 1px solid #475569; }
.cookie-banner-btn--reject:hover { background: #3f4b5e; }
@media (max-width: 480px) {
    .chat-panel { width: calc(100vw - 24px); left: -8px; }
}

/* ═══════════════════════ LANDING PAGE ═══════════════════════ */
.landing-body { background: #fff; }

.landing-nav {
    position: sticky; top: 0; z-index: 500; backdrop-filter: blur(6px);
    background: rgba(255,255,255,.92); height: auto; padding: 12px 2rem;
}
.landing-nav-brand { display: flex; flex-direction: column; line-height: 1.25; }
.landing-nav-tagline {
    font-size: .66rem; font-weight: 600; color: #64748b; text-transform: uppercase;
    letter-spacing: .05em; margin-top: 1px;
}
.landing-nav-cta { width: auto; padding: 9px 22px; margin: 0; font-size: .9rem; }

.landing-hero {
    padding: 5rem 2rem 4rem; text-align: center;
    background: radial-gradient(ellipse at top, #eef1fd 0%, #fff 65%);
}
.landing-hero-inner { max-width: 760px; margin: 0 auto; }
.landing-hero h1 { font-size: 2.9rem; line-height: 1.15; font-weight: 800; color: #14142b; margin-bottom: .7rem; letter-spacing: -.01em; }
.landing-hero-answer {
    font-size: 1.35rem; font-weight: 700; color: #4361ee; margin-bottom: 1.5rem;
}
.landing-hero-sub { font-size: 1.08rem; color: #475569; line-height: 1.65; max-width: 620px; margin: 0 auto 2rem; }
.landing-hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.landing-btn-lg { width: auto; padding: 13px 30px; font-size: 1rem; }

.landing-section { padding: 4.5rem 2rem; }
.landing-section--tinted { background: #f8fafc; }
.landing-section-inner { max-width: 1080px; margin: 0 auto; }
.landing-narrow { max-width: 780px; }
.landing-section h2 { font-size: 1.9rem; font-weight: 800; color: #14142b; line-height: 1.25; margin-bottom: .5rem; }
.landing-kicker {
    display: inline-block; color: #4361ee; font-weight: 700; font-size: .8rem;
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem;
}

.landing-problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.landing-problem-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.75rem;
}
.landing-problem-icon {
    width: 52px; height: 52px; border-radius: 12px; background: #eef1fd; color: #4361ee;
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.landing-problem-card h3 { font-size: 1.15rem; margin-bottom: .5rem; color: #14142b; }
.landing-problem-card p { color: #475569; line-height: 1.6; font-size: .94rem; }

.landing-solution-text { font-size: 1.1rem; color: #334155; line-height: 1.75; margin-top: 1.5rem; }
.landing-solution-text strong { color: #4361ee; }

.landing-feature {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
    margin-bottom: 4rem;
}
.landing-feature:last-child { margin-bottom: 0; }
.landing-feature--reverse .landing-feature-text { order: 2; }
.landing-feature--reverse .landing-feature-visual { order: 1; }
.landing-feature-text h3 { font-size: 1.4rem; color: #14142b; margin-bottom: .75rem; }
.landing-feature-text p { color: #475569; line-height: 1.65; margin-bottom: .85rem; font-size: .96rem; }
.landing-feature-visual { display: flex; flex-direction: column; gap: .9rem; }

/* Illustrative UI "mockups": stylized, not live app screenshots */
.landing-mock-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.1rem;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.landing-mock-card--ghost { opacity: .5; transform: scale(.96); }
.landing-mock-row { display: flex; align-items: center; gap: .7rem; }
.landing-mock-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: #dbe6fe; color: #4361ee;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0;
}
.landing-mock-lines { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.landing-mock-name { font-size: .92rem; font-weight: 700; color: #14142b; }
.landing-mock-role { font-size: .76rem; color: #64748b; }
.landing-mock-badge {
    display: inline-flex; align-items: center; gap: 4px; background: #dcfce7; color: #15803d;
    font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.landing-mock-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .9rem; }
.landing-mock-tag {
    display: inline-flex; align-items: center; gap: 4px; background: #f1f5f9; color: #475569;
    font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.landing-mock-btn {
    margin-top: 1rem; background: #4361ee; color: #fff; text-align: center;
    font-size: .82rem; font-weight: 700; padding: 8px; border-radius: 8px;
}

.landing-mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.landing-mock-project-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: .8rem;
    box-shadow: 0 6px 18px rgba(15,23,42,.05);
}
.landing-mock-thumb-img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: .6rem; display: block;
}
.landing-mock-project-title { font-size: .84rem; font-weight: 700; color: #1a1a2e; }
.landing-mock-price { margin-top: .3rem; font-weight: 800; color: #4361ee; font-size: .88rem; }

.landing-mock-kanban {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1rem;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.landing-mock-kanban-head {
    font-size: .68rem; font-weight: 700; color: #64748b; text-transform: uppercase;
    border-top: 3px solid; padding-top: .4rem; margin-bottom: .5rem;
}
.landing-mock-kanban-card {
    display: flex; align-items: center; gap: .4rem; background: #f8fafc; border: 1px solid #eef1fd;
    border-radius: 6px; padding: .3rem; margin-bottom: .4rem;
}
.landing-mock-kanban-thumb { width: 26px; height: 26px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.landing-mock-kanban-card-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.landing-mock-kanban-card-title {
    font-size: .66rem; font-weight: 700; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.landing-mock-kanban-card-sub {
    font-size: .6rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.landing-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
.landing-trust-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.5rem; }
.landing-trust-icon {
    width: 44px; height: 44px; border-radius: 10px; background: #eef1fd; color: #4361ee;
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: .85rem;
}
.landing-trust-card h3 { font-size: 1.02rem; color: #14142b; margin-bottom: .4rem; }
.landing-trust-card p { color: #475569; font-size: .88rem; line-height: 1.6; }

.landing-about-card {
    display: flex; gap: 2rem; align-items: flex-start; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 18px; padding: 2rem; margin-top: 1.5rem;
}
.landing-about-photo {
    flex-shrink: 0; width: 112px; height: 112px; border-radius: 50%;
    object-fit: cover; border: 3px solid #eef1fd;
}
.landing-about-text h3 { font-size: 1.2rem; color: #14142b; margin-bottom: .15rem; }
.landing-about-role { color: #4361ee; font-weight: 600; font-size: .85rem; margin-bottom: .9rem; }
.landing-about-text p { color: #475569; line-height: 1.65; font-size: .93rem; margin-bottom: .85rem; }
.landing-linkedin-link {
    display: inline-flex; align-items: center; gap: .4rem; color: #0a66c2; font-weight: 600; font-size: .88rem;
}

.landing-final-cta {
    text-align: center; padding: 5rem 2rem;
    background: linear-gradient(135deg, #4361ee, #6d3ff0); color: #fff;
}
.landing-final-cta h2 { font-size: 2rem; font-weight: 800; margin-bottom: .6rem; }
.landing-final-cta p { font-size: 1.02rem; opacity: .92; max-width: 520px; margin: 0 auto 1.75rem; }
.landing-final-cta .landing-btn-lg { background: #fff; color: #4361ee; }
.landing-final-cta .landing-btn-lg:hover { background: #eef1fd; }

.landing-footer { background: #14142b; color: #94a3b8; padding: 1.75rem 2rem; }
.landing-footer-inner {
    max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem; font-size: .85rem;
}
.landing-footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.landing-footer-links a { color: #cbd5e1; }
.landing-footer-links a:hover { color: #fff; }

@media (max-width: 760px) {
    .landing-hero h1 { font-size: 1.9rem; }
    .landing-problem-grid, .landing-trust-grid, .landing-mock-grid { grid-template-columns: 1fr; }
    .landing-feature { grid-template-columns: 1fr; gap: 1.5rem; }
    .landing-feature--reverse .landing-feature-text,
    .landing-feature--reverse .landing-feature-visual { order: unset; }
    .landing-mock-kanban { grid-template-columns: repeat(2, 1fr); }
    .landing-about-card { flex-direction: column; align-items: center; text-align: center; }
}

/* Small inline "Chat" button used across profile pages, offer/request cards, etc. */
.chat-open-btn {
    display: inline-flex; align-items: center; gap: .35rem; padding: 7px 14px;
    background: #eff4ff; color: #4361ee; border: 1px solid #c7d7fe; border-radius: 8px;
    font-size: .84rem; font-weight: 600; cursor: pointer;
}
.chat-open-btn:hover { background: #dbe6fe; text-decoration: none; }

/* ── KANBAN: Order Inserted stage ── */
.kanban-waiting-box {
    margin-top: .55rem; padding: 8px 14px; text-align: center;
    background: #f5f3ff; color: #6d28d9; border: 1.5px dashed #ddd6fe;
    border-radius: 8px; font-size: .8rem; font-weight: 600; line-height: 1.3;
}
.kanban-btn--reject-toggle {
    background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5;
}
.kanban-btn--reject-toggle:hover { background: #fee2e2; opacity: 1; }
.kanban-btn--reject-confirm { background: #dc2626; color: #fff; }

/* ── KANBAN: edit / revert ── */
.kanban-header-actions { margin-left: auto; display: flex; gap: .3rem; flex-shrink: 0; }
.kanban-edit-btn {
    background: none; border: 1px solid #cbd5e1;
    border-radius: 6px; padding: 3px 9px; font-size: .7rem; font-weight: 600;
    color: #64748b; cursor: pointer; flex-shrink: 0; transition: all .15s;
}
.kanban-edit-btn:hover { background: #f1f5f9; border-color: #94a3b8; color: #1e293b; }
.kanban-edit-btn--cancel { color: #dc2626; border-color: #fca5a5; }
.kanban-edit-btn--cancel:hover { background: #fef2f2; border-color: #f87171; color: #b91c1c; }
.kanban-edit-btn--disabled, .kanban-edit-btn--disabled:hover {
    color: #cbd5e1; border-color: #e2e8f0; background: none; cursor: not-allowed;
}
.kanban-btn--revert {
    background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa;
}
.kanban-btn--revert:hover { background: #ffedd5; opacity: 1; }
/* ── BLOCKED ORDER (in_progress, halted by the Designer) ── */
.kanban-card--blocked { background: #fef2f2; border-color: #fecaca; }
.kanban-blocked-warning {
    margin-bottom: .55rem; padding: 8px 14px; text-align: center;
    background: #fee2e2; color: #991b1b; border: 1.5px dashed #fca5a5;
    border-radius: 8px; font-size: .78rem; font-weight: 600; line-height: 1.4;
}
.kanban-btn--edit-tracking {
    background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe;
}
.kanban-btn--edit-tracking:hover { background: #dbeafe; opacity: 1; }

.kanban-actions--compact { gap: .3rem; }
.kanban-btn--sm { padding: 4px 9px; font-size: .68rem; }

/* ── ORDER DRAFTS ── */
.draft-card {
    display: flex; align-items: center; gap: .75rem;
    border: 1px solid #e2e8f0; border-radius: 10px; padding: .6rem .75rem;
}
.draft-card-thumb {
    width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
    background: #e8edf2;
}
.draft-card-thumb--placeholder {
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.draft-card-info { flex: 1; min-width: 0; }
.draft-card-title {
    font-weight: 700; font-size: .88rem; color: #1e293b; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.draft-card-meta { font-size: .78rem; color: #64748b; margin: .15rem 0 0; }
.draft-card-actions { display: flex; gap: .4rem; flex-shrink: 0; }

/* ── STAR RATING (profile header badge + review list stars) ── */
.star-rating {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .82rem; font-weight: 600; color: #1a1a2e; vertical-align: middle;
}
.star-rating-icons { color: #f59e0b; letter-spacing: 1px; }
.star-rating-value { color: #1a1a2e; }
.star-rating-count { color: #94a3b8; font-weight: 500; }
.star-rating--empty { color: #94a3b8; font-weight: 500; font-size: .82rem; }

/* ── REVIEWS section (bottom of profile pages) ── */
.review-list { display: flex; flex-direction: column; gap: 1rem; }
.review-item {
    border: 1px solid #e2e8f0; border-radius: 10px; padding: .85rem 1rem;
}
.review-item-top { display: flex; align-items: center; gap: .65rem; margin-bottom: .5rem; }
.review-avatar {
    width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.review-avatar-initial {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: #eef2ff; color: #4361ee; font-weight: 700; font-size: .9rem;
    display: flex; align-items: center; justify-content: center;
}
.review-author { font-weight: 600; font-size: .88rem; color: #1a1a2e; margin: 0; }
.review-stars { color: #f59e0b; font-size: .82rem; letter-spacing: 1px; }
.review-date { font-size: .75rem; color: #94a3b8; flex-shrink: 0; margin-left: auto; }
.review-body { font-size: .88rem; color: #334155; line-height: 1.5; margin: 0; white-space: pre-wrap; word-break: break-word; }

/* ── REVIEW MODAL: 1-5 star clickable input ── */
.star-input { display: flex; gap: .3rem; }
.star-input-btn {
    background: none; border: none; cursor: pointer; padding: 0;
    font-size: 1.8rem; line-height: 1; color: #d1d5db; transition: color .1s;
}
.star-input-btn--filled { color: #f59e0b; }

/* ── PARTNERSHIPS: order stats ── */
.pship-maker-orders {
    display: flex; flex-direction: column; align-items: center;
    background: #eff6ff; border-radius: 10px;
    padding: .4rem .8rem; flex-shrink: 0; text-align: center;
}
.pship-maker-orders-num {
    font-size: 1.3rem; font-weight: 700; color: #4361ee; line-height: 1.1;
}
.pship-maker-orders-label {
    font-size: .65rem; font-weight: 600; color: #64748b;
    text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.pship-maker-revenue { background: #f0fdf4; }
.pship-maker-revenue .pship-maker-orders-num { color: #16a34a; }
.pship-project-revenue-box { background: #f0fdf4; }
.pship-project-revenue-box .pship-project-orders-num { color: #16a34a; }
.pship-accepted-date { font-size: .78rem; color: #94a3b8; margin-top: .3rem; }
.pship-contract-link { font-size: .78rem; margin-top: .3rem; }
.pship-contract-link a { color: #4361ee; font-weight: 600; text-decoration: none; }
.pship-contract-link a:hover { text-decoration: underline; }

