: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);
}

/* Stable order checkbox for Android/Telegram WebView. Native checkbox
   rendering sometimes loses the thin top edge, so both states are drawn by
   our own complete square. */
html.ev-phone-v5 .ev-order-check {
  position: relative !important;
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  border: 2px solid #d97706 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(15,23,42,.08) !important;
  cursor: pointer !important;
  overflow: visible !important;
}

html.ev-phone-v5 .ev-order-check > input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

html.ev-phone-v5 .ev-order-check > span {
  width: 24px !important;
  height: 24px !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  border: 2.5px solid #64748b !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #fff !important;
  font: 1000 18px/1 system-ui !important;
}

html.ev-phone-v5 .ev-order-check > input[type="checkbox"]:focus-visible + span {
  outline: 3px solid rgba(37,99,235,.28) !important;
  outline-offset: 2px !important;
}

html.ev-phone-v5 .ev-order-check > input[type="checkbox"]:checked + span {
  border-color: #2563eb !important;
  background: #2563eb !important;
}

html.ev-phone-v5 .ev-order-check > input[type="checkbox"]:checked + span::after {
  content: "✓" !important;
  display: block !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

/* 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;
}

/* V26: in the two-column phone catalogue the action must remain inside its
   card. The accessible button text is kept in the DOM; only the compact cart
   glyph is painted on narrow product cards. */
html.ev-phone-v5 .ev-v24-store-grid .ev-v5-cart-button {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  flex: 0 0 42px !important;
  align-self: center !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

html.ev-phone-v5 .ev-v24-store-grid .ev-v5-cart-button::before {
  content: "\1F6D2";
  display: block;
  font-size: 17px;
  line-height: 1;
}

/* V15: a deliberate premium hand-off masks React's short empty commit.
   It is shown only for confirmed section changes; scrolling and tabs stay live. */
#evV14TransitionLayer {
  position: fixed;
  inset: 0;
  z-index: 999990;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: linear-gradient(155deg, #eaf0fb 0%, #f8f9fd 48%, #eeeafd 100%);
  transition: opacity .24s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .24s;
  isolation: isolate;
}

html.ev-phone-v5[data-ev-v14-transition="hold"] #evV14TransitionLayer {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

html.ev-phone-v5[data-ev-v14-transition="release"] #evV14TransitionLayer {
  visibility: visible;
  opacity: 0;
  transition-delay: 0s;
}

#evV14TransitionLayer .ev-v14-transition-card {
  position: relative;
  z-index: 2;
  width: min(430px, calc(100vw - 44px));
  min-height: 142px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 30px;
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(7, 18, 47, .97), rgba(39, 42, 115, .96) 58%, rgba(94, 42, 170, .95));
  box-shadow: 0 28px 80px rgba(20, 27, 75, .30), inset 0 1px 0 rgba(255, 255, 255, .16);
  animation: evV14CardIn .38s cubic-bezier(.16, .82, .24, 1) both;
}

#evV14TransitionLayer .ev-v14-transition-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 230, 164, .34);
  border-radius: 21px;
  color: #ffe8a8;
  background: rgba(255, 255, 255, .10);
  font: 950 30px/1 system-ui, sans-serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

#evV14TransitionLayer .ev-v14-transition-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

#evV14TransitionLayer .ev-v14-transition-kicker {
  color: #ffe3a0;
  font: 900 11px/1.15 system-ui, sans-serif;
  letter-spacing: .16em;
}

#evV14TransitionLayer .ev-v14-transition-title {
  color: white;
  font: 950 clamp(22px, 6vw, 30px)/1.08 system-ui, sans-serif;
  letter-spacing: -.035em;
}

#evV14TransitionLayer .ev-v14-transition-line {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
}

#evV14TransitionLayer .ev-v14-transition-line i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66e0d4, #ffe19a, #b58cff);
  animation: evV14Line 1.1s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes evV14CardIn {
  from { opacity: .82; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes evV14Line {
  from { transform: translateX(-110%); }
  to { transform: translateX(340%); }
}

/* PHONE_TEST V27 — compact market catalogue.  Presentation only: native
   React buttons and data stay in the DOM, so cart/stock/payment logic is intact. */
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v24-store-grid {
  gap: 12px 10px !important;
  align-items: stretch !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-market-card-shell {
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-market-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 0 2px 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 5 !important;
  border: 1px solid rgba(226,232,240,.96) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.055) !important;
  overflow: hidden !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-native-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 19px !important;
  background: #fff !important;
  object-fit: contain !important;
  touch-action: pan-y !important;
  -webkit-user-drag: none !important;
  user-select: none !important;
}

/* PHONE_TEST V190: the invisible trigger sits at 76vh. Only the bitmap is
   scaled; the existing media frame clips it, so card geometry and controls do
   not move. JavaScript updates the custom property once per animation frame. */
html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="home"] .ev-v27-card-media {
  overflow: hidden !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="home"] .ev-v27-card-media > .ev-v27-native-image.ev-v190-scroll-scale-image {
  transform: scale(var(--ev-v190-scroll-scale, 1.35)) !important;
  transform-origin: 50% 50% !important;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="home"] .ev-v27-card-media > .ev-v27-native-image.ev-v190-scroll-scale-image {
    transform: scale(1) !important;
  }
}

/* Feed swiping keeps the original React image in place and swaps it only
   after the next photo has loaded. This avoids the blank-card compositor
   issue caused by the former stack of absolute image layers. */
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-swipe-dots {
  position: absolute !important;
  left: 50% !important;
  bottom: 7px !important;
  z-index: 3 !important;
  display: flex !important;
  gap: 4px !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-swipe-dots i {
  width: 4px !important;
  height: 4px !important;
  border-radius: 99px !important;
  background: rgba(15,23,42,.24) !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-swipe-dots i.active {
  width: 11px !important;
  background: #111827 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-gallery {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  overflow: hidden !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-gallery-track {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  overscroll-behavior-inline: contain !important;
  scrollbar-width: none !important;
  touch-action: pan-x pan-y !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-gallery-track::-webkit-scrollbar {
  display: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-gallery-image {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 19px !important;
  background: #fff !important;
  object-fit: contain !important;
  scroll-snap-align: start !important;
  aspect-ratio: auto !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-gallery-dots {
  position: absolute !important;
  left: 50% !important;
  bottom: 7px !important;
  z-index: 3 !important;
  display: flex !important;
  gap: 4px !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-gallery-dots i {
  width: 4px !important;
  height: 4px !important;
  border-radius: 99px !important;
  background: rgba(15,23,42,.24) !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-gallery-dots i.active {
  width: 11px !important;
  background: #111827 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-media button {
  z-index: 4 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-title {
  display: -webkit-box !important;
  min-height: 2.45em !important;
  margin: 10px 2px 4px !important;
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.22 !important;
  letter-spacing: -.018em !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-description {
  display: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: auto 0 0 !important;
  padding: 0 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-price-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 3px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-price-row strong {
  color: #111827 !important;
  font-size: 19px !important;
  font-weight: 950 !important;
  letter-spacing: -.035em !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-price-row del {
  color: #9ca3af !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  text-decoration-thickness: 1px !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-price-row em {
  color: #e11d48 !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-actions .ev-v5-cart-button {
  width: auto !important;
  min-width: 64px !important;
  max-width: none !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #2563eb, #6d3df5) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .035em !important;
  line-height: 1 !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

@media (max-width: 430px) {
  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-actions {
    gap: 3px !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-price-row {
    gap: 2px !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-price-row strong {
    font-size: 16px !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-price-row del {
    font-size: 10px !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-price-row em {
    font-size: 11px !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-actions .ev-v5-cart-button {
    min-width: 57px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
    letter-spacing: 0 !important;
  }
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-actions .ev-v5-cart-button::before,
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-actions .ev-v5-cart-button::after {
  content: none !important;
}

/* V28: React replaces the small cart button with quantity controls after an
   item is added. Keep that control in the original action row so the card
   never grows taller than its neighbours. */
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-market-card-shell {
  position: relative !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-market-card-shell.ev-v27-card-shell-has-quantity .ev-v27-card-actions {
  grid-template-columns: minmax(0, 1fr) !important;
  min-height: 30px !important;
  padding-right: 94px !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-shell-has-quantity > .ev-v27-card-quantity {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  width: 88px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-quantity > div:first-child {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) 28px !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
  margin: 0 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-quantity > div:first-child > button,
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-quantity > div:first-child > div {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 9px !important;
  line-height: 1 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-quantity > div:first-child > button {
  background: #e7a02e !important;
  color: #fff !important;
  font-size: 18px !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-quantity > div:first-child > div {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-quantity > div:last-child {
  display: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-shell-has-quantity .ev-v27-price-row del,
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-card-shell-has-quantity .ev-v27-price-row em {
  display: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-market-card .ev-v21-promo-badge {
  display: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="product"] .ev-v27-store-detail {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 12px !important;
  border-radius: 28px !important;
  background: #fff !important;
  box-shadow: 0 18px 45px rgba(15,23,42,.08) !important;
}

/* A product page starts with its product gallery, never with the store cover. */
html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="product"] .ev-v27-store-brand-hero {
  display: none !important;
}

/* React can briefly report "home" while its product gallery is already in
   the DOM.  This structural guard does not rely on that transient state, so
   the shop cover can never flash above an opened product on Telegram. */
html.ev-phone-v5[data-ev-v5-mode="store"]:has(.ev-v27-store-detail) .ev-v5-hero,
html.ev-phone-v5[data-ev-v5-mode="store"]:has(.ev-v27-store-detail) .ev-v27-store-brand-hero,
html.ev-phone-v5[data-ev-v5-mode="store"]:has(.ev-v27-detail-gallery) .ev-v5-hero {
  display: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-gallery {
  order: 1 !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 24px !important;
  background: #fff !important;
  overflow: hidden !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-gallery img {
  width: 100% !important;
  border-radius: 22px !important;
  background: #fff !important;
  object-fit: contain !important;
  cursor: zoom-in !important;
}

/* The product detail uses the same square visual language as the catalogue.
   The native gallery still owns its arrows and thumbnails; only its main
   viewport is normalised to a stable 1:1 frame. */
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-gallery > div:first-child {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: #fff !important;
  touch-action: pan-y !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-gallery > div:first-child > img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain !important;
  transform: scale(1);
  transform-origin: 50% 50%;
  will-change: transform;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-gallery > div:first-child > button {
  display: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-back-row { order: 0 !important; }
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-title-row { order: 2 !important; }
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-title-row h2 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 28px !important;
  line-height: 1.08 !important;
  letter-spacing: -.045em !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-price {
  order: 3 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 9px !important;
  padding: 4px 1px !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-description {
  order: 4 !important;
  margin: 0 !important;
  color: #4b5563 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-cart-row { order: 5 !important; }

/* The native React detail swaps its cart button for a quantity panel. Keep
   that panel in the same purchase slot and suppress both duplicated totals;
   the premium price above already shows the authoritative amount. */
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-total,
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-quantity > div:last-child {
  display: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-quantity {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-quantity > div:first-child {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 48px !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-quantity > div:first-child > button,
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-quantity > div:first-child > div {
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  border-radius: 14px !important;
}

/* Product detail: keep the two optional floating tools away from the primary
   − / quantity / + purchase controls. They sit together in the free top-right
   strip and scroll away with the card; catalogue placement stays unchanged. */
html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="product"] .ev-v17-shelf-scanner,
html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="product"] #evAudioToggleV52 {
  position: absolute !important;
  top: 18px !important;
  bottom: auto !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="product"] .ev-v17-shelf-scanner {
  left: auto !important;
  right: 66px !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="product"] #evAudioToggleV52 {
  right: 14px !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="product"] #evV21CategoryRail {
  display: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-price strong { color:#111827!important;font-size:30px!important;font-weight:950!important; }
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-price del { color:#9ca3af!important;font-size:15px!important;font-weight:750!important; }
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-price em { color:#e11d48!important;font-size:16px!important;font-style:normal!important;font-weight:950!important; }

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-choose-row {
  order: 20 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 9px !important;
}

/* Keep React's own navigation controls in their original parents.  The
   script-owned row below activates them without re-parenting anything. */
html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="product"] .ev-v27-detail-back-row,
html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="product"] .ev-v27-detail-choose-row {
  display: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-tools,
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-actions {
  order: 6 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: 100% !important;
  margin: 11px 0 0 !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-tools > button,
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-actions > button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 7px 6px !important;
  border: 1px solid rgba(148,163,184,.32) !important;
  border-radius: 14px !important;
  color: #25324a !important;
  font-size: 12px !important;
  line-height: 1.12 !important;
  font-weight: 850 !important;
  letter-spacing: -.015em !important;
  box-shadow: 0 8px 20px rgba(15,23,42,.055) !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-tools > button:nth-child(1),
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-actions > button:nth-child(1) {
  background: #edf6ff !important;
  border-color: #cfe5fb !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-tools > button:nth-child(2),
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-actions > button:nth-child(2) {
  background: #f1f0ff !important;
  border-color: #dcd8ff !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-tools > button:nth-child(3),
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-actions > button:nth-child(3) {
  background: #edf7f7 !important;
  border-color: #d3e8e8 !important;
}

#evV21CategoryRail[hidden] {
  display: none !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-similar-button {
  min-height: 48px !important;
  border: 1px solid #dfe3eb !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.ev-v27-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000025 !important;
  display: grid !important;
  place-items: center !important;
  padding: 18px !important;
  background: rgba(3,7,18,.94) !important;
  touch-action: pinch-zoom !important;
}

.ev-v27-lightbox img {
  max-width: 100% !important;
  max-height: 88vh !important;
  border-radius: 18px !important;
  object-fit: contain !important;
}

.ev-v27-lightbox button {
  position: fixed !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 2 !important;
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  font-size: 28px !important;
}

@media (prefers-reduced-motion: reduce) {
  #evV14TransitionLayer,
  #evV14TransitionLayer .ev-v14-transition-card,
  #evV14TransitionLayer .ev-v14-transition-line i {
    animation: none !important;
    transition-duration: .12s !important;
  }
}

/* V182 product detail: purchase-first mobile layout and edge-aware studio light. */
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v182-detail-shine {
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  mix-blend-mode: screen !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v182-detail-thumbnails {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 11px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 4px 2px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v182-detail-thumbnails::-webkit-scrollbar {
  display: none;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v182-detail-thumb {
  box-sizing: border-box !important;
  flex: 0 0 58px !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 3px !important;
  border: 2px solid transparent !important;
  border-radius: 50% !important;
  background: #f3f4f6 !important;
  overflow: hidden !important;
  box-shadow: 0 4px 13px rgba(15,23,42,.08) !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v182-detail-thumb.is-active {
  border-color: #f29a23 !important;
  background: #fff !important;
  box-shadow: 0 0 0 1px rgba(242,154,35,.16), 0 5px 15px rgba(15,23,42,.09) !important;
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v182-detail-thumb.ev-v182-thumb-enter {
  will-change: transform, opacity;
  animation: ev182ThumbBrakeIn 1250ms cubic-bezier(.16,.76,.18,1) var(--ev-v182-thumb-delay, 90ms) both !important;
}

@keyframes ev182ThumbBrakeIn {
  0% {
    opacity: 0;
    transform: translate3d(82px, 0, 0) scale(.84);
  }
  62% {
    opacity: 1;
    transform: translate3d(-4px, 0, 0) scale(1.018);
  }
  79% {
    opacity: 1;
    transform: translate3d(2px, 0, 0) scale(.997);
  }
  91% {
    opacity: 1;
    transform: translate3d(-.6px, 0, 0) scale(1.001);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v182-detail-thumb.ev-v183-thumb-tick {
  transform-origin: 50% 50%;
  will-change: transform;
  animation: ev183ActiveThumbTick 520ms cubic-bezier(.2,.72,.22,1) both !important;
}

@keyframes ev183ActiveThumbTick {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  17% { transform: translate3d(0, -2px, 0) scale(1.075); }
  31% { transform: translate3d(0, 1px, 0) scale(.985); }
  47% { transform: translate3d(0, -1.5px, 0) scale(1.055); }
  62% { transform: translate3d(0, .5px, 0) scale(.995); }
  77% { transform: translate3d(0, -.7px, 0) scale(1.025); }
}

html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v182-detail-thumb > img,
html.ev-phone-v5[data-ev-v5-mode="store"] img.ev-v182-detail-thumb {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #fff !important;
}

@media (max-width: 720px) {
  html.ev-phone-v5[data-ev-v5-mode="store"][data-ev-v5-store-screen="product"] .ev-v27-store-detail {
    display: grid !important;
    grid-template-columns: minmax(138px, max-content) minmax(0, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 10px !important;
    align-items: stretch !important;
    padding: 46px 10px 12px !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-gallery {
    grid-column: 1 / -1 !important;
    order: 1 !important;
    width: 100% !important;
    border: 0 !important;
    border-radius: 22px !important;
    overflow: visible !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-gallery > div:first-child {
    position: relative !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 28px rgba(15,23,42,.075) !important;
    contain: paint;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-native-price-row {
    display: none !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-price {
    grid-column: 1 !important;
    order: 2 !important;
    display: grid !important;
    grid-template-columns: auto minmax(34px, auto) !important;
    grid-template-rows: 1fr 1fr !important;
    align-items: center !important;
    align-self: stretch !important;
    column-gap: 7px !important;
    row-gap: 0 !important;
    width: max-content !important;
    min-height: 54px !important;
    padding: 0 1px !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-price strong {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    align-self: center !important;
    font-size: 30px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-price del {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    padding-bottom: 1px !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-price em {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    padding-top: 2px !important;
    font-size: 13px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-cart-row {
    grid-column: 2 !important;
    order: 2 !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 18px !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-quantity > div:first-child {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    gap: 6px !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-quantity > div:first-child > button,
  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-quantity > div:first-child > div {
    height: 54px !important;
    min-height: 54px !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-title-row {
    grid-column: 1 / -1 !important;
    order: 3 !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-title-row h2 {
    font-size: 23px !important;
    line-height: 1.08 !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-description {
    grid-column: 1 / -1 !important;
    order: 4 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-tools,
  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-actions {
    grid-column: 1 / -1 !important;
    order: 5 !important;
    margin-top: 2px !important;
  }
}

@media (max-width: 350px) {
  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-price strong {
    font-size: 27px !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v27-detail-cart-row {
    padding-inline: 9px !important;
    font-size: 15px !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v182-detail-thumb {
    flex-basis: 54px !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v182-detail-shine {
    display: none !important;
  }

  html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v182-thumb-enter {
    animation: none !important;
    opacity: 1 !important;
    transform: none !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"][data-ev-v5-store-screen="product"] .ev-v5-hero,
html.ev-phone-v5[data-ev-v5-mode="store"] .ev-v10-store-detail-hero {
  display: none !important;
}

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;
  }
}
