/* Candidate journey (application → written test → Discord / Academy).
   Same look as the pilot checklist: dark surfaces, hairline borders, one yellow
   accent, mono numbers, big tap targets. Loaded after every other stylesheet. */

.rx-app, .rx-apply, .rx-dialog-backdrop {
  --rx-bg: #16171a; --rx-bg-2: #1b1c1f; --rx-panel: #202123; --rx-panel-2: #2a2b2f;
  --rx-line: #34363b; --rx-line-2: #44464c; --rx-text: #f2f3f5; --rx-text-2: #c9cbd0; --rx-muted: #9a9ca3; --rx-dim: #5b5e66;
  --rx-yellow: #f1c933; --rx-yellow-2: #ffd95e; --rx-green: #3ccf7a; --rx-amber: #ffb547; --rx-red: #ff5d5d; --rx-discord: #5865f2;
  --rx-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--rx-text);
}
.rx-app { min-height: 100svh; background: radial-gradient(1000px 420px at 50% -12%, rgba(241, 201, 51, 0.07), transparent 65%), var(--rx-bg); }
.rx-app svg, .rx-apply svg, .rx-dialog svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- Header with step tracker ---------- */
.rx-header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; min-height: 76px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(22, 23, 26, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rx-line);
}
@media (min-width: 1000px) { .rx-header { padding-left: 32px; padding-right: 32px; } }
.rx-logo img { height: 30px; width: auto; display: block; }
.rx-header-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.rx-ghost-btn { border: 1px solid var(--rx-line); background: transparent; color: var(--rx-muted); border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rx-ghost-btn:hover { color: var(--rx-text); border-color: var(--rx-line-2); }

.rx-steps-track { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; flex: 1 1 auto; max-width: 1000px; }
.rx-steps-track li { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rx-step-bar { display: block; height: 8px; border-radius: 8px; background: var(--rx-panel-2); overflow: hidden; margin-bottom: 7px; }
.rx-step-bar i { display: block; height: 100%; border-radius: 8px; background: var(--rx-yellow); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.rx-steps-track small { font-family: var(--rx-mono) !important; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rx-dim); }
.rx-steps-track strong { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-steps-track strong svg { width: 13px !important; height: 13px !important; flex: 0 0 auto; }
.rx-steps-track li.is-done .rx-step-bar i { background: var(--rx-green); }
.rx-steps-track li.is-done strong { color: var(--rx-text-2); }
.rx-steps-track li.is-done strong svg { color: var(--rx-green); }
.rx-steps-track li.is-current small { color: var(--rx-yellow); }
.rx-steps-track li.is-current strong { color: var(--rx-text); }
.rx-steps-track li.is-failed .rx-step-bar i { background: var(--rx-red); }
.rx-steps-track li.is-failed small, .rx-steps-track li.is-failed strong { color: var(--rx-red); }
@media (max-width: 760px) {
  .rx-header { gap: 10px; flex-wrap: wrap; }
  .rx-logo img { height: 26px; }
  .rx-steps-track { order: 3; width: 100%; gap: 8px; }
  .rx-steps-track strong { font-size: 10.5px; letter-spacing: 0.03em; }
  .rx-ghost-btn { padding: 6px 10px; font-size: 12px; }
}

/* ---------- Layout ---------- */
.rx-main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 44px 24px 96px; }
@media (min-width: 1000px) { .rx-main { padding-left: 32px; padding-right: 32px; } }
.rx-main.is-wide { max-width: 1200px; }
@media (max-width: 760px) { .rx-main { padding-top: 28px; } }
.rx-stack { display: flex; flex-direction: column; gap: 18px; }
.rx-stack > .rx-title { margin-top: -6px; }
.rx-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rx-eyebrow svg { width: 15px !important; height: 15px !important; }
.rx-eyebrow.is-yellow { color: var(--rx-yellow); } .rx-eyebrow.is-green { color: var(--rx-green); }
.rx-eyebrow.is-red { color: var(--rx-red); } .rx-eyebrow.is-amber { color: var(--rx-amber); }
.rx-title { margin: 0; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; color: var(--rx-text); }
.rx-lead { margin: 0; color: var(--rx-text-2); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; max-width: 760px; }
.rx-muted { margin: 0; color: var(--rx-muted); font-size: 14px; line-height: 1.6; }
.rx-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rx-grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.rx-grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.rx-card { background: var(--rx-panel); border: 1px solid var(--rx-line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.rx-card.is-warning { border-color: rgba(255, 181, 71, 0.35); background: linear-gradient(180deg, rgba(255, 181, 71, 0.05), transparent 40%), var(--rx-panel); }
.rx-card-title { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; color: var(--rx-text); }
.rx-card-title svg { color: var(--rx-amber); }

.rx-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.rx-tile { display: flex; flex-direction: column; gap: 2px; padding: 13px 15px; border: 1px solid var(--rx-line); border-radius: 12px; background: var(--rx-bg-2); min-width: 0; }
.rx-tile .k { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rx-muted); }
.rx-tile .v { font-family: var(--rx-mono) !important; font-size: 19px; font-weight: 700; color: var(--rx-yellow); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-tile .s { font-size: 12px; color: var(--rx-muted); }

/* ---------- Buttons ---------- */
.rx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--rx-line); background: var(--rx-panel); color: var(--rx-text);
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.rx-btn:active:not(:disabled) { transform: translateY(1px); }
.rx-btn:disabled { cursor: not-allowed; opacity: 1; background: var(--rx-panel-2) !important; border-color: var(--rx-line) !important; color: var(--rx-dim) !important; }
.rx-btn.is-primary { background: var(--rx-yellow); border-color: var(--rx-yellow); color: #111; }
.rx-btn.is-primary:hover:not(:disabled) { background: var(--rx-yellow-2); border-color: var(--rx-yellow-2); color: #111; }
.rx-btn.is-secondary { background: var(--rx-bg-2); color: var(--rx-text); }
.rx-btn.is-secondary:hover:not(:disabled) { border-color: var(--rx-muted); }
.rx-btn.is-ghost { background: transparent; color: var(--rx-text-2); }
.rx-btn.is-ghost:hover { color: var(--rx-text); border-color: var(--rx-line-2); }
.rx-btn.is-danger { background: var(--rx-red); border-color: var(--rx-red); color: #fff; }
.rx-btn.is-danger:hover:not(:disabled) { filter: brightness(1.08); }
.rx-btn.is-danger-ghost { background: transparent; border-color: rgba(255, 93, 93, 0.4); color: #ff9b9b; }
.rx-btn.is-danger-ghost:hover { background: rgba(255, 93, 93, 0.08); }
.rx-btn.is-discord { background: var(--rx-discord); border-color: var(--rx-discord); color: #fff; }
.rx-btn.is-discord:hover:not(:disabled) { filter: brightness(1.08); }
.rx-btn.is-block { width: 100%; }
.rx-btn .discord-brand-icon { width: 20px; height: 20px; }
.rx-link { display: inline-flex; align-items: center; gap: 6px; color: var(--rx-yellow); font-size: 13px; font-weight: 600; text-decoration: none; }
.rx-link svg { width: 14px !important; height: 14px !important; }
.rx-back { display: inline-flex; align-items: center; gap: 8px; color: var(--rx-text-2); font-size: 13px; font-weight: 600; padding: 7px 12px 7px 9px; border: 1px solid var(--rx-line); border-radius: 10px; text-decoration: none; }
.rx-back:hover { color: var(--rx-yellow); border-color: rgba(241, 201, 51, 0.5); }
.rx-back svg { width: 16px; height: 16px; }

.rx-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: rx-spin 0.7s linear infinite; flex: 0 0 auto; opacity: 0.8; }
@keyframes rx-spin { to { transform: rotate(360deg); } }
.rx-loading { min-height: 46vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--rx-muted); font-size: 15px; }
.rx-loading .rx-spinner { width: 34px; height: 34px; border-width: 3px; color: var(--rx-yellow); }
.rx-loading p { margin: 0; }

/* ---------- Notices ---------- */
.rx-notice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--rx-line); background: var(--rx-bg-2); font-size: 14px; line-height: 1.55; color: var(--rx-text-2); }
.rx-notice strong { display: block; color: var(--rx-text); margin-bottom: 2px; }
.rx-notice-icon { display: grid; place-items: center; padding-top: 1px; }
.rx-notice.is-danger { border-color: rgba(255, 93, 93, 0.4); background: rgba(255, 93, 93, 0.07); color: #ffc4c4; }
.rx-notice.is-danger .rx-notice-icon { color: var(--rx-red); }
.rx-notice.is-warning { border-color: rgba(255, 181, 71, 0.4); background: rgba(255, 181, 71, 0.07); color: #ffd9a1; }
.rx-notice.is-info .rx-notice-icon { color: var(--rx-yellow); }

/* ---------- Form fields ---------- */
.rx-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rx-field > label { display: flex; align-items: center; gap: 8px; color: var(--rx-text); font-size: 14px; font-weight: 700; }
.rx-field-n { font-family: var(--rx-mono) !important; color: var(--rx-yellow); font-size: 12px; }
.rx-badge { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rx-line); color: var(--rx-muted); }
.rx-lock { width: 14px !important; height: 14px !important; color: var(--rx-muted); }
.rx-input {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--rx-line-2); background: var(--rx-bg); transition: border-color 0.15s, box-shadow 0.15s;
}
.rx-input:focus-within { border-color: var(--rx-yellow); box-shadow: 0 0 0 3px rgba(241, 201, 51, 0.16); }
.rx-input.is-success { border-color: rgba(60, 207, 122, 0.6); }
.rx-input.is-error { border-color: rgba(255, 93, 93, 0.7); }
.rx-input.is-locked { background: var(--rx-bg-2); }
.rx-input input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; color: var(--rx-text); font-size: 16px; padding: 0; box-shadow: none; }
.rx-input input::placeholder { color: var(--rx-dim); }
.rx-input-icon { color: var(--rx-muted); }
.rx-input-state.is-error { color: var(--rx-red); }
.rx-affix { font-family: var(--rx-mono) !important; color: var(--rx-muted); font-size: 15px; font-weight: 700; }
.rx-callsign-row { display: flex; gap: 10px; }
.rx-callsign { flex: 1; }
.rx-callsign input { font-family: var(--rx-mono) !important; font-weight: 700; font-size: 18px; letter-spacing: 0.08em; max-width: 4.5em; text-align: center; }
.rx-field-hint { margin: 0; color: var(--rx-muted); font-size: 13px; }
.rx-field-status { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--rx-muted); }
.rx-field-status svg { width: 15px !important; height: 15px !important; margin-top: 2px; }
.rx-field-status .rx-spinner { width: 13px; height: 13px; margin-top: 3px; }
.rx-field-status.is-success { color: var(--rx-green); } .rx-field-status.is-error { color: #ff9b9b; } .rx-field-status.is-pending { color: var(--rx-text-2); }
.rx-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 15px; border-radius: 12px; border: 1px solid var(--rx-line); background: var(--rx-bg-2); cursor: pointer; color: var(--rx-text-2); font-size: 14px; line-height: 1.5; }
.rx-check input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: var(--rx-yellow); cursor: pointer; }
.rx-check:has(input:checked) { border-color: rgba(241, 201, 51, 0.5); color: var(--rx-text); }

/* ---------- Application page ---------- */
.rx-apply .rx-apply-step { margin-top: 22px; }
.rx-apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; padding-bottom: 96px; }
@media (max-width: 900px) { .rx-apply-layout { grid-template-columns: 1fr; } }
.rx-apply-form { gap: 22px; padding: 26px; position: relative; overflow: hidden; }
.rx-form-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rx-panel-2); }
.rx-form-progress span { display: block; height: 100%; background: var(--rx-yellow); transition: width 0.35s ease; }
.rx-form-foot { margin: -8px 0 0; text-align: center; color: var(--rx-muted); font-size: 13px; }
.rx-apply-aside { position: sticky; top: calc(var(--header-h, 64px) + 16px); display: flex; flex-direction: column; gap: 12px; }
.rx-next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.rx-next li { display: flex; gap: 12px; }
.rx-next li > span { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(241, 201, 51, 0.1); border: 1px solid rgba(241, 201, 51, 0.3); color: var(--rx-yellow); }
.rx-next strong { font-size: 14px; }
.rx-next p { margin: 2px 0 0; color: var(--rx-muted); font-size: 13px; line-height: 1.5; }
.rx-aside-note { margin: 0; color: var(--rx-muted); font-size: 12px; text-align: center; }
@media (max-width: 560px) { .rx-apply-form { padding: 20px; } .rx-callsign-row .rx-btn { padding: 0 14px; } }

/* ---------- Written test briefing ---------- */
.rx-bands { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rx-bands li { display: flex; gap: 12px; align-items: flex-start; }
.rx-band-score { font-family: var(--rx-mono) !important; font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 8px; flex: 0 0 64px; text-align: center; }
.rx-bands .is-success .rx-band-score { color: var(--rx-green); background: rgba(60, 207, 122, 0.1); }
.rx-bands .is-academy .rx-band-score { color: var(--rx-yellow); background: rgba(241, 201, 51, 0.1); }
.rx-bands .is-danger .rx-band-score { color: #ff9b9b; background: rgba(255, 93, 93, 0.1); }
.rx-bands strong { font-size: 14px; }
.rx-bands p, .rx-rules span { margin: 2px 0 0; color: var(--rx-muted); font-size: 13px; line-height: 1.5; }
.rx-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rx-rules li { display: flex; gap: 10px; align-items: flex-start; }
.rx-rules svg { color: var(--rx-amber); width: 16px !important; height: 16px !important; margin-top: 2px; }
.rx-start { flex-direction: column; }

/* ---------- Test ---------- */
.rx-clock { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--rx-line-2); background: var(--rx-bg-2); }
.rx-clock strong { font-family: var(--rx-mono) !important; font-size: 17px; font-variant-numeric: tabular-nums; }
.rx-clock svg { color: var(--rx-yellow); width: 16px !important; height: 16px !important; }
.rx-clock.is-urgent { border-color: rgba(255, 93, 93, 0.6); background: rgba(255, 93, 93, 0.1); color: #ffb3b3; animation: rx-pulse 1s ease-in-out infinite; }
.rx-clock.is-urgent svg { color: var(--rx-red); }
@keyframes rx-pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 93, 93, 0.12); } }
.rx-test-progress { display: flex; gap: 4px; margin-bottom: 26px; }
.rx-test-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--rx-panel-2); }
.rx-test-progress span.is-done { background: rgba(241, 201, 51, 0.55); }
.rx-test-progress span.is-current { background: var(--rx-yellow); }
.rx-question { display: flex; flex-direction: column; gap: 18px; animation: rx-in 0.28s ease both; user-select: none; -webkit-user-select: none; }
@keyframes rx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rx-question-n { margin: 0; font-family: var(--rx-mono) !important; font-weight: 700; color: var(--rx-yellow); font-size: 14px; }
.rx-question-n span { color: var(--rx-muted); }
.rx-question-text { margin: 0; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.35; font-weight: 700; }
.rx-options { display: flex; flex-direction: column; gap: 10px; }
.rx-option {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; text-align: left;
  border-radius: 14px; border: 1px solid var(--rx-line); background: var(--rx-panel); color: var(--rx-text); font-size: 16px; line-height: 1.45; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.rx-option:hover:not(:disabled) { border-color: var(--rx-line-2); background: #25262a; }
.rx-option:disabled { cursor: not-allowed; opacity: 0.6; }
.rx-option-letter { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; display: grid; place-items: center; font-family: var(--rx-mono) !important; font-weight: 700; font-size: 14px; border: 1px solid var(--rx-line-2); color: var(--rx-muted); }
.rx-option.is-selected { border-color: var(--rx-yellow); background: linear-gradient(90deg, rgba(241, 201, 51, 0.1), rgba(241, 201, 51, 0.03)); }
.rx-option.is-selected .rx-option-letter { background: var(--rx-yellow); border-color: var(--rx-yellow); color: #111; }
.rx-question-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.rx-kbd-hint { margin: 0; color: var(--rx-muted); font-size: 13px; }
.rx-kbd-hint kbd { font-family: var(--rx-mono) !important; font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--rx-line-2); background: var(--rx-bg-2); color: var(--rx-text-2); }
@media (max-width: 760px) { .rx-kbd-hint { display: none; } .rx-question-foot .rx-btn { width: 100%; } }
.rx-integrity { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; width: min(560px, calc(100vw - 24px)); display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(255, 181, 71, 0.5); background: rgba(40, 32, 18, 0.95); backdrop-filter: blur(10px); color: #ffd9a1; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.rx-integrity.is-final { border-color: rgba(255, 93, 93, 0.6); background: rgba(48, 20, 20, 0.95); color: #ffc4c4; }
.rx-integrity strong { display: block; color: var(--rx-text); font-size: 14px; }
.rx-integrity p { margin: 2px 0 0; font-size: 13px; }

/* ---------- Result ---------- */
.rx-score-hero { display: flex; gap: 24px; align-items: center; }
.rx-score-hero > div:last-child { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 640px) { .rx-score-hero { flex-direction: column; align-items: flex-start; } }
.rx-score-ring {
  --ring: var(--rx-yellow); flex: 0 0 132px; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--rx-bg) 78%, transparent 80% 100%), conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--rx-panel-2) 0);
}
.rx-score-hero.is-onboarding .rx-score-ring { --ring: var(--rx-green); }
.rx-score-hero.is-failed .rx-score-ring { --ring: var(--rx-red); }
.rx-score-ring strong { font-family: var(--rx-mono) !important; font-size: 34px; font-weight: 700; }
.rx-score-ring small { font-size: 16px; color: var(--rx-muted); }

/* ---------- Discord ---------- */
.rx-discord-head { display: flex; gap: 14px; align-items: flex-start; }
.rx-discord-head > div { display: flex; flex-direction: column; gap: 6px; }
.rx-discord-badge { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; display: grid; place-items: center; background: var(--rx-discord); color: #fff; }
.rx-discord-badge.is-done { background: var(--rx-green); color: #0e2a1a; }
.rx-discord-badge .discord-brand-icon, .rx-discord-badge svg { width: 24px !important; height: 24px !important; }
.rx-discord-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rx-discord-steps li { display: flex; align-items: center; gap: 10px; color: var(--rx-text-2); font-size: 14px; }
.rx-discord-steps li > span { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rx-line-2); font-family: var(--rx-mono) !important; font-size: 11px; font-weight: 700; color: var(--rx-muted); }
.rx-discord-steps li.is-done { color: var(--rx-text); }
.rx-discord-steps li.is-done > span { background: var(--rx-green); border-color: var(--rx-green); color: #0e2a1a; }
.rx-discord-steps li.is-done > span svg { width: 13px !important; height: 13px !important; }
.rx-discord-manual { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; border-top: 1px solid var(--rx-line); }

/* Discord rules dialog (existing component, restyled) */
.discord-rules-dialog { width: min(640px, calc(100vw - 24px)) !important; max-height: calc(100dvh - 32px) !important; padding: 0 !important; border: 1px solid #34363b !important; border-radius: 18px !important; background: #202123 !important; color: #f2f3f5 !important; }
.discord-rules-dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
.discord-rules-dialog header { padding: 18px 20px !important; border-bottom: 1px solid #34363b !important; }
.discord-rules-dialog h2 { font-size: 18px !important; text-transform: none !important; letter-spacing: 0 !important; }
.discord-rules-dialog .discord-rules-content { padding: 16px 20px !important; color: #c9cbd0 !important; font-size: 14px !important; line-height: 1.6 !important; }
.discord-rules-dialog .discord-rules-content h3 { color: #f1c933 !important; font-size: 12px !important; letter-spacing: 0.12em !important; text-transform: uppercase !important; }
.discord-rules-dialog footer { padding: 16px 20px 20px !important; border-top: 1px solid #34363b !important; display: flex; flex-direction: column; gap: 12px; }
.discord-rules-dialog footer button { min-height: 48px !important; border-radius: 12px !important; background: #f1c933 !important; color: #111 !important; font-weight: 700 !important; text-transform: none !important; }
.discord-rules-dialog footer button:disabled { background: #2a2b2f !important; color: #5b5e66 !important; }
.discord-rules-consent { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px !important; color: #c9cbd0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.discord-rules-consent input { width: 18px; height: 18px; accent-color: #f1c933; }

/* ---------- Pilot / Academy dashboard ---------- */
.rx-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 26px; border: 1px solid var(--rx-line); border-radius: 14px; background: var(--rx-bg-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.rx-tabs::-webkit-scrollbar { display: none; }
.rx-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 0; border-radius: 10px; background: transparent; color: var(--rx-muted); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; position: relative; }
.rx-tabs button svg { width: 16px !important; height: 16px !important; }
.rx-tabs button:hover:not(:disabled) { color: var(--rx-text); }
.rx-tabs button[aria-pressed="true"] { background: var(--rx-yellow); color: #111; }
.rx-tabs button:disabled { opacity: 0.45; cursor: not-allowed; }
.rx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rx-red); box-shadow: 0 0 0 3px rgba(255, 93, 93, 0.2); }
.rx-profile-head { display: flex; align-items: center; gap: 16px; }
.rx-profile-head > div:last-child { display: flex; flex-direction: column; gap: 6px; }
.rx-avatar { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; overflow: hidden; border: 2px solid var(--rx-line-2); background: var(--rx-panel-2); display: grid; place-items: center; color: var(--rx-yellow); font-size: 24px; font-weight: 700; }
.rx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rx-loss-list { list-style: none; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 93, 93, 0.06); border: 1px solid rgba(255, 93, 93, 0.25); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.rx-loss-list li { display: flex; gap: 8px; align-items: center; color: #ffc4c4; font-size: 14px; }
.rx-loss-list svg { color: var(--rx-red); width: 15px !important; height: 15px !important; }
.rx-link-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.rx-link-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--rx-line); background: var(--rx-panel); color: var(--rx-text); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.rx-link-card:hover { border-color: rgba(241, 201, 51, 0.55); transform: translateY(-2px); color: var(--rx-text); }
.rx-link-card strong { display: block; font-size: 15px; }
.rx-link-card small { display: block; margin-top: 3px; color: var(--rx-muted); font-size: 13px; line-height: 1.5; }
.rx-link-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(241, 201, 51, 0.1); border: 1px solid rgba(241, 201, 51, 0.3); color: var(--rx-yellow); }
.rx-link-arrow { margin-left: auto; color: var(--rx-muted); width: 15px !important; height: 15px !important; }
.rx-flight-panel { min-width: 0; }

/* ---------- Dialogs ---------- */
.rx-dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: rx-fade 0.2s ease both; }
@keyframes rx-fade { from { opacity: 0; } }
.rx-dialog { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 22px; border-radius: 18px; border: 1px solid var(--rx-line); background: var(--rx-panel); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); text-align: center; animation: rx-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes rx-pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.rx-dialog h2 { margin: 0; font-size: 21px; font-weight: 700; }
.rx-dialog p { margin: 0; color: var(--rx-text-2); font-size: 14px; line-height: 1.6; }
.rx-dialog-icon { width: 54px; height: 54px; margin: 0 auto 4px; border-radius: 16px; display: grid; place-items: center; background: rgba(241, 201, 51, 0.12); border: 1px solid rgba(241, 201, 51, 0.35); color: var(--rx-yellow); }
.rx-dialog-icon.is-danger { background: rgba(255, 93, 93, 0.12); border-color: rgba(255, 93, 93, 0.4); color: var(--rx-red); }
.rx-dialog-icon svg { width: 24px !important; height: 24px !important; }
.rx-dialog-error { color: #ff9b9b !important; }
.rx-dialog-actions { display: flex; gap: 10px; margin-top: 4px; }
.rx-dialog-actions .rx-btn { flex: 1; }
@media (max-width: 480px) { .rx-dialog-actions { flex-direction: column-reverse; } }

@media (prefers-reduced-motion: reduce) { .rx-question, .rx-dialog, .rx-dialog-backdrop { animation: none; } .rx-clock.is-urgent { animation: none; } }

/* ---------- Screen transitions + centred compact screens ---------- */
.rx-screen { animation: rx-screen-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes rx-screen-in { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.rx-main.is-center { max-width: 760px; min-height: calc(100svh - 72px); display: grid; align-items: center; padding-top: 32px; padding-bottom: 56px; }
.rx-main.is-center .rx-screen { width: 100%; }
.rx-main.is-center .rx-stack { align-items: center; text-align: center; }
.rx-main.is-center .rx-lead, .rx-main.is-center .rx-muted { margin-left: auto; margin-right: auto; }
.rx-main.is-center .rx-actions { justify-content: center; }
.rx-main.is-center .rx-score-hero { flex-direction: column; align-items: center; text-align: center; }
.rx-main.is-center .rx-score-hero > div:last-child { align-items: center; }
.rx-main.is-center .rx-card, .rx-main.is-center .rx-connection { width: 100%; text-align: left; }
.rx-main.is-center .rx-card .rx-actions { justify-content: flex-start; }
.rx-main.is-center .rx-tiles { width: 100%; }
.rx-score-ring { animation: rx-ring 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
@property --pct { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes rx-ring { from { --pct: 0; } }
@media (prefers-reduced-motion: reduce) { .rx-screen, .rx-score-ring { animation: none; } }

@media (min-width: 761px) { .rx-header { gap: 32px; } .rx-header-end:empty { display: none; } }

/* Header content lines up with the page content below it. */
.rx-header { display: block !important; padding-top: 12px; padding-bottom: 12px; }
.rx-header-inner { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; min-height: 52px; }
.rx-header-inner.is-wide { max-width: 1200px; }
@media (min-width: 1000px) { .rx-header { padding-left: 0 !important; padding-right: 0 !important; } .rx-header-inner { padding: 0 32px; } }
@media (max-width: 760px) { .rx-header-inner { flex-wrap: wrap; gap: 10px; padding: 0; } }
.rx-header-end:empty { display: none; }

/* ---------- Check Flight ---------- */
.rx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.rx-pill svg { width: 14px !important; height: 14px !important; }
.rx-pill.is-green { color: var(--rx-green); background: rgba(60, 207, 122, 0.1); border-color: rgba(60, 207, 122, 0.3); }
.rx-pill.is-red { color: #ff8a8a; background: rgba(255, 93, 93, 0.1); border-color: rgba(255, 93, 93, 0.3); }
.rx-pill.is-yellow { color: var(--rx-yellow); background: rgba(241, 201, 51, 0.1); border-color: rgba(241, 201, 51, 0.3); }
.rx-pill.is-blue { color: #7cb4ff; background: rgba(124, 180, 255, 0.1); border-color: rgba(124, 180, 255, 0.3); }
.rx-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rx-flight-list { display: flex; flex-direction: column; gap: 12px; }
.rx-flight-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rx-flight-n { color: var(--rx-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rx-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.rx-airport { display: flex; align-items: center; gap: 12px; }
.rx-airport.is-right { flex-direction: row-reverse; text-align: right; }
.rx-airport img { width: 34px; height: 34px; border-radius: 50%; }
.rx-airport strong { display: block; font-family: var(--rx-mono) !important; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.1; }
.rx-airport small { display: block; color: var(--rx-muted); font-size: 13px; }
.rx-route-line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--rx-line-2) 0 8px, transparent 8px 14px); display: grid; place-items: center; }
.rx-route-line svg { color: var(--rx-yellow); background: var(--rx-panel); padding: 0 6px; width: 30px !important; height: 20px !important; transform: rotate(45deg); }
.rx-route-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rx-route-meta span { font-family: var(--rx-mono) !important; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--rx-line); background: var(--rx-bg-2); color: var(--rx-text-2); }
.rx-route-meta span.is-flight { color: var(--rx-yellow); border-color: rgba(241, 201, 51, 0.35); }
.rx-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rx-checklist li { display: flex; gap: 8px; color: var(--rx-text-2); font-size: 14px; }
.rx-checklist svg { color: var(--rx-green); width: 16px !important; height: 16px !important; margin-top: 2px; }
.rx-feedback { padding: 14px; border-radius: 12px; border: 1px solid var(--rx-line); background: var(--rx-bg-2); }
.rx-feedback > div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rx-feedback span { font-size: 12px; font-weight: 700; }
.rx-feedback.is-good span { color: var(--rx-green); } .rx-feedback.is-okay span { color: var(--rx-yellow); } .rx-feedback.is-improve span, .rx-feedback.is-poor span { color: #ff8a8a; }
.rx-feedback p { margin: 0; color: var(--rx-text-2); font-size: 14px; line-height: 1.55; }
@media (max-width: 560px) { .rx-route { grid-template-columns: 1fr; } .rx-route-line { display: none; } .rx-airport.is-right { flex-direction: row; text-align: left; } }

/* ---------- Pilot dashboard tabs: same style as the Check Flight tab ---------- */
.rx-academy-title { margin: 0; font-size: clamp(38px, 5vw, 56px); line-height: 0.98; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; color: #fff; }
.rx-academy-title span { display: block; font-weight: 400; }
.rx-academy .rx-lead { margin-top: 10px; }
.rx-academy .rx-profile-head { align-items: flex-start; }
.rx-academy .rx-avatar { width: 84px; height: 84px; flex-basis: 84px; font-size: 32px; }
.rx-academy .rx-card, .rx-academy .rx-tile, .rx-academy .rx-link-card {
  border: 0; border-left: 6px solid #f5ca2c; border-radius: 6px; background: #232427;
}
.rx-academy .rx-card { padding: 26px 28px; }
.rx-academy .rx-card-title { text-transform: uppercase; font-size: 16px; letter-spacing: 0.01em; }
.rx-academy .rx-tile { padding: 16px 18px; }
.rx-academy .rx-tile .k { color: #d2d2d1; }
.rx-academy .rx-tile .v { font-family: "Poppins", sans-serif !important; text-transform: uppercase; color: #fff; font-size: 22px; }
.rx-academy .rx-link-card { padding: 20px; }
.rx-academy .rx-link-card:hover { transform: none; border-left-color: #fff; }
.rx-academy .rx-link-card strong { text-transform: uppercase; }
.rx-academy .rx-link-icon { border-radius: 999px; background: #685a17; border: 0; color: #f5ca2c; }
.rx-academy .rx-btn { border-radius: 6px; text-transform: uppercase; font-size: 13px; min-width: 200px; }
.rx-academy .rx-btn.is-primary { background: #f5ca2c; border-color: #f5ca2c; }
.rx-academy .rx-input { border-radius: 6px; background: #1b1c1e; }
.rx-academy .rx-notice { border-radius: 6px; border: 0; border-left: 4px solid #f5ca2c; }
.rx-academy .rx-field > label { text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }

/* Check Flight route on phones: keep departure, line and arrival on one row. */
@media (max-width: 640px) {
  .pilot-flight-route { flex-wrap: nowrap !important; align-items: flex-start !important; gap: 8px !important; }
  .pilot-flight-airport { grid-template-columns: 26px auto !important; column-gap: 6px !important; flex: 0 1 auto; }
  .pilot-flight-flag { width: 26px !important; height: 26px !important; }
  .pilot-flight-airport strong { font-size: clamp(1.5rem, 8vw, 2rem) !important; }
  .pilot-flight-airport small { font-size: .7rem !important; white-space: normal !important; }
  .pilot-flight-route-line { flex: 1 1 auto; min-width: 36px; justify-content: center; min-height: 1.9rem !important; gap: 3px !important; }
  .pilot-flight-route-line i { width: 4px !important; height: 4px !important; }
  .pilot-flight-route-line svg { width: 18px !important; height: 18px !important; }
}

/* Check Flight confirmation: full-page blur (the CSS build strips the unprefixed property). */
.pilot-flight-confirm-backdrop { background: rgba(8, 9, 10, 0.55) !important; backdrop-filter: blur(12px) saturate(0.9); -webkit-backdrop-filter: blur(12px) saturate(0.9); }

/* ---------- Apply landing (Apply.jsx, view "landing") ---------- */
.rxl { padding-bottom: 88px; }
.rxl svg { width: 18px; height: 18px; flex: none; }
.rxl-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: center; }
@media (max-width: 960px) { .rxl-hero { grid-template-columns: 1fr; gap: 28px; } }
.rxl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.rxl-cta-meta { display: inline-flex; align-items: center; gap: 8px; color: #9a9ca3; font-size: 14px; }
.rxl-cta-meta svg { width: 16px; height: 16px; color: #f1c933; }
@media (max-width: 640px) { .rxl-cta .ui-btn { width: 100%; justify-content: center; } }
.rxl-label { margin: 0 0 14px; color: #f1c933; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rxl-needs { padding: 24px; border: 1px solid #34363b; border-radius: 20px; background: radial-gradient(400px 160px at 100% 0%, rgba(241, 201, 51, 0.1), transparent 70%), #202123; }
.rxl-needs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rxl-needs li { display: flex; align-items: center; gap: 14px; }
.rxl-needs li > span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(241, 201, 51, 0.1); border: 1px solid rgba(241, 201, 51, 0.3); color: #f1c933; }
.rxl-needs strong { display: block; color: #f2f3f5; font-size: 15px; }
.rxl-needs small { color: #9a9ca3; font-size: 13px; }

.rxl-section { padding-top: 72px; }
.rxl-head { margin-bottom: 22px; }
.rxl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.rxl-step { display: flex; flex-direction: column; padding: 22px; border: 1px solid #34363b; border-radius: 18px; background: #202123; transition: border-color 0.2s, transform 0.2s; }
.rxl-step:hover { border-color: rgba(241, 201, 51, 0.45); transform: translateY(-3px); }
.rxl-step-art { display: grid; place-items: center; height: 150px; margin-bottom: 18px; border-radius: 14px; background: radial-gradient(circle at 50% 60%, rgba(241, 201, 51, 0.12), transparent 65%), #1b1c1f; }
.rxl-step-art img { max-height: 120px; max-width: 80%; object-fit: contain; }
.rxl-step-n { color: #f1c933; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rxl-step h3 { margin: 6px 0 0; font-size: 19px; font-weight: 700; color: #f2f3f5; }
.rxl-step p { margin: 8px 0 0; color: #c9cbd0; font-size: 14px; line-height: 1.6; }
@media (max-width: 860px) { .rxl-steps { grid-template-columns: 1fr; } .rxl-step-art { height: 120px; } }

.rxl-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rxl-score { padding: 22px; border: 1px solid #34363b; border-radius: 18px; background: #202123; --tone: #3ccf7a; --fill: 100%; }
.rxl-score.is-academy { --tone: #f1c933; --fill: 72%; }
.rxl-score.is-retry { --tone: #ff7a7a; --fill: 40%; }
.rxl-score-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rxl-score-top b { font-family: "JetBrains Mono", monospace; font-size: 30px; color: var(--tone); }
.rxl-score-top span { color: #f2f3f5; font-weight: 700; font-size: 15px; text-align: right; }
.rxl-score i { display: block; height: 6px; margin: 14px 0; border-radius: 6px; background: #2a2b2f; overflow: hidden; }
.rxl-score i em { display: block; width: var(--fill); height: 100%; border-radius: 6px; background: var(--tone); }
.rxl-score p { margin: 0; color: #c9cbd0; font-size: 14px; }
@media (max-width: 860px) { .rxl-scores { grid-template-columns: 1fr; } }

.rxl-faq { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.rxl-faq details { border: 1px solid #34363b; border-radius: 14px; background: #202123; }
.rxl-faq details[open] { border-color: rgba(241, 201, 51, 0.4); }
.rxl-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: #f2f3f5; font-weight: 600; cursor: pointer; list-style: none; }
.rxl-faq summary::-webkit-details-marker { display: none; }
.rxl-faq summary svg { color: #9a9ca3; transition: transform 0.2s; }
.rxl-faq details[open] summary svg { transform: rotate(180deg); color: #f1c933; }
.rxl-faq details p { margin: 0; padding: 0 18px 16px; color: #c9cbd0; font-size: 14px; line-height: 1.6; }

.rxl-final { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 72px; padding: 28px; border: 1px solid rgba(241, 201, 51, 0.4); border-radius: 20px; background: radial-gradient(600px 200px at 0% 0%, rgba(241, 201, 51, 0.12), transparent 70%), #202123; }
.rxl-final h2 { margin: 0; font-size: 24px; color: #f2f3f5; }
.rxl-final p { margin: 6px 0 0; color: #c9cbd0; }
@media (max-width: 640px) { .rxl-final .ui-btn { width: 100%; justify-content: center; } }

/* ---------- Application form (Apply.jsx, #application) ---------- */
.rxa { padding-bottom: 88px; }
.rxa svg { width: 18px; height: 18px; flex: none; }
.rxa-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: #9a9ca3; font-size: 14px; font-weight: 600; }
.rxa-back:hover { color: #f1c933; }
.rxa-back svg { width: 16px; height: 16px; }
.rxa-track { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 520px; margin: 0 0 22px; padding: 0; }
.rxa-track li { display: flex; flex-direction: column; gap: 8px; color: #6f7178; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rxa-track i { height: 6px; border-radius: 6px; background: #2a2b2f; overflow: hidden; position: relative; }
.rxa-track li.is-current { color: #f1c933; }
.rxa-track li.is-current i::after { content: ""; position: absolute; inset: 0 60% 0 0; border-radius: 6px; background: #f1c933; }

.rxa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .rxa-layout { grid-template-columns: 1fr; } }
.rxa-form { display: flex; flex-direction: column; gap: 22px; padding: 28px; border: 1px solid #34363b; border-radius: 20px; background: #202123; }
@media (max-width: 640px) { .rxa-form { padding: 20px; } }
.rxa-field { display: flex; flex-direction: column; gap: 8px; }
.rxa-field label { display: flex; align-items: center; gap: 10px; color: #f2f3f5; font-size: 15px; font-weight: 600; }
.rxa-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #44464c; color: #9a9ca3; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.rxa-n svg { width: 14px; height: 14px; }
.rxa-field.is-done .rxa-n { border-color: #3ccf7a; background: #3ccf7a; color: #0f1a12; }
.rxa-input { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1px solid #44464c; border-radius: 12px; background: #1b1c1f; color: #9a9ca3; transition: border-color 0.15s, box-shadow 0.15s; }
.rxa-input:focus-within { border-color: #f1c933; box-shadow: 0 0 0 3px rgba(241, 201, 51, 0.15); }
.rxa-input.is-success { border-color: rgba(60, 207, 122, 0.6); }
.rxa-input.is-error { border-color: rgba(255, 93, 93, 0.7); }
.rxa-input input { flex: 1; min-width: 0; height: 50px; padding: 0; border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent !important; color: #f2f3f5; font: inherit; font-size: 16px; }
.rxa-input input::placeholder { color: #6f7178; }
.rxa-hint { margin: 0; color: #9a9ca3; font-size: 13px; }
.rxa-link { display: inline-flex; align-items: center; gap: 6px; color: #f1c933; font-size: 13px; font-weight: 600; }
.rxa-link svg { width: 14px; height: 14px; }
.rxa-callsign-row { display: flex; gap: 8px; }
.rxa-callsign { flex: 1; }
.rxa-affix { color: #9a9ca3; font-family: "JetBrains Mono", monospace; font-size: 15px; font-weight: 600; }
.rxa-callsign input { flex: 0 1 70px; font-family: "JetBrains Mono", monospace; font-size: 18px; font-weight: 700; letter-spacing: 0.1em; text-align: center; color: #f1c933; }
.rxa-suggest { min-height: 52px; }
.rxa-check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #34363b; border-radius: 12px; background: #1b1c1f; color: #c9cbd0; font-size: 14px; cursor: pointer; transition: border-color 0.2s; }
.rxa-check.is-on { border-color: rgba(60, 207, 122, 0.5); }
.rxa-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #f1c933; flex: none; }
.rxa-submit { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid #34363b; }
.rxa-submit > span { color: #9a9ca3; font-size: 13px; }
.rxa-submit .ui-btn:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 640px) { .rxa-submit .ui-btn { width: 100%; justify-content: center; } }

.rxa-aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--header-h, 64px) + 16px); }
@media (max-width: 960px) { .rxa-aside { position: static; } }
.rxa-card { padding: 22px; border: 1px solid #34363b; border-radius: 18px; background: #202123; }
.rxa-label { margin: 0 0 12px; color: #f1c933; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rxa-meter { height: 6px; margin-bottom: 14px; border-radius: 6px; background: #2a2b2f; overflow: hidden; }
.rxa-meter span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f1c933, #3ccf7a); transition: width 0.4s ease; }
.rxa-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rxa-checklist li { display: flex; align-items: center; gap: 10px; color: #9a9ca3; font-size: 14px; }
.rxa-checklist li > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #44464c; }
.rxa-checklist li > span svg { width: 12px; height: 12px; }
.rxa-checklist li.is-ok { color: #f2f3f5; }
.rxa-checklist li.is-ok > span { border-color: #3ccf7a; background: #3ccf7a; color: #0f1a12; }
.rxa-next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rxa-next li { display: flex; gap: 12px; }
.rxa-next li > span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(241, 201, 51, 0.1); color: #f1c933; }
.rxa-next li > span svg { width: 16px; height: 16px; }
.rxa-next strong { display: block; color: #f2f3f5; font-size: 14px; }
.rxa-next p { margin: 2px 0 0; color: #9a9ca3; font-size: 13px; }
.rxa-note { margin: 0; padding: 0 6px; color: #6f7178; font-size: 12px; }

/* Public recruitment pages: same background as the rest of the site, footer flush. */
.public-apply.rxl, .public-apply.rxa { background: #16171a !important; padding-bottom: 72px; }
.flex.min-h-dvh > .ui-footer, .min-h-dvh .ui-footer { margin-top: 0 !important; }

/* Application form: phone layout */
@media (max-width: 960px) { .rxa-layout { grid-template-columns: minmax(0, 1fr) !important; } }
.rxa-form, .rxa-aside, .rxa-field, .rxa-input { min-width: 0; }
@media (max-width: 640px) {
  .rxa .ui-page-hero { padding-top: 28px; }
  .rxa-track { gap: 6px; margin-bottom: 18px; }
  .rxa-track li { font-size: 10px; letter-spacing: 0.04em; }
  .rxa-form { gap: 20px; padding: 18px 16px; border-radius: 16px; }
  .rxa-field label { font-size: 14px; }
  .rxa-input { min-height: 50px; padding: 0 12px; }
  .rxa-callsign-row { gap: 6px; }
  .rxa-callsign { gap: 6px; }
  .rxa-callsign input { flex-basis: 54px; }
  .rxa-suggest { min-height: 50px; padding: 0 12px !important; }
  .rxa-check { padding: 12px; font-size: 13px; }
  .rxa-card { padding: 18px; border-radius: 16px; }
}
@media (max-width: 360px) { .rxa-suggest span, .rxa-suggest { font-size: 0; } .rxa-suggest svg { width: 18px; height: 18px; } }
.rxl-final.ui-container { width: calc(100% - 2 * var(--gutter, 16px)); max-width: calc(1200px - 2 * var(--gutter, 16px)); }
.rxl-final h2 { font-weight: 700; }
@media (max-width: 640px) { .rxl-final { padding: 22px 20px; border-radius: 16px; } }

/* ---------- Apply landing: "wow" hero ---------- */
.rxl-hero-wrap { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 120px; }
.rxl-hero-bg { position: absolute; inset: 0; z-index: -1; background: url(/assets/images/hero-flight-2.webp) center 40% / cover no-repeat; transform: scale(1.06); animation: rxl-drift 18s ease-in-out infinite alternate; }
.rxl-hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(14, 15, 18, 0.92) 0%, rgba(14, 15, 18, 0.7) 45%, rgba(14, 15, 18, 0.35) 100%),
  linear-gradient(180deg, rgba(22, 23, 26, 0) 55%, #16171a 100%); }
@keyframes rxl-drift { to { transform: scale(1.12) translateX(-1.5%); } }
.rxl-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; }
.rxl-hero-copy .ui-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.rxl-hero-copy .ui-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ccf7a; box-shadow: 0 0 0 0 rgba(60, 207, 122, 0.6); animation: rxl-pulse 2s infinite; }
@keyframes rxl-pulse { 70% { box-shadow: 0 0 0 10px rgba(60, 207, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 207, 122, 0); } }
.rxl-display { margin: 10px 0 18px; font-size: clamp(42px, 6.4vw, 78px); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; text-transform: uppercase; color: #fff; }
.rxl-display span { display: block; color: #f1c933; }
.rxl-hero-copy .ui-lead { max-width: 560px; color: #e2e4e8; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4); }
.rxl-cta-main { min-height: 54px; padding: 0 26px !important; font-size: 16px; box-shadow: 0 12px 30px rgba(241, 201, 51, 0.25); }
.rxl-cta-meta { color: #c9cbd0 !important; }

/* Boarding pass */
.rxl-pass { position: relative; padding: 22px; border-radius: 22px; background: linear-gradient(160deg, #f6d65a, #f1c933 55%, #e3b51c); color: #15161a; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); transform: rotate(3deg); animation: rxl-float 6s ease-in-out infinite; }
@keyframes rxl-float { 50% { transform: rotate(2deg) translateY(-10px); } }
.rxl-pass-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rxl-pass-brand { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.04em; text-transform: none; font-size: 14px; }
.rxl-pass-brand img { width: 22px; height: 22px; filter: brightness(0) saturate(100%); opacity: 0.85; }
.rxl-pass-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 22px 0 18px; }
.rxl-pass-route small, .rxl-pass-grid small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.rxl-pass-route b { display: block; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.rxl-pass-route span { font-size: 13px; font-weight: 600; }
.rxl-pass-route .is-end { text-align: right; }
.rxl-pass-plane { display: flex; align-items: center; gap: 6px; width: 90px; }
.rxl-pass-plane i { flex: 1; border-top: 2px dashed rgba(21, 22, 26, 0.45); }
.rxl .rxl-pass-plane svg { width: 22px; height: 22px; transform: rotate(45deg); }
.rxl-pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.rxl-pass-grid b { font-family: "JetBrains Mono", monospace; font-size: 15px; }
.rxl-pass-grid em { font-style: normal; padding: 0 2px; border-bottom: 2px solid #15161a; }
.rxl-pass-tear { position: relative; height: 0; margin: 20px -22px 16px; border-top: 2px dashed rgba(21, 22, 26, 0.35); }
.rxl-pass-tear::before, .rxl-pass-tear::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #16171a; }
.rxl-pass-tear::before { left: -11px; } .rxl-pass-tear::after { right: -11px; }
.rxl-pass-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 700; }
.rxl-barcode { width: 120px; height: 34px; background: repeating-linear-gradient(90deg, #15161a 0 2px, transparent 2px 4px, #15161a 4px 7px, transparent 7px 9px, #15161a 9px 10px, transparent 10px 13px); }

/* Requirements strip overlapping the hero */
.rxl-needs-row { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: -64px; }
.rxl-needs-row > div { display: flex; flex-direction: column; gap: 2px; padding: 18px; border: 1px solid #34363b; border-radius: 16px; background: rgba(32, 33, 35, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rxl-needs-row span { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 11px; background: rgba(241, 201, 51, 0.12); color: #f1c933; }
.rxl-needs-row strong { color: #f2f3f5; font-size: 15px; }
.rxl-needs-row small { color: #9a9ca3; font-size: 13px; }

.rxl-step, .rxl-score { position: relative; }
.rxl-step:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(241, 201, 51, 0.25); }

@media (max-width: 960px) {
  .rxl-hero { grid-template-columns: 1fr; gap: 40px; }
  .rxl-pass { max-width: 380px; transform: rotate(-2deg); }
  .rxl-needs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -48px; }
}
@media (max-width: 560px) {
  .rxl-hero-wrap { padding: 40px 0 96px; }
  .rxl-pass { padding: 18px; }
  .rxl-pass-route b { font-size: 32px; }
  .rxl-needs-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rxl-needs-row > div { padding: 14px; }
  .rxl-cta-main { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .rxl-hero-bg, .rxl-pass, .rxl-hero-copy .ui-eyebrow::before { animation: none; } }

/* Landing hero: professional pass (overrides the playful version above) */
.rxl-hero-bg { animation-duration: 40s; }
.rxl-hero-copy .ui-eyebrow::before { animation: none; box-shadow: 0 0 0 4px rgba(60, 207, 122, 0.18); }
.rxl-display { text-transform: none; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
.rxl-display span { display: inline; }
.rxl-pass {
  transform: none; animation: none; padding: 24px; border-radius: 20px; color: #f2f3f5;
  background: linear-gradient(160deg, rgba(42, 43, 47, 0.82), rgba(24, 25, 28, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform 0.4s ease, border-color 0.4s ease;
}
.rxl-pass::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 20px 20px 0 0; background: #f1c933; }
.rxl-pass:hover { transform: translateY(-4px); border-color: rgba(241, 201, 51, 0.35); }
.rxl-pass-brand { font-size: 13px; color: #f2f3f5; }
.rxl-pass-brand img { filter: none; opacity: 1; }
.rxl-pass-tag { color: #9a9ca3; }
.rxl-pass-route b { font-size: 36px; color: #fff; }
.rxl-pass-route span { color: #c9cbd0; }
.rxl-pass-route small, .rxl-pass-grid small { color: #9a9ca3; opacity: 1; }
.rxl-pass-plane { color: #f1c933; }
.rxl-pass-plane i { border-top-color: rgba(241, 201, 51, 0.5); }
.rxl-pass-grid b { color: #f2f3f5; font-size: 14px; }
.rxl-pass-grid b.is-ok { color: #3ccf7a; }
.rxl-pass-tear { border-top-color: rgba(255, 255, 255, 0.14); }
.rxl-pass-tear::before, .rxl-pass-tear::after { background: #121316; border: 1px solid rgba(255, 255, 255, 0.1); }
.rxl-pass-foot { color: #9a9ca3; }
.rxl-barcode { background: repeating-linear-gradient(90deg, #c9cbd0 0 2px, transparent 2px 4px, #c9cbd0 4px 7px, transparent 7px 9px, #c9cbd0 9px 10px, transparent 10px 13px); opacity: 0.7; }
.rxl-cta-main { box-shadow: 0 10px 26px rgba(241, 201, 51, 0.18); }
@media (max-width: 960px) { .rxl-pass { transform: none; } }
.rxl-display span { white-space: nowrap; }

/* ---------- Booking theme: itinerary, fares, FAQ, live pass ---------- */
.rxl-itin { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid #34363b; border-radius: 20px; background: #202123; overflow: hidden; }
.rxl-itin li { display: grid; grid-template-columns: 90px 150px minmax(0, 1fr) 110px; align-items: center; gap: 20px; padding: 22px 26px; border-top: 1px solid #2f3136; transition: background 0.2s; }
.rxl-itin li:first-child { border-top: 0; }
.rxl-itin li:hover { background: #24252a; }
.rxl-itin-time b { display: block; font-family: "JetBrains Mono", monospace; font-size: 26px; font-weight: 700; color: #f2f3f5; letter-spacing: 0.04em; }
.rxl-itin-time small { color: #f1c933; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rxl-itin-line { position: relative; display: flex; align-items: center; gap: 8px; }
.rxl-itin-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid #f1c933; background: #16171a; }
.rxl-itin-line i { flex: 1; border-top: 2px dashed rgba(241, 201, 51, 0.45); }
.rxl-itin-line em { position: absolute; left: 22px; top: -22px; font-style: normal; color: #9a9ca3; font-family: "JetBrains Mono", monospace; font-size: 12px; }
.rxl-itin-body h3 { margin: 0; font-size: 18px; font-weight: 700; color: #f2f3f5; }
.rxl-itin-body p { margin: 4px 0 0; color: #c9cbd0; font-size: 14px; line-height: 1.55; }
.rxl-itin img { width: 100%; max-height: 80px; object-fit: contain; }
@media (max-width: 860px) {
  .rxl-itin li { grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; padding: 18px; }
  .rxl-itin-line { display: none; }
  .rxl-itin img { display: none; }
}

.rxl-fares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rxl-fare { --tone: #3ccf7a; display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid #34363b; border-radius: 18px; background: #202123; position: relative; overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.rxl-fare::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tone); }
.rxl-fare:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 50%, #34363b); }
.rxl-fare.is-academy { --tone: #f1c933; }
.rxl-fare.is-retry { --tone: #ff7a7a; }
.rxl-fare header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rxl-fare header span { color: var(--tone); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.rxl-fare header b { font-family: "JetBrains Mono", monospace; font-size: 26px; color: #f2f3f5; }
.rxl-fare-route { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #1b1c1f; font-size: 12px; font-weight: 700; color: #c9cbd0; text-transform: uppercase; letter-spacing: 0.04em; }
.rxl-fare-route i { flex: 1; border-top: 2px solid var(--tone); opacity: 0.7; }
.rxl-fare-route i.is-cut { border-top-style: dashed; }
.rxl-fare-route em { font-style: normal; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone); white-space: nowrap; }
.rxl-fare p { margin: 0; color: #c9cbd0; font-size: 14px; }
@media (max-width: 860px) { .rxl-fares { grid-template-columns: 1fr; } }

/* FAQ: full width, one open at a time, animated */
.rxl-faq { max-width: none !important; }
.rxl-faq-item { border: 1px solid #34363b; border-radius: 14px; background: #202123; transition: border-color 0.25s, background 0.25s; }
.rxl-faq-item.is-open { border-color: rgba(241, 201, 51, 0.45); background: #222327; }
.rxl-faq-item > button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 18px 20px; border: 0; background: transparent; color: #f2f3f5; font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.rxl-faq-item > button svg { color: #9a9ca3; transition: transform 0.3s ease, color 0.3s; }
.rxl-faq-item.is-open > button svg { transform: rotate(180deg); color: #f1c933; }
.rxl-faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.rxl-faq-item.is-open .rxl-faq-panel { grid-template-rows: 1fr; }
.rxl-faq-panel > div { overflow: hidden; }
.rxl-faq-panel p { margin: 0; padding: 0 20px 18px; color: #c9cbd0; font-size: 15px; line-height: 1.6; opacity: 0; transform: translateY(-4px); transition: opacity 0.3s ease, transform 0.3s ease; }
.rxl-faq-item.is-open .rxl-faq-panel p { opacity: 1; transform: none; }

/* Boarding pass: passenger line + live check-in meter */
.rxl-pass-pax { margin-top: 18px; }
.rxl-pass-pax small { display: block; color: #9a9ca3; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rxl-pass-pax b { display: block; font-size: 20px; font-weight: 800; letter-spacing: 0.02em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rxl-pass-pax span { color: #f1c933; font-family: "JetBrains Mono", monospace; font-size: 13px; }
.rxl-pass-route { margin-top: 16px !important; }
.rxl-pass-grid b.is-wait { color: #f1c933; }
.rxl-pass-meter { height: 4px; margin-top: 16px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.rxl-pass-meter span { display: block; height: 100%; background: linear-gradient(90deg, #f1c933, #3ccf7a); transition: width 0.4s ease; }
.rxl-pass.is-live { position: relative; }
.rxl-pass.is-live .rxl-pass-tear::before, .rxl-pass.is-live .rxl-pass-tear::after { background: #16171a; }
.rxa-aside .rxa-checklist { margin: 4px 6px 0; }
.rxa-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #34363b; }
.rxa-form-head span { color: #f2f3f5; font-size: 18px; font-weight: 700; }
.rxa-form-head small { color: #9a9ca3; font-size: 12px; }

/* Landing hero without photo: dark background, soft glow, faint dot grid */
.rxl-hero-bg { transform: none !important; animation: none !important;
  background:
    radial-gradient(700px 380px at 82% 38%, rgba(241, 201, 51, 0.14), transparent 70%),
    radial-gradient(600px 320px at 8% 10%, rgba(124, 180, 255, 0.06), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px) 0 0 / 22px 22px,
    #16171a !important; }
.rxl-hero-bg::after { background: linear-gradient(180deg, rgba(22, 23, 26, 0) 60%, #16171a 100%) !important; }
.rxl-hero-copy .ui-lead { text-shadow: none; }
.rxl-pass-top { gap: 10px; }
.rxl-pass-tag, .rxl-pass-brand { white-space: nowrap; }
@media (max-width: 480px) { .rxl-pass-brand { font-size: 12px; } .rxl-pass-tag { font-size: 10px; } }
/* Lighter hero type */
.rxl-display { font-size: clamp(36px, 4.6vw, 58px) !important; font-weight: 600 !important; line-height: 1.1 !important; letter-spacing: -0.025em !important; margin: 12px 0 16px !important; }
.rxl-display span { font-weight: 600; }
.rxl-hero-copy .ui-lead { max-width: 480px; font-size: 18px; color: #c9cbd0; }

/* ---------- Landing v3: standard page title + wide ticket ---------- */
.rxl-top { padding-bottom: 8px; }
.rxl-ticket-wrap { position: relative; padding-top: 12px; }
.rxl-ticket-wrap::before { content: ""; position: absolute; inset: -40px -10% -40px; z-index: -1; background: radial-gradient(600px 260px at 70% 50%, rgba(241, 201, 51, 0.1), transparent 70%), radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.2px) 0 0 / 22px 22px; mask-image: radial-gradient(closest-side, #000 60%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); pointer-events: none; }
.rxl-ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); background: linear-gradient(160deg, #26272b, #1c1d20); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.rxl-ticket::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #f1c933; z-index: 1; }
.rxl-ticket-main { padding: 28px 32px; color: #f2f3f5; }
.rxl-ticket-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: end; margin: 26px 0 24px; }
.rxl-ticket-pax small, .rxl-ticket-grid small { display: block; color: #9a9ca3; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rxl-ticket-pax b { display: block; margin-top: 4px; font-size: 26px; font-weight: 800; letter-spacing: 0.02em; }
.rxl-ticket-pax span { color: #f1c933; font-family: "JetBrains Mono", monospace; font-size: 13px; }
.rxl-ticket .rxl-pass-route { margin: 0 !important; }
.rxl-ticket .rxl-pass-route b { font-size: 48px; color: #fff; }
.rxl-ticket .rxl-pass-route span { color: #c9cbd0; }
.rxl-ticket .rxl-pass-route small { color: #9a9ca3; opacity: 1; }
.rxl-ticket .rxl-pass-plane { width: auto; flex: 1; color: #f1c933; }
.rxl-ticket .rxl-pass-plane i { border-top-color: rgba(241, 201, 51, 0.5); }
.rxl-ticket .rxl-pass-route { grid-template-columns: auto minmax(60px, 1fr) auto; }
.rxl-ticket-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.rxl-ticket-grid b { display: block; margin-top: 4px; font-family: "JetBrains Mono", monospace; font-size: 15px; color: #f2f3f5; white-space: nowrap; }
.rxl-ticket-grid b.is-ok { color: #3ccf7a; }
.rxl-ticket .rxl-pass-top { color: #9a9ca3; }
.rxl-ticket .rxl-pass-brand { color: #f2f3f5; font-size: 14px; }
.rxl-ticket .rxl-pass-brand img { filter: none; opacity: 1; }

.rxl-ticket-stub { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 26px; background: rgba(241, 201, 51, 0.06); border-left: 2px dashed rgba(255, 255, 255, 0.14); }
.rxl-ticket-stub::before, .rxl-ticket-stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: #16171a; border: 1px solid rgba(255, 255, 255, 0.1); }
.rxl-ticket-stub::before { top: -13px; } .rxl-ticket-stub::after { bottom: -13px; }
.rxl-ticket-stub .rxl-label { margin: 0; }
.rxl-ticket-stub ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rxl-ticket-stub li { display: flex; align-items: center; gap: 10px; color: #e2e4e8; font-size: 14px; }
.rxl .rxl-ticket-stub li svg { width: 16px; height: 16px; color: #3ccf7a; }
.rxl-ticket-cta { justify-content: center; min-height: 50px; margin-top: auto; }
.rxl-ticket-stub .rxl-barcode { width: 100%; height: 30px; opacity: 0.5; background: repeating-linear-gradient(90deg, #c9cbd0 0 2px, transparent 2px 4px, #c9cbd0 4px 7px, transparent 7px 9px, #c9cbd0 9px 10px, transparent 10px 13px); }

@media (max-width: 1040px) { .rxl-ticket-body { grid-template-columns: 1fr; gap: 18px; } .rxl-ticket-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .rxl-ticket { grid-template-columns: 1fr; }
  .rxl-ticket-main { padding: 22px 20px; }
  .rxl-ticket .rxl-pass-route b { font-size: 36px; }
  .rxl-ticket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rxl-ticket-stub { border-left: 0; border-top: 2px dashed rgba(255, 255, 255, 0.14); padding: 22px 20px; }
  .rxl-ticket-stub::before { left: -13px; top: -13px; } .rxl-ticket-stub::after { left: auto; right: -13px; top: -13px; bottom: auto; }
}
.rxl-ticket-main, .rxl-ticket-body, .rxl-ticket .rxl-pass-route > div { min-width: 0; }
@media (max-width: 760px) {
  .rxl-ticket { grid-template-columns: minmax(0, 1fr) !important; }
  .rxl-ticket .rxl-pass-route { grid-template-columns: auto minmax(30px, 1fr) auto; gap: 8px; }
  .rxl-ticket .rxl-pass-route b { font-size: 30px; }
}
.rxl-top .rxl-cta { margin-top: 24px; }

/* Ticket fixes: real punched notches + balanced height */
.rxl-ticket-stub::before, .rxl-ticket-stub::after { display: none !important; }
.rxl-ticket {
  --notch-x: calc(100% - 320px);
  -webkit-mask: radial-gradient(circle 13px at var(--notch-x) 0, transparent 12px, #000 13px) top / 100% 51% no-repeat,
                radial-gradient(circle 13px at var(--notch-x) 100%, transparent 12px, #000 13px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 13px at var(--notch-x) 0, transparent 12px, #000 13px) top / 100% 51% no-repeat,
                radial-gradient(circle 13px at var(--notch-x) 100%, transparent 12px, #000 13px) bottom / 100% 51% no-repeat;
}
.rxl-ticket-main { display: flex; flex-direction: column; }
.rxl-ticket-body { flex: 1; align-items: center; }
.rxl-ticket-grid { margin-top: auto; }
.rxl-ticket-stub { justify-content: space-between; }
.rxl-ticket-cta { margin-top: 6px; }
@media (max-width: 760px) {
  .rxl-ticket { --notch-y: var(--stub-top, 0px);
    -webkit-mask: none; mask: none; }
}
/* Itinerary: explicit duration chip instead of the dotted line */
.rxl-itin li { grid-template-columns: 90px minmax(0, 1fr) 110px !important; }
.rxl-itin-body h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.rxl-itin-time-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(241, 201, 51, 0.1); color: #f1c933; font-size: 12px; font-weight: 600; }
.rxl .rxl-itin-time-chip svg { width: 13px; height: 13px; }
@media (max-width: 860px) { .rxl-itin li { grid-template-columns: auto minmax(0, 1fr) !important; } }

/* #application fixes */
.rxl-pass .rxl-pass-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.rxl-pass .rxl-pass-brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rxl-pass .rxl-pass-tag { flex: none; font-size: 10px; }
@media (max-width: 1180px) { .rxa-aside .rxl-pass .rxl-pass-brand { font-size: 0; gap: 0; } .rxa-aside .rxl-pass .rxl-pass-brand img { width: 24px; height: 24px; } }
.rxl-pass-tear::before, .rxl-pass-tear::after { border: 0 !important; background: #16171a !important; }
.rxa-submit .ui-btn:disabled { opacity: 1 !important; background: #2a2b2f !important; color: #6f7178 !important; box-shadow: none !important; border-color: #34363b !important; }
.rxa-aside { gap: 14px; }
.rxa-aside .rxl-pass .rxl-pass-brand { font-size: 0 !important; gap: 0 !important; } .rxa-aside .rxl-pass .rxl-pass-brand img { width: 24px; height: 24px; }
/* Form boarding pass: readable brand, no edge notches */
.rxa-aside .rxl-pass .rxl-pass-brand { font-size: 14px !important; gap: 8px !important; white-space: nowrap; }
.rxa-aside .rxl-pass .rxl-pass-brand img { width: 22px; height: 22px; }
.rxa-aside .rxl-pass-tear { margin: 18px 0 14px !important; }
.rxa-aside .rxl-pass-tear::before, .rxa-aside .rxl-pass-tear::after { display: none !important; }
.rxa .rxl-pass-plane svg { width: 22px; height: 22px; transform: rotate(45deg); }
/* Pass: yellow top bar follows the rounded corners */
.rxl-pass { overflow: hidden; }
.rxl-pass::before { top: 0 !important; left: 0 !important; right: 0 !important; height: 4px !important; border-radius: 0 !important; }

/* ---------- Form boarding pass: real paper look ---------- */
.rxa-aside .rxl-pass {
  overflow: visible; padding: 0 !important; border: 0 !important; border-radius: 16px !important;
  background: #f6f3ea !important; color: #15161a !important; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.rxa-aside .rxl-pass::before { display: none !important; }
.rxa-aside .rxl-pass:hover { transform: none; }
.rxa-aside .rxl-pass-top { margin: 0 !important; padding: 14px 20px !important; border-radius: 16px 16px 0 0; background: #f1c933; color: #15161a !important; }
.rxa-aside .rxl-pass .rxl-pass-brand { color: #15161a !important; font-size: 14px !important; font-weight: 800; }
.rxa-aside .rxl-pass .rxl-pass-brand img { filter: brightness(0); width: 20px !important; height: 20px !important; }
.rxa-aside .rxl-pass-tag { color: #15161a !important; opacity: 0.75; font-size: 10px !important; font-weight: 800; letter-spacing: 0.14em; }
.rxa-aside .rxl-pass-pax, .rxa-aside .rxl-pass-route, .rxa-aside .rxl-pass-grid, .rxa-aside .rxl-pass-meter { margin-left: 20px !important; margin-right: 20px !important; }
.rxa-aside .rxl-pass-pax { margin-top: 18px !important; }
.rxa-aside .rxl-pass small { color: #7a7769 !important; opacity: 1 !important; }
.rxa-aside .rxl-pass-pax b, .rxa-aside .rxl-pass-route b { color: #15161a !important; }
.rxa-aside .rxl-pass-pax span { color: #9a7a00 !important; }
.rxa-aside .rxl-pass-route span { color: #4b4a44 !important; }
.rxa-aside .rxl-pass-plane { color: #15161a !important; }
.rxa-aside .rxl-pass-plane i { border-top-color: rgba(21, 22, 26, 0.35) !important; }
.rxa-aside .rxl-pass-grid b { color: #15161a !important; font-family: "JetBrains Mono", monospace; }
.rxa-aside .rxl-pass-grid b.is-wait { color: #9a6b00 !important; }
.rxa-aside .rxl-pass-grid b.is-ok { color: #138a47 !important; }
.rxa-aside .rxl-pass-meter { background: rgba(21, 22, 26, 0.1) !important; }
/* Perforated tear line with punched notches */
.rxa-aside .rxl-pass-tear { position: relative; margin: 18px 0 0 !important; border-top: 2px dashed rgba(21, 22, 26, 0.25) !important; }
.rxa-aside .rxl-pass-tear::before, .rxa-aside .rxl-pass-tear::after { display: block !important; content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #16171a !important; border: 0 !important; }
.rxa-aside .rxl-pass-tear::before { left: -11px; } .rxa-aside .rxl-pass-tear::after { right: -11px; left: auto; }
.rxa-aside .rxl-pass-foot { padding: 14px 20px 16px; color: #4b4a44 !important; }
.rxa-aside .rxl-barcode { opacity: 1 !important; background: repeating-linear-gradient(90deg, #15161a 0 2px, transparent 2px 4px, #15161a 4px 7px, transparent 7px 9px, #15161a 9px 10px, transparent 10px 13px) !important; }

/* Form boarding pass: dark body, same paper-pass structure */
.rxa-aside .rxl-pass { background: linear-gradient(160deg, #26272b, #1c1d20) !important; color: #f2f3f5 !important; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important; }
.rxa-aside .rxl-pass small { color: #9a9ca3 !important; }
.rxa-aside .rxl-pass-pax b, .rxa-aside .rxl-pass-route b, .rxa-aside .rxl-pass-grid b { color: #f2f3f5 !important; }
.rxa-aside .rxl-pass-pax span { color: #f1c933 !important; }
.rxa-aside .rxl-pass-route span { color: #c9cbd0 !important; }
.rxa-aside .rxl-pass-plane { color: #f1c933 !important; }
.rxa-aside .rxl-pass-plane i { border-top-color: rgba(241, 201, 51, 0.5) !important; }
.rxa-aside .rxl-pass-grid b.is-wait { color: #f1c933 !important; }
.rxa-aside .rxl-pass-grid b.is-ok { color: #3ccf7a !important; }
.rxa-aside .rxl-pass-meter { background: rgba(255, 255, 255, 0.08) !important; }
.rxa-aside .rxl-pass-tear { border-top-color: rgba(255, 255, 255, 0.16) !important; }
.rxa-aside .rxl-pass-foot { color: #9a9ca3 !important; }
.rxa-aside .rxl-barcode { opacity: 0.75 !important; background: repeating-linear-gradient(90deg, #c9cbd0 0 2px, transparent 2px 4px, #c9cbd0 4px 7px, transparent 7px 9px, #c9cbd0 9px 10px, transparent 10px 13px) !important; }
.rxa-aside .rxl-pass { max-width: none !important; width: 100% !important; box-sizing: border-box; }


/* ---------- Check-in (Dashboard) + result pass: same boarding pass ---------- */
.rxc .rxl-pass .rxl-pass-brand { font-size: 0 !important; gap: 0 !important; }
.rxc .rxl-pass .rxl-pass-brand { font-size: 14px !important; gap: 8px !important; white-space: nowrap; }
.rxc .rxl-pass .rxl-pass-brand img { width: 22px; height: 22px; }
.rxc .rxl-pass-tear { margin: 18px 0 14px !important; }
.rxc .rxl-pass-tear::before, .rxc .rxl-pass-tear::after { display: none !important; }
.rxc .rxl-pass-plane svg { width: 22px; height: 22px; transform: rotate(45deg); }
.rxc .rxl-pass {
  overflow: visible; padding: 0 !important; border: 0 !important; border-radius: 16px !important;
  background: #f6f3ea !important; color: #15161a !important; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.rxc .rxl-pass::before { display: none !important; }
.rxc .rxl-pass:hover { transform: none; }
.rxc .rxl-pass-top { margin: 0 !important; padding: 14px 20px !important; border-radius: 16px 16px 0 0; background: #f1c933; color: #15161a !important; }
.rxc .rxl-pass .rxl-pass-brand { color: #15161a !important; font-size: 14px !important; font-weight: 800; }
.rxc .rxl-pass .rxl-pass-brand img { filter: brightness(0); width: 20px !important; height: 20px !important; }
.rxc .rxl-pass-tag { color: #15161a !important; opacity: 0.75; font-size: 10px !important; font-weight: 800; letter-spacing: 0.14em; }
.rxc .rxl-pass-pax, .rxc .rxl-pass-route, .rxc .rxl-pass-grid, .rxc .rxl-pass-meter { margin-left: 20px !important; margin-right: 20px !important; }
.rxc .rxl-pass-pax { margin-top: 18px !important; }
.rxc .rxl-pass small { color: #7a7769 !important; opacity: 1 !important; }
.rxc .rxl-pass-pax b, .rxc .rxl-pass-route b { color: #15161a !important; }
.rxc .rxl-pass-pax span { color: #9a7a00 !important; }
.rxc .rxl-pass-route span { color: #4b4a44 !important; }
.rxc .rxl-pass-plane { color: #15161a !important; }
.rxc .rxl-pass-plane i { border-top-color: rgba(21, 22, 26, 0.35) !important; }
.rxc .rxl-pass-grid b { color: #15161a !important; font-family: "JetBrains Mono", monospace; }
.rxc .rxl-pass-grid b.is-wait { color: #9a6b00 !important; }
.rxc .rxl-pass-grid b.is-ok { color: #138a47 !important; }
.rxc .rxl-pass-meter { background: rgba(21, 22, 26, 0.1) !important; }
.rxc .rxl-pass-tear { position: relative; margin: 18px 0 0 !important; border-top: 2px dashed rgba(21, 22, 26, 0.25) !important; }
.rxc .rxl-pass-tear::before, .rxc .rxl-pass-tear::after { display: block !important; content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #16171a !important; border: 0 !important; }
.rxc .rxl-pass-tear::before { left: -11px; }
.rxc .rxl-pass-foot { padding: 14px 20px 16px; color: #4b4a44 !important; }
.rxc .rxl-barcode { opacity: 1 !important; background: repeating-linear-gradient(90deg, #15161a 0 2px, transparent 2px 4px, #15161a 4px 7px, transparent 7px 9px, #15161a 9px 10px, transparent 10px 13px) !important; }
.rxc .rxl-pass { background: linear-gradient(160deg, #26272b, #1c1d20) !important; color: #f2f3f5 !important; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important; }
.rxc .rxl-pass small { color: #9a9ca3 !important; }
.rxc .rxl-pass-pax b, .rxc .rxl-pass-route b, .rxc .rxl-pass-grid b { color: #f2f3f5 !important; }
.rxc .rxl-pass-pax span { color: #f1c933 !important; }
.rxc .rxl-pass-route span { color: #c9cbd0 !important; }
.rxc .rxl-pass-plane { color: #f1c933 !important; }
.rxc .rxl-pass-plane i { border-top-color: rgba(241, 201, 51, 0.5) !important; }
.rxc .rxl-pass-grid b.is-wait { color: #f1c933 !important; }
.rxc .rxl-pass-grid b.is-ok { color: #3ccf7a !important; }
.rxc .rxl-pass-meter { background: rgba(255, 255, 255, 0.08) !important; }
.rxc .rxl-pass-tear { border-top-color: rgba(255, 255, 255, 0.16) !important; }
.rxc .rxl-pass-foot { color: #9a9ca3 !important; }
.rxc .rxl-barcode { opacity: 0.75 !important; background: repeating-linear-gradient(90deg, #c9cbd0 0 2px, transparent 2px 4px, #c9cbd0 4px 7px, transparent 7px 9px, #c9cbd0 9px 10px, transparent 10px 13px) !important; }
.rxc .rxl-pass { max-width: none !important; width: 100% !important; box-sizing: border-box; }
.rxc .rxl-pass { max-width: none !important; }
.rxc .rxl-pass .rxl-pass-brand { font-size: 14px !important; }
.rxc .rxl-pass-grid b.is-bad, .rxa-aside .rxl-pass-grid b.is-bad { color: #ff7a7a !important; }
.rxc-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .rxc-grid { grid-template-columns: minmax(0, 1fr); } }
.rxc-pass { display: flex; flex-direction: column; gap: 12px; }
.rxc-pass .rx-btn { align-self: flex-start; }
.rxc-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rxc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.rxc-facts div { padding: 10px 12px; border-radius: 12px; background: #1b1c1f; }
.rxc-facts b { display: block; font-family: "JetBrains Mono", monospace; font-size: 18px; color: #f1c933; }
.rxc-facts span { color: #9a9ca3; font-size: 12px; }
.rxc-fares { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rxc-fares li { --tone: #3ccf7a; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #1b1c1f; border-left: 3px solid var(--tone); }
.rxc-fares li.is-academy { --tone: #f1c933; } .rxc-fares li.is-danger { --tone: #ff7a7a; }
.rxc-fares b { min-width: 52px; font-family: "JetBrains Mono", monospace; color: var(--tone); }
.rxc-fares span { color: #9a9ca3; font-size: 13px; }
.rxc-fares strong { display: block; color: #f2f3f5; font-size: 14px; }
.rxc-board { border-color: rgba(241, 201, 51, 0.4) !important; }
.rxc-result-pass { max-width: 460px; margin: 0 auto; width: 100%; }
.rxc-result-pass .rxl-pass { max-width: none !important; }
.rxc-board { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rxc-board-copy { display: flex; flex-direction: column; gap: 2px; }
.rxc-board-copy strong { color: #f2f3f5; font-size: 16px; }
.rxc-board-copy span { color: #9a9ca3; font-size: 14px; }
@media (max-width: 640px) { .rxc-board .rx-btn { width: 100%; justify-content: center; } }
.rxc-briefing { max-width: 520px; text-align: left; }
.rxc-briefing .rx-rules { margin: 14px 0; }
.rxc-briefing-note { margin: 0 0 14px !important; color: #9a9ca3 !important; font-size: 13px !important; }
.rxc-briefing .rx-check { margin-bottom: 18px; }
.rxc-briefing { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }

/* Briefing pop-up rendered on <body>: full-page blur, GDPR details */
.rxc-backdrop { position: fixed !important; inset: 0 !important; z-index: 1000 !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; background: rgba(8, 9, 10, 0.6) !important; }
.rxc-gdpr-tag { margin: 0 0 4px !important; color: #7cb4ff !important; font-size: 11px !important; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.rxc-learn { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 0; border: 0; background: none; color: #f1c933; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rxc-learn svg { width: 14px; height: 14px; }
.rxc-gdpr { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: #1b1c1f; border: 1px solid #34363b; display: flex; flex-direction: column; gap: 10px; }
.rxc-gdpr div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.rxc-gdpr dt { color: #9a9ca3; font-size: 12px; font-weight: 700; }
.rxc-gdpr dd { margin: 0; color: #c9cbd0; font-size: 13px; line-height: 1.5; }
.rxc-gdpr a { color: #f1c933; }
@media (max-width: 480px) { .rxc-gdpr div { grid-template-columns: 1fr; gap: 2px; } }
.rxc-refuse { display: block; width: 100%; margin-top: 12px; padding: 8px; border: 0; background: none; color: #ff8a8a; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rxc-refuse:hover { text-decoration: underline; }

/* ---------- Safety briefing pop-up v2 ---------- */
.rxc-briefing { position: relative; max-width: 540px !important; padding: 28px !important; border-radius: 22px !important; border: 1px solid #34363b !important; background: linear-gradient(180deg, #232427, #1c1d20) !important; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6) !important; overflow-x: hidden; }
.rxc-briefing::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #f1c933, #7cb4ff); }
.rxc-briefing > .rx-dialog-icon { display: none; }
.rxc-b-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.rxc-b-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(241, 201, 51, 0.12); border: 1px solid rgba(241, 201, 51, 0.35); color: #f1c933; }
.rxc-b-icon svg { width: 24px; height: 24px; }
.rxc-b-head h2 { margin: 2px 0 0 !important; font-size: 24px !important; font-weight: 700; color: #f2f3f5; }
.rxc-briefing .rxc-gdpr-tag { margin: 0 !important; }
.rxc-b-intro { margin: 0 0 18px !important; color: #c9cbd0 !important; font-size: 15px !important; line-height: 1.6; }
.rxc-b-data { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.rxc-b-data div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid; }
.rxc-b-data .is-yes { border-color: rgba(241, 201, 51, 0.35); background: rgba(241, 201, 51, 0.06); }
.rxc-b-data .is-no { border-color: rgba(60, 207, 122, 0.35); background: rgba(60, 207, 122, 0.06); }
.rxc-b-data small { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.rxc-b-data .is-yes small { color: #f1c933; } .rxc-b-data .is-no small { color: #3ccf7a; }
.rxc-b-data strong { color: #f2f3f5; font-size: 14px; }
.rxc-b-data span { color: #9a9ca3; font-size: 12px; }
.rxc-b-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rxc-b-steps li { --tone: #f1c933; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #1b1c1f; }
.rxc-b-steps li.is-2 { --tone: #ffb547; } .rxc-b-steps li.is-3 { --tone: #ff6b6b; }
.rxc-b-steps b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone); font-family: "JetBrains Mono", monospace; font-size: 12px; }
.rxc-b-steps span { color: #9a9ca3; font-size: 13px; }
.rxc-b-steps strong { display: block; color: #f2f3f5; font-size: 14px; }
.rxc-b-clock { display: flex; align-items: center; gap: 8px; margin: 12px 0 14px !important; color: #9a9ca3 !important; font-size: 13px !important; }
.rxc-b-clock svg { width: 15px; height: 15px; color: #f1c933; }
.rxc-b-consent { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 14px; padding: 14px; border-radius: 14px; border: 1px solid #34363b; background: #1b1c1f; color: #c9cbd0; font-size: 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.rxc-b-consent.is-on { border-color: rgba(60, 207, 122, 0.55); background: rgba(60, 207, 122, 0.06); }
.rxc-b-consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: #3ccf7a; flex: none; }
.rxc-b-start { width: 100%; justify-content: center; min-height: 52px; }
.rxc-b-start:disabled { background: #2a2b2f !important; color: #6f7178 !important; border-color: #34363b !important; opacity: 1 !important; }
.rxc-b-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.rxc-b-foot button { padding: 6px 2px; border: 0; background: none; color: #9a9ca3; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rxc-b-foot button:hover { color: #f2f3f5; }
.rxc-b-foot .is-danger { color: #ff8a8a; }
.rxc-b-foot .is-danger:hover { color: #ff6b6b; text-decoration: underline; }
.rxc-refuse { display: none; }
@media (max-width: 480px) { .rxc-briefing { padding: 22px 18px !important; } .rxc-b-data { grid-template-columns: 1fr; } .rxc-b-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; } }
.rxc-briefing { max-width: 680px !important; width: calc(100vw - 32px) !important; padding: 32px !important; }
@media (max-width: 480px) { .rxc-briefing { padding: 22px 18px !important; } }

/* Briefing: two columns on desktop so nothing scrolls */
.rxc-briefing { max-width: 860px !important; }
.rxc-b-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 14px; }
.rxc-b-col { display: flex; flex-direction: column; min-width: 0; }
.rxc-b-grid .rxc-b-data { grid-template-columns: 1fr; margin-bottom: 10px; }
.rxc-b-grid .rxc-b-intro { margin-bottom: 12px !important; }
.rxc-b-grid .rxc-learn { margin: auto 0 0; }
.rxc-b-grid .rxc-b-clock { margin: 10px 0 0 !important; }
.rxc-b-details { margin-bottom: 14px; }
.rxc-b-details .rxc-gdpr { margin-bottom: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.rxc-b-details .rxc-gdpr div { grid-template-columns: 1fr; gap: 2px; }
.rxc-b-back { width: auto; }
@media (min-width: 900px) { .rxc-briefing { max-height: none !important; overflow-y: visible !important; } }
@media (max-width: 899px) {
  .rxc-briefing { max-width: 560px !important; }
  .rxc-b-grid { grid-template-columns: 1fr; gap: 12px; }
  .rxc-b-details .rxc-gdpr { grid-template-columns: 1fr; }
}

/* ---------- Safety briefing v3: single calm column ---------- */
.rxc-briefing { max-width: 520px !important; padding: 26px !important; border-radius: 20px !important; overflow: hidden !important; max-height: calc(100dvh - 32px) !important; overflow-y: auto !important; }
.rxc-briefing::before { height: 3px !important; background: #f1c933 !important; }
.rxc-b-head { margin-bottom: 14px !important; }
.rxc-b-icon { width: 42px !important; height: 42px !important; border-radius: 12px !important; }
.rxc-b-icon svg { width: 20px !important; height: 20px !important; }
.rxc-b-head h2 { font-size: 21px !important; }
.rxc-gdpr-tag { color: #9a9ca3 !important; letter-spacing: 0.08em !important; }
.rxc-b-body { display: flex; flex-direction: column; }
.rxc-b-intro { margin: 0 0 14px !important; font-size: 14px !important; color: #c9cbd0 !important; }
.rxc-b-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rxc-b-list li { display: flex; align-items: flex-start; gap: 10px; color: #c9cbd0; font-size: 14px; line-height: 1.45; }
.rxc-b-list svg { width: 18px !important; height: 18px !important; flex: none; margin-top: 1px; }
.rxc-b-list .is-yes svg { color: #f1c933; } .rxc-b-list .is-no svg { color: #3ccf7a; }
.rxc-b-list strong { color: #f2f3f5; }
.rxc-b-levels { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #34363b; border-radius: 12px; overflow: hidden; }
.rxc-b-levels div { --tone: #f1c933; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-left: 1px solid #34363b; }
.rxc-b-levels div:first-child { border-left: 0; }
.rxc-b-levels .is-2 { --tone: #ffb547; } .rxc-b-levels .is-3 { --tone: #ff6b6b; }
.rxc-b-levels b { color: var(--tone); font-family: "JetBrains Mono", monospace; font-size: 12px; }
.rxc-b-levels span { color: #f2f3f5; font-size: 13px; font-weight: 600; }
.rxc-b-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 10px !important; color: #9a9ca3 !important; font-size: 13px !important; line-height: 1.45; }
.rxc-b-note svg { width: 15px !important; height: 15px !important; flex: none; margin-top: 2px; color: #9a9ca3; }
.rxc-briefing .rxc-learn { align-self: flex-start; margin: 0 0 18px !important; font-size: 13px; }
.rxc-b-consent { margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 14px !important; }
.rxc-b-consent.is-on span { color: #f2f3f5; }
.rxc-b-start { min-height: 48px !important; }
.rxc-b-foot { margin-top: 10px !important; }
.rxc-b-details .rxc-gdpr { grid-template-columns: 1fr !important; gap: 10px !important; }
@media (max-width: 480px) { .rxc-b-levels { grid-template-columns: 1fr; } .rxc-b-levels div { border-left: 0; border-top: 1px solid #34363b; flex-direction: row; justify-content: space-between; } .rxc-b-levels div:first-child { border-top: 0; } }

/* ---------- Check-in page v2 ---------- */
.rxc-callsign { color: #f1c933; font-family: "JetBrains Mono", monospace; font-weight: 700; }
.rxc-grid { align-items: stretch !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
.rxc-pass { justify-content: stretch; }
.rxc-pass .rxl-pass { height: 100%; display: flex; flex-direction: column; }
.rxc-pass .rxl-pass .rxl-pass-tear { margin-top: auto !important; }
.rxc-panel { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.rxc-panel .rx-card-title { margin: 0; }
.rxc-facts-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: #9a9ca3; font-size: 14px; }
.rxc-facts-line b { margin-right: 4px; color: #f1c933; font-family: "JetBrains Mono", monospace; font-size: 16px; }
.rxc-panel .rxc-fares li { padding: 9px 12px; }
.rxc-panel-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.rxc-panel-actions .rx-btn { width: 100%; justify-content: center; }
.rxc-go { min-height: 52px; font-size: 16px; }
.rxc-panel-note { margin: 0; color: #6f7178; font-size: 12px; text-align: center; }
@media (max-width: 860px) { .rxc-grid { grid-template-columns: minmax(0, 1fr) !important; } .rxc-pass .rxl-pass { height: auto; } }

/* ---------- Check-in page: calmer, more professional ---------- */
.rxc .rx-eyebrow.is-green { color: #9a9ca3 !important; }
.rxc .rx-eyebrow.is-green svg { color: #3ccf7a; }
.rxc .rx-title { font-size: clamp(28px, 3.4vw, 40px) !important; letter-spacing: -0.02em; }
.rxc .rx-lead { font-size: 16px !important; color: #9a9ca3 !important; max-width: 620px; }
.rxc-callsign { color: #f2f3f5 !important; }
.rxc-grid { gap: 20px !important; margin-top: 8px; }
.rxc-panel { padding: 26px !important; border-radius: 16px !important; background: #1d1e21 !important; border: 1px solid #2f3136 !important; gap: 18px !important; }
.rxc-panel .rx-card-title { font-size: 18px !important; font-weight: 700; color: #f2f3f5; }
.rxc-panel-lead { margin: -8px 0 0; color: #9a9ca3; font-size: 14px; line-height: 1.55; }
.rxc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid #2f3136; border-bottom: 1px solid #2f3136; }
.rxc-stats div { padding: 14px 0 14px 16px; border-left: 1px solid #2f3136; }
.rxc-stats div:first-child { padding-left: 0; border-left: 0; }
.rxc-stats dt { color: #6f7178; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.rxc-stats dd { margin: 4px 0 0; color: #f2f3f5; font-size: 20px; font-weight: 700; font-family: "JetBrains Mono", monospace; }
.rxc-panel .rxc-fares { gap: 0 !important; }
.rxc-panel .rxc-fares li { display: grid !important; grid-template-columns: 8px 1fr auto; align-items: center; gap: 14px; padding: 11px 0 !important; border-radius: 0 !important; border-left: 0 !important; background: none !important; border-top: 1px solid #2a2b2f; }
.rxc-panel .rxc-fares li:first-child { border-top: 0; }
.rxc-panel .rxc-fares li i { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.rxc-panel .rxc-fares li b { min-width: 0 !important; color: #c9cbd0 !important; font-size: 13px; }
.rxc-panel .rxc-fares strong { font-size: 14px !important; }
.rxc-panel .rxc-fares span { font-size: 13px !important; color: #9a9ca3 !important; }
.rxc-go { box-shadow: none !important; }
.rxc-panel-note { color: #6f7178 !important; }
.rxc-panel .rxc-fares strong { display: inline !important; }
.rxc-panel .rxc-fares li { padding: 10px 0 !important; }
.rxc-panel { gap: 16px !important; }

/* ---------- Test screen polish ---------- */
.rxt .rx-main, .rxt .rx-screen { max-width: 780px; margin-left: auto; margin-right: auto; }
.rxt .rx-test-progress { margin-bottom: 22px; }
.rxt .rx-question { padding: 30px 32px; border: 1px solid #2f3136; border-radius: 18px; background: #1d1e21; }
@media (max-width: 640px) { .rxt .rx-question { padding: 20px 18px; border-radius: 14px; } }
.rxt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid #2f3136; }
.rxt-kicker { color: #f1c933; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rxt-count { color: #9a9ca3; font-size: 13px; font-family: "JetBrains Mono", monospace; }
.rxt-count b { color: #f2f3f5; }
.rxt .rx-question-text { margin: 0 0 22px !important; font-size: clamp(20px, 2.4vw, 26px) !important; line-height: 1.35 !important; font-weight: 700; letter-spacing: -0.01em; }
.rxt .rx-options { gap: 10px !important; }
.rxt .rx-option { min-height: 58px; padding: 0 18px !important; border-radius: 14px !important; background: #232427 !important; border: 1px solid #34363b !important; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.rxt .rx-option:hover:not(:disabled) { border-color: #4a4c52 !important; transform: translateX(2px); }
.rxt .rx-option.is-selected { border-color: #f1c933 !important; background: rgba(241, 201, 51, 0.08) !important; }
.rxt .rx-option-letter { width: 30px !important; height: 30px !important; border-radius: 9px !important; font-size: 13px; }
.rxt .rx-option.is-selected .rx-option-letter { background: #f1c933 !important; border-color: #f1c933 !important; color: #111 !important; }
.rxt .rx-option-letter svg { width: 16px; height: 16px; }
.rxt .rx-option-text { font-size: 16px; }
.rxt .rx-question-foot { margin-top: 22px !important; padding-top: 18px; border-top: 1px solid #2f3136; }
.rxt .rx-question-foot .rx-btn:disabled { background: #2a2b2f !important; color: #6f7178 !important; border-color: #34363b !important; opacity: 1 !important; }
@media (max-width: 640px) { .rxt .rx-kbd-hint { display: none; } .rxt .rx-question-foot .rx-btn { width: 100%; justify-content: center; } }
.rx-integrity { position: fixed !important; left: 50% !important; bottom: 20px !important; top: auto !important; transform: translateX(-50%) !important; z-index: 900 !important; }

/* ---------- Result screen ---------- */
.rxc-result-pass, .rxc-result-pass .rxl-pass { text-align: left !important; }
.rxr-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: center; }
.rxr-top .rx-score-hero { display: flex !important; flex-direction: column; align-items: flex-start !important; text-align: left !important; gap: 18px; }
.rxr-top .rx-score-hero .rx-eyebrow { justify-content: flex-start; }
.rxr-top .rx-score-ring { margin: 0 !important; width: 120px !important; height: 120px !important; }
.rxr-top .rxc-result-pass { max-width: none; margin: 0; }
@media (max-width: 860px) {
  .rxr-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rxr-top .rx-score-hero { align-items: center !important; text-align: center !important; }
}
/* Discord rules <dialog>: the global reset removes the native auto-centring */
.discord-rules-dialog[open] { position: fixed !important; inset: 0 !important; margin: auto !important; height: fit-content; display: flex !important; flex-direction: column; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
.discord-rules-dialog[open] .discord-rules-content { flex: 1; min-height: 0; overflow-y: auto; }
.discord-rules-dialog::backdrop { background: rgba(8, 9, 10, 0.6) !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; }

/* ---------- One clear next step (Dashboard, Academy, Check Flight) ----------
   Every candidate screen leads with a single card holding the next action and
   one primary button; progress sits above it, everything else below. */

/* Written test + result screens: on phones the action comes before the boarding pass. */
.rxc-panel-sub { margin: 0 0 -8px; color: #6f7178; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.rxc-panel-actions .rx-btn.is-ghost { min-height: 44px; border-color: #2f3136; color: #c9cbd0; font-size: 14px; }
@media (max-width: 860px) {
  .rxc-grid > .rxc-panel { order: -1; }
  .rxr-top { display: contents; }
  .rxr-top ~ .rx-connection, .rxr-top ~ .rx-card { order: 1; }
  .rxr-top > .rxc-result-pass { order: 2; }
}

/* Academy header: who and where, visible on every tab. */
.rx-ahead { display: flex; flex-direction: column; gap: 22px; margin-bottom: 26px; }
.rx-ahead-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rx-ahead-id .rx-avatar { width: 56px; height: 56px; flex-basis: 56px; font-size: 22px; }
.rx-ahead h1 { margin: 0; color: #fff; font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.rx-ahead p { margin: 4px 0 0; color: var(--rx-muted); font-size: 14px; line-height: 1.45; }
.rx-ahead p strong { color: var(--rx-text); font-weight: 600; }

/* Steps inside a stage: numbered marks joined by a line, the current one in yellow. */
.rx-substeps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rx-substeps li { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rx-substeps li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 38px; right: 0; height: 2px; border-radius: 2px; background: var(--rx-line); }
.rx-substeps li.is-done:not(:last-child)::after { background: var(--rx-green); }
.rx-substep-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rx-line-2); background: var(--rx-bg); color: var(--rx-muted); font-family: var(--rx-mono) !important; font-size: 12px; font-weight: 700; }
.rx-substep-mark svg { width: 14px !important; height: 14px !important; }
.rx-substeps .is-done .rx-substep-mark { background: var(--rx-green); border-color: var(--rx-green); color: #0e2a1a; }
.rx-substeps .is-current .rx-substep-mark { background: var(--rx-yellow); border-color: var(--rx-yellow); color: #111; box-shadow: 0 0 0 4px rgba(241, 201, 51, 0.18); }
.rx-substeps .is-failed .rx-substep-mark { background: var(--rx-red); border-color: var(--rx-red); color: #fff; }
.rx-substep-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rx-substep-copy strong { color: var(--rx-text-2); font-size: 14px; font-weight: 700; line-height: 1.3; }
.rx-substep-copy small { color: var(--rx-dim); font-size: 12px; line-height: 1.35; }
.rx-substeps .is-done small { color: var(--rx-muted); }
.rx-substeps .is-current strong { color: #fff; }
.rx-substeps .is-current small { color: var(--rx-yellow); font-weight: 600; }
.rx-substeps .is-failed small { color: var(--rx-red); }
.rx-substeps .is-upcoming strong { color: var(--rx-muted); }

/* Next step card. */
.rx-nextstep { --tone: var(--rx-yellow); display: flex; flex-direction: column; gap: 20px; padding: 26px 28px; border-left: 8px solid var(--tone); border-radius: 6px; background: #202123; }
.rx-nextstep.is-wait { --tone: var(--rx-amber); }
.rx-nextstep.is-success { --tone: var(--rx-green); }
.rx-nextstep.is-danger { --tone: var(--rx-red); }
.rx-next-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rx-next-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--tone); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rx-next-eyebrow svg { width: 16px !important; height: 16px !important; }
.rx-next-title { margin: 0; color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.05; text-transform: uppercase; }
.rx-next-body { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; color: #d2d3d1; font-size: 16px; line-height: 1.6; }
.rx-next-body p { margin: 0; max-width: 780px; }
.rx-next-body strong { color: #fff; }
.rx-next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rx-next-actions .rx-btn { min-height: 52px; border-radius: 6px; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; }
.rx-next-actions .rx-btn.is-primary { min-width: 280px; background: #f5ca2c; border-color: #f5ca2c; }
.rx-next-actions .rx-btn.is-ghost { border-color: transparent; color: var(--rx-text-2); }
.rx-next-actions .rx-btn.is-ghost:hover:not(:disabled) { border-color: var(--rx-line-2); }
.rx-next-actions .rx-btn svg { width: 17px !important; height: 17px !important; }
.rx-nextstep.is-compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 18px 22px; margin: 18px 0 8px; }
.rx-nextstep.is-compact .rx-next-main { gap: 6px; }
.rx-nextstep.is-compact .rx-next-title { font-size: clamp(18px, 2vw, 22px); line-height: 1.2; }
.rx-nextstep.is-compact .rx-next-body { margin-top: 0; font-size: 14px; color: var(--rx-muted); }
.rx-nextstep.is-compact .rx-next-actions .rx-btn.is-primary { min-width: 0; }

.rx-next-due { display: flex; align-items: center; gap: 10px; color: var(--rx-text-2); font-size: 15px; }
.rx-next-due svg { width: 20px !important; height: 20px !important; color: var(--rx-muted); }
.rx-next-due.is-soon svg, .rx-next-due.is-soon strong { color: var(--rx-amber); }
.rx-next-due.is-late svg, .rx-next-due.is-late strong { color: var(--rx-red); }
.rx-next-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid rgba(255, 93, 93, 0.3); border-radius: 6px; background: rgba(255, 93, 93, 0.07); color: #ffd6d6; font-size: 14px; line-height: 1.55; }
.rx-next-note > svg { width: 18px !important; height: 18px !important; margin-top: 2px; color: var(--rx-red); }
.rx-next-note strong { color: #fff; }
.rx-text-link { padding: 0; border: 0; background: none; color: var(--rx-yellow); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rx-next-route { padding: 18px 0; border-top: 1px solid var(--rx-line); border-bottom: 1px solid var(--rx-line); }
.rx-next-route .pilot-flight-route { margin-top: 0; }
.rx-next-route .pilot-flight-airport strong { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
.rx-next-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rx-next-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.rx-next-steps li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(241, 201, 51, 0.14); color: var(--rx-yellow); font-family: var(--rx-mono) !important; font-size: 13px; font-weight: 700; }
.rx-next-steps p { margin: 3px 0 0; color: #e2e2df; font-size: 15px; line-height: 1.55; }
.rx-next-steps a { display: inline-flex; align-items: center; gap: 4px; color: var(--rx-yellow); font-weight: 600; text-decoration: none; white-space: nowrap; }
.rx-next-steps a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rx-next-steps a svg { width: 14px !important; height: 14px !important; }

/* Check Flight tab: attempts, details and feedback below the next step. */
.rx-flight { display: flex; flex-direction: column; min-width: 0; }
.rx-flight > .pilot-flight-back { align-self: flex-start; }
.rx-section-title { margin: 0 0 12px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rx-attempts { margin-top: 30px; }
.rx-attempts ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rx-attempts li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid transparent; border-radius: 6px; background: #202123; }
.rx-attempts li.is-upcoming { background: transparent; border: 1px dashed var(--rx-line); }
.rx-attempt-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rx-line-2); color: var(--rx-muted); font-family: var(--rx-mono) !important; font-size: 13px; font-weight: 700; }
.rx-attempt-mark svg { width: 15px !important; height: 15px !important; }
.rx-attempts .is-passed .rx-attempt-mark { background: var(--rx-green); border-color: var(--rx-green); color: #0e2a1a; }
.rx-attempts .is-failed .rx-attempt-mark { background: rgba(255, 93, 93, 0.16); border-color: rgba(255, 93, 93, 0.5); color: #ff8a8a; }
.rx-attempts .is-current .rx-attempt-mark { background: var(--rx-yellow); border-color: var(--rx-yellow); color: #111; }
.rx-attempts .is-review .rx-attempt-mark, .rx-attempts .is-paused .rx-attempt-mark { border-color: var(--rx-amber); color: var(--rx-amber); }
.rx-attempts strong { display: block; color: #fff; font-size: 15px; }
.rx-attempts small { display: block; margin-top: 2px; color: var(--rx-muted); font-size: 13px; }
.rx-attempts .is-upcoming strong { color: var(--rx-muted); }
.rx-attempts li .rx-btn { min-height: 42px; padding: 0 16px; border-radius: 6px; font-size: 13px; }
.rx-more { margin-top: 12px; border-radius: 6px; background: #202123; }
.rx-attempts + .rx-more { margin-top: 16px; }
.rx-nextstep + .rx-more, .rx-nextstep + .pilot-flight-error + .rx-more { margin-top: 30px; }
.rx-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; list-style: none; cursor: pointer; }
.rx-more > summary::-webkit-details-marker { display: none; }
.rx-more > summary svg { color: var(--rx-muted); transition: transform 0.2s; }
.rx-more[open] > summary svg { transform: rotate(180deg); }
.rx-more > div { display: flex; flex-direction: column; gap: 14px; padding: 0 18px 18px; }

/* Instructor feedback: verdict, summary, then every section with its rating. */
.rx-review { --verdict: var(--rx-red); display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.rx-review.is-passed { --verdict: var(--rx-green); }
.rx-review .is-good { --tone: var(--rx-green); --tone-bg: rgba(60, 207, 122, 0.12); }
.rx-review .is-okay { --tone: var(--rx-yellow); --tone-bg: rgba(241, 201, 51, 0.12); }
.rx-review .is-improve, .rx-review .is-poor { --tone: #ff7a7a; --tone-bg: rgba(255, 93, 93, 0.12); }
.rx-review-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.rx-review-head small { color: var(--rx-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.rx-review-head h2 { margin: 4px 0 2px; color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.rx-review-head p { margin: 0; color: var(--rx-muted); font-size: 14px; }
.rx-review-verdict { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 93, 93, 0.14); color: #ff8a8a; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.rx-review.is-passed .rx-review-verdict { background: rgba(60, 207, 122, 0.14); color: var(--rx-green); }
.rx-review-verdict svg { width: 15px !important; height: 15px !important; }
.rx-review-summary { padding: 18px 20px; border-left: 6px solid var(--verdict); border-radius: 6px; background: #202123; }
.rx-review-summary strong { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rx-review-summary p { margin: 6px 0 0; color: #ecece9; font-size: 16px; line-height: 1.65; white-space: pre-wrap; }
.rx-review-tally { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rx-review-tally li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--rx-line); border-radius: 999px; color: var(--rx-text-2); font-size: 13px; font-weight: 600; }
.rx-review-tally i { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); }
.rx-review-sections { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rx-review-sections li { padding: 16px 20px; border-left: 6px solid var(--tone, var(--rx-line-2)); border-radius: 6px; background: #202123; }
.rx-review-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.rx-review-section-head strong { color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.rx-rating { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; background: var(--tone-bg, rgba(255, 255, 255, 0.06)); color: var(--tone, var(--rx-text-2)); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.rx-rating svg { width: 16px !important; height: 16px !important; }
.rx-review-sections p { margin: 8px 0 0; color: #e5e5e3; font-size: 15px; line-height: 1.6; white-space: pre-wrap; }

/* Getting started: the Crew Center first, the other links after. */
.rx-start-more { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.rx-start-channel { margin-top: 12px; font-size: 14px; }

@media (max-width: 640px) {
  .rx-ahead { gap: 18px; margin-bottom: 20px; }
  .rx-ahead-id .rx-avatar { width: 46px; height: 46px; flex-basis: 46px; font-size: 19px; }
  .rx-ahead h1 { font-size: 24px; }
  .rx-ahead p { font-size: 13px; }
  .rx-substeps { gap: 4px; }
  .rx-substeps li:not(:last-child)::after { top: 12px; left: 32px; right: 2px; }
  .rx-substep-mark { width: 26px; height: 26px; font-size: 11px; }
  .rx-substep-copy strong { font-size: 12px; }
  .rx-substep-copy small { font-size: 11px; }
  /* All tabs visible at once: icon over a short label. */
  .rx-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; margin-bottom: 20px; }
  .rx-tabs button { flex-direction: column; justify-content: center; gap: 4px; padding: 9px 4px; font-size: 12px; line-height: 1.2; white-space: normal; text-align: center; }
  .rx-tabs .rx-dot { position: absolute; top: 7px; right: 10px; }
  .rx-nextstep { gap: 18px; padding: 20px 18px; border-left-width: 6px; }
  .rx-next-title { font-size: 26px; }
  .rx-next-body { font-size: 15px; }
  .rx-next-actions { flex-direction: column; align-items: stretch; }
  .rx-next-actions .rx-btn, .rx-next-actions .rx-btn.is-primary { width: 100%; min-width: 0; white-space: normal; text-align: center; }
  .rx-nextstep.is-compact { grid-template-columns: minmax(0, 1fr); }
  .rx-next-route { padding: 14px 0; }
  .rx-next-steps p { font-size: 14px; }
  .rx-next-steps a { white-space: normal; }
  .rx-attempts li { grid-template-columns: 28px minmax(0, 1fr); gap: 10px 12px; padding: 12px 14px; }
  .rx-attempt-mark { width: 28px; height: 28px; }
  .rx-attempts li .rx-btn { grid-column: 1 / -1; width: 100%; }
  .rx-review-summary, .rx-review-sections li { padding: 14px 16px; }
  .rx-review-sections p, .rx-review-summary p { font-size: 15px; }
  .rx-academy .rx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-academy .rx-tile .v { font-size: 17px; white-space: normal; }
}
/* Phones: four columns are tight, so only the current step keeps its note. */
@media (max-width: 640px) {
  .rx-substeps { gap: 8px; }
  .rx-substep-copy strong, .rx-substep-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rx-substep-copy strong { font-size: 11.5px; }
  .rx-substeps li:not(.is-current) small { display: none; }
}
