/* Спокойный интерфейс поверх исходной темы. Верхняя шапка не меняется. */
body {
  background: #09090b;
}
body::before, body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
body::before {
  background: linear-gradient(145deg, #09090b 10%, #15161a 55%, #09090b 95%);
  background-size: 180% 180%;
  animation: backgroundMove 22s ease-in-out infinite alternate;
}
body::after {
  background: linear-gradient(105deg, transparent 22%, rgba(255,255,255,.025) 49%, transparent 74%);
  opacity: .62; transform: translateX(-27%);
  transition: transform 800ms cubic-bezier(.22,1,.36,1);
}
body[data-view="profile"]::after { transform: translateX(0); }
body[data-view="admin"]::after { transform: translateX(27%); }
@keyframes backgroundMove {
  from { background-position: 0 0; }
  to { background-position: 100% 100%; }
}
.app { position: relative; z-index: 1; background: transparent; }
main { position: relative; scrollbar-width: none; }
main::-webkit-scrollbar { display: none; }
.view.active { animation: viewIn 340ms cubic-bezier(.22,1,.36,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero, .panel, .vehicle-card, .admin-user, .scan-sheet, .login-card {
  background: rgba(27,28,32,.62);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 14px 34px rgba(0,0,0,.16);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.hero {
  text-align: left; margin: 5px 0 0; padding: 19px;
  border-radius: 17px;
}
.hero:before { display: none; }
.hero-head { display: flex; align-items: center; }
.hero .hero-em {
  width: 45px; height: 45px; flex: 0 0 45px; margin: 0;
  border-radius: 12px; background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12); box-shadow: none; animation: none;
}
.hero .hero-em svg { width: 25px; height: 25px; filter: none; }
.eyebrow { color: #9999a1; font-size: 9px; letter-spacing: .11em; }
.hero h1 { margin: 0; font-size: 21px; letter-spacing: -.03em; line-height: 1.15; }
.hero p { margin: 17px 0 0; font-size: 12px; color: #b0b0b7; }
.search {
  min-height: 52px; margin: 17px 0 0; padding: 4px; gap: 4px;
  border-radius: 11px; background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.12); box-shadow: none;
  transition: border-color .2s ease, background .2s ease;
}
.search:focus-within { background: rgba(0,0,0,.31); border-color: rgba(255,255,255,.4); box-shadow: none; }
.search input { padding-left: 10px; font: 500 14px var(--sans); }
.search button[type="submit"] { min-height: 40px; border-radius: 8px; padding: 0 16px; }
.search .scan-button {
  display: grid; place-items: center; width: 39px; height: 39px; min-height: 39px;
  background: transparent; color: #dfdfe3; border: 0; border-radius: 8px;
  transition: background .18s, transform .18s;
}
.search .scan-button:hover { background: rgba(255,255,255,.1); }
.search .scan-button:active { transform: scale(.92); }
.search .scan-button svg { width: 19px; height: 19px; }
.result { margin-top: 12px; }
.has-vehicle .hero { padding: 7px; border-radius: 13px; }
.has-vehicle .hero-head { display: none; }
.has-vehicle .hero .search { margin: 0; }
.has-vehicle .result { margin-top: 9px; }

.panel, .vehicle-card { border-radius: 16px; }
.vehicle-card { animation: viewIn 340ms cubic-bezier(.22,1,.36,1) both; }
.vehicle-card .big-em { background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.1); color: #f2f2f4; box-shadow: none; }
.vehicle-card .big-em svg { width: 25px; height: 25px; }
.vehicle-card .stat { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.09); }
.vehicle-card .stat:hover { box-shadow: none; }
.vehicle-card .ctrl {
  background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.1);
  transition: background .2s, border-color .2s, transform .15s;
}
.vehicle-card .ctrl:hover:not(:disabled) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); box-shadow: none; }
.vehicle-card .ctrl:active:not(:disabled) { transform: scale(.96); }
.vehicle-card .ctrl-hero { background: #f2f2f4; border: 0; box-shadow: none; }
.vehicle-card .ctrl-hero:hover:not(:disabled) { background: #fff; }
.badge, .badge.green { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #c8c8ce; font-size: 12px; }

/* Найденный самокат: цельный экран, данные и команды отдельно. */
.vehicle-card { padding: 16px; overflow: hidden; }
.vehicle-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.vehicle-label, .vehicle-actions-label { display: block; color: #92929b; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.vehicle-top h2 { margin: 4px 0 0; font-size: 28px; line-height: 1; font-weight: 850; letter-spacing: -.04em; }
.vehicle-model { margin-top: 8px; color: #a8a8b1; font-size: 12px; font-weight: 600; }
.vehicle-state { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-top: 2px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; color: #e8e8eb; font-size: 10px; font-weight: 700; }
.vehicle-state i { width: 5px; height: 5px; border-radius: 50%; background: #dadade; box-shadow: 0 0 8px rgba(255,255,255,.5); }
.vehicle-state.is-moving i { background: #b3e8c0; box-shadow: 0 0 8px #b3e8c0; }
.vehicle-data { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 20px 0 16px; }
.vehicle-data-main { grid-column: 1/-1; display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding-bottom: 10px; }
.vehicle-data span { color: #9696a0; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.vehicle-data-main strong { font-size: 23px; line-height: 1; }
.vehicle-charge-track { grid-column: 1/-1; height: 3px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.13); }
.vehicle-charge-track i { display: block; height: 100%; border-radius: inherit; background: #f3f3f5; box-shadow: 0 0 8px rgba(255,255,255,.7); }
.vehicle-data-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px 8px 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.vehicle-data-cell + .vehicle-data-cell { padding-left: 11px; border-left: 1px solid rgba(255,255,255,.1); }
.vehicle-data-cell strong { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vehicle-actions-label { margin-bottom: 9px; }
.vehicle-card .controls { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.vehicle-card .ctrl { position: relative; min-height: 55px; flex-direction: row; justify-content: flex-start; gap: 9px; padding: 11px 12px; border-radius: 10px; text-align: left; animation: none; }
.vehicle-card .ctrl .luc { width: 17px; height: 17px; flex: 0 0 auto; color: #dedee3; }
.vehicle-card .ctrl .cl { font-size: 12px; font-weight: 750; }
.vehicle-card .ctrl-hero { min-height: 49px; justify-content: flex-start; }
.vehicle-card .ctrl-hero .luc,.vehicle-card .ctrl-hero .cl { color: #111114; }
.vehicle-card .ctrl-wide { min-height: 49px; }
.vehicle-card .ctrl-arrow { margin-left: auto; font-size: 17px; line-height: 1; opacity: .7; }
.vehicle-card #order-result .detail { margin-top: 15px; }
.vehicle-card > p { margin: 0; }

.tabs {
  grid-template-columns: repeat(2,1fr);
  padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
  background: rgba(15,15,18,.78); border-top: 1px solid rgba(255,255,255,.11);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 -9px 24px rgba(0,0,0,.17);
}
.tab { min-height: 54px; border-radius: 9px; transition: background .22s, color .22s, transform .15s; }
.tab.selected { background: rgba(255,255,255,.11); color: #fff; }
.tab:active { transform: scale(.95); }
.tab svg { width: 19px; height: 19px; }

.section-heading { padding: 12px 2px 18px; }
.section-heading h1 { font-size: 25px; }
.section-heading p { font-size: 12px; }
.row { border-bottom-color: rgba(255,255,255,.09); }
.secondary, .ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.13); }
.secondary:hover, .ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.toast { background: rgba(32,32,37,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.admin-total { display: flex; align-items: baseline; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.11); }
.admin-total strong { font-size: 34px; line-height: 1; color: #fff; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.admin-total span { font-size: 12px; color: #b3b3ba; }
.admin-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.admin-metrics div { display: flex; align-items: baseline; gap: 7px; padding: 11px 0 0; min-width: 0; }
.admin-metrics b { font-size: 14px; color: #f2f2f4; font-variant-numeric: tabular-nums; }
.admin-metrics span { font-size: 10px; color: #9d9da5; }
.admin-block { margin: 23px 0; }
.admin-block h2 { font-size: 17px; }
.admin-block .search { margin: 0 0 12px; }
.admin-user { display: block; animation: none; border-radius: 13px; padding: 13px 14px; margin: 8px 0; }
.admin-user-head strong { font-size: 13px; overflow-wrap: anywhere; }
.admin-user-meta { font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.admin-user-actions { margin-top: 11px; }
.admin-user-actions button { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.12); }
.admin-user-actions button:active { transform: scale(.96); }
.admin-log { border-color: rgba(255,255,255,.09); }

.overlay { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.scan-overlay { padding: 0; background: #08090b; backdrop-filter: none; -webkit-backdrop-filter: none; }
.scan-sheet { width: min(100%,560px); height: 100dvh; max-height: none; display: flex; flex-direction: column; padding: calc(22px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; background: radial-gradient(ellipse at 50% 45%,#1b1c21,#0b0c0e 70%); box-shadow: none; }
.scan-sheet-head { margin: 0; display: flex; align-items: start; justify-content: space-between; }
.scan-kicker { display: block; margin-bottom: 5px; color: #8d8d96; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.scan-sheet-head strong { display: block; font-size: 23px; line-height: 1.1; letter-spacing: -.03em; }
.scan-tools { display: flex; gap: 7px; }
.scan-sheet-head button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.07); color: #f1f1f3; }
.scan-sheet-head button svg { width: 19px; height: 19px; }
.scan-sheet-head button:active { transform: scale(.94); }
.scan-content { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.scan-video-wrap { width: 100%; aspect-ratio: 1/1; height: auto; max-height: min(72dvh,430px); background: #101115; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; box-shadow: 0 18px 48px rgba(0,0,0,.28); }
.scan-video-wrap video { position: absolute; inset: 0; }
.scan-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at center,transparent 35%,rgba(0,0,0,.26) 100%); }
.scan-frame { inset: 13%; border: 0; box-shadow: none; border-radius: 0; }
.scan-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(#fff,#fff) left top/27px 3px no-repeat,
              linear-gradient(#fff,#fff) left top/3px 27px no-repeat,
              linear-gradient(#fff,#fff) right top/27px 3px no-repeat,
              linear-gradient(#fff,#fff) right top/3px 27px no-repeat,
              linear-gradient(#fff,#fff) left bottom/27px 3px no-repeat,
              linear-gradient(#fff,#fff) left bottom/3px 27px no-repeat,
              linear-gradient(#fff,#fff) right bottom/27px 3px no-repeat,
              linear-gradient(#fff,#fff) right bottom/3px 27px no-repeat;
}
.scan-frame::after { content: ""; position: absolute; left: 7%; right: 7%; top: 50%; height: 1px; background: rgba(255,255,255,.55); box-shadow: 0 0 8px #fff; animation: scanLine 2.8s ease-in-out infinite alternate; }
@keyframes scanLine { from { transform: translateY(-95px); } to { transform: translateY(95px); } }
.scan-empty { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; flex-direction: column; gap: 13px; color: #b8b8c0; font-size: 13px; font-weight: 700; }
.scan-empty svg { width: 56px; height: 56px; color: #dedee2; }
.scan-overlay.is-error .scan-empty { display: flex; }
.scan-overlay.is-error .scan-frame,.scan-overlay.is-error .scan-shade { display: none; }
.scan-caption { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; margin: 20px 0 0; }
.scan-caption-line { width: 25px; height: 2px; background: #f0f0f2; border-radius: 2px; }
.scan-sheet .scan-caption p { margin: 0; color: #a7a7b0; font-size: 12px; text-align: center; }
.scan-manual { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 49px; padding: 0 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: rgba(255,255,255,.065); color: #eeeef1; font-size: 13px; font-weight: 700; }
.scan-manual span { font-size: 18px; }
.scan-manual:active { transform: scale(.98); }
.torch-button[aria-pressed="true"] { background: #f2f2f4; color: #101012; }
.torch-button:disabled { opacity: .42; cursor: not-allowed; }
@media(max-width:420px) {
  .hero { padding: 16px; }
  .hero h1 { font-size: 20px; }
  .search button[type="submit"] { padding: 0 13px; }
}
@media(prefers-reduced-motion:reduce) {
  body::before, body::after, .view.active, .vehicle-card, .scan-frame::after { animation: none !important; transition: none !important; }
}
