/* ═══════════════════════════════════════════
   DESIGN TOKENS — XineRent System
═══════════════════════════════════════════ */
:root {
  --black:     #0b0b0f;
  --deep:      #13131a;
  --panel:     #13131a;
  --card:      #0e0e13;
  --white:     #f2efe7;
  --gold:      #ffb43a;
  --gold-low:  rgba(255,180,58,.08);
  --gold-mid:  rgba(255,180,58,.22);
  --gold-glow: rgba(255,180,58,.14);
  --blue:      #1e3a8a;
  --blue-low:  rgba(30,58,138,.25);
  --muted:     rgba(242,239,231,.5);
  --muted2:    rgba(242,239,231,.28);
  --line:      rgba(255,180,58,.12);
  --line-sub:  rgba(255,255,255,.05);
  --error:     rgba(220,80,80,.85);
  --success:   rgba(80,200,120,.85);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: Inter, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* Grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: .02;
}

/* Ambient radial bg */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255,180,58,.07), transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(255,180,58,.1), transparent 50%);
}

/* ═══ NAV ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(180deg, rgba(11,11,15,.96) 0%, transparent 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,180,58,.06);
}
.logo { font-family: Oswald; font-size: 20px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
/* Legacy static-nav / slide-menu rules removed in the M10 final
   closeout — the markup no longer exists; xr-nav.js owns navigation. */

/* ═══ PAGE SHELL ═══ */
.page-wrap {
  position: relative; z-index: 1;
  padding-top: 80px;
  min-height: 100vh;
}

/* ═══ HERO HEADER ═══ */
.page-hero {
  padding: 72px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,180,58,.06), transparent 60%);
  pointer-events: none;
}
.page-hero-label {
  font-family: Inter; font-size: 9px; font-weight: 400;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,180,58,.6);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.page-hero-label::before,
.page-hero-label::after { content: ""; width: 32px; height: 1px; background: var(--gold-mid); }
.page-hero h1 {
  font-family: Oswald;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 300; letter-spacing: .06em; line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero-sub {
  font-family: Oswald;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300; font-style: italic;
  color: var(--muted);
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.page-hero-desc {
  font-family: Inter; font-size: 13px; line-height: 1.75;
  color: var(--muted2);
  max-width: 540px; margin: 0 auto;
}

/* ═══ PROGRESS STEPPER ═══ */
.stepper-wrap {
  padding: 32px 24px 0;
  max-width: 860px; margin: 0 auto;
}
.stepper {
  display: flex; align-items: flex-start; justify-content: flex-start;
  gap: 0; overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }
.step-item {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 72px; position: relative;
  cursor: pointer;
}
.step-item:not(:last-child)::after {
  content: "";
  position: absolute; top: 14px; left: calc(50% + 14px);
  width: calc(100% - 28px); height: 1px;
  background: var(--line);
  transition: background .4s;
}
.step-item.complete:not(:last-child)::after { background: var(--gold-mid); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: Inter; font-size: 10px; font-weight: 400; letter-spacing: .08em;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--card);
  color: var(--muted2);
  transition: all .35s; position: relative; z-index: 1;
}
.step-item.active .step-num {
  border-color: var(--gold); background: var(--gold-low); color: var(--gold);
  box-shadow: 0 0 16px rgba(255,180,58,.2);
}
.step-item.complete .step-num {
  border-color: var(--gold-mid); background: rgba(255,180,58,.15);
  color: var(--gold); font-size: 11px;
}
.step-label {
  font-family: Inter; font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted2); margin-top: 8px; text-align: center; line-height: 1.3;
  transition: color .3s;
}
.step-item.active .step-label { color: var(--gold); }
.step-item.complete .step-label { color: rgba(255,180,58,.55); }

/* ═══ AUTH GATE ═══ */
#auth-gate {
  max-width: 480px; margin: 72px auto; padding: 0 24px;
  text-align: center;
}
.auth-card {
  background: linear-gradient(145deg, rgba(19,19,26,.98), rgba(11,11,15,.99));
  border: 1px solid var(--line);
  padding: 48px 40px;
  position: relative;
}
.auth-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
}
.auth-icon { font-size: 0; margin-bottom: 22px; display: block; }
.auth-icon::before { content: "Opening Night"; display: block; font-family: Inter, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.auth-icon::after { content: "Premiere"; display: block; font-family: Oswald, sans-serif; font-size: 46px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; color: var(--white); margin-top: 8px; }
.auth-icon-type::before, .auth-icon-type::after { content: none; }
.auth-kick { display: block; font-family: Inter, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.auth-word { display: block; font-family: Oswald, sans-serif; font-size: 46px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; color: var(--white); margin-top: 8px; }
.auth-title {
  font-family: Oswald; font-size: 28px; font-weight: 300;
  color: var(--white); margin-bottom: 10px;
}
.auth-desc { font-family: Inter; font-size: 12px; color: var(--muted); line-height: 1.75; margin-bottom: 28px; }
.auth-btns { display: flex; flex-direction: column; gap: 12px; }

/* ═══ FORM SHELL ═══ */
#form-wrap {
  max-width: 780px; margin: 0 auto;
  padding: 48px 24px 120px;
}

/* ═══ FORM SECTIONS ═══ */
.form-section { display: none; }
.form-section.active { display: block; animation: secFadeIn .45s ease; }
@keyframes secFadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.section-header { margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section-num {
  font-family: Oswald; font-size: 64px; font-weight: 300;
  color: rgba(255,180,58,.08); line-height: 1;
  margin-bottom: -14px;
}
.section-title {
  font-family: Oswald; font-size: clamp(26px, 4vw, 36px);
  font-weight: 300; color: var(--white); line-height: 1.1;
}
.section-sub {
  font-family: Inter; font-size: 12px; color: var(--muted);
  line-height: 1.75; margin-top: 8px;
}

/* ═══ FORM FIELDS ═══ */
.field-group { margin-bottom: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
@media(max-width:640px) { .field-row, .field-row-3 { grid-template-columns: 1fr; gap: 16px; } }

label {
  display: block;
  font-family: Inter; font-size: 9px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,180,58,.7);
  margin-bottom: 8px;
}
.req { color: var(--gold); margin-left: 3px; }
.opt-tag {
  font-family: Inter; font-size: 8px; letter-spacing: .14em;
  color: var(--muted2); margin-left: 8px; text-transform: uppercase;
  font-style: normal;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  background: rgba(19,19,26,.9);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--white);
  font-family: Inter; font-size: 13px; font-weight: 300;
  padding: 14px 16px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  -webkit-font-smoothing: antialiased;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(255,180,58,.45);
  box-shadow: 0 0 0 1px rgba(255,180,58,.1), 0 0 24px rgba(255,180,58,.06);
}
input::placeholder, textarea::placeholder { color: var(--muted2); font-weight: 300; }
textarea { resize: vertical; min-height: 110px; }
select option { background: var(--deep); color: var(--white); }

.field-hint {
  font-family: Inter; font-size: 11px; color: var(--muted2);
  line-height: 1.6; margin-top: 7px;
}
.field-error {
  font-family: Inter; font-size: 11px; color: var(--error);
  margin-top: 6px; display: none;
}
.field-group.has-error input,
.field-group.has-error textarea,
.field-group.has-error select {
  border-color: rgba(220,80,80,.5);
}
.field-group.has-error .field-error { display: block; }

/* Character counter */
.char-count {
  font-family: Inter; font-size: 10px; color: var(--muted2);
  text-align: right; margin-top: 5px;
}

/* ═══ FILE UPLOAD ═══ */
.upload-zone {
  border: 1px dashed rgba(255,180,58,.3);
  padding: 32px 24px;
  text-align: center;
  background: rgba(255,180,58,.03);
  cursor: pointer;
  transition: all .25s;
  position: relative;
}
.upload-zone:hover { border-color: var(--gold); background: rgba(255,180,58,.06); }
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.upload-icon { font-size: 28px; display: block; margin-bottom: 10px; }
.upload-label { font-family: Oswald; font-size: 18px; color: var(--white); margin-bottom: 6px; }
.upload-sub { font-family: Inter; font-size: 11px; color: var(--muted2); }
.upload-preview {
  display: none;
  margin-top: 16px;
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--card);
  align-items: center;
  gap: 14px;
}
.upload-preview.visible { display: flex; }
.upload-thumb {
  width: 48px; height: 48px; object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.upload-filename { font-family: Inter; font-size: 12px; color: var(--white); flex: 1; word-break: break-all; }
.upload-remove {
  font-family: Inter; font-size: 10px; color: var(--muted2);
  cursor: pointer; padding: 4px 8px; border: 1px solid var(--line);
  transition: .2s; flex-shrink: 0;
}
.upload-remove:hover { border-color: var(--error); color: var(--error); }

/* ═══ RADIO / TOGGLE ═══ */
.toggle-group { display: flex; gap: 0; }
.toggle-btn {
  flex: 1; padding: 12px 16px;
  background: var(--card); border: 1px solid rgba(255,255,255,.08);
  color: var(--muted2); font-family: Inter; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: all .2s; text-align: center;
}
.toggle-btn:not(:last-child) { border-right: none; }
.toggle-btn.selected {
  background: var(--gold-low); border-color: var(--gold-mid);
  color: var(--gold);
}

/* ═══ CHECKBOX ═══ */
.check-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border: 1px solid rgba(255,255,255,.06);
  background: var(--card); margin-bottom: 10px;
  transition: border-color .2s;
}
.check-item:hover { border-color: var(--line); }
.check-item input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px; flex-shrink: 0;
  accent-color: var(--gold); margin-top: 1px;
  cursor: pointer;
}
.check-text { font-family: Inter; font-size: 12px; color: var(--muted); line-height: 1.6; }
.check-text strong { color: var(--white); font-weight: 400; }

/* ═══ CAST/CREW REPEATER ═══ */
.crew-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.crew-row {
  display: grid; grid-template-columns: 1fr 1fr 36px; gap: 10px; align-items: start;
}
.crew-remove {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.07); background: transparent;
  color: var(--muted2); font-size: 16px; cursor: pointer; transition: .2s;
  margin-top: 22px; /* align with input top */
  flex-shrink: 0;
}
.crew-remove:hover { border-color: var(--error); color: var(--error); }
@media(max-width:500px) { .crew-row { grid-template-columns: 1fr 1fr 36px; } }

/* Add crew btn */
.add-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: Inter; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-mid); padding: 10px 18px;
  background: var(--gold-low); cursor: pointer; transition: .2s;
}
.add-btn:hover { background: rgba(255,180,58,.12); border-color: var(--gold); }

/* ═══ SOCIAL LINKS ═══ */
.social-inputs { display: flex; flex-direction: column; gap: 10px; }
.social-row { display: grid; grid-template-columns: 100px 1fr; gap: 0; }
.social-platform {
  background: rgba(255,180,58,.07); border: 1px solid rgba(255,180,58,.15);
  border-right: none; padding: 14px 12px;
  font-family: Inter; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center;
}

/* ═══ SUBTITLE TAGS ═══ */
.tag-input-wrap {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(19,19,26,.9);
  padding: 10px 12px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 50px;
  cursor: text; transition: border-color .25s;
}
.tag-input-wrap:focus-within { border-color: rgba(255,180,58,.45); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-low); border: 1px solid var(--gold-mid);
  color: var(--gold); font-family: Inter; font-size: 10px;
  letter-spacing: .1em; padding: 4px 10px;
}
.tag-x { cursor: pointer; opacity: .6; transition: opacity .2s; }
.tag-x:hover { opacity: 1; }
.tag-input {
  border: none !important; background: transparent !important;
  padding: 4px 4px !important; min-width: 120px;
  flex: 1; font-size: 13px !important;
  box-shadow: none !important;
}
.tag-input:focus { box-shadow: none !important; }

/* ═══ SECTION DIVIDER ═══ */
.sec-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,180,58,.14), transparent);
  margin: 32px 0;
}

/* ═══ NAV BUTTONS ═══ */
.form-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
  gap: 14px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: Inter; font-size: 11px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 14px 28px; cursor: pointer; border: 1px solid transparent;
  transition: all .3s; background: none; text-decoration: none;
}
.btn-primary { background: var(--gold); color: #000; border-color: var(--gold); box-shadow: 0 0 28px rgba(255,180,58,.18); }
.btn-primary:hover { background: #ffc35c; box-shadow: 0 0 48px rgba(255,180,58,.32); transform: translateY(-1px); }
.btn-outline { color: var(--white); border-color: rgba(255,255,255,.15); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { color: var(--muted2); border-color: transparent; padding-left: 0; }
.btn-ghost:hover { color: var(--white); }
.btn-xl { padding: 18px 48px; font-size: 12px; letter-spacing: .24em; }

/* ═══ SAVE DRAFT TOAST ═══ */
.draft-bar {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  display: flex; align-items: center; gap: 12px;
  background: var(--deep); border: 1px solid var(--line);
  padding: 12px 18px;
  font-family: Inter; font-size: 11px; color: var(--muted2);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  transform: translateY(80px); opacity: 0;
  transition: all .35s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.draft-bar.show { transform: none; opacity: 1; pointer-events: auto; }
.draft-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .7; }

/* ═══ REVIEW SECTION ═══ */
#section-review .review-card {
  background: linear-gradient(145deg, rgba(19,19,26,.98), rgba(11,11,15,.99));
  border: 1px solid var(--line);
  padding: 28px 28px;
  margin-bottom: 20px; position: relative;
}
#section-review .review-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
}
.review-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.05);
}
.review-section-label {
  font-family: Inter; font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.review-edit {
  font-family: Inter; font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted2); cursor: pointer; border: 1px solid rgba(255,255,255,.07);
  padding: 5px 12px; background: transparent; transition: .2s;
}
.review-edit:hover { border-color: var(--gold); color: var(--gold); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:580px) { .review-grid { grid-template-columns: 1fr; } }
.review-item label { font-size: 8px; color: var(--muted2); margin-bottom: 4px; letter-spacing: .18em; }
.review-item .rv { font-family: Inter; font-size: 13px; color: var(--white); font-weight: 300; }
.review-item .rv-empty { color: var(--muted2); font-style: italic; font-size: 12px; }
.review-poster-thumb { width: 64px; height: 96px; object-fit: cover; border: 1px solid var(--line); }

/* ═══ CONFIRMATION STATE ═══ */
#submission-result {
  max-width: 640px; margin: 80px auto; padding: 0 24px; text-align: center;
  display: none;
}
.result-card {
  background: linear-gradient(145deg, rgba(19,19,26,.98), rgba(11,11,15,.99));
  border: 1px solid var(--line); padding: 56px 48px; position: relative;
}
.result-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.result-icon { font-size: 48px; display: block; margin-bottom: 24px; }
.result-title {
  font-family: Oswald; font-size: clamp(32px,5vw,48px);
  font-weight: 300; color: var(--white); letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 10px;
}
.result-sub { font-family: Inter; font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 28px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,180,58,.3); padding: 8px 20px;
  background: rgba(255,180,58,.07); margin-bottom: 28px;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;}50%{opacity:.35;} }
.status-text { font-family: Inter; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.result-note { font-family: Inter; font-size: 11px; color: var(--muted2); line-height: 1.7; margin-bottom: 32px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ═══ LOADING OVERLAY ═══ */
.submit-loading {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(11,11,15,.88); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; flex-direction: column; gap: 20px;
  text-align: center;
}
.submit-loading.active { display: flex; }
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,180,58,.15);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-family: Oswald; font-size: 22px; font-style: italic;
  color: var(--white); letter-spacing: .08em;
}

/* ═══ INLINE AUTH BANNER ═══ */
.auth-banner {
  background: rgba(255,180,58,.07); border: 1px solid var(--gold-mid);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.auth-banner-icon { color: var(--gold); font-size: 16px; }
.auth-banner-text { font-family: Inter; font-size: 12px; color: var(--muted); }
.auth-banner-text span { color: var(--gold); font-weight: 400; }

/* ═══ FOOTER ═══ */
footer {
  background: var(--panel); border-top: 1px solid var(--line);
  padding: 40px 32px; text-align: center;
  font-family: Inter; font-size: 12px; color: var(--muted);
  letter-spacing: .1em; position: relative; z-index: 1;
}

/* ═══ RESPONSIVE ═══ */
@media(max-width:480px) {
  .form-nav { flex-direction: column; gap: 10px; }
  .form-nav .btn { width: 100%; justify-content: center; }
  .auth-card { padding: 36px 24px; }
  #form-wrap { padding: 32px 16px 100px; }
}
