/* My Crew: shared styles for the creator pages (/mycrew/sell, /mycrew/admin, /mycrew/agents)
   and the few rules the landing pages need beyond their inline styles. */
:root {
  --ink: #1B1340;
  --muted: #3D3566;
  --soft: #5A5380;
  --ground: #EFEAFF;
  --card: #FFFFFF;
  --tint: #F6F4FB;
  --accent: #4A2FE0;
  --accent-dark: #2F1BA8;
  --line: #B9B2DC;
  --ok: #17603A;
  --warn: #8A4B00;
  --bad: #A3212B;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Noto Sans JP', 'Noto Sans KR', system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.7;
}
html[lang="ja"] body { line-break: strict; }
html[lang="ko"] body { word-break: keep-all; }
html[lang^="zh"] body { font-family: 'Plus Jakarta Sans', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.crew-wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.crew-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 0; }
.crew-logo { font-weight: 800; font-size: 22px; text-decoration: none; color: var(--ink); }
.crew-langs { display: flex; gap: 4px; font-size: 14px; font-weight: 600; }
.crew-langs a { color: var(--ink); text-decoration: none; padding: 10px 10px; border-radius: 999px; }
.crew-langs a[aria-current="true"] { background: var(--card); }
.crew-top-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; }

.crew-main { padding: 24px 0 80px; display: flex; flex-direction: column; gap: 24px; }
.crew-main h1 { margin: 0; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.25; font-weight: 800; }
.crew-main h2 { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 800; }
.crew-lead { margin: 0; font-size: 17px; color: var(--muted); max-width: 40em; }
.crew-card { background: var(--card); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.crew-note { margin: 0; font-size: 14px; color: var(--soft); }

.crew-field { display: flex; flex-direction: column; gap: 6px; }
.crew-field label, .crew-field .label { font-size: 14px; font-weight: 800; }
.crew-field .hint { font-size: 13px; color: var(--soft); }
.crew-field input, .crew-field select, .crew-field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #FFFFFF; color: var(--ink); font-size: 16px; line-height: 1.5;
}
.crew-field textarea { min-height: 120px; resize: vertical; }
.crew-field [aria-invalid="true"] { border-color: var(--bad); }
.crew-hp { position: absolute; left: -9999px; }

.crew-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px;
  border: 0; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 16px; font-weight: 800; text-decoration: none;
}
.crew-btn:hover { background: var(--accent-dark); color: #FFFFFF; }
.crew-btn[disabled] { opacity: 0.6; cursor: default; }
.crew-btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.crew-btn.ghost:hover { background: var(--tint); color: var(--ink); }
.crew-btn.small { min-height: 44px; padding: 0 20px; font-size: 14px; }
.crew-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.crew-msg { margin: 0; font-size: 15px; font-weight: 600; }
.crew-msg.ok { color: var(--ok); }
.crew-msg.bad { color: var(--bad); }

.crew-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.crew-item { background: var(--card); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.crew-item h3 { margin: 0; font-size: 19px; font-weight: 800; }
.crew-item p { margin: 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.crew-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--soft); }
.crew-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--tint); color: var(--ink); }
.crew-badge.pending { background: #FFF1DB; color: var(--warn); }
.crew-badge.approved { background: #DDF5E7; color: var(--ok); }
.crew-badge.rejected { background: #FBE1E3; color: var(--bad); }
.crew-pic { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 18px; display: block; }
.crew-desc { font-size: 14px; }
.crew-badge.sample { background: var(--ink); color: #FFFFFF; }
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.crew-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.crew-tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 800; }
.crew-tabs button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.crew-foot { padding: 0 0 40px; font-size: 13px; color: var(--soft); }
.crew-foot a { color: var(--soft); }

/* Landing page helpers */
.lp-signup { display: flex; flex-direction: column; gap: 16px; }
.lp-langs { display: flex; gap: 2px; font-size: 14px; font-weight: 600; }
.lp-langs a { color: var(--ink); text-decoration: none; padding: 10px 8px; }
.lp-langs a[aria-current="true"] { text-decoration: underline; text-underline-offset: 4px; }

/* Marketplace mock (LP shelf): rating, price and a hire button that is not live yet. */
.crew-rate { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--soft); }
.crew-rate .stars { color: #D98A00; font-weight: 800; letter-spacing: 1px; }
.crew-rate strong { color: var(--ink); }
.crew-buy { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1.5px solid var(--tint); }
.crew-buy .amount { font-size: 18px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.crew-buy .crew-btn { flex-shrink: 0; white-space: nowrap; }
.crew-buy .amount small { font-size: 13px; font-weight: 600; color: var(--soft); }
.crew-rate { flex-wrap: wrap; }
.crew-cta { background: var(--accent); color: #FFFFFF; justify-content: center; gap: 14px; }
.crew-cta h3, .crew-cta p { color: #FFFFFF; }
.crew-cta .crew-btn { background: #FFFFFF; color: var(--ink); }

/* Creator dashboard mock (LP). */
.dash { background: var(--card); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 14px; color: var(--soft); }
.dash-head strong { font-size: 20px; color: var(--ink); }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.dash-kpi { background: var(--tint); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.dash-kpi .k { font-size: 13px; color: var(--soft); font-weight: 600; }
.dash-kpi .v { font-size: 22px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.dash-kpi.main { background: var(--accent); }
.dash-kpi.main .k, .dash-kpi.main .v { color: #FFFFFF; }
.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.dash-table th { text-align: left; font-size: 13px; color: var(--soft); font-weight: 600; padding: 8px 12px; border-bottom: 1.5px solid var(--tint); }
.dash-table td { padding: 12px; border-bottom: 1.5px solid var(--tint); white-space: nowrap; }
.dash-table td.st { color: var(--ok); font-weight: 700; }
.dash-table tr.total td { font-weight: 800; border-bottom: 0; background: var(--tint); }
.dash-lower { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.dash-box { background: var(--tint); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dash-box h3 { margin: 0; font-size: 16px; font-weight: 800; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; }
.dash-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.dash-bar .val { font-size: 11px; color: var(--soft); text-align: center; overflow-wrap: anywhere; }
.dash-bar .fill { width: 100%; background: var(--accent); border-radius: 8px 8px 0 0; min-height: 6px; }
.dash-bar .lab { font-size: 11px; color: var(--soft); text-align: center; }
.dash-box dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.dash-box dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.dash-box dt { color: var(--muted); }
.dash-box dd { margin: 0; font-weight: 700; white-space: nowrap; }
.dash-box dl .net { padding-top: 10px; border-top: 1.5px solid var(--line); font-size: 17px; font-weight: 800; }
