/* FluxZap Freelancer Community
 * Sizes use px/em (not rem) so themes that shrink the root font size
 * cannot make this text tiny.
 */
.fc {
	--fc-accent: #1d4ed8;
	--fc-accent-dark: #1e3a8a;
	--fc-ink: #0f172a;
	--fc-text: #1f2937;
	--fc-muted: #4b5563;
	--fc-line: #dfe4ec;
	--fc-soft: #f5f7fb;
	--fc-ok: #166534;
	--fc-ok-bg: #e7f6ec;
	--fc-err: #9f1d14;
	--fc-err-bg: #fdecea;
	--fc-warn: #8a5300;
	--fc-warn-bg: #fff4dc;
	--fc-info-bg: #e9f0fe;
	--fc-fee: #b45309;
	--fc-radius: 16px;
	max-width: 920px;
	margin: 0 auto;
	color: var(--fc-text);
	font-size: 17px;
	line-height: 1.65;
	-webkit-text-size-adjust: 100%;
}
.fc *, .fc *::before, .fc *::after { box-sizing: border-box; }
.fc p { margin: 0 0 .75em; font-size: 1em; }
.fc a { color: var(--fc-accent); }

/* Headings — explicit sizes so theme heading styles don't blow them up or shrink them */
.fc .fc-h1 { font-size: 1.75em; line-height: 1.2; font-weight: 700; color: var(--fc-ink); margin: 0 0 .35em; letter-spacing: -.01em; }
.fc .fc-h2 { font-size: 1.25em; line-height: 1.3; font-weight: 700; color: var(--fc-ink); margin: 0 0 .7em; display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.fc-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8em; font-weight: 700; color: var(--fc-accent); margin: 0 0 .35em !important; }
.fc-lead { font-size: 1.12em; color: var(--fc-muted); max-width: 680px; }
.fc-muted { color: var(--fc-muted); }
.fc-note { color: var(--fc-muted); font-size: .95em; margin-top: .8em !important; }
.fc-big { font-size: 1.1em; margin-top: .6em !important; }
.fc-big strong { font-size: 1.3em; color: var(--fc-ink); }
.fc-label { font-weight: 700; color: var(--fc-ink); margin-bottom: .3em !important; }
.fc-center { text-align: center; }
.fc-link { font-weight: 600; }

/* Hero */
.fc-hero { padding: 4px 0 24px; }
.fc-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 1.2em; }
.fc-split div { background: var(--fc-soft); border: 1px solid var(--fc-line); border-radius: var(--fc-radius); padding: 16px 10px; text-align: center; }
.fc-split strong { display: block; font-size: 1.9em; line-height: 1.1; color: var(--fc-accent); font-variant-numeric: tabular-nums; }
.fc-split span { font-size: .95em; font-weight: 600; color: var(--fc-text); }

/* Cards */
.fc-card { background: #fff; border: 1px solid var(--fc-line); border-radius: var(--fc-radius); padding: 28px; margin: 0 0 22px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.fc-card--warn { border-color: #f1c46b; background: #fffaf0; }
.fc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.fc-grid .fc-card { margin: 0; }

/* Profile card */
.fc-profile-card { display: flex; align-items: center; gap: 24px; }
.fc-profile-card__main { flex: 1; min-width: 0; }
.fc-profile-card__name { margin-bottom: .15em !important; }
.fc-profile-card__headline { font-size: 1.08em; font-weight: 600; color: var(--fc-ink); margin-bottom: .2em !important; }
.fc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .6em; }

.fc-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; background: var(--fc-info-bg); color: var(--fc-accent-dark); font-weight: 700; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--fc-line); }
.fc-avatar--lg { width: 104px; height: 104px; font-size: 2.4em; }
.fc-avatar--sm { width: 48px; height: 48px; font-size: 1.2em; }

/* Rating */
.fc-rating__num { display: flex; align-items: baseline; gap: 4px; }
.fc-rating__num strong { font-size: 3em; line-height: 1; color: var(--fc-ink); font-variant-numeric: tabular-nums; }
.fc-rating__num span { font-size: 1.2em; font-weight: 600; color: var(--fc-muted); }
.fc-rating__bar { height: 12px; border-radius: 999px; background: var(--fc-soft); border: 1px solid var(--fc-line); overflow: hidden; margin: 12px 0 8px; }
.fc-rating__bar span { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #22c55e); border-radius: 999px; min-width: 0; }
.fc-rating__label { font-weight: 700; color: var(--fc-ink); }

/* Join form */
.fc-roles { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; min-width: 0; }
.fc-roles legend { font-weight: 700; font-size: 1.05em; color: var(--fc-ink); margin-bottom: 10px; padding: 0; }
.fc-role { display: flex; gap: 14px; align-items: flex-start; border: 2px solid var(--fc-line); border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.fc-role:hover { border-color: #b4c0d4; }
.fc-role:has(input:checked) { border-color: var(--fc-accent); background: var(--fc-info-bg); }
.fc-role input { margin-top: 6px; width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--fc-accent); }
.fc-role__body { display: flex; flex-direction: column; gap: 4px; }
.fc-role__body strong { font-size: 1.12em; color: var(--fc-ink); }
.fc-role__body span { color: var(--fc-text); }
.fc-fee { color: var(--fc-fee); font-weight: 800; font-size: 1.05em; white-space: nowrap; }

.fc-terms { border: 1px solid var(--fc-line); border-radius: 14px; background: var(--fc-soft); margin: 0 0 16px; }
.fc-terms summary { cursor: pointer; font-weight: 700; color: var(--fc-ink); padding: 14px 18px; }
.fc-terms__body { max-height: 320px; overflow-y: auto; padding: 0 18px 14px; font-size: .97em; }
.fc-terms__body--box { background: #fff; border: 1px solid var(--fc-line); border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.fc-terms__body ol { padding-left: 1.3em; margin: 0; }
.fc-terms__body li { margin-bottom: .6em; }
.fc-terms__body strong { color: var(--fc-ink); }

.fc-check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; font-weight: 600; color: var(--fc-ink); cursor: pointer; }
.fc-check input { margin-top: 5px; width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--fc-accent); }

/* Buttons */
.fc .fc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 12px; border: 2px solid var(--fc-accent); background: var(--fc-accent); color: #fff !important; font-weight: 700; font-size: 1em; text-decoration: none !important; cursor: pointer; line-height: 1.2; transition: filter .15s, background .15s; }
.fc .fc-btn:hover { filter: brightness(1.1); }
.fc .fc-btn:focus-visible { outline: 3px solid #93b4f5; outline-offset: 2px; }
.fc .fc-btn--block { width: 100%; }
.fc .fc-btn--ghost { background: #fff; color: var(--fc-accent) !important; }
.fc .fc-btn--ghost:hover { background: var(--fc-info-bg); filter: none; }
.fc .fc-btn--google { background: #fff; color: var(--fc-ink) !important; border: 2px solid #c6cfdd; }
.fc .fc-btn--google:hover { background: var(--fc-soft); filter: none; }
.fc-g { width: 22px; height: 22px; }

/* Alerts & badges */
.fc-alert { border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; font-size: 1em; font-weight: 500; }
.fc-alert ul { margin: .4em 0 0; padding-left: 1.2em; }
.fc-alert li { margin-bottom: .2em; }
.fc-alert--success { background: var(--fc-ok-bg); color: var(--fc-ok); border-left: 5px solid #22a05a; }
.fc-alert--error { background: var(--fc-err-bg); color: var(--fc-err); border-left: 5px solid #d93a2b; }
.fc-alert--info { background: var(--fc-info-bg); color: var(--fc-accent-dark); border-left: 5px solid var(--fc-accent); }

.fc-badge { display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 999px; font-size: .85em; font-weight: 700; background: var(--fc-soft); color: var(--fc-muted); border: 1px solid var(--fc-line); white-space: nowrap; }
.fc-badge--approved { background: var(--fc-ok-bg); color: var(--fc-ok); border-color: #b9e3c7; }
.fc-badge--pending { background: var(--fc-warn-bg); color: var(--fc-warn); border-color: #f3d79b; }
.fc-badge--rejected, .fc-badge--suspended { background: var(--fc-err-bg); color: var(--fc-err); border-color: #f4c2bd; }

/* Progress, lists, steps */
.fc-progress { height: 12px; background: var(--fc-soft); border-radius: 999px; overflow: hidden; border: 1px solid var(--fc-line); }
.fc-progress span { display: block; height: 100%; background: var(--fc-accent); border-radius: 999px; }
.fc-missing { margin: 0; padding-left: 1.2em; color: var(--fc-err); font-weight: 600; }
.fc-missing li { margin-bottom: .2em; }
.fc-ok-line { color: var(--fc-ok); font-weight: 700; }
.fc-warn-line { color: var(--fc-warn); font-weight: 700; background: var(--fc-warn-bg); border-radius: 10px; padding: 10px 14px; }

.fc-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.fc-steps li { position: relative; padding: 6px 0 12px 42px; counter-increment: s; font-weight: 600; color: var(--fc-ink); }
.fc-steps li::before { content: counter(s); position: absolute; left: 0; top: 4px; width: 30px; height: 30px; border-radius: 50%; background: var(--fc-soft); border: 2px solid var(--fc-line); font-size: .9em; font-weight: 700; display: grid; place-items: center; color: var(--fc-muted); }
.fc-steps li.is-done { color: var(--fc-muted); font-weight: 500; }
.fc-steps li.is-done::before { content: "✓"; background: #16a34a; border-color: #16a34a; color: #fff; }
.fc-step-fee { display: block; margin-top: 4px; font-weight: 500; color: var(--fc-text); background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 6px 12px; }

.fc-upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
.fc-upload input[type=file] { flex: 1 1 220px; font-size: .95em; }

/* Profile form */
.fc-rule { background: var(--fc-warn-bg); border: 1px solid #f3d79b; color: var(--fc-ink); border-radius: 12px; padding: 14px 18px; margin: 0 0 26px; }
.fc-rule strong { color: var(--fc-warn); }
.fc-field { margin: 0 0 24px; }
.fc-field label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 700; color: var(--fc-ink); margin-bottom: 8px; font-size: 1.02em; }
.fc .fc-field input[type=text], .fc .fc-field input[type=tel], .fc .fc-field select, .fc .fc-field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c3ccda; border-radius: 12px; font: inherit; font-size: 1em; color: var(--fc-ink); background: #fff; box-shadow: none;
}
.fc .fc-field textarea { min-height: 150px; line-height: 1.55; }
.fc .fc-field input:focus, .fc .fc-field select:focus, .fc .fc-field textarea:focus { outline: 3px solid #bfd3fb; border-color: var(--fc-accent); }
.fc-field input[type=file] { font-size: .95em; max-width: 100%; }
.fc-help { margin: 8px 0 0 !important; font-size: .93em; color: var(--fc-muted); }
.fc-counter { margin: 6px 0 0 !important; font-size: .9em; font-weight: 700; color: var(--fc-err); }
.fc-counter.is-ok { color: var(--fc-ok); }
.fc-req { color: var(--fc-err); }
.fc-private { font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--fc-soft); border: 1px solid var(--fc-line); color: var(--fc-muted); border-radius: 6px; padding: 2px 8px; }
.fc-photo-field { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Mobile */
@media (max-width: 720px) {
	.fc { font-size: 16.5px; }
	.fc-card { padding: 20px 18px; border-radius: 14px; }
	.fc-grid { grid-template-columns: 1fr; gap: 18px; }
	.fc .fc-h1 { font-size: 1.5em; }
	.fc-split { gap: 8px; }
	.fc-split div { padding: 12px 6px; }
	.fc-split strong { font-size: 1.5em; }
	.fc-split span { font-size: .85em; }
	.fc-profile-card { flex-direction: column; text-align: center; gap: 14px; }
	.fc-profile-card .fc-badges { justify-content: center; }
	.fc-profile-card .fc-btn { width: 100%; }
	.fc-avatar--lg { width: 96px; height: 96px; }
	.fc-upload .fc-btn { width: 100%; }
	.fc-photo-field { flex-direction: column; align-items: flex-start; }
}

/* ---------- v0.3: navigation, tasks, inbox ---------- */
.fc-nav { display: flex; flex-wrap: wrap; gap: 6px; background: var(--fc-soft); border: 1px solid var(--fc-line); border-radius: 14px; padding: 6px; margin: 0 0 24px; }
.fc .fc-nav__item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 700; color: var(--fc-text); text-decoration: none !important; min-height: 44px; }
.fc .fc-nav__item:hover { background: #fff; color: var(--fc-ink); }
.fc .fc-nav__item.is-active { background: #fff; color: var(--fc-accent); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.fc .fc-nav__out { margin-left: auto; color: var(--fc-muted); font-weight: 600; }
.fc-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .78em; font-weight: 800; line-height: 1; }
.fc-count--muted { background: var(--fc-line); color: var(--fc-text); }

.fc-badge--todo { background: var(--fc-info-bg); color: var(--fc-accent-dark); border-color: #c7d7fb; }

.fc-mini-tasks { list-style: none; margin: 0 0 14px; padding: 0; }
.fc-mini-tasks li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--fc-line); }
.fc-mini-tasks a { font-weight: 700; }

.fc-group-title { margin-top: 1.4em !important; }
.fc-task-list { display: grid; gap: 12px; margin-bottom: 10px; }
.fc .fc-task-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--fc-line); border-radius: 14px; padding: 16px 20px; text-decoration: none !important; color: var(--fc-text); transition: border-color .15s, box-shadow .15s; }
.fc .fc-task-row:hover { border-color: #b4c0d4; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
.fc-task-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-task-row__cat { font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fc-accent); }
.fc-task-row__title { font-size: 1.08em; color: var(--fc-ink); }
.fc-task-row__due { font-size: .92em; color: var(--fc-muted); }
.fc-task-row__due.is-late { color: var(--fc-err); font-weight: 700; }

.fc-instructions { font-size: 1em; }
.fc-instructions ul, .fc-instructions ol { padding-left: 1.3em; }
.fc-subs { margin: 0; padding-left: 1.2em; }
.fc-subs li { margin-bottom: .4em; }

.fc-empty { text-align: center; padding: 40px 24px; }
.fc-empty__title { font-size: 1.2em; font-weight: 700; color: var(--fc-ink); }

.fc-inbox { display: grid; gap: 12px; }
.fc-msg { background: #fff; border: 1px solid var(--fc-line); border-radius: 14px; padding: 16px 20px; }
.fc-msg.is-unread { border-color: #a9c1f7; background: #f7faff; }
.fc-msg__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.fc-msg__title { font-size: 1.05em; color: var(--fc-ink); display: inline-flex; align-items: center; gap: 8px; }
.fc-msg__time { font-size: .88em; color: var(--fc-muted); }
.fc-msg__text { margin-bottom: .5em !important; }
.fc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fc-accent); display: inline-block; }

@media (max-width: 720px) {
	.fc-nav { gap: 4px; }
	.fc .fc-nav__item { flex: 1 1 calc(50% - 4px); justify-content: center; padding: 10px 8px; }
	.fc .fc-nav__out { margin-left: 0; flex-basis: 100%; }
	.fc .fc-task-row { flex-direction: column; align-items: flex-start; }
	.fc-mini-tasks li { flex-direction: column; align-items: flex-start; }
}
.fc-badges + .fc-alert { margin-top: 18px; }
.fc-badges { margin-bottom: 4px; }
