/* ==========================================================================
   join-creators/ — creator plan + application form. Mobile first.
   Fields, buttons and chips reuse the profile page styles (pf-field, pf-btn,
   watch-chip); only the page layout lives here.
   ========================================================================== */
.jc-page { display: block; padding-top: 68px; }   /* clear the fixed 50px header, like the other pages */
.jc-hero, .jc-card {
  width: 94%; margin: 0 auto 14px; padding: 20px 18px; box-sizing: border-box; text-align: left;
  border-radius: 20px; border-radius: var(--tc-radius-lg, 20px); border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border, rgba(255,255,255,0.09));
  background-color: rgba(255,255,255,0.03); background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)); background-image: var(--tc-gradient-glass);
}
.jc-hero {
  background-image: radial-gradient(120% 90% at 0% 0%, rgba(57,255,106,0.18), transparent 60%), linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)); background-image: radial-gradient(120% 90% at 0% 0%, rgba(57,255,106,0.18), transparent 60%), var(--tc-gradient-glass);
}
.jc-hero h1 { margin: 12px 0 6px; font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: var(--tc-font-display, inherit); font-size: 26px; line-height: 1.2; color: #fff; }
.jc-lead { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #d8d8d8; }
.jc-perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-gap: 10px; gap: 10px; }
.jc-perks li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; color: #e2e2e2; }
.jc-perks .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #39ff6a; color: var(--tc-primary, #39ff6a); }
.jc-perks b { color: #fff; }
.jc-price { padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,0.25); border: 1px solid rgba(57,255,106,0.25); }
.jc-price b { font-size: 28px; color: #39ff6a; color: var(--tc-primary, #39ff6a); font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: var(--tc-font-display, inherit); }
.jc-price span { color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #9a9a9a); font-size: 14px; }
.jc-price small { display: block; margin-top: 2px; font-size: 13px; color: #cfcfcf; }
.jc-price small[hidden] { display: none; }
.jc-price p { margin: 8px 0 0; font-size: 13px; color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #9a9a9a); }

/* status cards */
.jc-state h2 { margin: 6px 0 8px; font-size: 19px; color: #fff; }
.jc-state p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: #d8d8d8; }
.jc-state p b { color: #fff; overflow-wrap: anywhere; }
.jc-muted { color: rgba(245, 247, 246, 0.62) !important; color: var(--tc-text-muted, #9a9a9a) !important; }
.jc-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.jc-state.is-pending .jc-status { color: #ffd66b; background: rgba(255,214,107,0.12); border: 1px solid rgba(255,214,107,0.35); }
.jc-state.is-info .jc-status { color: #7cc4ff; background: rgba(124,196,255,0.12); border: 1px solid rgba(124,196,255,0.35); }
.jc-state.is-bad .jc-status { color: #ff8a8a; background: rgba(255,90,90,0.12); border: 1px solid rgba(255,90,90,0.35); }
.jc-state.is-good { border-color: rgba(57,255,106,0.35); }
.jc-note { margin: 4px 0 12px; padding: 10px 14px; border-left: 3px solid #39ff6a; border-left: 3px solid var(--tc-primary, #39ff6a); background: rgba(255,255,255,0.04); border-radius: 0 10px 10px 0; color: #eee; font-size: 14px; line-height: 1.55; }
.jc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.jc-actions .pf-btn { text-decoration: none; }

/* form */
.jc-form fieldset.jc-card { margin: 0 auto 14px; min-width: 0; }
.jc-form legend { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin: 0 0 16px; padding: 0; font-size: 16px; font-weight: 800; color: #fff; }
.jc-form legend + * { clear: both; }
.jc-form legend span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #39ff6a; background: var(--tc-primary, #39ff6a); color: #06210f; font-size: 13px; }
.jc-form select {
  width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 12px; font: 16px/1.45 "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font: 16px/1.45 var(--tc-font-body, inherit); color: #fff;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255, 255, 255, 0.16); border: 1px solid var(--tc-border-strong, rgba(255,255,255,0.16)); outline: none;
}
.jc-form select option { background: #151916; color: #fff; }
.jc-form select:focus { border-color: #39ff6a; border-color: var(--tc-primary, #39ff6a); box-shadow: 0 0 0 3px rgba(57,255,106,0.15); }
.jc-form input[type=file] { width: 100%; box-sizing: border-box; padding: 10px; border-radius: 12px; font-size: 14px; color: #ddd; background: rgba(255,255,255,0.04); border: 1px dashed rgba(255, 255, 255, 0.16); border: 1px dashed var(--tc-border-strong, rgba(255,255,255,0.2)); }
.jc-form input[type=file]::file-selector-button { margin-right: 10px; padding: 8px 14px; border: none; border-radius: 999px; background: rgba(57,255,106,0.15); color: #39ff6a; color: var(--tc-primary, #39ff6a); font-weight: 700; cursor: pointer; }
.jc-form [aria-invalid="true"] { border-color: #ff5a5a !important; box-shadow: 0 0 0 3px rgba(255,90,90,0.15); }
.jc-row { display: grid; grid-gap: 0 12px; gap: 0 12px; }
.jc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.jc-chip span {
  display: inline-block; padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #e6e6e6; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255, 255, 255, 0.16); border: 1px solid var(--tc-border-strong, rgba(255,255,255,0.16)); 
}
.jc-chip input:checked + span { color: #06210f; background: #39ff6a; background: var(--tc-primary, #39ff6a); border-color: #39ff6a; border-color: var(--tc-primary, #39ff6a); }
.jc-chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.jc-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: #d6d6d6; background: rgba(57,255,106,0.06); border: 1px solid rgba(57,255,106,0.2); }
.jc-privacy .icon { flex: none; width: 18px; height: 18px; color: #39ff6a; color: var(--tc-primary, #39ff6a); margin-top: 1px; }
.jc-confirm { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; line-height: 1.5; color: #ddd; cursor: pointer; }
.jc-confirm input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: #39ff6a; accent-color: var(--tc-primary, #39ff6a); }
.jc-submit .pf-btn { width: 100%; height: 46px; font-size: 15px; }
.jc-progress { height: 6px; margin-bottom: 12px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.1); }
.jc-progress[hidden] { display: none; }
.jc-progress span { display: block; width: 0; height: 100%; background: #39ff6a; background: var(--tc-primary, #39ff6a);  }

@media (min-width: 600px) {
  .jc-hero h1 { font-size: 32px; }
  .jc-hero, .jc-card { padding: 26px 26px; }
  .jc-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .jc-hero, .jc-card { max-width: 720px; }
}

/* hints sit under their label instead of squeezing it */
.jc-form .pf-field > span { display: block; }
.jc-form .pf-field > span small { display: block; margin-top: 2px; }
.jc-confirm a { color: #39ff6a; color: var(--tc-primary, #39ff6a); }
/* The hidden checkbox inside each category chip must stay inside the chip — it used to be
   as wide as the screen and pushed past the right edge, so phones zoomed the page out. */
.jc-chip { position: relative; }
.jc-chip input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

/* ---- selfie step ---- */
.jc-face-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.2); background: rgba(255,255,255,.03); }
.jc-face.is-done .jc-face-box { border-style: solid; border-color: rgba(57,255,106,.45); background: rgba(57,255,106,.06); }
.jc-face-pic { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #8f9892; }
.jc-face-pic .icon { width: 32px; height: 32px; }
.jc-face-pic img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.jc-face-text { flex: 1 1 180px; min-width: 0; display: grid; grid-gap: 2px; gap: 2px; }
.jc-face-text b { font-size: 14px; }
.jc-face.is-done .jc-face-text b { color: #39ff6a; color: var(--tc-primary, #39ff6a); }
.jc-face-text small { color: #9aa39d; font-size: 12px; line-height: 1.45; }
.jc-face-box .pf-btn { display: inline-flex; align-items: center; gap: 8px; }
.jc-face-box .pf-btn .icon { width: 18px; height: 18px; }
@media (max-width: 420px) { .jc-face-box .pf-btn { width: 100%; justify-content: center; } }

/* ---- Apply now (the form opens only when asked) ---- */
.jc-apply-wrap { width: 94%; margin: 4px auto 18px; text-align: center; }
.jc-apply-wrap[hidden], .jc-form[hidden], .jc-step[hidden] { display: none !important; }
.jc-apply { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 360px; height: 52px; font-size: 16px !important; border-radius: 14px !important; }
.jc-apply .icon { width: 20px; height: 20px; }
.jc-apply-note { margin: 10px 0 0; font-size: 13px; color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #9a9a9a); }

/* ---- steps ---- */
.jc-steps { list-style: none; width: 94%; margin: 0 auto 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 6px; gap: 6px; scroll-margin-top: 70px; }
.jc-steps li { position: relative; display: grid; justify-items: center; grid-gap: 6px; gap: 6px; padding-top: 2px; text-align: center; color: #8f9892; font-size: 11.5px; cursor: default; }
.jc-steps li.is-open { cursor: pointer; }
.jc-steps li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: rgba(255,255,255,0.12); }
.jc-steps li:first-child::before { display: none; }
.jc-steps li.is-done::before, .jc-steps li.is-current::before { background: #39ff6a; background: var(--tc-primary, #39ff6a); }
.jc-steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 13px; color: #cfd6d2; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); }
.jc-steps b { font-weight: 600; }
.jc-steps li.is-current { color: #fff; }
.jc-steps li.is-current span { color: #06210f; background: #39ff6a; background: var(--tc-primary, #39ff6a); border-color: #39ff6a; border-color: var(--tc-primary, #39ff6a); box-shadow: 0 0 0 4px rgba(57,255,106,0.15); }
.jc-steps li.is-done span { color: #39ff6a; color: var(--tc-primary, #39ff6a); border-color: rgba(57,255,106,0.5); background: rgba(57,255,106,0.1); }
.jc-step-lead { margin: -6px 0 16px; font-size: 13.5px; line-height: 1.5; color: #b9c1bc; }
.jc-review-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #fff; }
.jc-review-h span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #39ff6a; background: var(--tc-primary, #39ff6a); color: #06210f; font-size: 13px; }
.jc-review { margin: 0 0 16px; display: grid; grid-gap: 0; gap: 0; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; overflow: hidden; }
.jc-review > div { display: grid; grid-template-columns: 1fr auto; grid-gap: 2px 10px; gap: 2px 10px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.jc-review > div:first-child { border-top: 0; }
.jc-review dt { grid-column: 1; font-size: 12px; color: #8f9892; }
.jc-review dd { grid-column: 1; margin: 0; font-size: 14px; color: #fff; overflow-wrap: anywhere; }
.jc-edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); color: #39ff6a; color: var(--tc-primary, #39ff6a); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.jc-nav { width: 94%; margin: 0 auto 14px; display: flex; gap: 10px; }
.jc-nav .pf-btn { flex: 1; height: 48px; font-size: 15px; }
.jc-nav .pf-btn[hidden] { display: none; }
.jc-step-error { width: 94%; margin: 0 auto 10px; box-sizing: border-box; }
@media (min-width: 900px) { .jc-steps, .jc-nav, .jc-step-error, .jc-apply-wrap { max-width: 720px; } }
#jcSteps, .jc-step, #jcStepError { scroll-margin-top: calc(56px + 14px); scroll-margin-top: calc(var(--tc-header-h, 56px) + 14px); }

/* File pickers (samples, ID): a clear box that shows what was chosen */
.jc-file { border-radius: 14px; border: 1px dashed rgba(255, 255, 255, 0.16); border: 1px dashed var(--tc-border-strong, rgba(255,255,255,0.22)); background: rgba(255,255,255,0.03); overflow: hidden; }
.jc-file.has-files { border-style: solid; border-color: rgba(57,255,106,0.45); }
.jc-file-face { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; }
.jc-file-face > .icon { flex: none; width: 34px; height: 34px; padding: 7px; box-sizing: border-box; border-radius: 10px; background: rgba(57,255,106,0.14); color: #39ff6a; color: var(--tc-primary, #39ff6a); }
.jc-file-face b { display: block; font-size: 14px; color: #fff; }
.jc-file-face small { display: block; font-size: 12.5px; color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #aaa); }
.jc-form .jc-file-face input.jc-file-native { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; border: 0; font-size: 0; }
.jc-file-face:focus-within { box-shadow: inset 0 0 0 2px #39ff6a; box-shadow: inset 0 0 0 2px var(--tc-primary, #39ff6a); border-radius: 14px; }
.jc-file-list { list-style: none; margin: 0; padding: 0 14px; display: grid; grid-gap: 6px; gap: 6px; }
.jc-file-list:not(:empty) { padding-bottom: 12px; }
.jc-file-list li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.05); font-size: 13px; }
.jc-file-list li.is-ok::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #39ff6a; background: var(--tc-primary, #39ff6a); }
.jc-file-list li.is-bad { background: rgba(255,90,90,0.12); color: #ff9b9b; }
.jc-file-list li.jc-file-note { background: none; padding: 0 2px; color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #aaa); font-size: 12.5px; }
.jc-file-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
.jc-file-list small { flex: none; color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #aaa); }
.jc-file-list li.is-bad small { color: inherit; }
.jc-file-clear { display: block; margin: 0 14px 12px auto; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; background: none; color: #ddd; font: inherit; font-size: 12.5px; cursor: pointer; }
.jc-file.is-busy .jc-file-face > .icon {  }
@keyframes jcPulse { 50% { opacity: .4; } }
@supports selector(:has(a)) { .jc-file:has(input[aria-invalid="true"]) { border-color: #ff5a5a; box-shadow: 0 0 0 3px rgba(255,90,90,0.15); } }

/* compat:motion:start — decorative movement, only when the phone isn't set to reduce motion */
@media (prefers-reduced-motion: no-preference) {
  .jc-file.is-busy .jc-file-face > .icon { animation: jcPulse 1s ease-in-out infinite; }
}
/* compat:motion:end */

/* compat:no-flexgap:start — rebuilt by tools/css_compat.py: spacing for engines without flex gap
   (html.no-flexgap, set in the head). Edit the gap in the rule above, then run the tool. */
.no-flexgap .jc-perks li > :not(:last-child) { margin-right: 10px; }
.no-flexgap .jc-actions > * { margin-right: 10px; margin-bottom: 10px; }
.no-flexgap .jc-form legend > :not(:last-child) { margin-right: 10px; }
.no-flexgap .jc-chips > * { margin-right: 8px; margin-bottom: 8px; }
.no-flexgap .jc-privacy > :not(:last-child) { margin-right: 10px; }
.no-flexgap .jc-confirm > :not(:last-child) { margin-right: 10px; }
.no-flexgap .jc-face-box > * { margin-right: 12px; margin-bottom: 12px; }
.no-flexgap .jc-face-box .pf-btn > :not(:last-child) { margin-right: 8px; }
.no-flexgap .jc-apply > :not(:last-child) { margin-right: 8px; }
.no-flexgap .jc-review-h > :not(:last-child) { margin-right: 10px; }
.no-flexgap .jc-nav > :not(:last-child) { margin-right: 10px; }
.no-flexgap .jc-file-face > :not(:last-child) { margin-right: 12px; }
.no-flexgap .jc-file-list li > :not(:last-child) { margin-right: 8px; }
/* compat:no-flexgap:end */
