/* [nexora] 2026-10-18 DevChat unified: единый блок заявки /development (devchat-unified.blade.php). Тёмное стекло в палитре nx-dev-*. */
.nx-dev-wrap.nx-uf { max-width: 1120px; }
.nx-uf .nx-dev-section__head { margin-bottom: 34px; }
.nx-uf__flow { display: flex; flex-direction: column; gap: 18px; }
.nx-uf .nx-dev-card { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nx-uf .nx-dev-card:hover { background: var(--nx-dev-card); border-color: var(--nx-dev-line); }

.nx-uf__step { display: flex; align-items: center; gap: 14px; }
.nx-uf__step strong { display: block; font-size: 17px; font-weight: 600; color: var(--nx-dev-text); line-height: 1.25; }
.nx-uf__step small { display: block; font-size: 13px; color: var(--nx-dev-muted); margin-top: 2px; }
.nx-uf__num { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--nx-dev-accent), var(--nx-dev-accent-2)); box-shadow: 0 0 0 5px rgba(139, 147, 255, .12), 0 10px 22px -10px rgba(139, 147, 255, .8); }
.nx-uf__step--2 { margin-top: 10px; padding-left: 2px; }

.nx-uf__base { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 20px;
  background: linear-gradient(180deg, rgba(139,147,255,.06), rgba(255,255,255,.025)); border-color: rgba(139,147,255,.18); }
.nx-uf__base-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.nx-uf__side { display: flex; flex-direction: column; gap: 10px; }
.nx-uf__hint, .nx-uf__note { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; line-height: 1.45; color: var(--nx-dev-muted); margin: 0; }
.nx-uf__hint i, .nx-uf__note i { font-size: 16px; color: var(--nx-dev-accent); margin-top: 1px; }
.nx-uf__note b { color: var(--nx-dev-text); font-weight: 600; white-space: nowrap; }

.nx-uf__paths { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.nx-uf__path { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px 30px 26px; text-align: left; align-items: stretch; justify-content: flex-start; }
.nx-uf__title { margin: 0; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; font-weight: 700; color: var(--nx-dev-text); }
.nx-uf__lead { margin: 0; font-size: 15px; line-height: 1.55; }

/* primary: orb-card — оставляем фирменный вид */
.nx-uf__path--primary { border-color: rgba(139,147,255,.32);
  background: radial-gradient(120% 80% at 50% 0%, rgba(139,147,255,.16), rgba(197,139,255,.05) 45%, rgba(255,255,255,.03) 75%);
  box-shadow: 0 30px 60px -36px rgba(139,147,255,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.nx-uf__path--primary .nx-dev-voice__orb { margin: 2px auto 8px; width: 84px; height: 84px; }
.nx-uf__path--primary .nx-uf__title, .nx-uf__path--primary .nx-uf__lead { text-align: center; }
.nx-uf__path--primary .nx-uf__lead { max-width: 440px; margin: 0 auto; }
.nx-uf__badge { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  color: var(--nx-dev-gold); background: rgba(243,201,122,.1); border: 1px solid rgba(243,201,122,.28); }
.nx-uf__next { list-style: none; margin: 6px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nx-uf__next li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--nx-dev-text); padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--nx-dev-line); }
.nx-uf__next i { flex: 0 0 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; color: var(--nx-dev-accent); background: rgba(139,147,255,.12); }
.nx-uf__next b { white-space: nowrap; }
.nx-uf__trust { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--nx-dev-muted); }
.nx-uf__trust i { font-size: 16px; color: var(--nx-dev-ok); margin-top: 1px; }

/* secondary */
.nx-uf__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: var(--nx-dev-gold); background: rgba(243,201,122,.08); border: 1px solid rgba(243,201,122,.2); }
.nx-uf__path--secondary .nx-dev-field em { font-style: normal; color: rgba(154,160,180,.7); }
.nx-uf__pane { display: flex; flex-direction: column; gap: 12px; }
.nx-uf__path--secondary .nx-dev-form__privacy { margin-top: auto; }

.nx-uf__sent { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 14px; color: var(--nx-dev-ok); }
.nx-uf__code input { font-size: 22px !important; letter-spacing: .5em; text-align: center; }
.nx-uf__row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nx-uf__textbtn { background: none; border: 0; padding: 4px 0; font-size: 13px; color: var(--nx-dev-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nx-uf__textbtn--accent { color: var(--nx-dev-accent); font-weight: 600; font-size: 14px; }
.nx-uf__done { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border-radius: 14px; background: rgba(67,211,158,.07); border: 1px solid rgba(67,211,158,.25); }
.nx-uf__done strong { font-size: 16px; color: var(--nx-dev-text); }
.nx-uf__done p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--nx-dev-muted); }
.nx-uf__done-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #0b0d14; background: var(--nx-dev-ok); font-size: 18px; }

/* состояния */
.nx-uf .nx-uf__pane[hidden] { display: none !important; }
.nx-uf .nx-devchat--in-slot { margin-top: 4px; }
.nx-uf .nx-devchat .nx-devchat__step { margin: 8px 0 0; }
.nx-uf .nx-devchat__step[data-step="intro"]:not([hidden]),
.nx-uf .nx-devchat__step[data-step="code"]:not([hidden]) { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.nx-uf .nx-devchat__step[data-step="code"] > .nx-dev-btn { flex: 0 0 auto; }
.nx-uf .nx-devchat__step > .nx-dev-btn--block { flex: 0 0 auto; }
.nx-uf .nx-devchat__step .nx-dev-btn i { font-size: 16px; vertical-align: -2px; margin-left: 4px; }
.nx-uf .nx-devchat__status { margin: 4px 0 0; }
.nx-uf .nx-devchat__status:empty { min-height: 0; margin: 0; }
.nx-uf .nx-uf__textbtn[disabled] { opacity: .55; cursor: default; }
.nx-uf .nx-uf__textbtn:hover:not([disabled]) { color: var(--nx-dev-text); }
.nx-uf .nx-uf__textbtn--accent:hover { color: #b3b8ff; }
.nx-uf .nx-uf__path--primary .nx-dev-form__privacy { margin: 2px 0 0; }
.nx-uf .nx-uf__count { display: block; font-size: 12.5px; color: var(--nx-dev-off, #6b7186); min-height: 1.3em; }
.nx-uf .nx-uf__count.is-ok { color: var(--nx-dev-ok); }
.nx-uf .nx-uf__cb-status:empty { display: none; }
.nx-uf .nx-uf__cb-status { margin: 0; font-size: 14px; color: var(--nx-dev-gold); }
.nx-uf .nx-dev-form__status:empty { display: none; }
.nx-uf .nx-dev-form__status.is-error, .nx-uf .nx-devchat__status.is-error { color: #ff8a9b; }
.nx-uf .nx-dev-field.is-invalid input, .nx-uf .nx-dev-field.is-invalid textarea { border-color: #ff6b81; }
.nx-uf .nx-uf__path--secondary .nx-dev-form { display: flex; flex-direction: column; gap: 12px; }
.nx-uf .nx-uf__done strong span + span:not(:empty)::before { content: ', '; }
/* чат открыт: лента шире, без лишнего текста над ней */
.nx-uf[data-chat-step="chat"] .nx-uf__path--primary .nx-uf__lead,
.nx-uf[data-chat-step="chat"] .nx-uf__path--primary .nx-uf__trust { display: none; }
.nx-uf[data-chat-step="chat"] .nx-uf__path--primary .nx-dev-voice__orb { width: 64px; height: 64px; margin-bottom: 0; }
/* чат выключен / вход по SMS закрыт: карточка ассистента скрыта, звонок — основной путь */
.nx-uf.is-chat-closed .nx-uf__path--primary, .nx-uf.is-chat-closed .nx-uf__count { display: none !important; }
.nx-uf.is-chat-closed .nx-uf__paths { grid-template-columns: minmax(0, 1fr); max-width: 640px; width: 100%; margin: 0 auto; }
.nx-uf.is-chat-closed .nx-uf__path--secondary { border-color: rgba(139,147,255,.32);
  background: radial-gradient(120% 80% at 50% 0%, rgba(139,147,255,.14), rgba(197,139,255,.04) 45%, rgba(255,255,255,.03) 75%);
  box-shadow: 0 30px 60px -36px rgba(139,147,255,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.nx-uf.is-chat-closed .nx-uf__cb-btn { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--nx-dev-accent), var(--nx-dev-accent-2)); box-shadow: 0 12px 30px -12px rgba(139,147,255,.7); }
.nx-uf.is-chat-closed .nx-uf__step--2 small, .nx-uf.is-chat-closed .nx-uf__to-chat { display: none; }

@media (max-width: 991px) {
  .nx-uf__base-grid, .nx-uf__paths { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .nx-uf__base { padding: 22px 18px; }
  .nx-uf__path { padding: 26px 18px 22px; }
  .nx-uf__badge { position: static; align-self: center; }
  .nx-uf__step strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-uf .nx-dev-btn { transition: none; }
}

/* u2 (2026-10-18): «Войти в свой чат» — ссылка под кнопкой SMS и шаг входа по номеру (mode=login) */
.nx-uf .nx-uf__login-link { flex-basis: 100%; justify-content: center; text-align: center; margin: 2px auto 0; padding: 8px 6px; line-height: 1.4; border-radius: 10px; }
.nx-uf .nx-uf__login-link i { font-size: 17px; flex: 0 0 auto; }
.nx-uf .nx-uf__login-link:focus-visible,
.nx-uf .nx-uf__login > .nx-uf__textbtn:focus-visible { outline: 2px solid var(--nx-dev-accent); outline-offset: 2px; }
.nx-uf .nx-uf__login .nx-uf__login-field { flex: 1 1 100%; }
.nx-uf .nx-uf__login > .nx-uf__textbtn { flex-basis: 100%; justify-content: center; }
.nx-uf .nx-uf__login .nx-devchat__out-body p { overflow-wrap: anywhere; }
.nx-uf[data-chat-step="login"] .nx-uf__path--primary .nx-uf__lead { display: none; } /* u3: «Ваш текст уже будет в чате» не к месту при входе в прежний чат */

/* [nexora] 2026-10-23 dc16: вернувшийся клиент — вход по номеру в шапке, список переписок, закрытая переписка */
.nx-uf__returning{display:inline-flex;align-items:center;gap:10px;margin-top:14px;padding:10px 16px;border-radius:999px;border:1px solid rgba(139,147,255,.35);background:rgba(139,147,255,.10);color:#d6d9ff;font:inherit;font-size:14px;cursor:pointer;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}
.nx-uf__returning b{font-weight:600;color:#fff;display:inline-flex;align-items:center;gap:6px}
.nx-uf__returning:hover,.nx-uf__returning:focus-visible{background:rgba(139,147,255,.18);border-color:rgba(139,147,255,.6);box-shadow:0 0 0 3px rgba(139,147,255,.14);outline:none}
.nx-uf.is-signed .nx-uf__returning{display:none}
.nx-dc-conv{display:flex;flex-direction:column;gap:10px;margin-bottom:10px}
.nx-dc-conv[hidden]{display:none}
.nx-dc-conv__list{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.nx-dc-conv__label{font-size:12px;opacity:.7;margin-right:4px}
.nx-dc-conv__chip{font:inherit;font-size:12px;padding:5px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:inherit;cursor:pointer;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:border-color .2s ease,background .2s ease}
.nx-dc-conv__chip:hover{border-color:rgba(139,147,255,.5)}
.nx-dc-conv__chip.is-current{border-color:rgba(139,147,255,.7);background:rgba(139,147,255,.16);color:#e6e8ff}
.nx-dc-conv__chip.is-closed{opacity:.75}
.nx-dc-conv__note{padding:12px 14px;border-radius:14px;border:1px solid rgba(139,147,255,.28);background:rgba(139,147,255,.08)}
.nx-dc-conv__note p{margin:0 0 10px;font-size:14px}
.nx-dc-conv__act{display:flex;flex-wrap:wrap;gap:8px}