/* VEZU VEZU — части экранов: заявки, карточки людей, номер машины, бейджи, звёзды, чат, профиль. */

/* ---------- проверка: снимки с камеры ---------- */
.shot { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px;
  border-radius: var(--r-md); border: var(--stroke) dashed var(--border); background: var(--bg); }
.shot.done { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.shot-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex-shrink: 0; display: grid;
  place-items: center; background: var(--bg-elevated); color: var(--icon-idle); }
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shot-action { color: var(--accent-hover); font-weight: 700; font-size: 14px; }
.result-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-hover); }

/* ---------- регион ---------- */
.region-line { display: flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13px; font-weight: 600;
  color: var(--icon-idle); text-align: left; max-width: 100%; }
.region-line svg { color: var(--accent); }
.region-change { color: var(--accent-hover); margin-left: 2px; }
.menu-item .tick svg { color: var(--accent); }

/* ---------- заявка в списке водителя ---------- */
.list { display: flex; flex-direction: column; }
.req {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px; text-align: left; width: 100%;
  border-bottom: 1px solid var(--line); position: relative;
}
.req:last-child { border-bottom: none; }
.req:active { background: var(--bg-soft); }
.req-price { font-family: var(--font-display); font-size: 16px; letter-spacing: .02em; min-width: 86px; }
.req .addr { font-weight: 600; }
.req .meta { font-size: 13px; color: var(--text-secondary); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.req.on-route::before {
  content: ''; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--brand);
}
.req .chev { color: var(--text-muted); }
.empty { text-align: center; padding: 18px 8px 8px; color: var(--text-secondary); }
.empty .ic { color: var(--text-muted); margin: 0 auto 8px; width: max-content; }

/* ---------- бейджи ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--bg-elevated); color: var(--icon-idle);
}
.badge.ok { background: var(--accent-soft); color: var(--accent-hover); }
.badge.route { background: var(--brand); color: var(--graphite); }
.rate { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--text); }
.rate svg { color: var(--accent); }

/* ---------- человек ---------- */
.person { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: var(--bg-elevated); color: var(--icon-idle);
  font-weight: 700; font-size: 18px;
}
.avatar.lg { width: 88px; height: 88px; font-size: 30px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person .name { font-weight: 700; font-size: 17px; }

.card {
  border: var(--stroke) solid var(--border); border-radius: var(--r-card); padding: 16px;
  display: flex; flex-direction: column; gap: 12px; background: var(--bg);
}
.card.soft { background: var(--bg-elevated); border-color: transparent; }
.card.accent { background: var(--accent-soft); border-color: transparent; }
.card.warn { background: var(--danger-soft); border-color: transparent; }
.kv { display: flex; align-items: center; gap: 10px; color: var(--icon-idle); }
.kv .grow { color: var(--text); }

.plate {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 7px;
  border: 2px solid var(--graphite); background: #fff; font-weight: 700; font-size: 15px; letter-spacing: .08em;
}
.car-photo { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--bg-elevated); }

/* ---------- статус и таймер ---------- */
.status-line { display: flex; align-items: center; gap: 10px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); position: relative; flex-shrink: 0; }
.pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent);
  animation: ring 1.6s ease-out infinite; }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.timer { font-family: var(--font-display); font-size: 34px; letter-spacing: .04em; line-height: 1; }
.price-big { font-family: var(--font-display); font-size: 26px; letter-spacing: .02em; }

.price-input {
  display: flex; align-items: baseline; gap: 6px; padding: 6px 16px; border-radius: var(--r-md); background: var(--bg-elevated);
  border: var(--stroke) solid transparent;
}
.price-input:focus-within { border-color: var(--accent); background: var(--bg); }
.price-input input { flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 34px; font-weight: 700; padding: 6px 0; }
.price-input .cur { font-size: 26px; font-weight: 700; color: var(--text-secondary); }

/* ---------- действия поездки ---------- */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: var(--icon-idle); padding: 6px 0; position: relative; }
.act .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-elevated); }
.act.danger { color: var(--danger); }
.act.danger .ic { background: var(--danger-soft); }
.act .dot { position: absolute; top: 6px; right: calc(50% - 26px); width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff; }

/* ---------- звёзды и лайк ---------- */
.stars { display: flex; justify-content: center; gap: 6px; }
.stars button { color: var(--border); padding: 4px; }
.stars button.on { color: var(--accent); }
.like { display: inline-flex; align-items: center; gap: 8px; color: var(--icon-idle); }
.like.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- чат ---------- */
.chat { display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 18px; font-size: 15px; word-wrap: break-word; white-space: pre-wrap; }
.bubble.mine { align-self: flex-end; background: var(--graphite); color: #fff; border-bottom-right-radius: 6px; }
.bubble.theirs { align-self: flex-start; background: var(--bg-elevated); border-bottom-left-radius: 6px; }
.bubble time { display: block; font-size: 11px; opacity: .6; margin-top: 2px; text-align: right; }
.composer { display: flex; gap: 8px; padding: 10px 12px calc(var(--safe-bottom) + 10px); border-top: 1px solid var(--line); }
.composer .field { min-height: 46px; border-radius: 23px; }
.send { width: 46px; height: 46px; border-radius: 50%; background: var(--graphite); color: #fff; display: grid; place-items: center; }

/* ---------- профиль ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--bg-elevated); border-radius: var(--r-md); padding: 12px 14px; }
.tile .big { font-family: var(--font-display); font-size: 20px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.tile .big .badge, .tile .big .rate { font-family: var(--font-body); }
.tile .big .rate { font-size: 20px; font-weight: 700; }
.review { padding: 10px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: none; }
.menu-item { display: flex; align-items: center; gap: 12px; min-height: 52px; width: 100%; text-align: left;
  border-bottom: 1px solid var(--line); font-weight: 500; color: var(--text); }
.menu-item svg { color: var(--icon-idle); }
.menu-item.danger, .menu-item.danger svg { color: var(--danger); }
