:root {
  --crew-orange:#ff941f;
  --crew-orange-soft:#ffb65f;
  --crew-bg:#070707;
  --crew-panel:#101010;
  --crew-panel-soft:#151515;
  --crew-line:#2c2c2c;
  --crew-muted:#9b9b9b;
  --crew-text:#fff;
  --crew-green:#45da9a;
  --crew-yellow:#ffc868;
  --crew-red:#ff7b7b;
}

* { box-sizing:border-box; }
html { color-scheme:dark; }
[hidden] { display:none !important; }

.crew-body {
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 88% -5%, rgba(255,148,31,.15), transparent 30rem),
    radial-gradient(circle at -10% 45%, rgba(255,148,31,.06), transparent 28rem),
    var(--crew-bg);
  color:var(--crew-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.crew-topbar {
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:72px;
  padding:12px clamp(16px,4vw,58px);
  border-bottom:1px solid #242424;
  background:rgba(7,7,7,.94);
  backdrop-filter:blur(16px);
}

.crew-brand {
  color:#fff;
  font-size:25px;
  font-weight:950;
  letter-spacing:-1px;
  text-decoration:none;
}

.crew-brand b {
  margin-left:3px;
  padding:1px 6px;
  border-radius:6px;
  background:var(--crew-orange);
  color:#090909;
}

.crew-nav { display:flex; align-items:center; gap:8px; }
.crew-nav a,
.crew-nav button {
  border:1px solid #333;
  border-radius:10px;
  padding:10px 13px;
  background:#151515;
  color:#fff;
  font:inherit;
  font-size:12px;
  font-weight:850;
  text-decoration:none;
  cursor:pointer;
}
.crew-nav .primary { border-color:var(--crew-orange); background:var(--crew-orange); color:#090909; }

.crew-shell { width:min(1240px,calc(100% - 32px)); margin:0 auto; padding:28px 0 72px; }
.crew-loading { padding:80px 20px; color:#aaa; text-align:center; }

.crew-hero {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);
  gap:18px;
  padding:30px;
  border:1px solid #573715;
  border-radius:26px;
  background:linear-gradient(140deg,rgba(255,148,31,.11),transparent 48%),#0f0f0f;
  box-shadow:0 22px 60px rgba(0,0,0,.35);
}

.crew-eyebrow,
.crew-card-kicker {
  margin:0 0 10px;
  color:var(--crew-orange);
  font-size:10px;
  font-weight:950;
  letter-spacing:1.8px;
  text-transform:uppercase;
}

.crew-hero h1 {
  max-width:760px;
  margin:0 0 12px;
  font-size:clamp(36px,4.2vw,58px);
  line-height:1.02;
  letter-spacing:-2px;
}

.crew-lead { max-width:700px; margin:0; color:#c9c9c9; font-size:17px; line-height:1.65; }
.crew-share { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }

.crew-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:43px;
  border:1px solid #3a3a3a;
  border-radius:12px;
  padding:12px 15px;
  background:#1a1a1a;
  color:#fff;
  font:inherit;
  font-size:12px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  transition:transform .15s ease,border-color .15s ease,background .15s ease;
}
.crew-button:hover { transform:translateY(-1px); border-color:#555; }
.crew-button.primary { border-color:var(--crew-orange); background:var(--crew-orange); color:#090909; }
.crew-button.primary:hover { background:#ffa43a; }

.crew-hero-panel {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
  padding:24px;
  border:1px solid #45301b;
  border-radius:20px;
  background:linear-gradient(145deg,#1d1208,#111 78%);
}
.crew-hero-badge {
  align-self:flex-start;
  padding:7px 11px;
  border:1px solid #6b4620;
  border-radius:999px;
  color:#f2c089;
  font-size:10px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
}
.crew-hero-value { font-size:70px; font-weight:950; line-height:1; letter-spacing:-4px; }
.crew-hero-panel > p { margin:0; color:#cfcfcf; font-size:13px; }
.crew-mini-list { display:grid; gap:8px; margin:8px 0 0; padding:0; list-style:none; }
.crew-mini-list li { position:relative; padding-left:20px; color:#aaa; font-size:12px; line-height:1.45; }
.crew-mini-list li::before { position:absolute; left:0; color:var(--crew-orange); content:"✓"; font-weight:950; }

.crew-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:16px 0; }
.crew-metric {
  padding:19px;
  border:1px solid var(--crew-line);
  border-radius:16px;
  background:linear-gradient(180deg,#151515,#101010);
}
.crew-metric span,.crew-metric strong,.crew-metric small { display:block; }
.crew-metric span { color:#9c9c9c; font-size:10px; font-weight:900; letter-spacing:.8px; text-transform:uppercase; }
.crew-metric strong { margin:8px 0 3px; font-size:31px; letter-spacing:-1px; }
.crew-metric small { color:#777; font-size:11px; }

.crew-main-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:16px; }
.crew-stack { display:grid; align-content:start; gap:16px; }
.crew-card {
  padding:22px;
  border:1px solid var(--crew-line);
  border-radius:18px;
  background:linear-gradient(180deg,#121212,#0d0d0d);
  box-shadow:0 14px 36px rgba(0,0,0,.2);
}
.crew-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.crew-card-head.compact { align-items:center; }
.crew-card h2,.crew-card h3 { margin:0; font-size:24px; letter-spacing:-.7px; }
.crew-card-head p:not(.crew-card-kicker),.crew-card > p { margin:7px 0 0; color:#919191; font-size:12px; line-height:1.55; }
.crew-code-pill { flex:0 0 auto; padding:8px 10px; border:1px solid #5b3b1b; border-radius:10px; background:#1d1208; color:#ffb861; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; font-weight:900; letter-spacing:1px; }

.crew-linkbox { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; margin-top:17px; }
.crew-linkbox input {
  min-width:0;
  border:1px solid #303030;
  border-radius:12px;
  padding:13px 14px;
  background:#080808;
  color:#d5d5d5;
  font:inherit;
  font-size:12px;
  outline:none;
}
.crew-linkbox input:focus { border-color:#68431f; box-shadow:0 0 0 3px rgba(255,148,31,.08); }
.crew-message { margin-top:16px; padding:17px; border:1px solid #292929; border-radius:14px; background:#090909; color:#c5c5c5; white-space:pre-line; font-size:12px; line-height:1.7; }

.crew-preview-card { overflow:hidden; }
.crew-invite-preview { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(190px,.7fr); gap:12px; margin-top:17px; padding:14px; border:1px solid #2e2e2e; border-radius:16px; background:radial-gradient(circle at 100% 0,rgba(255,148,31,.13),transparent 15rem),#090909; }
.crew-preview-copy { padding:18px; }
.crew-preview-copy h3 { margin:5px 0 9px; font-size:29px; line-height:1.05; }
.crew-preview-copy h3 b { color:var(--crew-orange); }
.crew-preview-copy p { margin:0; color:#a8a8a8; font-size:12px; }
.crew-preview-cta { display:inline-flex; margin-top:17px; padding:10px 12px; border-radius:9px; background:var(--crew-orange); color:#090909; font-size:11px; font-weight:950; }
.crew-preview-offer { display:flex; flex-direction:column; justify-content:center; min-height:175px; padding:20px; border:1px solid #50351a; border-radius:13px; background:linear-gradient(145deg,#211408,#111); }
.crew-preview-offer small { color:#c98e4e; font-size:9px; font-weight:950; letter-spacing:1.5px; }
.crew-preview-offer strong { margin-top:12px; font-size:33px; line-height:1; letter-spacing:-1px; }
.crew-preview-offer span { margin-top:5px; color:#9a9a9a; font-size:11px; }

.crew-progress { height:8px; margin:17px 0; overflow:hidden; border-radius:999px; background:#252525; }
.crew-progress span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#ff8e13,#ffc26e); transition:width .45s ease; }
.crew-milestones { display:grid; gap:9px; }
.crew-milestone { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:10px; padding:11px; border:1px solid #292929; border-radius:13px; background:#0b0b0b; }
.crew-milestone i { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:#242424; color:#9b9b9b; font-style:normal; font-size:11px; font-weight:950; }
.crew-milestone div b,.crew-milestone div small { display:block; }
.crew-milestone div b { font-size:12px; }
.crew-milestone div small { margin-top:3px; color:#777; font-size:10px; }
.crew-milestone em { color:#8c8c8c; font-style:normal; font-size:10px; font-weight:850; }
.crew-milestone.reached { border-color:#275a43; background:#0c1712; }
.crew-milestone.reached i { background:#173e2c; color:var(--crew-green); }
.crew-milestone.reached em { color:var(--crew-green); }

.crew-step-list { display:grid; gap:13px; margin:18px 0 0; padding:0; list-style:none; }
.crew-step-list li { display:grid; grid-template-columns:34px 1fr; gap:10px; align-items:start; }
.crew-step-list i { display:grid; place-items:center; width:32px; height:32px; border:1px solid #56391c; border-radius:10px; background:#1b1108; color:var(--crew-orange); font-style:normal; font-size:11px; font-weight:950; }
.crew-step-list span { color:#8e8e8e; font-size:11px; line-height:1.45; }
.crew-step-list b { display:block; margin-bottom:2px; color:#fff; font-size:12px; }

.crew-activity-card { margin-top:16px; }
.crew-admin-table { margin-top:15px; overflow:auto; border:1px solid #282828; border-radius:14px; }
.crew-table { width:100%; border-collapse:collapse; min-width:650px; }
.crew-table th,.crew-table td { padding:13px 15px; border-bottom:1px solid #252525; text-align:left; font-size:11px; }
.crew-table th { background:#0a0a0a; color:#777; font-size:9px; letter-spacing:1px; text-transform:uppercase; }
.crew-table td { color:#a7a7a7; }
.crew-table td b { color:#fff; }
.crew-table tr:last-child td { border-bottom:0; }
.crew-status { display:inline-flex; padding:6px 8px; border:1px solid #3e3e3e; border-radius:999px; background:#1c1c1c; color:#b7b7b7; font-size:9px; font-weight:900; }
.crew-status.qualified { border-color:#275a43; background:#10261b; color:var(--crew-green); }
.crew-status.paid_pending,.crew-status.starter_active,.crew-status.checkout_completed { border-color:#684b22; background:#241a0d; color:var(--crew-yellow); }
.crew-status.rejected,.crew-status.reversed { border-color:#6b3030; background:#271111; color:var(--crew-red); }
.crew-empty-state { padding:34px 20px 20px; text-align:center; }
.crew-empty-icon { display:grid; place-items:center; width:50px; height:50px; margin:0 auto 13px; border:1px solid #55391d; border-radius:16px; background:#1b1108; color:var(--crew-orange); font-size:27px; }
.crew-empty-state h3 { margin:0 0 7px; font-size:19px; }
.crew-empty-state p { max-width:430px; margin:0 auto 16px; color:#888; font-size:12px; }
.crew-note { max-width:900px; margin:18px auto 0; color:#6f6f6f; font-size:10px; line-height:1.55; text-align:center; }
.crew-toast { position:fixed; right:18px; bottom:18px; z-index:80; padding:12px 15px; border:1px solid #5d421f; border-radius:11px; background:#1e1409; color:#ffd29c; box-shadow:0 15px 40px rgba(0,0,0,.5); font-size:12px; font-weight:850; }

/* Public invitation page */
.join-body { display:flex; min-height:100vh; flex-direction:column; }
.join-topbar { position:relative; }
.join-shell { display:grid; flex:1; place-items:center; width:min(1180px,calc(100% - 32px)); margin:0 auto; padding:54px 0; }
.join-card { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(330px,.7fr); width:100%; overflow:hidden; border:1px solid #3b2b1d; border-radius:28px; background:#0e0e0e; box-shadow:0 35px 100px rgba(0,0,0,.55); }
.join-copy { padding:clamp(30px,5vw,64px); background:radial-gradient(circle at 100% 0,rgba(255,148,31,.09),transparent 22rem); }
.join-invite-pill { display:inline-flex; align-items:center; gap:8px; margin-bottom:28px; padding:7px 11px; border:1px solid #393939; border-radius:999px; background:#151515; color:#aaa; font-size:10px; font-weight:850; }
.join-invite-pill span { width:7px; height:7px; border-radius:50%; background:var(--crew-orange); box-shadow:0 0 0 4px rgba(255,148,31,.12); }
.join-copy h1 { max-width:680px; margin:0 0 18px; font-size:clamp(48px,6vw,78px); line-height:.95; letter-spacing:-4px; }
.join-copy h1 span { color:var(--crew-orange); }
.join-lead { max-width:700px; margin:0; color:#b8b8b8; font-size:17px; line-height:1.7; }
.join-lead strong { color:#fff; }
.join-benefit-grid { display:grid; gap:9px; margin:28px 0; }
.join-benefit-grid article { display:grid; grid-template-columns:38px 1fr; align-items:center; gap:12px; padding:12px 14px; border:1px solid #292929; border-radius:13px; background:#0a0a0a; }
.join-benefit-grid article > b { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:#1d1208; color:var(--crew-orange); font-size:10px; }
.join-benefit-grid strong,.join-benefit-grid span { display:block; }
.join-benefit-grid strong { font-size:12px; }
.join-benefit-grid span { margin-top:2px; color:#858585; font-size:11px; }
.join-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.join-primary { min-height:50px; padding-inline:20px; font-size:13px; }
.join-disclosure { max-width:720px; margin:18px 0 0; color:#686868; font-size:10px; line-height:1.55; }
.join-offer { display:flex; flex-direction:column; justify-content:center; padding:clamp(28px,4vw,48px); border-left:1px solid #3d2b18; background:linear-gradient(155deg,#241608,#101010 72%); }
.join-offer-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.join-code { padding:6px 8px; border:1px solid #5c3b1b; border-radius:8px; color:#d69a58; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:9px; font-weight:900; letter-spacing:1px; }
.join-price { margin:25px 0 2px; font-size:96px; font-weight:950; line-height:.8; letter-spacing:-7px; }
.join-price small { color:var(--crew-orange); font-size:36px; vertical-align:top; }
.join-offer h2 { margin:18px 0 8px; font-size:27px; letter-spacing:-.8px; }
.join-offer-copy { margin:0; color:#9b9b9b; font-size:12px; line-height:1.55; }
.join-checklist { display:grid; gap:10px; margin:24px 0; padding:0; list-style:none; }
.join-checklist li { position:relative; padding-left:24px; color:#b7b7b7; font-size:12px; }
.join-checklist li::before { position:absolute; left:0; color:var(--crew-orange); content:"✓"; font-weight:950; }
.join-checklist strong { color:#fff; }
.join-give-get { display:grid; grid-template-columns:1fr auto; gap:8px 14px; padding:15px; border:1px solid #4a321b; border-radius:13px; background:rgba(0,0,0,.2); }
.join-give-get span { color:#8d8d8d; font-size:10px; }
.join-give-get strong { color:#fff; font-size:11px; text-align:right; }
.join-state-card { width:min(620px,100%); padding:48px 30px; border:1px solid #343434; border-radius:22px; background:#101010; text-align:center; }
.join-state-card p { color:#a0a0a0; }
.join-state-card h1 { margin:5px 0 10px; font-size:34px; }
.join-state-card.error { border-color:#563325; }
.join-state-icon { display:grid; place-items:center; width:52px; height:52px; margin:0 auto 18px; border:1px solid #744026; border-radius:16px; background:#24140d; color:#ffae64; font-size:25px; font-weight:950; }
.join-state-spinner { width:38px; height:38px; margin:0 auto 18px; border:3px solid #2b2b2b; border-top-color:var(--crew-orange); border-radius:50%; animation:crew-spin .8s linear infinite; }
.join-actions.center { justify-content:center; }
.join-footer { padding:0 20px 24px; color:#606060; font-size:10px; text-align:center; }
@keyframes crew-spin { to { transform:rotate(360deg); } }

@media (max-width:980px) {
  .crew-hero,.crew-main-grid,.join-card { grid-template-columns:1fr; }
  .crew-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .join-offer { border-top:1px solid #3d2b18; border-left:0; }
  .join-price { font-size:78px; }
}

@media (max-width:700px) {
  .crew-topbar { min-height:64px; padding:10px 14px; }
  .crew-brand { font-size:22px; }
  .crew-nav { gap:5px; }
  .crew-nav a,.crew-nav button { padding:8px 9px; font-size:10px; }
  .crew-nav a:nth-child(2),.crew-nav a:nth-child(3) { display:none; }
  .crew-shell,.join-shell { width:min(100% - 20px,1240px); padding-top:18px; }
  .crew-hero { padding:22px; border-radius:20px; }
  .crew-hero h1 { font-size:38px; letter-spacing:-1.5px; }
  .crew-lead { font-size:15px; }
  .crew-grid { grid-template-columns:1fr 1fr; }
  .crew-card { padding:18px; }
  .crew-card h2,.crew-card h3 { font-size:22px; }
  .crew-card-head { display:block; }
  .crew-card-head .crew-button,.crew-card-head .crew-code-pill { margin-top:12px; }
  .crew-linkbox { grid-template-columns:1fr; }
  .crew-invite-preview { grid-template-columns:1fr; }
  .crew-preview-offer { min-height:auto; }
  .crew-milestone { grid-template-columns:38px 1fr; }
  .crew-milestone em { grid-column:2; }
  .join-copy,.join-offer { padding:28px 22px; }
  .join-copy h1 { font-size:52px; letter-spacing:-2.8px; }
  .join-lead { font-size:15px; }
  .join-price { font-size:68px; }
}

@media (max-width:470px) {
  .crew-grid { grid-template-columns:1fr; }
  .crew-share { display:grid; grid-template-columns:1fr 1fr; }
  .crew-button { width:100%; }
  .join-topbar .crew-nav a:first-child { display:none; }
  .join-actions { display:grid; }
  .join-copy h1 { font-size:44px; }
}
