/* Freelancer page (developers, designers): a dark header with the person, then content on the left and a "Start a project" card that stays in view on
   the right. Classes start with fl-. */
:root { --fl-ink: #0f172a; --fl-muted: #64748b; --fl-line: #e2e8f0; --fl-brand: #4f46e5; --fl-brand-2: #2563eb; --fl-bg: #f6f7fb; }
body.has-freelancer-page { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--fl-bg); }
/* menu items for sections this layout does not have */
body.has-freelancer-page li:has(> a[href="#hours-section"]), body.has-freelancer-page li:has(> a[href="#posts-section"]),
body.has-freelancer-page a.business-bottom-strip__item[href="#hours-section"], body.has-freelancer-page a.business-bottom-strip__item[href="#posts-section"] { display: none; }

/* ---------- header ---------- */
.fl-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 400px at 85% -10%, rgba(99,102,241,.55), transparent 60%), radial-gradient(900px 380px at 0% 110%, rgba(37,99,235,.45), transparent 60%), #0b1020; color: #fff; padding: 1.1rem 0 3.6rem; }
/* the owner's own cover photo sits softly behind the header, under a dark wash so the text stays easy to read */
.fl-hero--cover { background: linear-gradient(180deg, rgba(11,16,32,.78), rgba(11,16,32,.9)), var(--fl-cover) center / cover no-repeat, #0b1020; }
.fl-hero > .container { position: relative; z-index: 1; }
.fl-crumbs { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.fl-crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.fl-crumbs a:hover { text-decoration: underline; }
.fl-profile { display: flex; gap: 1.5rem; align-items: flex-start; }
.fl-avatar { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 30px; background: linear-gradient(135deg, #6366f1, #2563eb); display: grid; place-items: center; overflow: hidden; position: relative; border: 3px solid rgba(255,255,255,.22); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.fl-avatar b { font-size: 2.3rem; font-weight: 800; letter-spacing: .02em; }
.fl-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-id { min-width: 0; flex: 1; }
.fl-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .6rem; }
.fl-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px); }
.fl-pill .bi-circle-fill { font-size: .5rem; }
.fl-pill--available { background: rgba(34,197,94,.2); color: #bbf7d0; }
.fl-pill--limited { background: rgba(245,158,11,.22); color: #fde68a; }
.fl-pill--unavailable { background: rgba(148,163,184,.25); color: #e2e8f0; }
.fl-title { font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .4rem; color: #fff; overflow-wrap: anywhere; }
.fl-headline { font-size: 1.1rem; color: rgba(255,255,255,.9); margin: 0 0 .75rem; max-width: 46rem; }
.fl-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; font-size: .9rem; color: rgba(255,255,255,.78); margin: 0 0 1.2rem; }
.fl-meta a { color: #c7d2fe; }
.fl-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.fl-act { display: inline-flex; align-items: center; gap: .45rem; padding: .66rem 1.1rem; border-radius: 12px; font-weight: 700; font-size: .92rem; text-decoration: none; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: transform .15s, background .15s; }
.fl-act:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-1px); }
.fl-act--primary { background: #fff; color: #1e1b4b; border-color: #fff; }
.fl-act--primary:hover { background: #eef2ff; color: #1e1b4b; }
.fl-act--wa { background: #16a34a; border-color: #16a34a; }
.fl-act--wa:hover { background: #15803d; }
.fl-act--icon { padding: .66rem .85rem; }
.fl-act--claim { background: transparent; border-style: dashed; }
.fl-act--owner { background: #fbbf24; border-color: #fbbf24; color: #1c1917; }
.fl-act--owner:hover { background: #f59e0b; color: #1c1917; }
.fl-act--solid { background: var(--fl-brand); border-color: var(--fl-brand); color: #fff; }
.fl-act--solid:hover { background: #4338ca; color: #fff; }

/* ---------- body: content and the brief card ---------- */
.fl-body { padding: 0 0 1.4rem; color: var(--fl-ink); }
.fl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; margin-top: -2.2rem; position: relative; }
@media (min-width: 992px) { .fl-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .fl-aside { position: sticky; top: 92px; } }
.fl-main { min-width: 0; }
.fl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .7rem; margin-bottom: 1.1rem; }
.fl-stat { background: #fff; border: 1px solid var(--fl-line); border-radius: 16px; padding: .85rem 1rem; box-shadow: 0 8px 24px rgba(15,23,42,.06); display: grid; gap: .1rem; }
.fl-stat strong { font-size: 1.15rem; font-weight: 800; }
.fl-stat span { font-size: .78rem; color: var(--fl-muted); }
.fl-block { background: #fff; border: 1px solid var(--fl-line); border-radius: 20px; padding: 1.35rem 1.45rem; margin-bottom: 1.1rem; }
.fl-h2 { font-size: 1.22rem; font-weight: 800; margin: 0 0 .8rem; letter-spacing: -.005em; }
.fl-lead { color: var(--fl-muted); margin: -.4rem 0 1rem; font-size: .95rem; }
.fl-about { line-height: 1.7; color: #334155; }
.fl-about p:last-child { margin-bottom: 0; }

.fl-packages { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.fl-pack { position: relative; border: 1px solid var(--fl-line); border-radius: 18px; padding: 1.1rem 1.1rem 1.15rem; background: #fff; display: flex; flex-direction: column; gap: .5rem; }
.fl-pack--pop { border-color: var(--fl-brand); box-shadow: 0 12px 30px rgba(79,70,229,.16); }
.fl-pack-flag { position: absolute; top: -.7rem; left: 1rem; background: var(--fl-brand); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.fl-pack h3 { font-size: 1rem; font-weight: 800; margin: 0; }
.fl-pack-price { display: grid; gap: .1rem; }
.fl-pack-price strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; }
.fl-pack-price span { font-size: .8rem; color: var(--fl-muted); }
.fl-pack-sum { color: #475569; font-size: .9rem; margin: 0; }
.fl-pack-list { list-style: none; padding: 0; margin: .2rem 0 0; display: grid; gap: .4rem; font-size: .88rem; }
.fl-pack-list li { display: flex; gap: .45rem; align-items: flex-start; }
.fl-pack-list i { color: #16a34a; margin-top: .12rem; }
.fl-pack-btn { margin-top: auto; text-align: center; background: #eef2ff; color: #3730a3; font-weight: 700; padding: .6rem .8rem; border-radius: 11px; text-decoration: none; }
.fl-pack--pop .fl-pack-btn { background: var(--fl-brand); color: #fff; }
.fl-pack-btn:hover { filter: brightness(.96); }

.fl-skills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.fl-skills li { background: #eef2ff; color: #3730a3; border: 1px solid #e0e7ff; font-weight: 600; font-size: .88rem; padding: .38rem .85rem; border-radius: 999px; }

.fl-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .95rem; }
.fl-work-card { border: 1px solid var(--fl-line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.fl-work-top { height: 86px; display: grid; place-items: center; background: linear-gradient(135deg, var(--fl-tint), color-mix(in srgb, var(--fl-tint) 55%, #0b1020)); }
.fl-work-top span { font-size: 2rem; font-weight: 800; color: rgba(255,255,255,.9); }
.fl-work-top { position: relative; overflow: hidden; }
.fl-work-top--img { height: 150px; }
.fl-work-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.fl-work-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.fl-work-body h3 { font-size: 1rem; font-weight: 800; margin: 0; }
.fl-work-body p { margin: 0; color: #475569; font-size: .88rem; }
.fl-work-body a { margin-top: auto; font-weight: 700; font-size: .86rem; color: var(--fl-brand-2); text-decoration: none; overflow-wrap: anywhere; }
.fl-work-body a:hover { text-decoration: underline; }

.fl-services { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.fl-services li { display: flex; align-items: center; gap: .9rem; border: 1px solid var(--fl-line); border-radius: 14px; padding: .8rem 1rem; }
.fl-service-main { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.fl-service-main span { color: var(--fl-muted); font-size: .88rem; }
.fl-service-price { text-align: right; white-space: nowrap; }
.fl-service-price em { color: var(--fl-muted); font-style: normal; font-size: .9rem; }
.fl-service-btn { background: #eef2ff; color: #3730a3; font-weight: 700; font-size: .85rem; padding: .45rem .95rem; border-radius: 10px; text-decoration: none; }
.fl-service-btn:hover { background: #e0e7ff; color: #3730a3; }

.fl-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); counter-reset: s; }
.fl-steps li { display: flex; gap: .75rem; align-items: flex-start; }
.fl-steps b { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 10px; background: #eef2ff; color: #3730a3; display: grid; place-items: center; font-size: .95rem; }
.fl-steps strong { display: block; }
.fl-steps span { display: block; color: var(--fl-muted); font-size: .88rem; margin-top: .1rem; }
.fl-tips ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.fl-tips li { display: flex; gap: .6rem; align-items: flex-start; color: #334155; }
.fl-tips i { color: var(--fl-brand); margin-top: .15rem; }
.fl-empty { text-align: center; }

/* ---------- the brief card ---------- */
/* the site's old stylesheet paints anything with this id blue (it was made for the generic contact block): this card is white */
body.has-freelancer-page #contact-section.fl-brief { background: #fff; color: var(--fl-ink); }
.fl-brief { background: #fff; border: 1px solid var(--fl-line); border-radius: 22px; padding: 1.35rem; box-shadow: 0 18px 48px rgba(15,23,42,.12); scroll-margin-top: 90px; }
.fl-brief h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 .2rem; }
.fl-brief-sub { color: var(--fl-muted); font-size: .92rem; margin: 0 0 .9rem; }
.fl-anchor { display: block; position: relative; top: -90px; visibility: hidden; height: 0; }
.fl-lab { display: block; font-size: .8rem; font-weight: 700; color: #334155; margin: .7rem 0 .25rem; }
.fl-lab small { font-weight: 500; color: var(--fl-muted); }
.fl-in { width: 100%; border: 1px solid #cbd5e1; border-radius: 11px; padding: .6rem .75rem; font: inherit; font-size: .95rem; background: #fff; color: var(--fl-ink); }
.fl-in:focus { outline: 0; border-color: var(--fl-brand); box-shadow: 0 0 0 3px rgba(79,70,229,.18); }
textarea.fl-in { resize: vertical; min-height: 96px; }
.fl-two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.fl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fl-err { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: .55rem .75rem; font-size: .88rem; margin: .8rem 0 0; }
.fl-send { display: flex; width: 100%; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem; background: linear-gradient(135deg, var(--fl-brand), var(--fl-brand-2)); color: #fff; border: 0; border-radius: 12px; padding: .8rem 1rem; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; }
.fl-send:hover { filter: brightness(1.06); color: #fff; }
.fl-send:disabled { opacity: .6; cursor: wait; }
.fl-send--wa { background: #16a34a; }
.fl-fine { color: var(--fl-muted); font-size: .78rem; text-align: center; margin: .6rem 0 0; }
.fl-done { text-align: center; padding: .6rem 0; }
.fl-done > i { font-size: 2.4rem; color: #16a34a; }
.fl-done-title { font-size: 1.2rem; font-weight: 800; margin: .3rem 0; color: var(--fl-ink); }
.fl-done p { color: var(--fl-muted); }

/* long AI-written text is kept short: About shows a few lines with "Read more", service descriptions two lines */
.fl-clamp { max-height: 9.2em; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.fl-clamp.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.fl-more { margin-top: .5rem; background: none; border: 0; padding: 0; color: var(--fl-brand); font-weight: 700; cursor: pointer; }
.fl-more:hover { text-decoration: underline; }
.fl-service-name { font-size: 1rem; font-weight: 700; margin: 0; color: var(--fl-ink); }
.fl-service-main span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* the owner's "Complete your page" card */
.fl-todo { border-color: #c7d2fe; background: linear-gradient(180deg, #eef2ff, #fff 70%); }
.fl-todo-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.fl-todo-head .fl-h2 { margin-bottom: .2rem; }
.fl-todo-pct { font-size: 1.6rem; font-weight: 800; color: var(--fl-brand); line-height: 1; }
.fl-meter { height: 8px; background: #e0e7ff; border-radius: 999px; overflow: hidden; margin: .4rem 0 1rem; }
.fl-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--fl-brand), var(--fl-brand-2)); border-radius: 999px; }
.fl-todo-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.fl-todo-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--fl-ink); }
.fl-todo-list i { color: #94a3b8; margin-top: .15rem; }
.fl-todo-list li.is-done i { color: #16a34a; }
.fl-todo-list li.is-done b { color: var(--fl-muted); text-decoration: line-through; font-weight: 600; }
.fl-todo-list b { display: block; font-size: .93rem; }
.fl-todo-list small { display: block; color: var(--fl-muted); font-size: .8rem; }

/* the shared review blocks, calmer: left aligned, no big blue headings or grey bands */
body.has-freelancer-page #ratings-section, body.has-freelancer-page #reviews-section, body.has-freelancer-page #review-form-section { background: transparent !important; padding: 1.1rem 0 .4rem; }
body.has-freelancer-page #ratings-section .section-header, body.has-freelancer-page #reviews-section .section-header, body.has-freelancer-page #review-form-section .section-header { text-align: left !important; margin-bottom: .9rem; }
body.has-freelancer-page #ratings-section .section-label, body.has-freelancer-page #reviews-section .section-label, body.has-freelancer-page #review-form-section .section-label { display: none; }
body.has-freelancer-page #ratings-section .section-title, body.has-freelancer-page #reviews-section .section-title, body.has-freelancer-page #review-form-section .section-title { font-size: 1.22rem; font-weight: 800; color: var(--fl-ink) !important; margin-bottom: .2rem; }
body.has-freelancer-page #ratings-section .section-subtitle, body.has-freelancer-page #reviews-section .section-subtitle, body.has-freelancer-page #review-form-section .section-subtitle { color: var(--fl-muted); font-size: .92rem; margin: 0; }
body.has-freelancer-page #ratings-section .container, body.has-freelancer-page #reviews-section .container, body.has-freelancer-page #review-form-section .container { max-width: 1140px; }

@media (max-width: 640px) {
  .fl-hero { padding-bottom: 3rem; }
  .fl-profile { flex-direction: column; gap: 1rem; }
  .fl-avatar { width: 84px; height: 84px; border-radius: 24px; }
  .fl-avatar b { font-size: 1.7rem; }
  .fl-block { padding: 1.1rem 1.1rem; border-radius: 18px; }
  .fl-stats { grid-template-columns: repeat(2, 1fr); }
  .fl-services li { flex-wrap: wrap; row-gap: .5rem; }
  .fl-service-main { flex: 1 1 100%; }
  .fl-service-price { flex: 1; text-align: left; }
  .fl-act { flex: 1 1 auto; justify-content: center; }
  .fl-two { grid-template-columns: 1fr; }
}
