:root.ev-phone-v5 {
  --ev5-ink: #0a1020;
  --ev5-ink-soft: #182238;
  --ev5-muted: #68748a;
  --ev5-pearl: #f6f8fc;
  --ev5-white: rgba(255, 255, 255, .96);
  --ev5-line: rgba(99, 112, 139, .16);
  --ev5-gold: #d8b66a;
  --ev5-gold-light: #f4dfaa;
  --ev5-blue: #3b5cff;
  --ev5-violet: #7c4dff;
  --ev5-shadow: 0 24px 70px rgba(20, 28, 50, .12);
  --ev5-shadow-soft: 0 14px 38px rgba(20, 28, 50, .08);
  color-scheme: light;
  background: #edf1f8;
}

html.ev-phone-v5,
html.ev-phone-v5 body {
  min-height: 100%;
  color: var(--ev5-ink);
  background:
    radial-gradient(circle at 2% 0%, rgba(88, 117, 255, .15), transparent 34rem),
    radial-gradient(circle at 100% 14%, rgba(147, 93, 255, .13), transparent 32rem),
    radial-gradient(circle at 50% 110%, rgba(57, 198, 174, .10), transparent 34rem),
    linear-gradient(180deg, #f9faff 0%, #eff3f9 44%, #e9eef6 100%) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.ev-phone-v5 body {
  position: relative;
  overflow-x: hidden;
  padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
}

html.ev-phone-v5 body::before,
html.ev-phone-v5 body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  will-change: transform;
}

html.ev-phone-v5 body::before {
  left: -13rem;
  top: 12%;
  opacity: .23;
  background: radial-gradient(circle, rgba(57, 108, 255, .62), transparent 68%);
  animation: ev5AuroraA 22s ease-in-out infinite alternate;
}

html.ev-phone-v5 body::after {
  right: -14rem;
  top: 48%;
  opacity: .18;
  background: radial-gradient(circle, rgba(131, 68, 255, .70), transparent 68%);
  animation: ev5AuroraB 26s ease-in-out infinite alternate;
}

html.ev-phone-v5 .ev-v5-root {
  position: relative;
  z-index: 1;
}

html.ev-phone-v5[data-ev-v5-mode="stock"],
html.ev-phone-v5[data-ev-v5-mode="stock"] body,
html.ev-phone-v5[data-ev-v5-mode="stock"] #root {
  min-height: 100vh;
  scroll-behavior: auto !important;
}

/* V7 transition shield. It is activated on pointer-down, before React replaces
   the old tree, and leaves only after the new tree has received premium styles. */
html.ev-phone-v5 #evV7TransitionCurtain {
  display: none !important;
  position: fixed;
  z-index: 999990;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 8%, rgba(62, 100, 235, .20), transparent 40%),
    radial-gradient(circle at 88% 34%, rgba(121, 73, 225, .16), transparent 44%),
    linear-gradient(145deg, rgba(17, 27, 59, .10), rgba(70, 51, 130, .08));
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: opacity .14s ease-out, visibility 0s linear .14s;
  will-change: opacity;
}

html.ev-phone-v5[data-ev-v7-transition="hold"] #evV7TransitionCurtain {
  opacity: 1;
  visibility: visible;
  transition: none;
}

html.ev-phone-v5[data-ev-v7-transition="release"] #evV7TransitionCurtain {
  opacity: 0;
  visibility: visible;
  transition: opacity .14s ease-out;
}

html.ev-phone-v5 #evV7TransitionCurtain .ev-v7-transition-glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

html.ev-phone-v5 #evV7TransitionCurtain .ev-v7-transition-glass span {
  position: absolute;
  width: 32vw;
  height: 32vw;
  max-width: 180px;
  max-height: 180px;
  border-radius: 50%;
  opacity: .12;
  filter: blur(34px);
  background: #7c4dff;
}

html.ev-phone-v5 #evV7TransitionCurtain .ev-v7-transition-glass span:nth-child(1) { left: -12%; top: 16%; }
html.ev-phone-v5 #evV7TransitionCurtain .ev-v7-transition-glass span:nth-child(2) { right: -8%; top: 44%; background: #3b5cff; }
html.ev-phone-v5 #evV7TransitionCurtain .ev-v7-transition-glass span:nth-child(3) { left: 34%; bottom: -8%; background: #35bfa4; }

html.ev-phone-v5 #root > div {
  width: min(100%, 1160px) !important;
  margin-inline: auto !important;
}

html.ev-phone-v5 button,
html.ev-phone-v5 input,
html.ev-phone-v5 select,
html.ev-phone-v5 textarea {
  font-family: inherit !important;
  -webkit-tap-highlight-color: transparent;
}

html.ev-phone-v5 button {
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease, border-color .2s ease, filter .2s ease;
}

html.ev-phone-v5 button:not(:disabled):active {
  transform: scale(.975) !important;
}

html.ev-phone-v5 button:focus-visible,
html.ev-phone-v5 input:focus-visible,
html.ev-phone-v5 select:focus-visible,
html.ev-phone-v5 textarea:focus-visible {
  outline: 3px solid rgba(59, 92, 255, .22) !important;
  outline-offset: 3px;
}

/* Premium hero: deep obsidian, slow iridescent movement, no blinking. */
html.ev-phone-v5 .ev-v5-hero {
  position: relative;
  min-height: 154px !important;
  border: 1px solid rgba(239, 218, 162, .22) !important;
  border-radius: 32px !important;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .055), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(151, 95, 255, .58), transparent 32%),
    radial-gradient(circle at 66% 110%, rgba(44, 100, 255, .58), transparent 42%),
    linear-gradient(135deg, #060b18 0%, #101a3b 50%, #251449 100%) !important;
  background-size: 145% 145% !important;
  box-shadow: 0 30px 75px rgba(9, 16, 38, .30), inset 0 1px rgba(255, 255, 255, .10) !important;
  isolation: isolate;
  overflow: hidden !important;
  animation: ev5HeroFlow 18s ease-in-out infinite alternate;
}

html.ev-phone-v5 .ev-v5-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 42%, #000 100%);
  pointer-events: none;
}

html.ev-phone-v5 .ev-v5-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 7%;
  top: -55%;
  width: 17%;
  height: 210%;
  opacity: .34;
  background: linear-gradient(90deg, transparent, rgba(255, 231, 174, .45), transparent);
  transform: rotate(18deg) translateX(-160%);
  animation: ev5HeroSweep 10s ease-in-out infinite;
  pointer-events: none;
}

html.ev-phone-v5 .ev-v5-hero > * {
  position: relative;
  z-index: 2;
}

html.ev-phone-v5 .ev-v5-hero h1,
html.ev-phone-v5 .ev-v5-hero h2,
html.ev-phone-v5 .ev-v5-hero > div:first-child {
  letter-spacing: -.045em !important;
  text-shadow: 0 10px 35px rgba(0, 0, 0, .32);
}

html.ev-phone-v5 .ev-v5-hero-subtitle {
  color: rgba(239, 242, 255, .78) !important;
  max-width: 38rem;
  letter-spacing: -.01em;
}

/* Release badge is elegant and static, not a warning light. */
html.ev-phone-v5 #evV155Badge,
#evV5ClubBadge {
  position: fixed !important;
  left: 10px !important;
  top: 8px !important;
  z-index: 1000000 !important;
  padding: 6px 11px !important;
  border: 1px solid rgba(244, 223, 170, .58) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #111827, #252038) !important;
  color: #f6e5b9 !important;
  box-shadow: 0 10px 25px rgba(7, 12, 28, .24) !important;
  font: 950 10px/1 system-ui, sans-serif !important;
  letter-spacing: .07em !important;
  opacity: .98 !important;
  pointer-events: none !important;
  animation: none !important;
}

/* Top utility pair. */
html.ev-phone-v5 .ev-v5-quickbar {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  height: auto !important;
  padding: 14px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, .68) !important;
  box-shadow: 0 16px 46px rgba(20, 28, 50, .07) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
}

/* Main stock controls: predictable rows, no invisible gaps. */
html.ev-phone-v5 .ev-v5-stock-controls {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(255, 255, 255, .76) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: var(--ev5-shadow-soft) !important;
  backdrop-filter: blur(24px) saturate(1.18) !important;
  overflow: visible !important;
}

html.ev-phone-v5 .ev-v5-stock-controls > .ev-v5-action-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: ev5RowReveal .42s cubic-bezier(.18, .8, .22, 1) both !important;
}

html.ev-phone-v5 .ev-v5-action {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 12px !important;
  align-content: center !important;
  width: 100% !important;
  height: auto !important;
  min-height: 96px !important;
  margin: 0 !important;
  padding: 15px 15px !important;
  border: 1px solid rgba(112, 126, 154, .15) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(246,248,253,.94)) !important;
  color: #111827 !important;
  box-shadow: 0 12px 28px rgba(20, 28, 50, .065), inset 0 1px rgba(255,255,255,.92) !important;
  text-align: left !important;
  white-space: normal !important;
  font-size: 15px !important;
  font-weight: 920 !important;
  line-height: 1.18 !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: hidden !important;
  animation: none !important;
}

html.ev-phone-v5 .ev-v5-action::before {
  content: attr(data-ev-v5-icon);
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  align-self: center;
  border-radius: 15px;
  background: rgba(78, 93, 128, .09);
  color: currentColor;
  font-size: 20px;
  font-weight: 950;
  box-shadow: inset 0 1px rgba(255,255,255,.65);
}

html.ev-phone-v5 .ev-v5-action::after {
  content: attr(data-ev-v5-help);
  grid-column: 2;
  grid-row: 2;
  display: block;
  margin-top: 5px;
  color: #748096;
  font-size: 11.5px;
  font-weight: 720;
  line-height: 1.3;
}

html.ev-phone-v5 .ev-v5-action:not(:disabled):hover {
  transform: translateY(-3px) !important;
  border-color: rgba(78, 92, 255, .25) !important;
  box-shadow: 0 20px 38px rgba(20, 28, 50, .12) !important;
}

html.ev-phone-v5 .ev-v5-action[data-ev-v5-tone="royal"] {
  border-color: rgba(105, 124, 255, .30) !important;
  background: linear-gradient(135deg, #2738ce 0%, #4c55ff 52%, #7547ee 100%) !important;
  color: #fff !important;
  box-shadow: 0 17px 38px rgba(56, 67, 214, .26) !important;
}

html.ev-phone-v5 .ev-v5-action[data-ev-v5-tone="violet"] {
  background: linear-gradient(145deg, #f8f5ff, #eee9ff) !important;
  color: #5632b5 !important;
}

html.ev-phone-v5 .ev-v5-action[data-ev-v5-tone="graphite"] {
  background: linear-gradient(145deg, #f5f7fb, #eceff5) !important;
  color: #273247 !important;
}

html.ev-phone-v5 .ev-v5-action[data-ev-v5-tone="amber"] {
  background: linear-gradient(145deg, #fffaf0, #fff0cd) !important;
  color: #8a570d !important;
}

html.ev-phone-v5 .ev-v5-action[data-ev-v5-tone="mint"] {
  background: linear-gradient(145deg, #effcf8, #ddf8ee) !important;
  color: #08745a !important;
}

html.ev-phone-v5 .ev-v5-action[data-ev-v5-tone="indigo"] {
  background: linear-gradient(145deg, #f0f3ff, #e6eaff) !important;
  color: #3547ae !important;
}

html.ev-phone-v5 .ev-v5-action[data-ev-v5-tone="emerald"] {
  border-color: rgba(51, 190, 153, .25) !important;
  background: linear-gradient(135deg, #075e56 0%, #0c8873 54%, #21a88d 100%) !important;
  color: #fff !important;
  box-shadow: 0 17px 38px rgba(10, 116, 94, .23) !important;
  animation: none !important;
}

html.ev-phone-v5 .ev-v5-action[data-ev-v5-tone="rose"] {
  background: linear-gradient(145deg, #fff5f7, #ffe8ed) !important;
  color: #a4264b !important;
}

html.ev-phone-v5 .ev-v5-action[data-ev-v5-tone="royal"]::after,
html.ev-phone-v5 .ev-v5-action[data-ev-v5-tone="emerald"]::after {
  color: rgba(255, 255, 255, .76);
}

html.ev-phone-v5 .ev-v5-action[data-ev-v5-tone="royal"]::before,
html.ev-phone-v5 .ev-v5-action[data-ev-v5-tone="emerald"]::before {
  background: rgba(255,255,255,.14);
}

/* Search and filters. */
html.ev-phone-v5 input,
html.ev-phone-v5 select,
html.ev-phone-v5 textarea {
  border: 1px solid rgba(112, 126, 154, .22) !important;
  border-radius: 17px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 7px 20px rgba(20,28,50,.045) !important;
  color: #111827 !important;
}

html.ev-phone-v5 .ev-v5-base-search {
  min-height: 54px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.92) !important;
}

html.ev-phone-v5 .ev-v5-base-filter {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 9px !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

html.ev-phone-v5 .ev-v5-base-filter button {
  min-height: 40px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* Inventory summary and cards. */
html.ev-phone-v5 .ev-v5-stock-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  height: auto !important;
}

html.ev-phone-v5 .ev-v5-stock-stats > * {
  min-height: 118px !important;
  border-radius: 24px !important;
  border-width: 1px !important;
  box-shadow: var(--ev5-shadow-soft) !important;
  backdrop-filter: blur(16px);
}

html.ev-phone-v5 .ev-v5-inventory-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: max-content !important;
  align-items: start !important;
  gap: 15px !important;
  height: auto !important;
  overflow: visible !important;
}

html.ev-phone-v5 .ev-v5-stock-card-shell,
html.ev-phone-v5 .ev-v5-product-card-shell {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  border: 1px solid rgba(255,255,255,.80) !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.76) !important;
  box-shadow: var(--ev5-shadow-soft) !important;
}

html.ev-phone-v5 .ev-v5-stock-card,
html.ev-phone-v5 .ev-v5-product-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 23px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: none !important;
  overflow: visible !important;
  animation: ev5CardReveal .48s cubic-bezier(.18,.8,.22,1) both !important;
}

html.ev-phone-v5 .ev-v5-stock-card img,
html.ev-phone-v5 .ev-v5-product-card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  border-radius: 19px !important;
  background: #edf1f7 !important;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}

html.ev-phone-v5 .ev-v5-stock-card:hover img,
html.ev-phone-v5 .ev-v5-product-card:hover img {
  transform: scale(1.014);
  filter: saturate(1.04) contrast(1.01);
}

html.ev-phone-v5 .ev-v5-stock-card h3,
html.ev-phone-v5 .ev-v5-product-card h3 {
  height: auto !important;
  max-height: none !important;
  color: #101827 !important;
  letter-spacing: -.025em !important;
  line-height: 1.18 !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
}

html.ev-phone-v5 .ev-v5-stock-card strong {
  color: #68748a !important;
  font-weight: 800 !important;
}

html.ev-phone-v5 .ev-v5-cart-button {
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #2e42d5, #7549ef) !important;
  color: white !important;
  box-shadow: 0 12px 28px rgba(70, 66, 220, .22) !important;
}

/* Premium bottom navigation. */
html.ev-phone-v5 .ev-v5-nav {
  left: 50% !important;
  right: auto !important;
  width: min(calc(100vw - 16px), 780px) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 28px !important;
  background: rgba(250, 251, 255, .88) !important;
  box-shadow: 0 24px 65px rgba(15, 23, 42, .20) !important;
  backdrop-filter: blur(28px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.35) !important;
  animation: none !important;
  opacity: 1 !important;
  transform: translateX(-50%) !important;
}

html.ev-phone-v5 .ev-v5-nav button,
html.ev-phone-v5 .ev-v5-nav .tab {
  border-radius: 19px !important;
}

/* React already changes the view. A second entrance translation was the
   visible "туда-сюда" movement, so Stock transitions stay spatially fixed. */
html.ev-phone-v5[data-ev-v5-mode="stock"] .ev-v5-action-row,
html.ev-phone-v5[data-ev-v5-mode="stock"] .ev-v5-stock-card,
html.ev-phone-v5[data-ev-v5-mode="stock"] .ev-v5-product-card,
html.ev-phone-v5[data-ev-v5-mode="stock"] .ev-v5-screen,
html.ev-phone-v5[data-ev-v5-mode="stock"] .ev-v5-ai-helper {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="stock"] .ev-v5-stock-shell,
html.ev-phone-v5[data-ev-v5-mode="stock"] .ev-v5-stock-controls,
html.ev-phone-v5[data-ev-v5-mode="stock"] .ev-v5-screen {
  transition: none !important;
}

/* Real standalone screens inside the existing React application. */
html.ev-phone-v5[data-ev-v5-screen]:not([data-ev-v5-screen="home"]) .ev-v5-hero,
html.ev-phone-v5[data-ev-v5-screen]:not([data-ev-v5-screen="home"]) .ev-v5-quickbar,
html.ev-phone-v5[data-ev-v5-screen]:not([data-ev-v5-screen="home"]) .ev-v5-stock-stats,
html.ev-phone-v5[data-ev-v5-screen]:not([data-ev-v5-screen="home"]) .ev-v5-inventory-grid {
  display: none !important;
}

html.ev-phone-v5[data-ev-v5-screen]:not([data-ev-v5-screen="home"]) .ev-v5-stock-controls {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html.ev-phone-v5[data-ev-v5-screen]:not([data-ev-v5-screen="home"]) .ev-v5-stock-controls > .ev-v5-action-row,
html.ev-phone-v5[data-ev-v5-screen]:not([data-ev-v5-screen="home"]) .ev-v5-stock-controls > .ev-v5-base-search,
html.ev-phone-v5[data-ev-v5-screen]:not([data-ev-v5-screen="home"]) .ev-v5-stock-controls > .ev-v5-base-filter {
  display: none !important;
}

html.ev-phone-v5 .ev-v5-screen {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: calc(100vh - 130px) !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, .76) !important;
  box-shadow: var(--ev5-shadow) !important;
  backdrop-filter: blur(28px) saturate(1.18) !important;
  overflow: visible !important;
  animation: ev5ScreenEnter .42s cubic-bezier(.16,.82,.24,1) both !important;
}

html.ev-phone-v5 .ev-v5-screen-head {
  position: relative;
  display: grid;
  grid-template-columns: 48px 50px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 112px;
  margin: -2px -2px 18px;
  padding: 18px;
  border: 1px solid rgba(239, 218, 162, .18);
  border-radius: 25px;
  background:
    radial-gradient(circle at 90% 0%, rgba(124, 77, 255, .52), transparent 36%),
    linear-gradient(135deg, #080e1d, #152047 58%, #261747);
  color: white;
  box-shadow: 0 20px 45px rgba(12, 18, 42, .24);
  overflow: hidden;
}

html.ev-phone-v5 .ev-v5-screen-head::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(244, 223, 170, .20);
  box-shadow: 0 0 0 22px rgba(244,223,170,.04), 0 0 0 44px rgba(244,223,170,.025);
}

html.ev-phone-v5 .ev-v5-screen-back,
html.ev-phone-v5 .ev-v5-screen-symbol {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.10) !important;
  color: #fff !important;
  box-shadow: inset 0 1px rgba(255,255,255,.12) !important;
  font-size: 22px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

html.ev-phone-v5 .ev-v5-screen-symbol {
  color: var(--ev5-gold-light) !important;
  font-size: 21px;
}

html.ev-phone-v5 .ev-v5-screen-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

html.ev-phone-v5 .ev-v5-screen-kicker {
  margin-bottom: 4px;
  color: var(--ev5-gold-light);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .12em;
}

html.ev-phone-v5 .ev-v5-screen-copy h1 {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(23px, 5vw, 31px) !important;
  font-weight: 950 !important;
  letter-spacing: -.035em !important;
  line-height: 1.05 !important;
}

html.ev-phone-v5 .ev-v5-screen-copy p {
  margin: 6px 0 0 !important;
  color: rgba(236, 240, 255, .72) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

html.ev-phone-v5 .ev-v5-screen > h1,
html.ev-phone-v5 .ev-v5-screen > h2,
html.ev-phone-v5 .ev-v5-screen > h3 {
  color: #111827 !important;
  letter-spacing: -.03em !important;
}

html.ev-phone-v5 .ev-v5-screen label,
html.ev-phone-v5 .ev-v5-screen > div > label {
  color: #42506a !important;
  font-weight: 820 !important;
}

html.ev-phone-v5 .ev-v5-screen input,
html.ev-phone-v5 .ev-v5-screen select,
html.ev-phone-v5 .ev-v5-screen textarea {
  min-height: 52px !important;
  margin-bottom: 10px !important;
  border-color: rgba(93, 108, 140, .20) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.95) !important;
  box-shadow: 0 8px 22px rgba(20,28,50,.05), inset 0 1px rgba(255,255,255,.92) !important;
}

html.ev-phone-v5 .ev-v5-screen button {
  min-height: 46px;
  border-radius: 16px !important;
}

html.ev-phone-v5 .ev-v5-primary-button {
  border: 0 !important;
  background: linear-gradient(135deg, #2b3fd0, #7549ed) !important;
  color: #fff !important;
  box-shadow: 0 13px 30px rgba(64, 62, 214, .23) !important;
}

html.ev-phone-v5 .ev-v5-danger-button {
  border: 1px solid rgba(220, 46, 79, .20) !important;
  background: linear-gradient(145deg, #fff2f4, #ffe3e8) !important;
  color: #b31e42 !important;
  box-shadow: 0 11px 25px rgba(180, 28, 65, .10) !important;
}

html.ev-phone-v5 .ev-v5-screen-product .ev-v5-danger-button {
  grid-column: 1 / -1 !important;
}

html.ev-phone-v5 .ev-v5-screen-button {
  border-color: rgba(93, 108, 140, .20) !important;
  box-shadow: 0 8px 20px rgba(20,28,50,.055) !important;
}

html.ev-phone-v5 .ev-v5-native-back {
  display: none !important;
}

html.ev-phone-v5 .ev-v5-screen-product > .ev-v149-back,
html.ev-phone-v5 .ev-v5-screen-product .ev-v149-detail-back-native {
  display: none !important;
}

/* Product detail becomes a proper editorial page. */
html.ev-phone-v5 .ev-v5-screen-product {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
}

html.ev-phone-v5 .ev-v5-screen-product .ev-v5-screen-head {
  grid-column: 1 / -1;
}

html.ev-phone-v5 .ev-v5-product-hero-image {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  border: 1px solid rgba(255,255,255,.82) !important;
  border-radius: 25px !important;
  background: #eef1f7 !important;
  box-shadow: 0 18px 45px rgba(20,28,50,.12) !important;
}

html.ev-phone-v5 .ev-v5-screen-product h2 {
  margin: 8px 0 2px !important;
  font-size: clamp(30px, 7vw, 45px) !important;
  font-weight: 950 !important;
  letter-spacing: -.045em !important;
  overflow-wrap: anywhere;
}

html.ev-phone-v5 .ev-v5-product-analytics,
html.ev-phone-v5 .ev-v5-screen-product .ev-v149-analytics {
  border: 1px solid rgba(92, 113, 255, .16) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, rgba(243,246,255,.98), rgba(236,241,255,.92)) !important;
  box-shadow: 0 16px 38px rgba(54, 69, 160, .09) !important;
  overflow: visible !important;
}

html.ev-phone-v5 .ev-v5-product-description {
  margin: 0 !important;
  padding: 17px 18px !important;
  border-left: 3px solid var(--ev5-gold) !important;
  border-radius: 4px 17px 17px 4px !important;
  background: rgba(255,255,255,.88) !important;
  color: #526078 !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.55 !important;
  overflow: visible !important;
  white-space: normal !important;
}

/* Settings danger area remains visually unmistakable but premium. */
html.ev-phone-v5 .ev-v5-danger-zone {
  margin-top: 20px !important;
  padding: 18px !important;
  border: 1px solid rgba(218, 52, 86, .20) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #fff7f8, #ffedf1) !important;
  box-shadow: 0 13px 30px rgba(181, 32, 67, .08) !important;
}

/* AI product assistant is always discoverable. The original React action is
   still used underneath after a photo is selected. */
html.ev-phone-v5 .ev-v5-ai-helper {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 7px 13px;
  align-items: center;
  margin: 15px 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(116, 78, 239, .22) !important;
  border-radius: 23px !important;
  background:
    radial-gradient(circle at 88% 4%, rgba(111, 73, 239, .18), transparent 42%),
    linear-gradient(145deg, rgba(248,250,255,.98), rgba(239,237,255,.98)) !important;
  box-shadow: 0 16px 34px rgba(52, 47, 153, .13) !important;
  overflow: hidden;
  animation: ev5CardReveal .42s cubic-bezier(.18,.8,.22,1) both;
}

html.ev-phone-v5 .ev-v5-ai-orb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: linear-gradient(145deg, #263ad1, #8b4cf3);
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: .04em;
  box-shadow: 0 12px 26px rgba(76, 67, 221, .26);
}

html.ev-phone-v5 .ev-v5-ai-copy {
  min-width: 0;
}

html.ev-phone-v5 .ev-v5-ai-copy strong {
  display: block;
  color: #171d33 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
}

html.ev-phone-v5 .ev-v5-ai-copy p {
  margin: 5px 0 0 !important;
  color: #68728a !important;
  font-size: 12px !important;
  line-height: 1.42 !important;
}

html.ev-phone-v5 .ev-v5-ai-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 49px;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #263bd6, #8249ef) !important;
  color: #fff !important;
  font-weight: 950 !important;
  box-shadow: 0 12px 28px rgba(70, 61, 214, .22) !important;
}

html.ev-phone-v5 .ev-v5-ai-button:disabled {
  opacity: .68 !important;
  filter: saturate(.65);
}

html.ev-phone-v5 .ev-v5-native-ai {
  display: none !important;
}

/* Cash modal and money ledger: premium bottom sheet, no pulsing. */
html.ev-phone-v5 #evV121CashModal,
html.ev-phone-v5 #evV121StockModal,
html.ev-phone-v5 #evV155MoneyTakeModal {
  background: rgba(5, 9, 20, .50) !important;
  backdrop-filter: blur(15px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(15px) saturate(1.1) !important;
}

html.ev-phone-v5 #evV121CashModal > div,
html.ev-phone-v5 #evV121StockModal > div,
html.ev-phone-v5 #evV155MoneyTakeModal > div {
  border: 1px solid rgba(255,255,255,.75) !important;
  border-radius: 30px 30px 0 0 !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(111, 78, 255, .16), transparent 30%),
    linear-gradient(180deg, #fbfcff, #edf2f9) !important;
  box-shadow: 0 -30px 100px rgba(5, 10, 25, .38) !important;
  animation: ev5SheetEnter .38s cubic-bezier(.16,.82,.24,1) both !important;
}

html.ev-phone-v5 #evV121CashModal button,
html.ev-phone-v5 #evV121StockModal button,
html.ev-phone-v5 #evV155MoneyTakeModal button {
  border-radius: 16px !important;
}

/* Store also receives the premium system. */
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v5-product-card-shell {
  border-radius: 28px !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v5-product-card {
  padding: 0 !important;
}

/* V8 Store: the old enhancer added a second 13px inner padding after React's
   first paint. That visibly shrank every photo. These structural selectors
   apply from the first render, even before semantic classes are attached. */
html.ev-phone-v5[data-ev-v5-mode="store"] #root div:has(> h3):has(> div:first-child button[aria-label="Избранное"]),
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v5-product-card {
  padding: 0 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] #root div:has(> h3):has(> div:first-child button[aria-label="Избранное"]) > div:first-child,
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v5-product-card > div:first-child {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  margin-bottom: 12px !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] #root div:has(> h3):has(> div:first-child button[aria-label="Избранное"]) > div:first-child > img,
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v5-product-card > div:first-child > img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v5-product-card {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* V9: the fourth cash action is a complete second row, never a narrow
   orphaned cell.  The original IDs and click handlers stay untouched. */
html.ev-phone-v5 #evV121StockModal #evV143NewReqTab,
html.ev-phone-v5 #evV121CashModal #evV143NewReqTab {
  grid-column: 1 / -1 !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  width: 100% !important;
  min-height: 78px !important;
  padding: 12px 14px !important;
  text-align: left !important;
}

html.ev-phone-v5 #evV121StockModal #evV143NewReqTab::before,
html.ev-phone-v5 #evV121CashModal #evV143NewReqTab::before {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
}

html.ev-phone-v5 #evV121StockModal #evV143NewReqTab::after,
html.ev-phone-v5 #evV121CashModal #evV143NewReqTab::after {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

html.ev-phone-v5 #evV121StockModal #evV143NewReqTab b,
html.ev-phone-v5 #evV121CashModal #evV143NewReqTab b {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  min-width: 42px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.78) !important;
  text-align: center !important;
}

/* Club semantic components. */
html.ev-phone-v5 #app.wrap {
  width: min(100%, 820px);
  padding: 14px 14px 26px;
}

html.ev-phone-v5 #app .hero {
  border: 1px solid rgba(239,218,162,.20);
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 8%, rgba(126,75,255,.62), transparent 34%),
    linear-gradient(135deg, #070d1c, #173a92 58%, #50208f);
  background-size: 135% 135%;
  box-shadow: 0 28px 75px rgba(20,31,91,.25);
  animation: ev5HeroFlow 18s ease-in-out infinite alternate;
}

html.ev-phone-v5 #app .card,
html.ev-phone-v5 #app .client,
html.ev-phone-v5 #app .receipt,
html.ev-phone-v5 #app .tariff,
html.ev-phone-v5 #app .product,
html.ev-phone-v5 #app .mainProjectCard {
  height: auto !important;
  max-height: none !important;
  border: 1px solid rgba(112,126,154,.15);
  border-radius: 26px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--ev5-shadow-soft);
  overflow: visible !important;
  animation: ev5CardReveal .45s cubic-bezier(.18,.8,.22,1) both;
}

html.ev-phone-v5 #app .stat,
html.ev-phone-v5 #app .detailCell,
html.ev-phone-v5 #app .v34BotCell,
html.ev-phone-v5 #app .formBlock,
html.ev-phone-v5 #app .lawBox,
html.ev-phone-v5 #app .checkRule {
  border-color: rgba(112,126,154,.16);
  border-radius: 20px;
  background: linear-gradient(145deg, #fcfdff, #f3f6fb);
}

@keyframes ev5AuroraA {
  from { transform: translate3d(0, -18px, 0) scale(.94); }
  to { transform: translate3d(86px, 64px, 0) scale(1.14); }
}

@keyframes ev5AuroraB {
  from { transform: translate3d(28px, -30px, 0) scale(1.10); }
  to { transform: translate3d(-78px, 58px, 0) scale(.92); }
}

@keyframes ev5HeroFlow {
  from { background-position: 0% 30%; }
  to { background-position: 100% 70%; }
}

@keyframes ev5HeroSweep {
  0%, 64% { transform: rotate(18deg) translateX(-180%); opacity: 0; }
  70% { opacity: .34; }
  86%, 100% { transform: rotate(18deg) translateX(560%); opacity: 0; }
}

@keyframes ev5RowReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ev5CardReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ev5ScreenEnter {
  from { opacity: 0; transform: translateX(18px) scale(.99); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes ev5SheetEnter {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ev5NavReveal {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 620px) {
  html.ev-phone-v5 body {
    padding-bottom: calc(108px + env(safe-area-inset-bottom)) !important;
  }

  html.ev-phone-v5 #root > div {
    padding-inline: 10px !important;
  }

  html.ev-phone-v5 .ev-v5-hero {
    min-height: 166px !important;
    border-radius: 29px !important;
    box-shadow: 0 24px 58px rgba(9,16,38,.25) !important;
  }

  html.ev-phone-v5 .ev-v5-quickbar,
  html.ev-phone-v5 .ev-v5-stock-controls {
    padding: 12px !important;
    border-radius: 25px !important;
  }

  html.ev-phone-v5 .ev-v5-action {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    column-gap: 9px !important;
    min-height: 110px !important;
    padding: 13px 11px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
  }

  html.ev-phone-v5 .ev-v5-action::before {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 18px;
  }

  html.ev-phone-v5 .ev-v5-action::after {
    font-size: 10.6px;
    line-height: 1.28;
  }

  html.ev-phone-v5 .ev-v5-stock-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html.ev-phone-v5 .ev-v5-inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html.ev-phone-v5 .ev-v5-stock-card-shell,
  html.ev-phone-v5 .ev-v5-product-card-shell {
    min-width: 0 !important;
    padding: 8px !important;
    border-radius: 23px !important;
  }

  html.ev-phone-v5 .ev-v5-stock-card,
  html.ev-phone-v5 .ev-v5-product-card {
    min-width: 0 !important;
    border-radius: 18px !important;
  }

  html.ev-phone-v5 .ev-v5-stock-card img,
  html.ev-phone-v5 .ev-v5-product-card img {
    aspect-ratio: 4 / 3 !important;
    border-radius: 15px !important;
  }

  html.ev-phone-v5 .ev-v5-stock-card h3,
  html.ev-phone-v5 .ev-v5-product-card h3 {
    font-size: 16px !important;
    line-height: 1.14 !important;
    overflow-wrap: anywhere !important;
  }

  html.ev-phone-v5 .ev-v5-nav {
    width: calc(100vw - 16px) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }

  html.ev-phone-v5 .ev-v5-screen {
    min-height: calc(100vh - 100px) !important;
    padding: 12px !important;
    border-radius: 26px !important;
  }

  html.ev-phone-v5 .ev-v5-screen-head {
    grid-template-columns: 43px 43px minmax(0, 1fr);
    gap: 9px;
    min-height: 108px;
    margin: 0 0 14px;
    padding: 14px 12px;
    border-radius: 23px;
  }

  html.ev-phone-v5 .ev-v5-screen-back,
  html.ev-phone-v5 .ev-v5-screen-symbol {
    width: 43px;
    height: 43px;
    border-radius: 14px !important;
  }

  html.ev-phone-v5 .ev-v5-screen-copy h1 {
    font-size: 23px !important;
  }

  html.ev-phone-v5 .ev-v5-screen-copy p {
    font-size: 11px !important;
  }

  html.ev-phone-v5 .ev-v5-product-hero-image {
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    background: white !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v5-product-card-shell {
    width: 100% !important;
  }

  html.ev-phone-v5 #app.wrap {
    padding: 11px 10px 24px;
  }
}

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