/* App4-only override for the established live home. No component/layout bundle changes. */
.mobile-shell.is-home .market-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 11px !important;
}

.mobile-shell.is-home .market-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto auto !important;
  column-gap: 12px !important;
  row-gap: 2px !important;
  min-height: 84px !important;
  height: auto !important;
  padding: 8px 11px 7px !important;
  border-radius: 14px !important;
  background: linear-gradient(125deg, #fff 0%, #fbfaf2 100%) !important;
  border: 1px solid rgba(102,123,105,.25) !important;
  box-shadow: inset 0 1px #fff, 0 5px 13px rgba(31,55,43,.17) !important;
}

.mobile-shell.is-home .market-head {
  display: contents !important;
}

.mobile-shell.is-home .market-head h3 {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center;
  margin: 0 !important;
  color: #101613 !important;
  font-size: 16px !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

.mobile-shell.is-home .market-head span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center;
  width: auto !important;
  min-width: 44px !important;
  padding: 3px 7px !important;
  color: #fff !important;
  background: linear-gradient(135deg,#ee6262,#c72f3d) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px rgba(255,255,255,.35),0 3px 8px rgba(147,35,43,.2) !important;
  font-size: 9px !important;
  line-height: 1 !important;
  text-align: center !important;
  font-weight: 800 !important;
}

.mobile-shell.is-home .market-head .open {
  color: #fff !important;
  background: linear-gradient(135deg,#56bc68,#268b43) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.4),0 3px 8px rgba(35,119,57,.2) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  animation: app4LivePulse 1.65s ease-in-out infinite !important;
}

.mobile-shell.is-home .market-head .open::before {
  content: '' !important;
  width: 5px !important;
  height: 5px !important;
  flex: 0 0 5px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 0 0 0 rgba(255,255,255,.75) !important;
  animation: app4LiveDot 1.15s ease-out infinite !important;
}

@keyframes app4LivePulse {
  0%,100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.12); }
}

@keyframes app4LiveDot {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70% { opacity: .72; box-shadow: 0 0 0 5px rgba(255,255,255,0); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.mobile-shell.is-home .result-strip {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  width: auto !important;
  gap: 8px !important;
  margin: 2px 0 3px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.mobile-shell.is-home .result-strip strong {
  display: inline-block !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: #4b9d4e !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

.mobile-shell.is-home .result-strip strong:not(:last-child)::after {
  content: none !important;
  margin: 0 !important;
}

.mobile-shell.is-home .market-foot {
  display: contents !important;
}

.mobile-shell.is-home .market-foot > span {
  grid-column: 1 !important;
  grid-row: 3 !important;
  align-self: end;
  color: #26362f !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.mobile-shell.is-home .market-actions {
  grid-column: 2 !important;
  grid-row: 2 / 4 !important;
  align-self: center;
  display: grid !important;
  grid-template-columns: 38px 38px !important;
  gap: 6px !important;
}

.mobile-shell.is-home .market-actions a {
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  overflow: hidden !important;
  border-radius: 11px !important;
  font-size: 0 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.44), 0 4px 10px rgba(29,47,38,.18) !important;
}

.mobile-shell.is-home .market-actions a:first-child {
  color: #171b18 !important;
  background: linear-gradient(145deg, #ffc233, #eba313) !important;
  border: 0 !important;
}

.mobile-shell.is-home .market-actions a:last-child {
  color: #fff !important;
  background: linear-gradient(145deg, #16201b, #020503) !important;
  border: 0 !important;
}

.mobile-shell.is-home .market-actions svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2.25 !important;
}

/* Compact premium header; this stylesheet is loaded only by app4. */
.mobile-shell.is-home .app-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  min-height: 56px !important;
  margin: 0 8px 8px !important;
  padding: 6px 8px !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 0 0 16px 16px !important;
  background: linear-gradient(130deg,rgba(255,255,255,.92),rgba(224,237,211,.94)) !important;
  box-shadow: inset 0 1px #fff,0 8px 20px rgba(57,78,42,.14) !important;
  backdrop-filter: blur(16px) saturate(1.2) !important;
}

.mobile-shell.is-home .app-header .icon-btn,
.mobile-shell.is-home .app-header .bell-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 13px !important;
  color: #33481f !important;
  background: rgba(255,255,255,.72) !important;
  border: 1px solid rgba(92,118,61,.2) !important;
  box-shadow: inset 0 1px #fff !important;
}

.mobile-shell.is-home .app-header .wallet-chip {
  min-height: 42px !important;
  padding: 5px 7px 5px 9px !important;
  border-radius: 14px !important;
  color: #16200f !important;
  background: linear-gradient(135deg,#faf8eb,#dce8c4) !important;
  border: 1px solid rgba(100,126,61,.28) !important;
  box-shadow: inset 0 1px #fff,0 3px 9px rgba(75,98,43,.12) !important;
}

.mobile-shell.is-home .app-header .wallet-chip > span {
  color: #fff !important;
  background: linear-gradient(145deg,#8fae4f,#597b20) !important;
  border-radius: 10px !important;
}

@media (max-width: 380px) {
  .mobile-shell.is-home .market-actions {
    grid-template-columns: 36px 36px !important;
    gap: 6px !important;
  }
  .mobile-shell.is-home .market-actions a {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
}

/* App4 drawer: soft mint/cream instead of the legacy dark green. */
.side-drawer.open {
  z-index: 200 !important;
}

.mobile-shell .side-drawer.open .drawer-panel,
.side-drawer.open > .drawer-panel,
.side-drawer .drawer-panel {
  color: #24351f !important;
  background-color: #e6efdc !important;
  background:
    radial-gradient(circle at 14% 4%,rgba(255,255,255,.94),transparent 28%),
    linear-gradient(165deg,#f8f8eb 0%,#e6efdc 52%,#d8e7cf 100%) !important;
  border-right: 1px solid rgba(91,117,66,.22) !important;
  box-shadow: 14px 0 35px rgba(36,58,37,.24) !important;
}

.side-drawer .drawer-profile {
  background: linear-gradient(135deg,rgba(255,255,255,.86),rgba(220,235,204,.82)) !important;
  border: 1px solid rgba(99,128,70,.2) !important;
  box-shadow: inset 0 1px #fff,0 5px 14px rgba(60,87,48,.1) !important;
}

.side-drawer .drawer-profile strong,
.side-drawer .drawer-profile span {
  color: #24351f !important;
}

.side-drawer .drawer-avatar {
  color: #fff !important;
  background: linear-gradient(145deg,#84a94d,#496e25) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.45),0 4px 10px rgba(61,91,38,.2) !important;
}

.mobile-shell.is-home .mini-avatar,
.side-drawer .drawer-avatar {
  padding: 0 !important;
  overflow: hidden !important;
  background: #e8f0df !important;
  border: 2px solid rgba(109,137,76,.42) !important;
}

.mobile-shell.is-home .mini-avatar img,
.side-drawer .drawer-avatar img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
}

.side-drawer .drawer-wallet {
  color: #fff !important;
  background: linear-gradient(135deg,#779b3d,#456b24) !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.3),0 5px 14px rgba(58,87,36,.2) !important;
}

.side-drawer .drawer-wallet span,
.side-drawer .drawer-wallet strong {
  color: #fff !important;
}

.side-drawer .drawer-group p {
  color: #6d814f !important;
}

.side-drawer .drawer-group a {
  color: #263820 !important;
  background: rgba(255,255,255,.64) !important;
  border: 1px solid rgba(103,130,78,.14) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.8) !important;
}

.side-drawer .drawer-group a span {
  color: #263820 !important;
  text-shadow: none !important;
}

.side-drawer .drawer-group a svg:last-child {
  color: #5d7f32 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.side-drawer .drawer-group a svg {
  color: #fff !important;
  background: linear-gradient(145deg,#8aac50,#56792d) !important;
}

.side-drawer .drawer-group a:active {
  background: #dceacb !important;
}

.side-drawer .drawer-logout {
  color: #a83838 !important;
  background: rgba(255,245,242,.82) !important;
  border: 1px solid rgba(187,74,63,.2) !important;
}
