/* МУРАВЕЙ — общие компоненты (owner: core, docs/CONTRACT.md §7.3).
   Тёмно-синие панели rgba(12,28,51,.85), жёлтые рамки rgba(255,214,64,.25), радиус 14–18px, Inter 600–900,
   жёлтое кольцо фокуса, мотив сот. Mobile-first, контент по центру не шире 560px.
   Класс -> разметка:
     .toggle-row   <label class="toggle-row"><span class="toggle-text">…</span><input type="checkbox" class="toggle-input"><span class="toggle-switch"></span></label>
     .accordion    <div class="accordion"><button class="accordion-head">…</button><div class="accordion-body">…</div></div>  (core.bindAccordions)
     .segmented    <div class="segmented"><button class="active">…</button><button>…</button></div>
     .badge        метка-пилюля: .badge-green | .badge-yellow | .badge-danger | .badge-muted
     .badge-dot    круглый счётчик (+ .floating — поверх угла кнопки с position: relative)
     .field        <div class="field"><label class="field-label">…</label><input class="input">[<div class="field-error">]</div> */

:root {
  --danger: #F87171;
  --panel: rgba(12, 28, 51, 0.85);
  --panel-soft: rgba(12, 28, 51, 0.7);
  --line: rgba(255, 214, 64, 0.25);
  --line-soft: rgba(255, 214, 64, 0.12);
  --page-max: 560px;
  --gutter: max(16px, calc((100% - var(--page-max)) / 2));
  --hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ===== Базовые поправки ===== */
[hidden] { display: none !important; }
button, input, select, textarea { font-family: inherit; }
input, textarea, select { -webkit-user-select: text; user-select: text; }
.selectable { -webkit-user-select: text; user-select: text; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible, .search-input:focus-visible { outline: none; }
.view:focus { outline: none; }
.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;
}
.noscript { padding: 40px 20px; text-align: center; color: var(--yellow); font-weight: 700; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ant-walker, .ant, .pulse-dot::after, .stat-value, .loading-hex { animation: none !important; }
}

/* ===== Раскладка ===== */
.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.page {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page::-webkit-scrollbar { display: none; }
.service-header {
  padding-left: var(--gutter); padding-right: var(--gutter);
  min-height: calc(72px + env(safe-area-inset-top)); /* same height with and without the avatar button */
}
.app-header { padding-left: max(20px, calc((100% - var(--page-max)) / 2)); padding-right: max(20px, calc((100% - var(--page-max)) / 2)); }
.masters-main { padding-left: var(--gutter); padding-right: var(--gutter); padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.home-main { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.auth-main { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }

.service-header .page-title {
  flex: 1; min-width: 0; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.logo-link { text-decoration: none; cursor: pointer; }
.header-spacer { width: 40px; height: 40px; flex-shrink: 0; }
.header-group { display: flex; align-items: center; gap: 10px; min-width: 0; }

.section-title {
  display: flex; align-items: center; gap: 8px;
  margin: 24px 4px 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--yellow);
}
.section-title::before {
  content: ''; flex-shrink: 0; width: 9px; height: 10px;
  background: var(--yellow); clip-path: var(--hex-clip);
}
.section-title:first-child { margin-top: 4px; }

.card {
  position: relative; overflow: hidden;
  padding: 16px;
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}
.card + .card { margin-top: 10px; }

/* ===== Формы ===== */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-label {
  padding-left: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.field-hint { padding-left: 4px; font-size: 11px; line-height: 1.4; color: var(--text-muted); }
.input, .textarea, .select {
  width: 100%;
  padding: 13px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px; color: var(--text);
  color-scheme: dark;
  -webkit-appearance: none; appearance: none;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: rgba(245, 247, 250, 0.35); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 214, 64, 0.12);
}
.input:disabled, .textarea:disabled, .select:disabled { opacity: 0.55; cursor: not-allowed; }
.textarea { min-height: 92px; line-height: 1.45; resize: vertical; }
.select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FFD640' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
}
.select option { background: #0F2140; color: var(--text); }
.input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #0C1C33 inset;
}
.input.invalid, .textarea.invalid, .select.invalid, .consent.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
.field-error { padding-left: 4px; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--danger); }

/* ===== Кнопки ===== */
.btn-next:disabled, .btn-secondary:disabled, .btn-danger:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-next.busy, .btn-secondary.busy, .btn-danger.busy { opacity: 0.7; cursor: progress; }
.btn-secondary, .btn-danger {
  padding: 14px;
  border-radius: 14px;
  font-family: inherit; font-weight: 800; font-size: 14px; letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary {
  background: transparent; color: var(--yellow);
  border: 1.5px solid rgba(255, 214, 64, 0.4);
}
.btn-secondary:hover { background: rgba(255, 214, 64, 0.1); border-color: var(--yellow); }
.btn-danger {
  background: rgba(248, 113, 113, 0.12); color: var(--danger);
  border: 1.5px solid rgba(248, 113, 113, 0.45);
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.22); border-color: var(--danger); }
.btn-secondary:active, .btn-danger:active { transform: scale(0.98); }
.btn-ghost {
  padding: 10px 12px;
  background: transparent; border: none; border-radius: 10px;
  font-family: inherit; font-weight: 700; font-size: 13px;
  color: var(--text-muted); cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 12px; letter-spacing: 0.08em; border-radius: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row > * { flex: 1 1 0; min-width: 120px; margin-top: 0; }
.btn-row .btn-next, .btn-row .btn-secondary, .btn-row .btn-danger { padding: 14px 10px; font-size: 13px; letter-spacing: 0.08em; }
.link-btn {
  min-height: 40px; padding: 6px;
  background: none; border: none;
  font-family: inherit; font-weight: 700; font-size: 13px;
  color: var(--yellow); cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(255, 214, 64, 0.4); text-underline-offset: 3px;
}
.link-btn:hover { text-decoration-color: currentColor; }

/* ===== Инфо-блок ===== */
.info-block {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  background: rgba(255, 214, 64, 0.07);
  border: 1px solid rgba(255, 214, 64, 0.22);
  border-radius: 14px;
}
.info-block-icon {
  flex-shrink: 0; width: 34px; height: 39px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #FFDE5A 0%, #F0BB10 100%);
  clip-path: var(--hex-clip);
}
.info-block-icon svg { width: 16px !important; height: 16px !important; color: var(--ink); }
.info-block-body { flex: 1; min-width: 0; }
.info-block-title { margin-bottom: 2px; font-size: 13px; font-weight: 800; color: var(--yellow); }
.info-block-text { font-size: 12px; line-height: 1.45; color: rgba(245, 247, 250, 0.85); }

/* ===== Аккордеон ===== */
.accordion {
  overflow: hidden;
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  transition: border-color 0.2s;
}
.accordion + .accordion { margin-top: 8px; }
.accordion.open { border-color: rgba(255, 214, 64, 0.3); }
.accordion-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 14px;
  background: transparent; border: none;
  font-family: inherit; font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; text-align: left;
  color: var(--text); cursor: pointer;
  transition: color 0.2s;
}
.accordion-head svg { width: 16px !important; height: 16px !important; color: var(--yellow); }
.accordion-head::after {
  content: ''; flex-shrink: 0; margin-left: auto;
  width: 8px; height: 8px;
  border: solid var(--yellow); border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s;
}
.accordion.open > .accordion-head { color: var(--yellow); }
.accordion.open > .accordion-head::after { transform: translateY(2px) rotate(225deg); }
.accordion-body { display: none; padding: 0 14px 14px; }
.accordion.open > .accordion-body { display: block; animation: fadeUp 0.25s ease-out; }

/* ===== Бейджи ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.2;
  white-space: nowrap; vertical-align: middle;
}
.badge svg { width: 11px !important; height: 11px !important; }
.badge-green { background: rgba(74, 222, 128, 0.12); color: var(--green); border-color: rgba(74, 222, 128, 0.32); }
.badge-yellow { background: rgba(255, 214, 64, 0.12); color: var(--yellow); border-color: rgba(255, 214, 64, 0.32); }
.badge-danger { background: rgba(248, 113, 113, 0.12); color: var(--danger); border-color: rgba(248, 113, 113, 0.4); }
.badge-muted { background: rgba(148, 163, 184, 0.15); color: #94A3B8; border-color: rgba(148, 163, 184, 0.3); }
.badge-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--yellow); color: var(--ink);
  border-radius: 999px;
  font-size: 10px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--bg);
}
.badge-dot.floating { position: absolute; top: -6px; right: -6px; }

/* ===== Аватар-сота ===== */
.avatar-hex {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #FFDE5A 0%, #FFD640 35%, #F0BB10 100%);
  clip-path: var(--hex-clip);
  color: var(--ink);
}
.avatar-hex::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%);
  pointer-events: none;
}
.avatar-hex span { position: relative; z-index: 1; font-weight: 900; }
.avatar-hex img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-btn {
  position: relative;
  display: flex; padding: 0;
  background: none; border: none; border-radius: 12px;
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(255, 214, 64, 0.3));
  transition: transform 0.15s;
}
.avatar-btn:active { transform: scale(0.95); }
.avatar-btn .badge-dot.floating { top: -4px; right: -4px; }

/* ===== Карточки мастера и заказа (дополнения) ===== */
.master-row { cursor: pointer; }
.master-row .master-name-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.master-name-text { min-width: 0; overflow-wrap: anywhere; }
.rating-count { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.master-services {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; line-height: 1.35; color: var(--text-muted);
}
.master-price {
  flex-shrink: 0; align-self: flex-start; margin-top: 2px;
  font-size: 12px; font-weight: 800; color: var(--yellow); white-space: nowrap;
}
.order-card[data-order] { cursor: pointer; }
.order-card .badge { margin-left: auto; }

/* ===== Сегментированный переключатель ===== */
.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  padding: 4px;
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}
.segmented button {
  min-height: 40px; padding: 10px 8px;
  background: transparent; border: none; border-radius: 10px;
  font-family: inherit; font-weight: 800; font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-muted); cursor: pointer;
  transition: all 0.2s;
}
.segmented button:hover { color: var(--text); }
.segmented button.active {
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 4px 14px rgba(255, 214, 64, 0.3);
}

/* ===== Переключатель-тумблер ===== */
.toggle-row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  cursor: pointer;
}
.toggle-text { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.toggle-sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.toggle-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-switch {
  position: relative; flex-shrink: 0;
  width: 44px; height: 26px;
  background: rgba(148, 163, 184, 0.25);
  border: 1px solid rgba(255, 214, 64, 0.2); border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.toggle-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.toggle-input:checked + .toggle-switch { background: var(--green); border-color: var(--green); }
.toggle-input:checked + .toggle-switch::after { transform: translateX(18px); }
.toggle-input:focus-visible + .toggle-switch { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ===== Загрузчик фото ===== */
.photo-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.photo-tile, .photo-add { position: relative; aspect-ratio: 1; border-radius: 12px; }
.photo-tile { overflow: hidden; background: var(--panel-soft); border: 1px solid var(--line-soft); }
.photo-tile img, .photo-tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-tile.pending img, .photo-tile.pending video { opacity: 0.4; }
.photo-tile.video::after {
  content: ''; position: absolute; left: 6px; bottom: 6px;
  width: 22px; height: 22px;
  background: rgba(8, 20, 38, 0.85) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='%23FFD640' d='M2 1l7 4-7 4z'/%3E%3C/svg%3E");
  border-radius: 50%; pointer-events: none;
}
.photo-spinner {
  position: absolute; left: 50%; top: 50%;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 3px solid rgba(255, 214, 64, 0.25); border-top-color: var(--yellow); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.photo-remove {
  position: absolute; top: 4px; right: 4px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  background: rgba(8, 20, 38, 0.85); border: none; border-radius: 50%;
  font-size: 18px; line-height: 1; color: #fff; cursor: pointer;
}
.photo-remove::before { content: ''; position: absolute; inset: -6px; }
.photo-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: rgba(255, 214, 64, 0.05);
  border: 1.5px dashed rgba(255, 214, 64, 0.4);
  font-family: inherit; font-size: 11px; font-weight: 700; color: var(--yellow);
  cursor: pointer;
  transition: background 0.2s;
}
.photo-add::before { content: '+'; font-size: 26px; font-weight: 400; line-height: 1; }
.photo-add:hover { background: rgba(255, 214, 64, 0.12); }

/* ===== Модальное окно ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(4, 10, 20, 0.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.25s;
}
.modal-backdrop.open { opacity: 1; }
.modal {
  display: flex; flex-direction: column;
  width: 100%; max-width: 440px; max-height: 100%;
  background: linear-gradient(180deg, #0F2140 0%, #081426 100%);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  outline: none;
  opacity: 0; transform: translateY(14px) scale(0.98);
  transition: transform 0.3s cubic-bezier(.2, .9, .3, 1), opacity 0.25s;
}
.modal.open { opacity: 1; transform: none; }
.modal-wide { max-width: var(--page-max); }
.modal-head {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 16px 8px 20px;
}
.modal-title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; color: #fff; }
.modal-close {
  flex-shrink: 0; margin-left: auto;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  color: var(--yellow); cursor: pointer;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255, 214, 64, 0.1); }
.modal-close svg { width: 16px !important; height: 16px !important; }
.modal-body {
  min-height: 0; padding: 4px 20px 16px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  -webkit-user-select: text; user-select: text;
}
.modal-text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: rgba(245, 247, 250, 0.85); white-space: pre-line; }
.modal-actions { flex-shrink: 0; display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 20px 20px; }
.modal-actions > * { flex: 1 1 0; min-width: 120px; margin-top: 0; }
.modal-actions .btn-next, .modal-actions .btn-secondary, .modal-actions .btn-danger { padding: 14px 10px; font-size: 13px; letter-spacing: 0.08em; }

/* ===== Состояния: загрузка, ошибка, пусто ===== */
.loading {
  flex: 1; min-height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 40px 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.loading-hex {
  width: 44px; height: 50px;
  background: linear-gradient(165deg, #FFDE5A 0%, #F0BB10 100%);
  clip-path: var(--hex-clip);
  animation: hexPulse 1.2s ease-in-out infinite;
}
@keyframes hexPulse {
  0%, 100% { transform: scale(0.7) rotate(0deg); opacity: 0.55; }
  50% { transform: scale(1) rotate(60deg); opacity: 1; }
}
.error-state { text-align: center; }
.error-state .empty-icon { border-color: rgba(248, 113, 113, 0.4); }
.error-state .empty-icon svg { color: var(--danger); opacity: 0.9; }
.empty-cta { margin-top: 18px; padding: 13px 28px; }

.toast {
  width: max-content; max-width: min(92vw, 420px);
  bottom: calc(24px + env(safe-area-inset-bottom));
  white-space: normal; text-align: center; line-height: 1.35;
  border-radius: 18px;
}

/* ===== Главная: дополнения ===== */
.orders-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  color: var(--yellow); cursor: pointer;
  transition: background 0.2s;
}
.orders-btn:hover { background: rgba(255, 214, 64, 0.1); }
.orders-btn svg { width: 18px !important; height: 18px !important; }
.banner {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 420px; margin: 0 auto 14px; padding: 12px 14px;
  background: linear-gradient(120deg, rgba(255, 214, 64, 0.22), rgba(255, 214, 64, 0.08));
  border: 1px solid rgba(255, 214, 64, 0.5); border-radius: 16px;
  box-shadow: 0 8px 24px -10px rgba(255, 214, 64, 0.4);
  font-family: inherit; text-align: left; color: var(--text);
  cursor: pointer;
  transition: transform 0.15s;
}
.banner:active { transform: scale(0.99); }
.banner-icon {
  flex-shrink: 0; width: 36px; height: 41px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #FFDE5A 0%, #F0BB10 100%);
  clip-path: var(--hex-clip);
}
.banner-icon svg { width: 18px !important; height: 18px !important; color: var(--ink); }
.banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.banner-title { font-size: 14px; font-weight: 800; color: var(--yellow); }
.banner-sub { font-size: 11px; line-height: 1.35; color: rgba(245, 247, 250, 0.75); }
.banner-chev { flex-shrink: 0; width: 18px !important; height: 18px !important; color: var(--yellow); }
@media (max-width: 360px) {
  .app-header { padding-left: 12px; padding-right: 12px; }
  .app-header .header-group { gap: 6px; }
  .app-header .btn-login { padding: 10px 12px; }
  .app-header .logo { font-size: 15px; letter-spacing: 0.1em; }
}
.stat-pill { transition: opacity 0.4s; }
.stat-pill.is-pending { opacity: 0; }
/* The ring goes on the item: `.hex-face` is clipped by its own clip-path, which would cut off any filter shadow. */
.hex-item:focus-visible { outline: none; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 0 8px var(--yellow)); }
.onboard-steps { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.onboard-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line-soft); border-radius: 14px;
}
.onboard-num {
  flex-shrink: 0; width: 42px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #FFDE5A 0%, #F0BB10 100%);
  clip-path: var(--hex-clip);
}
.onboard-num svg { width: 20px !important; height: 20px !important; color: var(--ink); }
.onboard-body { min-width: 0; }
.onboard-title { margin-bottom: 3px; font-size: 14px; font-weight: 800; color: #fff; }
.onboard-text { font-size: 12px; line-height: 1.45; color: var(--text-muted); }

/* ===== Вход и регистрация: дополнения ===== */
.auth-header { gap: 8px; }
@media (max-width: 360px) {
  .auth-title { font-size: 14px; letter-spacing: 0.12em; }
}
.auth-main .segmented { flex-shrink: 0; }
.auth-form { flex-shrink: 0; }
.auth-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.role-hint { margin: -6px 4px 0; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.auth-done { display: flex; flex-direction: column; gap: 18px; }

/* ===== Юридические тексты ===== */
.legal { font-size: 13px; line-height: 1.55; color: rgba(245, 247, 250, 0.85); }
.legal h3 { margin: 18px 0 6px; font-size: 14px; font-weight: 800; color: var(--yellow); }
.legal h3:first-child { margin-top: 0; }
.legal p { margin: 0 0 8px; }
.legal ul, .legal ol { margin: 0 0 8px; padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legal strong { color: #fff; }
.legal .legal-meta { font-size: 12px; color: var(--text-muted); }
