:root {
  color-scheme: dark;
  --bg: #070808;
  --panel: #0d0f0f;
  --panel-soft: #121515;
  --panel-raised: #171a1a;
  --gold: #eebd55;
  --gold-bright: #ffd16f;
  --gold-soft: rgba(238, 189, 85, 0.11);
  --ink: #f5f3ed;
  --muted: #949995;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --green: #63d69e;
  --red: #f07f75;
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 48% 18%, rgba(238, 189, 85, 0.055), transparent 27rem),
    linear-gradient(145deg, #090a0a 0%, #060707 54%, #0a0b0b 100%);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: Cairo, "DM Sans", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
label,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
label:has(input:focus-visible) {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.14;
}

.ambient-one {
  width: 360px;
  height: 360px;
  top: -170px;
  left: 24%;
  background: #8d6a26;
}

.ambient-two {
  width: 300px;
  height: 300px;
  right: -170px;
  bottom: 0;
  background: #4a3c1c;
}

.experience-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 272px minmax(520px, 1fr) 282px;
  width: min(1480px, calc(100% - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(10, 12, 12, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.journey-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px 24px 22px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(238, 189, 85, 0.04), transparent 27%),
    #0a0c0c;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(238, 189, 85, 0.4);
  border-radius: 11px;
  color: var(--gold-bright);
  background: linear-gradient(145deg, #242015, #12130f);
  box-shadow: inset 0 0 18px rgba(238, 189, 85, 0.08);
  font-family: Manrope, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.brand > span:last-child {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-family: Manrope, sans-serif;
  font-size: 17px;
  letter-spacing: 0.16em;
}

.brand small {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.23em;
}

.rail-copy {
  margin: 58px 0 44px;
}

.eyebrow,
.question-kicker {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rail-copy .eyebrow {
  margin: 0 0 14px;
}

.rail-copy h1 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.rail-copy > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.journey-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-list li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  min-height: 67px;
  color: #5f6461;
  transition: color 240ms ease, transform 240ms ease;
}

.journey-list li::after {
  position: absolute;
  top: 28px;
  bottom: -2px;
  left: 13px;
  width: 1px;
  background: var(--line);
  content: "";
}

.journey-list li:last-child::after {
  display: none;
}

.journey-list li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #0b0d0d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.journey-list li > div {
  display: grid;
  gap: 3px;
  align-content: start;
  padding-top: 3px;
}

.journey-list strong {
  font-size: 13px;
  font-weight: 700;
}

.journey-list small {
  font-size: 10px;
}

.journey-list li.active {
  color: var(--ink);
  transform: translateX(3px);
}

.journey-list li.active > span {
  border-color: var(--gold);
  color: #111;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(238, 189, 85, 0.22);
}

.journey-list li.complete {
  color: #9da29e;
}

.journey-list li.complete > span {
  border-color: rgba(99, 214, 158, 0.4);
  color: var(--green);
}

.journey-list li.complete::after {
  background: rgba(238, 189, 85, 0.26);
}

.safety-note {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(99, 214, 158, 0.12);
  border-radius: var(--radius-md);
  background: rgba(99, 214, 158, 0.04);
}

.safety-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(99, 214, 158, 0.12);
  font-weight: 800;
}

.safety-note div {
  display: grid;
  gap: 4px;
}

.safety-note strong {
  font-size: 11px;
}

.safety-note small {
  color: #747b77;
  font-size: 9px;
  line-height: 1.45;
}

.conversation-panel {
  min-width: 0;
  background: #0d0f0f;
}

.conversation-topbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 15, 0.88);
}

.mona-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mona-avatar {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(238, 189, 85, 0.38);
  border-radius: 14px;
  color: #17130a;
  background: linear-gradient(145deg, #ffd679, #b57d22);
  box-shadow: 0 8px 30px rgba(238, 189, 85, 0.13);
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.mona-identity > div {
  display: grid;
  gap: 4px;
}

.mona-identity strong {
  font-family: Manrope, sans-serif;
  font-size: 14px;
}

.mona-identity small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.mona-identity i,
.brief-header i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(99, 214, 158, 0.5);
}

.progress-compact {
  display: grid;
  width: 145px;
  gap: 8px;
}

.language-switch {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(238, 189, 85, 0.2);
  border-radius: 9px;
  color: var(--gold);
  background: rgba(238, 189, 85, 0.045);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
}

.progress-compact > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ad7928, var(--gold-bright));
  transition: width 360ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.conversation-stage {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: calc(100vh - 108px);
  padding: clamp(24px, 4vh, 44px) clamp(24px, 4vw, 54px) 30px;
}

.chat-log {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 22px;
}

.mona-chat-tools {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding: 16px;
  border: 1px solid rgba(238, 189, 85, 0.14);
  border-radius: 14px;
  background: rgba(238, 189, 85, 0.025);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mona-chat-tools.is-waiting {
  border-color: rgba(238, 189, 85, 0.32);
  background: rgba(238, 189, 85, 0.045);
  box-shadow: inset 0 0 0 1px rgba(238, 189, 85, 0.035);
}

.help-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mona-mini-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #1b1409;
  background: var(--gold);
  font-size: 9px;
  font-weight: 800;
}

.help-heading div {
  display: grid;
  gap: 2px;
}

.help-heading strong {
  color: #d9d3c5;
  font-size: 10px;
}

.help-heading small {
  color: #686e6a;
  font-size: 9px;
}

.guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.guide-chip {
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(238, 189, 85, 0.17);
  border-radius: 99px;
  color: #a99b7d;
  background: rgba(238, 189, 85, 0.035);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.guide-chip:hover {
  border-color: rgba(238, 189, 85, 0.42);
  color: var(--gold-bright);
  background: rgba(238, 189, 85, 0.075);
}

.guide-chip:disabled {
  opacity: 0.42;
  cursor: wait;
}

.mona-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #090b0b;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.mona-composer:focus-within {
  border-color: rgba(238, 189, 85, 0.48);
  box-shadow: 0 0 0 3px rgba(238, 189, 85, 0.055);
}

.mona-composer input {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
}

.mona-composer input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mona-composer input[readonly] {
  color: #777d79;
  cursor: wait;
}

.mona-composer button {
  display: inline-flex;
  min-width: 105px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  color: #17130a;
  background: linear-gradient(135deg, var(--gold-bright), #d29b38);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.mona-composer button:disabled {
  opacity: 0.42;
  cursor: wait;
}

.mona-composer button b {
  font-size: 13px;
}

.mona-service-note {
  margin: -2px 2px 0;
  color: #5f6561;
  font-size: 8px;
  line-height: 1.5;
}

.message-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  animation: message-in 420ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.message-row.user {
  justify-content: flex-end;
}

.message-dot {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #1b1409;
  background: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.message {
  max-width: min(620px, 86%);
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 5px 16px 16px 16px;
  color: #d4d7d3;
  background: #171a1a;
  font-size: 13px;
  line-height: 1.55;
}

.message-row.user .message {
  border-color: rgba(238, 189, 85, 0.18);
  border-radius: 16px 16px 5px 16px;
  color: #ded2b6;
  background: var(--gold-soft);
}

.message-row.error .message {
  border-color: rgba(240, 127, 117, 0.24);
  color: #ffc1bb;
  background: rgba(240, 127, 117, 0.07);
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.message-action {
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(238, 189, 85, 0.28);
  border-radius: 8px;
  color: var(--gold-bright);
  background: rgba(238, 189, 85, 0.065);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.message-action:hover {
  border-color: rgba(238, 189, 85, 0.58);
  background: rgba(238, 189, 85, 0.12);
}

.message-row.typing .message {
  min-width: min(360px, 82vw);
  color: #a8aaa6;
  letter-spacing: normal;
  background: linear-gradient(135deg, rgba(238, 189, 85, 0.055), rgba(255, 255, 255, 0.018));
}

.typing-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 12px;
  align-items: center;
}

.typing-label {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.typing-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  animation: typing-pulse 1.15s ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
  animation-delay: 140ms;
}

.typing-dots i:nth-child(3) {
  animation-delay: 280ms;
}

.typing-track {
  position: relative;
  grid-column: 1 / -1;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(238, 189, 85, 0.1);
}

.typing-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: typing-track 1.8s ease-in-out infinite;
}

@keyframes typing-pulse {
  0%, 65%, 100% { opacity: 0.28; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

@keyframes typing-track {
  from { transform: translateX(-110%); }
  to { transform: translateX(365%); }
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.response-card {
  align-self: start;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.022), transparent 45%),
    var(--panel-soft);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.23);
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: step-in 360ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.question-heading {
  max-width: 650px;
  margin-bottom: 26px;
}

.question-heading h2 {
  margin: 8px 0 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.question-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-fields {
  margin-top: 18px;
}

label,
.full-field {
  display: grid;
  gap: 8px;
  color: #b9bdb9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

label span em {
  color: #6e7470;
  font-style: normal;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: #0b0d0d;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 78px;
  padding: 13px 14px;
  line-height: 1.45;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #505551;
}

input:hover,
textarea:hover {
  border-color: rgba(238, 189, 85, 0.25);
}

input:focus,
textarea:focus {
  border-color: rgba(238, 189, 85, 0.58);
  outline: 0;
  background: #0e1010;
  box-shadow: 0 0 0 3px rgba(238, 189, 85, 0.07);
}

input.invalid,
textarea.invalid {
  border-color: rgba(240, 127, 117, 0.65);
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.role-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.channel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card,
.select-card {
  position: relative;
  display: grid;
  min-height: 112px;
  gap: 14px;
  align-content: space-between;
  padding: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #c6cac6;
  background: #0c0e0e;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.choice-card {
  appearance: none;
}

.choice-card:hover,
.select-card:hover {
  transform: translateY(-2px);
  border-color: rgba(238, 189, 85, 0.28);
  background: #111312;
}

.choice-card.selected,
.select-card:has(input:checked) {
  border-color: rgba(238, 189, 85, 0.55);
  background: linear-gradient(145deg, rgba(238, 189, 85, 0.11), rgba(238, 189, 85, 0.025));
  box-shadow: inset 0 0 30px rgba(238, 189, 85, 0.035);
}

.choice-card > b,
.select-card > b {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 9px;
  color: var(--gold);
  background: rgba(238, 189, 85, 0.09);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.choice-card > span,
.select-card > span:last-child {
  display: grid;
  gap: 4px;
}

.choice-card strong,
.select-card strong {
  color: #e8e9e5;
  font-size: 11px;
  font-weight: 700;
}

.choice-card small,
.select-card small {
  color: #6d736f;
  font-size: 9px;
  line-height: 1.35;
}

.visual-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.select-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.select-check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  background: #111;
  font-size: 10px;
}

.select-card:has(input:checked) .select-check {
  border-color: var(--gold);
  color: #111;
  background: var(--gold);
}

.counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0c0e0e;
}

.counter-row > div:first-child {
  display: grid;
  gap: 4px;
}

.counter-row strong {
  font-size: 11px;
}

.counter-row small {
  color: #6f7571;
  font-size: 9px;
}

.counter-control {
  display: grid;
  grid-template-columns: 34px 44px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.counter-control button {
  display: grid;
  width: 34px;
  height: 38px;
  place-items: center;
  border: 0;
  color: var(--gold);
  background: #171919;
  cursor: pointer;
  font-size: 17px;
}

.counter-control input {
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: center;
  -moz-appearance: textfield;
}

.counter-control input::-webkit-outer-spin-button,
.counter-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.upload-zone {
  position: relative;
  display: grid;
  min-height: 160px;
  place-items: center;
  gap: 6px;
  align-content: center;
  padding: 22px;
  border: 1px dashed rgba(238, 189, 85, 0.35);
  border-radius: 15px;
  color: #d6d8d4;
  background: rgba(238, 189, 85, 0.025);
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease;
}

.upload-zone:hover,
.upload-zone.dragging {
  border-color: rgba(238, 189, 85, 0.72);
  background: rgba(238, 189, 85, 0.06);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--gold);
  background: var(--gold-soft);
  font-size: 19px;
}

.upload-zone strong {
  margin-top: 3px;
  font-size: 12px;
}

.upload-zone small {
  color: #656b67;
  font-size: 9px;
}

.file-status {
  margin-top: 5px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
}

.full-field {
  margin-top: 16px;
}

.capability-list {
  display: grid;
  gap: 9px;
}

.capability-row {
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: center;
  min-height: 60px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c0e0e;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.capability-row:has(input:checked) {
  border-color: rgba(238, 189, 85, 0.36);
  background: rgba(238, 189, 85, 0.045);
}

.capability-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-ui {
  position: relative;
  width: 36px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: #181a1a;
  transition: background 180ms ease, border-color 180ms ease;
}

.toggle-ui::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #656b67;
  content: "";
  transition: transform 180ms ease, background 180ms ease;
}

.capability-row input:checked + .toggle-ui {
  border-color: var(--gold);
  background: rgba(238, 189, 85, 0.18);
}

.capability-row input:checked + .toggle-ui::after {
  transform: translateX(16px);
  background: var(--gold);
}

.capability-row > span:last-child {
  display: grid;
  gap: 3px;
}

.capability-row strong {
  color: #d8dbd7;
  font-size: 10px;
}

.capability-row small {
  color: #686e6a;
  font-size: 9px;
}

.response-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.primary-button,
.back-button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  min-width: 142px;
  margin-left: auto;
  padding: 0 18px;
  color: #17130a;
  background: linear-gradient(135deg, var(--gold-bright), #d29b38);
  box-shadow: 0 9px 28px rgba(238, 189, 85, 0.13);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(238, 189, 85, 0.19);
}

.back-button {
  min-width: 82px;
  padding: 0 12px;
  color: #8f9591;
  background: transparent;
}

.back-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.primary-button:disabled,
.back-button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  transform: none;
}

.secure-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555b57;
  font-size: 9px;
}

.live-brief {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px 22px 22px;
  border-left: 1px solid var(--line);
  background: #0a0c0c;
}

.brief-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #777d79;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brief-empty {
  display: grid;
  min-height: 230px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #4e5450;
  text-align: center;
}

.brief-empty span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #746038;
  background: rgba(238, 189, 85, 0.03);
  font-size: 18px;
}

.brief-empty p {
  max-width: 190px;
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
}

.brief-list {
  display: grid;
  gap: 0;
  margin: 28px 0;
}

.brief-list > div {
  display: grid;
  gap: 6px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.brief-list dt {
  color: #666c68;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brief-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #c3c7c3;
  font-size: 11px;
  line-height: 1.4;
}

.brief-list dd.route-pill {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(238, 189, 85, 0.2);
  border-radius: 99px;
  color: var(--gold);
  background: rgba(238, 189, 85, 0.06);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-card,
.qa-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0d0f0f;
}

.pricing-card {
  margin-top: auto;
}

.pricing-card > span {
  color: #686e6a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pricing-card strong {
  display: block;
  margin-top: 8px;
  color: var(--gold-bright);
  font-family: Manrope, sans-serif;
  font-size: 17px;
}

.pricing-card p {
  margin: 7px 0 0;
  color: #777d79;
  font-size: 9px;
  line-height: 1.5;
}

.qa-card {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 10px;
}

.qa-card > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(99, 214, 158, 0.09);
  font-size: 10px;
}

.qa-card p {
  margin: 0;
  color: #626864;
  font-size: 8px;
  line-height: 1.55;
}

.qa-card strong {
  color: #9fa49f;
  font-size: 9px;
}

.completion-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 4, 4, 0.78);
  backdrop-filter: blur(15px);
}

.completion-modal[hidden] {
  display: none;
}

.completion-card {
  width: min(460px, 100%);
  padding: 44px 38px;
  border: 1px solid rgba(238, 189, 85, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(238, 189, 85, 0.12), transparent 50%),
    #111313;
  box-shadow: var(--shadow);
  text-align: center;
  animation: modal-in 360ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.completion-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(99, 214, 158, 0.34);
  border-radius: 50%;
  color: var(--green);
  background: rgba(99, 214, 158, 0.08);
  font-size: 22px;
}

.completion-card .eyebrow {
  margin: 0;
}

.completion-card h2 {
  margin: 10px 0 0;
  font-family: Manrope, sans-serif;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.completion-card > p:not(.eyebrow) {
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.completion-route {
  width: fit-content;
  margin: 22px auto;
  padding: 8px 12px;
  border: 1px solid rgba(238, 189, 85, 0.28);
  border-radius: 99px;
  color: var(--gold);
  background: var(--gold-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.completion-card .primary-button {
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .experience-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .live-brief {
    display: none;
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .experience-shell {
    display: block;
    width: min(100% - 16px, 680px);
    min-height: calc(100vh - 16px);
    margin: 8px auto;
    overflow: visible;
    border-radius: 18px;
  }

  .journey-rail {
    display: block;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
  }

  .rail-copy,
  .safety-note,
  .journey-list {
    display: none;
  }

  .conversation-topbar {
    min-height: 68px;
    padding: 13px 16px;
  }

  .progress-compact {
    width: 105px;
  }

  .conversation-stage {
    min-height: auto;
    padding: 22px 14px 16px;
  }

  .chat-log {
    min-height: 74px;
    margin-bottom: 16px;
  }

  .mona-chat-tools {
    margin-top: 20px;
    padding: 13px;
  }

  .mona-composer button {
    min-width: 46px;
  }

  .mona-composer button span {
    display: none;
  }

  .message {
    max-width: 92%;
    font-size: 12px;
  }

  .response-card {
    padding: 20px 15px 16px;
    border-radius: 15px;
  }

  .question-heading {
    margin-bottom: 20px;
  }

  .question-heading h2 {
    font-size: 24px;
  }

  .three-up,
  .two-up {
    grid-template-columns: 1fr;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .select-card {
    grid-template-columns: 38px 1fr;
    min-height: 72px;
    align-content: center;
    align-items: center;
  }

  .response-actions {
    flex-wrap: wrap;
  }

  .secure-hint {
    display: none;
  }

  .primary-button {
    min-width: 132px;
  }
}

@media (max-width: 490px) {
  .role-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    grid-template-columns: 38px 1fr;
    min-height: 78px;
    align-content: center;
    align-items: center;
  }

  .counter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .response-actions {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .primary-button {
    width: 100%;
    min-width: 0;
  }

  .completion-card {
    padding: 34px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html[dir="rtl"] .journey-rail {
  border-right: 0;
  border-left: 1px solid var(--line);
}

html[dir="rtl"] .live-brief {
  border-left: 0;
  border-right: 1px solid var(--line);
}

html[dir="rtl"] .journey-list li {
  grid-template-columns: 1fr 34px;
}

html[dir="rtl"] .journey-list li > span {
  grid-column: 2;
  grid-row: 1;
}

html[dir="rtl"] .journey-list li > div {
  grid-column: 1;
  grid-row: 1;
}

html[dir="rtl"] .journey-list li::after {
  right: 13px;
  left: auto;
}

html[dir="rtl"] .journey-list li.active {
  transform: translateX(-3px);
}

html[dir="rtl"] .progress-compact > span {
  text-align: left;
}

html[dir="rtl"] .message-row.user {
  justify-content: flex-start;
}

html[dir="rtl"] .message {
  border-radius: 16px 5px 16px 16px;
}

html[dir="rtl"] .message-row.user .message {
  border-radius: 16px 16px 16px 5px;
}

html[dir="rtl"] .choice-card,
html[dir="rtl"] .select-card {
  text-align: right;
}

html[dir="rtl"] .select-check {
  right: auto;
  left: 12px;
}

html[dir="rtl"] .toggle-ui::after {
  right: 3px;
  left: auto;
}

html[dir="rtl"] .capability-row input:checked + .toggle-ui::after {
  transform: translateX(-16px);
}

html[dir="rtl"] .primary-button {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .typing-track i {
  animation-name: typing-track-rtl;
}

@keyframes typing-track-rtl {
  from { transform: translateX(110%); }
  to { transform: translateX(-365%); }
}

@media (max-width: 780px) {
  html[dir="rtl"] .journey-rail {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
}
